summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorvangyzen <vangyzen@FreeBSD.org>2016-08-08 15:07:38 +0000
committervangyzen <vangyzen@FreeBSD.org>2016-08-08 15:07:38 +0000
commit2113444d0301d1afc9b8683a32969e80fea47895 (patch)
tree650df6ac10d564e7503aac440659d2b09a59eee4 /usr.sbin
parent6f5f085a613a783b4320c924756358f42091327d (diff)
downloadFreeBSD-src-2113444d0301d1afc9b8683a32969e80fea47895.zip
FreeBSD-src-2113444d0301d1afc9b8683a32969e80fea47895.tar.gz
MFC r303788
Fix some logic in PCIe HotPlug; display EI status The interpretation of the Electromechanical Interlock Status was inverted, so we disengaged the EI if a card was inserted. Fix it to engage the EI if a card is inserted. When displaying the slot capabilites/status with pciconf: - We inverted the sense of the Power Controller Control bit, saying the power was off when it was really on (according to this bit). Fix that. - Display the status of the Electromechanical Interlock: EI(engaged) EI(disengaged) Approved by: re (gjb) Sponsored by: Dell Inc.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pciconf/cap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pciconf/cap.c b/usr.sbin/pciconf/cap.c
index cd5ae26..4d07388 100644
--- a/usr.sbin/pciconf/cap.c
+++ b/usr.sbin/pciconf/cap.c
@@ -529,10 +529,13 @@ cap_express(int fd, struct pci_conf *p, uint8_t ptr)
if (cap & PCIEM_SLOT_CAP_APB)
printf(" Attn Button");
if (cap & PCIEM_SLOT_CAP_PCP)
- printf(" PC(%s)", ctl & PCIEM_SLOT_CTL_PCC ? "on" : "off");
+ printf(" PC(%s)", ctl & PCIEM_SLOT_CTL_PCC ? "off" : "on");
if (cap & PCIEM_SLOT_CAP_MRLSP)
printf(" MRL(%s)", sta & PCIEM_SLOT_STA_MRLSS ? "open" :
"closed");
+ if (cap & PCIEM_SLOT_CAP_EIP)
+ printf(" EI(%s)", sta & PCIEM_SLOT_STA_EIS ? "engaged" :
+ "disengaged");
}
static void
OpenPOWER on IntegriCloud