dma-debug: Ensure mappings are created and released with matching attributes

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@nvidia.com>
Reviewed-by: Samiullah Khawaja <skhawaja@google.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20260501-dma-attrs-debug-v2-6-8dbac75cd501@nvidia.com
This commit is contained in:
Leon Romanovsky 2026-05-01 09:35:10 +03:00 • committed by Marek Szyprowski
commit a34bd60bda