Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Sep 2019 01:31:34 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r352828 - stable/12/usr.sbin/pciconf
Message-ID:  <201909280131.x8S1VY5G075033@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909280131.x8S1VY5G075033>