diff options
| author | Jason Gunthorpe <jgg@nvidia.com> | 2026-05-12 19:46:16 +0300 |
|---|---|---|
| committer | Joerg Roedel <joerg.roedel@amd.com> | 2026-05-15 08:29:16 +0300 |
| commit | 8ef3f77c440005c7f04229a75976bfc078364247 (patch) | |
| tree | cf30c786140a75162579b2384a220f73f5430c4c /drivers/gpu/tests/git@radix-linux.su:pub | |
| parent | 0735c54804c709d1b292f3b6947cfb560b2ce552 (diff) | |
| download | linux-8ef3f77c440005c7f04229a75976bfc078364247.tar.xz | |
iommupt: Check for missing PAGE_SIZE in the pgsize_bitmap
Sashiko pointed out that the driver could drop PAGE_SIZE from the
pgsize_bitmap. That is technically allowed but nothing does it, and
such an iommu_domain would not be used with the DMA API today.
Still, it is against the design and it is trivial to fix up. Lift
the PT_WARN_ON to the if branch and just skip the fast path.
Fixes: dcd6a011a8d5 ("iommupt: Add map_pages op")
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Pranjal Shrivastava <praan@google.com>
Reviewed-by: Samiullah Khawaja <skhawaja@google.com>
Tested-by: Josua Mayer <josua@solid-run.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/gpu/tests/git@radix-linux.su:pub')
0 files changed, 0 insertions, 0 deletions
