Re: [PATCH v7 07/19] PCI/P2PDMA: Answer routing per TLP class

From: Logan Gunthorpe

Date: Mon Sep 21 2026 - 16:39:02 EST




On 2026-09-20 05:41, 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.
>
> Tested-by: Tushar Dave <tdave@xxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>

Ok, this makes more sense to me after a fresh review:

Reviewed-by: Logan Gunthorpe <logang@xxxxxxxxxxxx>