]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Add back arm_iommu_detach_device()
authorDmitry Osipenko <digetx@gmail.com>
Sat, 4 Dec 2021 14:58:48 +0000 (17:58 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 16 Dec 2021 13:28:51 +0000 (14:28 +0100)
commit2d5989875b8b5fbc2e4d03ed1f50322e3c3b4c76
treeca94d3cb0da97fe9a3dc5f69bca0a077bc24dbfb
parent0780a37c08510c13783c5f6b1bb2506da1cce6ed
gpu: host1x: Add back arm_iommu_detach_device()

Host1x DMA buffer isn't mapped properly when CONFIG_ARM_DMA_USE_IOMMU=y.
The memory management code of Host1x driver has a longstanding overhaul
overdue and it's not obvious where the problem is in this case. Hence
let's add back the old workaround which we already had sometime before.
It explicitly detaches Host1x device from the offending implicit IOMMU
domain. This fixes a completely broken Host1x DMA in case of ARM32
multiplatform kernel config.

Cc: stable@vger.kernel.org
Fixes: 7951f2733313 ("gpu: host1x: Support DMA mapping of buffers")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/dev.c