Re: [PATCH v4 14/18] PCI/P2PDMA: Extract pure ACS routing decision helpers
Logan Gunthorpe <[email protected]>
| Newsgroups | org.kernel.vger.linux-doc,dev.linux.lists.iommu,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci |
|---|---|
| Message-ID | <[email protected]> |
On 2026-08-21 13:38, Leon Romanovsky wrote: > From: Leon Romanovsky <[email protected]> > > The ACS routing decision and Egress Control Vector size calculation are > mixed with config-space I/O, which makes their branch-heavy behavior > difficult to exercise independently. > > Extract pci_acs_p2pdma_decision() with explicit Request or Completion type, > target availability, and vector state inputs. Extract > pci_acs_egress_port_valid() for the encoded vector-size boundary. Keep > config access in their callers and expose only the pure helpers under > CONFIG_KUNIT. > > Tested-by: Tushar Dave <[email protected]> > Signed-off-by: Leon Romanovsky <[email protected]> Makes sense: Reviewed-by: Logan Gunthorpe <[email protected]>