Re: [PATCH v6 08/18] PCI/P2PDMA: Answer routing per TLP class
From: Logan Gunthorpe
Date: Fri Sep 18 2026 - 17:57:13 EST
On 2026-09-14 05:22, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@xxxxxxxxxx>
>
> calc_map_type_and_dist() returns one mapping type per provider and client,
> valid only for strictly ordered Requests carrying an Untranslated address.
> Clients that use Relaxed Ordering or ATS cannot ask what the fabric would
> do with their traffic.
>
> Add enum pci_p2pdma_tlp_flags to name a class and pci_p2pdma_map_type_tlp()
> to ask about one. The topology walk and the ACS Control reads do not depend
> on the class, so decide all of them from the one walk and cache them
> together, four bits each. Every class still answers alike; the controls
> that tell them apart come next.
>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
I'm not sure I fully understand all of this big patch, but I tried and
couldn't find any obvious issues. For what it is worth:
Reviewed-by: Logan Gunthorpe <logang@xxxxxxxxxxxx>