Re: [PATCH] dma-debug: ensure mappings are created and released with matching attributes

From: Leon Romanovsky

Date: Thu Mar 26 2026 - 06:42:17 EST


On Wed, Mar 25, 2026 at 09:54:59PM +0100, Marek Szyprowski wrote:
> On 25.03.2026 18:56, Leon Romanovsky wrote:
> > On Wed, Mar 25, 2026 at 06:28:41PM +0100, Marek Szyprowski wrote:
> >> On 23.03.2026 21:20, Leon Romanovsky wrote:
> >>> From: Leon Romanovsky <leonro@xxxxxxxxxx>
> >>>
> >>>
> >>> The DMA API expects that callers use the same attributes when mapping
> >>> and unmapping. Add tracking to verify this and catch mismatches.
> >>>
> >>>
> >>> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
> >> Applied to dma-mapping-for-next, thanks!
> > Thanks a lot.
>
> It looks I've hurries a bit too much. This patch is not yet ready for -next:

Sorry about that. It seems my test machine is a bit too optimized for my
usual workload.

At this point, I'm confident the idea is sound. I'll resend the patch after
the merge window, so we'll have a full cycle to catch and fix drivers that
do not use the same attributes.

Thanks