diff mbox series

[49/61] hw/phb5: Update PHB numbering to allow for virtual PHBs

Message ID 20210719132012.150948-50-hegdevasant@linux.vnet.ibm.com
State Superseded
Headers show
Series P10 Enablement | expand

Commit Message

Vasant Hegde July 19, 2021, 1:20 p.m. UTC
From: Frederic Barrat <fbarrat@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@linux.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
---
 include/phb4.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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)
 {