Page MenuHomeFreeBSD

pciconf(8): Decode ACS extended capability.
ClosedPublic

Authored by np on Nov 4 2022, 8:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 9, 12:49 AM
Unknown Object (File)
Sat, Nov 29, 8:55 PM
Unknown Object (File)
Fri, Nov 28, 1:04 AM
Unknown Object (File)
Nov 7 2025, 4:27 AM
Unknown Object (File)
Nov 4 2025, 5:42 PM
Unknown Object (File)
Nov 3 2025, 8:54 PM
Unknown Object (File)
Nov 3 2025, 8:48 PM
Unknown Object (File)
Nov 3 2025, 8:48 PM
Subscribers

Details

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 48156
Build 45043: arc lint + arc unit

Event Timeline

np requested review of this revision.Nov 4 2022, 8:11 PM

Here are a couple of examples from the motherboard that i tested it on, with the available caps disabled and enabled.

# pciconf -lc pcib4
pcib4@pci0:0:3:0:	class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x2f08 subvendor=0x8086 subdevice=0x0000
...
    ecap 000d[110] = ACS 1 Source Validation disabled, Translation Blocking disabled
                     P2P Req Redirect disabled, P2P Cmpl Redirect disabled
                     P2P Upstream Forwarding disabled, P2P Egress Control unavailable
                     P2P Direct Translated unavailable, Enhanced Capability unavailable


# pciconf -lc pcib4
pcib4@pci0:0:3:0:	class=0x060400 rev=0x02 hdr=0x01 vendor=0x8086 device=0x2f08 subvendor=0x8086 subdevice=0x0000
...
    ecap 000d[110] = ACS 1 Source Validation enabled, Translation Blocking enabled
                     P2P Req Redirect enabled, P2P Cmpl Redirect enabled
                     P2P Upstream Forwarding enabled, P2P Egress Control unavailable
                     P2P Direct Translated unavailable, Enhanced Capability unavailable

}
kib added inline comments.
usr.sbin/pciconf/cap.c
1033

static const char *const acc[] ?

1036

So should we check that the version is known?

This revision is now accepted and ready to land.Nov 5 2022, 12:04 AM

Incorporate feedback from kib.

This revision now requires review to proceed.Nov 7 2022, 6:49 PM
np marked 2 inline comments as done.Nov 7 2022, 6:49 PM
This revision was not accepted when it landed; it landed in state Needs Review.Nov 7 2022, 9:21 PM
This revision was automatically updated to reflect the committed changes.