]> git.ipfire.org Git - thirdparty/pciutils.git/commit
lspci: Show Slot Power Limit values above EFh
authorPali Rohár <pali@kernel.org>
Sun, 26 Dec 2021 23:34:08 +0000 (00:34 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 26 Dec 2021 23:55:40 +0000 (00:55 +0100)
commit41e49114068eb53a7a46d2ecd46f755962c41f1a
tree0dc11a5b54aa7479e3fa9a7e7ae85e25fecaa880
parent1eb437a40746c1791e7248193a17f92ddbabdd21
lspci: Show Slot Power Limit values above EFh

PCI Express Base Specification rev. 3.0 has the following definition for
the Slot Power Limit Value:

=======================================================================
When the Slot Power Limit Scale field equals 00b (1.0x) and Slot Power
Limit Value exceeds EFh, the following alternative encodings are used:
  F0h = 250 W Slot Power Limit
  F1h = 275 W Slot Power Limit
  F2h = 300 W Slot Power Limit
  F3h to FFh = Reserved for Slot Power Limit values above 300 W
=======================================================================

Replace function power_limit() by show_power_limit() which also prints
power limit value. Show reserved value as string ">300W".
ls-caps.c