Date: Fri, 23 Aug 2019 15:17:04 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r351422 - head/usr.sbin/pciconf Message-ID: <201908231517.x7NFH4fG062255@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908231517.x7NFH4fG062255>