diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2023-10-18 11:08:31 -0500 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2023-10-18 20:57:05 +0200 |
commit | a99d27a34603f3db3a44eab3e6e1c7da383e7051 (patch) | |
tree | f0dd812ee463497ef8f4312cafa51fdd450c8c36 | |
parent | 3746111d5be2db9d78fde0c3af14dde50b89a2fa (diff) | |
download | pciutils-a99d27a34603f3db3a44eab3e6e1c7da383e7051.tar.gz |
lspci: Decode PCIe DevCtl2 Emergency Power Reduction Request
Decode the PCIe DevCtl2 Emergency Power Reduction Request bit.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r-- | lib/header.h | 1 | ||||
-rw-r--r-- | ls-caps.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/header.h b/lib/header.h index 5065465..c3a720f 100644 --- a/lib/header.h +++ b/lib/header.h @@ -906,6 +906,7 @@ #define PCI_EXP_DEVCTL2_IDO_REQ_EN 0x0100 /* Allow IDO for requests */ #define PCI_EXP_DEVCTL2_IDO_CMP_EN 0x0200 /* Allow IDO for completions */ #define PCI_EXP_DEVCTL2_LTR 0x0400 /* LTR enabled */ +#define PCI_EXP_DEVCTL2_EPR_REQ 0x0800 /* Emergency Power Reduction Request */ #define PCI_EXP_DEVCTL2_10BIT_TAG_REQ 0x1000 /* 10 Bit Tag Requester enabled */ #define PCI_EXP_DEVCTL2_OBFF(x) (((x) >> 13) & 3) /* OBFF enabled */ #define PCI_EXP_DEVSTA2 0x2a /* Device Status */ @@ -1173,10 +1173,12 @@ static void cap_express_dev2(struct device *d, int where, int type) printf(" EgressBlck%c", FLAG(w, PCI_EXP_DEVCTL2_ATOMICOP_EGRESS_BLOCK)); printf("\n"); } - printf("\t\t\t IDOReq%c IDOCompl%c LTR%c 10BitTagReq%c OBFF %s\n", + printf("\t\t\t IDOReq%c IDOCompl%c LTR%c EmergencyPowerReductionReq%c\n", FLAG(w, PCI_EXP_DEVCTL2_IDO_REQ_EN), FLAG(w, PCI_EXP_DEVCTL2_IDO_CMP_EN), FLAG(w, PCI_EXP_DEVCTL2_LTR), + FLAG(w, PCI_EXP_DEVCTL2_EPR_REQ)); + printf("\t\t\t 10BitTagReq%c OBFF %s\n", FLAG(w, PCI_EXP_DEVCTL2_10BIT_TAG_REQ), cap_express_devctl2_obff(PCI_EXP_DEVCTL2_OBFF(w))); } |