svn commit: r352828 - stable/12/usr.sbin/pciconf
Alexander Motin
mav at FreeBSD.org
Sat Sep 28 01:31:34 UTC 2019
Author: mav
Date: Sat Sep 28 01:31:33 2019
New Revision: 352828
URL: https://svnweb.freebsd.org/changeset/base/352828
Log:
MFC r351422: Report Clock Power Management support and status.
Since we already report ASPM, why not to go further.
Modified:
stable/12/usr.sbin/pciconf/cap.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/usr.sbin/pciconf/cap.c
==============================================================================
--- stable/12/usr.sbin/pciconf/cap.c Sat Sep 28 00:59:39 2019 (r352827)
+++ stable/12/usr.sbin/pciconf/cap.c Sat Sep 28 01:31:33 2019 (r352828)
@@ -515,6 +515,11 @@ cap_express(int fd, struct pci_conf *p, uint8_t ptr)
printf(" ASPM %s(%s)", aspm_string(ctl & PCIEM_LINK_CTL_ASPMC),
aspm_string((cap & PCIEM_LINK_CAP_ASPM) >> 10));
}
+ if ((cap & PCIEM_LINK_CAP_CLOCK_PM) != 0) {
+ ctl = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_CTL, 2);
+ printf(" ClockPM %s", (ctl & PCIEM_LINK_CTL_ECPM) ?
+ "enabled" : "disabled");
+ }
if (!(flags & PCIEM_FLAGS_SLOT))
return;
cap = read_config(fd, &p->pc_sel, ptr + PCIER_SLOT_CAP, 4);
More information about the svn-src-all
mailing list