]> git.ipfire.org Git - thirdparty/pciutils.git/commit
lspci: Decode DevCap SlotPowerLimit for all components with Upstream Ports
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Dec 2015 19:50:01 +0000 (13:50 -0600)
committerMartin Mares <mj@ucw.cz>
Tue, 22 Dec 2015 15:35:24 +0000 (16:35 +0100)
commitacf56dd28df9d265a421b0207516134b99237fcc
tree01cad3a095e2c3c672a09dcb61959b7dcdb10016
parentbfd8658f27401837d79d7d3310962f7dc2444d34
lspci: Decode DevCap SlotPowerLimit for all components with Upstream Ports

The SlotPowerLimit in the Slot Capability indicates how much power the slot
can supply to a downstream device.  A Root Port or Switch Downstream Port
communicates the limit via a Set_Slot_Power_Limit Message on the link.  The
component on the other end of the link copies the limit from the message to
the Captured Slot Power Limit in its Device Capability [see PCIe r3.0, sec
2.2.8.5].

The Captured SlotPowerLimit is relevant for all devices on the downstream
end of a Link.  This includes Endpoints and Bridges as well as
Switch Upstream Ports.

Decode the DevCap Captured SlotPowerLimit for Endpoints and Bridges as well
as Switch Upstream Ports.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
ls-caps.c