diff options
author | Frederic Barrat <fbarrat@linux.ibm.com> | 2020-02-06 14:22:43 +0100 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2020-02-12 15:56:24 +1100 |
commit | 9de4f2284c54433f7f4ff3dc3d13a39c657e2c19 (patch) | |
tree | 4de2eb20557c61b22d57b6a57236073f73532669 /include | |
parent | 53408440edb30de7ad18f12db285f15a0863fbc3 (diff) | |
download | skiboot-9de4f2284c54433f7f4ff3dc3d13a39c657e2c19.zip skiboot-9de4f2284c54433f7f4ff3dc3d13a39c657e2c19.tar.gz skiboot-9de4f2284c54433f7f4ff3dc3d13a39c657e2c19.tar.bz2 |
npu2-opencapi: Allow platforms to identify physical slots
This patch lets each platform define the name of the opencapi
slots. It makes it easier to identify which physical card is
generating errors or messages in the linux or skiboot log files.
The patch provides slot names for mihawk and witherspoon. If the
platform doesn't define any, then we default to 'OPENCAPI-xxxx'
There are various ways to find out about the slot names:
skiboot log
lspci command (if the PCI hotplug driver pnv-php is loaded)
lshw
checking the device tree
and probably others....
Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/platform.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h index 6ecdbe4..6909a6a 100644 --- a/include/platform.h +++ b/include/platform.h @@ -63,6 +63,7 @@ struct platform_ocapi { uint8_t i2c_presence_brick5; /* I2C pin to read for presence on brick 5 */ bool odl_phy_swap; /* Swap ODL1 to use brick 2 rather than * brick 1 lanes */ + const char *(*ocapi_slot_label)(uint32_t chip_id, uint32_t brick_index); }; struct dt_node; |