[Skiboot] [PATCH v3 5/5] core/pci: Indicate support for PCI re-enumeration

Sergey Miroshnichenko s.miroshnichenko at yadro.com
Sat Aug 17 00:17:14 AEST 2019


New PHB's property "ibm,supported-movable-bdfs" shows that skiboot now
supports changing PCI bus numbers.

Signed-off-by: Sergey Miroshnichenko <s.miroshnichenko at yadro.com>
---
 core/pci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/pci.c b/core/pci.c
index 7657e515..f42418bd 100644
--- a/core/pci.c
+++ b/core/pci.c
@@ -1068,6 +1068,7 @@ int64_t pci_register_phb(struct phb *phb, int opal_id)
 	if (opal_id > last_phb_id)
 		last_phb_id = opal_id;
 	dt_add_property_cells(phb->dt_node, "ibm,opal-phbid", 0, phb->opal_id);
+	dt_add_property(phb->dt_node, "ibm,supported-movable-bdfs", NULL, 0);
 	PCIDBG(phb, 0, "PCI: Registered PHB\n");
 
 	init_lock(&phb->lock);
-- 
2.21.0



More information about the Skiboot mailing list