Re: [PATCH 11/13] PCI/P2PDMA: Add KUnit tests for ACS routing decisions
[email protected] Sun, 02 Aug 2026 16:02:38 +0000
| Newsgroups | org.kernel.vger.linux-pci |
|---|---|
| Message-ID | <[email protected]> |
> From: Leon Romanovsky <[email protected]> > > Add a KUnit suite exercising the ACS peer-to-peer routing logic: > > - pci_acs_p2pdma_decision(): the full PCIe table 6-11 truth table, > including the Egress Control Vector branches (bit set/clear, with and > without Request Redirect and Completion Redirect) that require a > switch implementing the Egress Control Vector and so cannot be > reached on commonly available hardware. > > - pci_acs_egress_port_valid(): the vector-size boundary, including the > "size 0 encodes 256 bits" case. > > - pci_acs_egress_ctrl_set(): driven through a fake pci_ops returning > canned config space, covering target Port Number extraction from > [ ... ] > > ./tools/testing/kunit/kunit.py run --arch=x86_64 \ > --kunitconfig=/tmp/pci-acs.kunitconfig --jobs=$(nproc) pci_acs > > Signed-off-by: Leon Romanovsky <[email protected]> Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=11