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

Sergey Miroshnichenko s.miroshnichenko at yadro.com
Fri Oct 25 05:02:59 AEDT 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 476a3825..9118c7e1 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.23.0



More information about the Skiboot mailing list