aboutsummaryrefslogtreecommitdiff
path: root/include/pci-slot.h
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2017-02-20 10:57:50 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-02-22 16:51:18 +1100
commit99343c26ac8c6e49041bd2718c8b16e5d664f8fd (patch)
treefacf02e39b1a468f2f4686acaf26ac556f3d1d09 /include/pci-slot.h
parentaa295110d9487d2b4b3ff31b6369bf59e1cba824 (diff)
downloadskiboot-99343c26ac8c6e49041bd2718c8b16e5d664f8fd.zip
skiboot-99343c26ac8c6e49041bd2718c8b16e5d664f8fd.tar.gz
skiboot-99343c26ac8c6e49041bd2718c8b16e5d664f8fd.tar.bz2
astbmc/p8dnu: Enable PCI slot's power supply on PEX9733 in hot-add path
This issue is reported from superMicro's "p8dnu" platform. PEX9733 is connected to PHB direct slot. We create dynamic PCI slots for its (5) downstream ports and all of them support surprise hotplug capability. The problem is power supply lost on hot-remove and it isn't turned on automatically on hot-add. It means the PCIe link behind the slot isn't up and the PCI adapter behind the slot can't be probed successfully. This fixes the issue by forcing to turn on the power supply on hardware when user (kernel) requests to do so. Those PCI slots are identified by additional flag (PCI_SLOT_FLAG_FORCE_POWERON). Reported-by: Hank Chang <hankmax0000@gmail.com> Signed-off-by: Gavin Shan <gwhsan@linux.vnet.ibm.com> Tested-by: Willie Liauw <williel@supermicro.com.tw> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/pci-slot.h')
-rw-r--r--include/pci-slot.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/pci-slot.h b/include/pci-slot.h
index ce3e8dd..7f16ddd 100644
--- a/include/pci-slot.h
+++ b/include/pci-slot.h
@@ -146,6 +146,7 @@ struct pci_slot_ops {
struct pci_slot {
uint32_t flags;
#define PCI_SLOT_FLAG_BOOTUP 0x1
+#define PCI_SLOT_FLAG_FORCE_POWERON 0x2
struct phb *phb;
struct pci_device *pd;