From c03a8592ee916e5fe0821012dfe94a068b6b7875 Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 13 Nov 2015 22:33:51 +0000 Subject: [PATCH] MFC 290412: Note if relaxed ordering or no snoop is enabled for each PCI-express device. git-svn-id: svn://svn.freebsd.org/base/stable/9@290804 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.sbin/pciconf/cap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.sbin/pciconf/cap.c b/usr.sbin/pciconf/cap.c index 2ba49c90e..7572891d0 100644 --- a/usr.sbin/pciconf/cap.c +++ b/usr.sbin/pciconf/cap.c @@ -458,6 +458,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, -- 2.45.0