[Skiboot] [PATCH v5 0/9] hwprobe patches

Nicholas Piggin npiggin at gmail.com
Mon Dec 20 23:22:43 AEDT 2021


Since v1:
- Rebased on upstream

Since v2:
- Fixed bug in deps traversal code that could cause some modules
  to not be probed.
- Tested and boots with little-endian patch on a P9.

Since v3:
- Rebased on upstream
- "Remove support for POWER8 DD1" was merged so it is gone from this
  series.
- Added Dan's R-B which I forgot to add from v1.

Since v4:
- Dropped more controversial CONFIG_NPU option for now
- Split P8 SLW specifics
- Made P8 SBE code compile away when unused by SLW
- Got a bit more P8 specific libpore code (XIP)
- Make P8 NPU HMI code compile out to no-op rather than a new phb ops

Thanks,
Nick

Nicholas Piggin (3):
  SBE: create processor-independent timer APIs
  hw/slw: Move P8 bits behind CONFIG_P8
  hw/slw: split P8 specific code into its own file

Stewart Smith (6):
  Introduce hwprobe facility to avoid hard-coding probe functions
  hwprobe: convert PHB, NPU, PAU subsystems to hwprobe
  Add CONFIG_P8 with PHB3 behind it
  hwprobe: convert vas_init(), nx_init()
  npu: Move npu.o and npu-hw-procedules.o under CONIFG_P8
  platforms: put P8 platforms behind CONFIG_P8

 Makefile                       |   2 +
 Makefile.main                  |  15 +-
 core/Makefile.inc              |   1 +
 core/cpu.c                     |  11 +-
 core/fast-reboot.c             |   3 +
 core/hwprobe.c                 |  70 +++++
 core/init.c                    |  21 +-
 core/interrupts.c              |   5 +-
 core/timer.c                   |  13 +-
 hw/Makefile.inc                |  12 +-
 hw/imc.c                       |   1 +
 hw/npu.c                       |   4 +-
 hw/npu2-common.c               |   4 +-
 hw/nx.c                        |   3 +
 hw/pau.c                       |   3 +-
 hw/phb3.c                      |   4 +-
 hw/phb4.c                      |   4 +-
 hw/sbe-p8.c                    |   9 +-
 hw/sbe-p9.c                    |   9 +-
 hw/sbe.c                       |  33 +++
 hw/slw-p8.c                    | 508 +++++++++++++++++++++++++++++++++
 hw/slw.c                       | 491 +------------------------------
 hw/vas.c                       |   2 +
 hw/xive.c                      |   1 +
 hw/xive2.c                     |   1 +
 include/npu.h                  |   7 +
 include/sbe-p8.h               |   5 +-
 include/sbe-p9.h               |   3 -
 include/sbe.h                  |  17 ++
 include/skiboot.h              |  56 ++--
 include/slw.h                  |  48 ++++
 libpore/Makefile.inc           |   8 +-
 platforms/astbmc/Makefile.inc  |  12 +-
 platforms/ibm-fsp/Makefile.inc |   7 +-
 skiboot.lds.S                  |   6 +
 35 files changed, 835 insertions(+), 564 deletions(-)
 create mode 100644 core/hwprobe.c
 create mode 100644 hw/sbe.c
 create mode 100644 hw/slw-p8.c
 create mode 100644 include/sbe.h
 create mode 100644 include/slw.h

-- 
2.23.0



More information about the Skiboot mailing list