diff options
| author | Jason Gunthorpe <[email protected]> | 2023-10-03 16:52:36 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2023-10-05 10:58:56 +0000 |
| commit | 0f6a90436a5771fc9f6ca0d1e64f7549219e6c3c (patch) | |
| tree | 817d4de9650217a5c0a2a9792fa728b199eb2d04 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | iommu: Remove duplicate include (diff) | |
| download | kernel-0f6a90436a5771fc9f6ca0d1e64f7549219e6c3c.tar.gz kernel-0f6a90436a5771fc9f6ca0d1e64f7549219e6c3c.zip | |
iommu: Do not use IOMMU_DOMAIN_DMA if CONFIG_IOMMU_DMA is not enabled
msm_iommu platforms do not select either CONFIG_IOMMU_DMA or
CONFIG_ARM_DMA_USE_IOMMU so they create a IOMMU_DOMAIN_DMA domain by
default and never populate it. This acts like a BLOCKED domain and breaks
the GPU driver on the platform.
Detect this and force use of IDENTITY instead.
Fixes: 98ac73f99bc4 ("iommu: Require a default_domain for all iommu drivers")
Reported-by: Dmitry Baryshkov <[email protected]>
Link: https://lore.kernel.org/linux-iommu/CAA8EJprz7VVmBG68U9zLuqPd0UdSRHYoLDJSP6tCj6H6qanuTQ@mail.gmail.com/
Signed-off-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Jerry Snitselaar <[email protected]>
Tested-by: Dmitry Baryshkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
