On 2026-09-14 05:22, Leon Romanovsky wrote: > From: Leon Romanovsky <[email protected]> > > calc_map_type_and_dist() reads each divergence port's ACS Control register > and folds the result into running counters as it goes. Any routing property > that depends on the kind of TLP being routed would have to be threaded > through that code, so there is nowhere to put one without reading the > registers again for each kind. > > Collect the two ports' ACS Control values into struct pci_p2pdma_acs_path > first, then decide from it. pci_p2pdma_route() applies the same rule as > before: a path routes directly only when both directions do. > > Signed-off-by: Leon Romanovsky <[email protected]> Big patch, but I think it makes sense. Might have been easier to read if splitting out pci_p2pdma_warn_path() was done first in a prep patch. But this is already a pretty large and growing series. Overall though, I think the patch is ok: Reviewed-by: Logan Gunthorpe <[email protected]>
- [PATCH v6 09/18] PCI/P2PDMA: Route Relaxed Ordering Comp... Leon Romanovsky
- [PATCH v6 12/18] PCI/P2PDMA: Log detailed ACS routing di... Leon Romanovsky
- [PATCH v6 05/18] PCI/P2PDMA: Evaluate ACS controls at th... Leon Romanovsky
- Re: [PATCH v6 05/18] PCI/P2PDMA: Evaluate ACS contr... Logan Gunthorpe
- [PATCH v6 11/18] PCI/P2PDMA: Route Translated Requests u... Leon Romanovsky
- [PATCH v6 14/18] PCI/P2PDMA: Test the ACS P2P routing wa... Leon Romanovsky
- [PATCH v6 01/18] PCI/P2PDMA: Document pdev->p2pdma li... Leon Romanovsky
- Re: [PATCH v6 01/18] PCI/P2PDMA: Document pdev->... Logan Gunthorpe
- [PATCH v6 15/18] PCI: Add KUnit coverage for ACS isolati... Leon Romanovsky
- [PATCH v6 07/18] PCI/P2PDMA: Collect the path's ACS cont... Leon Romanovsky
- Re: [PATCH v6 07/18] PCI/P2PDMA: Collect the path's... Logan Gunthorpe
- [PATCH v6 18/18] RDMA/mlx5: Ask P2PDMA whether ATS takes... Leon Romanovsky
- Re: [PATCH v6 18/18] RDMA/mlx5: Ask P2PDMA whether ... Thomas Hellström
- Re: [PATCH v6 18/18] RDMA/mlx5: Ask P2PDMA whet... Jason Gunthorpe
- Re: [PATCH v6 18/18] RDMA/mlx5: Ask P2PDMA ... Thomas Hellström
- Re: [PATCH v6 18/18] RDMA/mlx5: Ask P2P... Jason Gunthorpe
- Re: [PATCH v6 18/18] RDMA/mlx5: Ask P2PDMA whet... Christian König
- Re: [PATCH v6 18/18] RDMA/mlx5: Ask P2PDMA ... Jason Gunthorpe
- Re: [PATCH v6 18/18] RDMA/mlx5: Ask P2PDMA whet... Leon Romanovsky
- Re: [PATCH v6 18/18] RDMA/mlx5: Ask P2PDMA ... Thomas Hellström
- Re: [PATCH v6 18/18] RDMA/mlx5: Ask P2P... Jason Gunthorpe
