summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-11-05 20:24:56 +0000
committerjhb <jhb@FreeBSD.org>2015-11-05 20:24:56 +0000
commit42d9b66898a9a9cbc2e8113e8c44b5acebc7109b (patch)
treeb799affbfd1cf37c61d94d288d8c493bea96eb78
parentdf8e8b8d1ba10e3f88d5cc3051fede48a2af0e3e (diff)
downloadFreeBSD-src-42d9b66898a9a9cbc2e8113e8c44b5acebc7109b.zip
FreeBSD-src-42d9b66898a9a9cbc2e8113e8c44b5acebc7109b.tar.gz
Note if relaxed ordering or no snoop is enabled for each PCI-express device.
MFC after: 1 week
-rw-r--r--usr.sbin/pciconf/cap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/pciconf/cap.c b/usr.sbin/pciconf/cap.c
index 2e2e359..9ab6dd1 100644
--- a/usr.sbin/pciconf/cap.c
+++ b/usr.sbin/pciconf/cap.c
@@ -460,6 +460,10 @@ cap_express(int fd, struct pci_conf *p, uint8_t ptr)
MAX_PAYLOAD(cap & PCIEM_CAP_MAX_PAYLOAD));
if ((cap & PCIEM_CAP_FLR) != 0)
printf(" FLR");
+ if (ctl & PCIEM_CTL_RELAXED_ORD_ENABLE)
+ printf(" RO");
+ if (ctl & PCIEM_CTL_NOSNOOP_ENABLE)
+ printf(" NS");
cap = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_CAP, 4);
sta = read_config(fd, &p->pc_sel, ptr + PCIER_LINK_STA, 2);
printf(" link x%d(x%d)", (sta & PCIEM_LINK_STA_WIDTH) >> 4,
OpenPOWER on IntegriCloud