]> git.ipfire.org Git - thirdparty/qemu.git/commit
ppc/pnv/phb4: Add pervasive chiplet support to PHB4/5
authorNicholas Piggin <npiggin@gmail.com>
Sat, 16 Nov 2024 10:19:19 +0000 (20:19 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 11 Mar 2025 12:43:30 +0000 (22:43 +1000)
commit6b56bb6dbce5cfa185c34c0519ab8015f30699f7
tree6e7a625e62da3101dba48ab8cb51dae662b43161
parent7f98b4f25ed94a3565acb1d6b54f43c1e3da1709
ppc/pnv/phb4: Add pervasive chiplet support to PHB4/5

Each non-core chiplet on a chip has a "pervasive chiplet" unit and its
xscom register set. This adds support for PHB4/5.

skiboot reads the CPLT_CONF1 register in __phb4/5_get_max_link_width(),
which shows up as unimplemented xscom reads. Set a value in PCI CONF1
register's link-width field to demonstrate skiboot doing something
interesting with it.

In the bigger picture, it might be better to model the pervasive
chiplet type as parent that each non-core chiplet model derives from.
For now this is enough to get the PHB registers implemented and working
for skiboot, and provides a second example (after the N1 chiplet) that
will help if the design is reworked as such.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/pci-host/pnv_phb4_pec.c
hw/ppc/pnv.c
include/hw/pci-host/pnv_phb4.h
include/hw/ppc/pnv_xscom.h