]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
lspci: Decode ASPMOptComp bit in LnkCap register
authorMartin Mares <mj@ucw.cz>
Tue, 25 Feb 2014 10:37:28 +0000 (11:37 +0100)
committerMartin Mares <mj@ucw.cz>
Tue, 25 Feb 2014 10:37:28 +0000 (11:37 +0100)
Patch by Robert Elliott from HP.

lib/header.h
ls-caps.c

index cb63d406a273b35b169f2cbdc24094c0e8e9196f..db85df163cce3e0a3c4dfae470c7efaf29d9344e 100644 (file)
 #define  PCI_EXP_LNKCAP_SURPRISE 0x80000 /* Surprise Down Error Reporting */
 #define  PCI_EXP_LNKCAP_DLLA   0x100000 /* Data Link Layer Active Reporting */
 #define  PCI_EXP_LNKCAP_LBNC   0x200000 /* Link Bandwidth Notification Capability */
+#define  PCI_EXP_LNKCAP_AOC    0x400000 /* ASPM Optionality Compliance */
 #define  PCI_EXP_LNKCAP_PORT   0xff000000 /* Port Number */
 #define PCI_EXP_LNKCTL         0x10    /* Link Control */
 #define  PCI_EXP_LNKCTL_ASPM   0x0003  /* ASPM Control */
index f192510181f3fda96803269879bf266315dcad8e..276a94d6951781a2078da2458de507460d99d1cd 100644 (file)
--- a/ls-caps.c
+++ b/ls-caps.c
@@ -765,11 +765,12 @@ static void cap_express_link(struct device *d, int where, int type)
        aspm_support((t & PCI_EXP_LNKCAP_ASPM) >> 10),
        latency_l0s((t & PCI_EXP_LNKCAP_L0S) >> 12),
        latency_l1((t & PCI_EXP_LNKCAP_L1) >> 15));
-  printf("\t\t\tClockPM%c Surprise%c LLActRep%c BwNot%c\n",
+  printf("\t\t\tClockPM%c Surprise%c LLActRep%c BwNot%c ASPMOptComp%c\n",
        FLAG(t, PCI_EXP_LNKCAP_CLOCKPM),
        FLAG(t, PCI_EXP_LNKCAP_SURPRISE),
        FLAG(t, PCI_EXP_LNKCAP_DLLA),
-       FLAG(t, PCI_EXP_LNKCAP_LBNC));
+       FLAG(t, PCI_EXP_LNKCAP_LBNC),
+       FLAG(t, PCI_EXP_LNKCAP_AOC));
 
   w = get_conf_word(d, where + PCI_EXP_LNKCTL);
   printf("\t\tLnkCtl:\tASPM %s;", aspm_enabled(w & PCI_EXP_LNKCTL_ASPM));