Re: [PATCH] PCI/P2PDMA: Avoid returning a provider for non_mappable_bars
From: Logan Gunthorpe
Date: Tue Apr 21 2026 - 14:17:08 EST
On 2026-04-21 11:43, Matt Evans wrote:
> Extend pcim_p2pdma_provider()'s checks to exclude functions that have
> pdev->non_mappable_bars set.
>
> Consumers such as VFIO were previously able to map these for access by
> the CPU or P2P. Update the comment on non_mappable_bars to show it
> refers to any access, not just userspace CPU access.
>
> Fixes: 372d6d1b8ae3c ("PCI/P2PDMA: Refactor to separate core P2P functionality from memory allocation")
> Signed-off-by: Matt Evans <mattev@xxxxxxxx>
This makes sense to me, thanks.
Reviewed-by: Logan Gunthorpe <logang@xxxxxxxxxxxx>