svn commit: r351422 - head/usr.sbin/pciconf
Alexander Motin
mav at FreeBSD.org
Fri Aug 23 15:17:05 UTC 2019
Author: mav
Date: Fri Aug 23 15:17:04 2019
New Revision: 351422
URL: https://svnweb.freebsd.org/changeset/base/351422
Log:
Report Clock Power Management support and status.
Since we already report ASPM, why not to go further.
MFC after: 2 weeks
Sponsored by: iXsystems, Inc.
Modified:
head/usr.sbin/pciconf/cap.c
Modified: head/usr.sbin/pciconf/cap.c
==============================================================================
--- head/usr.sbin/pciconf/cap.c Fri Aug 23 12:11:46 2019 (r351421)
+++ head/usr.sbin/pciconf/cap.c Fri Aug 23 15:17:04 2019 (r351422)
@@ -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