[Skiboot] [PATCH 1/2] core/pci: Ignore PCI slot capability on root port

Stewart Smith stewart at linux.vnet.ibm.com
Fri Mar 31 18:03:16 AEDT 2017


Gavin Shan <gwshan at linux.vnet.ibm.com> writes:
> We are creating PCI slot on root port, where the PCI slot isn't
> supported from hardware. For this case, we shouldn't read the PCI
> slot capability from hardware. When bogus data returned from the
> hardware, we will attempt to the PCI slot's power state or enable
> surprise hotplug functionality. All of them can't be accomplished
> without hardware support.
>
> This leaves the PCI slot's capability list 0 if PCICAP_EXP_CAP_SLOT
> isn't set in hardware (pcie_cap + 0x2). Otherwise, the PCI slot's
> capability list is retrieved from hardware (pcie_cap + 0x14).
>
> Signed-off-by: Gavin Shan <gwshan at linux.vnet.ibm.com>
> ---
>  core/pcie-slot.c | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)

Sorry for the delay. Series Merged to master as of 7c4a326bea502fc1f3b8b767f6ff9c02b7d1b254

-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list