[Skiboot] [PATCH 49/61] hw/phb5: Update PHB numbering to allow for virtual PHBs
Vasant Hegde
hegdevasant at linux.vnet.ibm.com
Mon Jul 19 23:20:00 AEST 2021
From: Frederic Barrat <fbarrat at linux.ibm.com>
Make room for a per-chip numbering of virtual PHBs used by opencapi.
We can have up to 12 opencapi PHBs (two per PAU) on P10.
Signed-off-by: Frederic Barrat <fbarrat at linux.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
include/phb4.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/phb4.h b/include/phb4.h
index 217f68462..0bbfc926c 100644
--- a/include/phb4.h
+++ b/include/phb4.h
@@ -245,9 +245,9 @@ static inline void phb4_set_err_pending(struct phb4 *p, bool pending)
p->err_pending = pending;
}
-#define MAX_PHBS_PER_CHIP_P10 6 /* Max 6 PHBs per chip on p10 */
#define MAX_PHBS_PER_CHIP_P9 6 /* Max 6 PHBs per chip on p9 */
#define MAX_PHBS_PER_CHIP_P9P 0x10 /* extra for virt PHBs */
+#define MAX_PHBS_PER_CHIP_P10 0x12 /* 6 PCI + 12 opencapi */
static inline int phb4_get_opal_id(unsigned int chip_id, unsigned int index)
{
--
2.31.1
More information about the Skiboot
mailing list