[Skiboot] [PATCH v2 1/3] core/pci: Set slot power limit when supported

Stewart Smith stewart at linux.ibm.com
Thu Apr 12 16:21:40 AEST 2018


Oliver O'Halloran <oohall at gmail.com> writes:
> The PCIe slot capability can be implemented in a root or switch
> downstream port to set the maximum power a card is allowed to draw
> from the system. This patch adds support for setting the power limit
> when the platform has defined one.
>
> Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
> ---
> v2: The limit was not being applied to empty slots since it was
>     done while scanning the downstream port. If a port has a training
>     failure then we skip trying to probe downstream of the device so
>     the limit would never be applied to non-populated slots.
> ---
>  core/pci-slot.c    |  1 +
>  core/pci.c         | 37 +++++++++++++++++++++++++++++++++++++
>  include/pci-slot.h |  1 +
>  3 files changed, 39 insertions(+)

Cheers for this. Series Merged to master as of
d15e2e5ef92f5e79f90ac06a8a3b848881886005.

Of course, it'd be good if the Supermicro p9dsu slot table ended up
upstream so we'd have a box where we could properly test this....

-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list