linux-stable/drivers/gpu/host1x
Dmitry Osipenko d5185965c3 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: af1cbfb9bf ("gpu: host1x: Support DMA mapping of buffers")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2021-12-16 14:28:51 +01:00
..
hw gpu: host1x: Add initial runtime PM and OPP support 2021-12-16 14:07:07 +01:00
bus.c gpu: host1x: Add missing DMA API include 2021-12-16 14:07:07 +01:00
bus.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 201 2019-05-30 11:29:52 -07:00
cdma.c gpu: host1x: Add no-recovery mode 2021-08-10 14:40:23 +02:00
cdma.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 201 2019-05-30 11:29:52 -07:00
channel.c gpu: host1x: Add host1x_channel_stop() 2021-12-16 14:07:07 +01:00
channel.h gpu: host1x: Request channels for clients, not devices 2019-10-28 11:18:33 +01:00
debug.c gpu: host1x: Add initial runtime PM and OPP support 2021-12-16 14:07:07 +01:00
debug.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 201 2019-05-30 11:29:52 -07:00
dev.c gpu: host1x: Add back arm_iommu_detach_device() 2021-12-16 14:28:51 +01:00
dev.h gpu: host1x: Add initial runtime PM and OPP support 2021-12-16 14:07:07 +01:00
fence.c gpu: host1x: Plug potential memory leak 2021-09-16 18:06:52 +02:00
fence.h gpu: host1x: Add DMA fence implementation 2021-08-10 14:39:50 +02:00
intr.c gpu: host1x: Add initial runtime PM and OPP support 2021-12-16 14:07:07 +01:00
intr.h gpu: host1x: Add DMA fence implementation 2021-08-10 14:39:50 +02:00
job.c drm/tegra: Implement buffer object cache 2021-12-16 14:07:06 +01:00
job.h drm/tegra: Implement correct DMA-BUF semantics 2021-12-16 14:07:06 +01:00
Kconfig gpu: host1x: select CONFIG_DMA_SHARED_BUFFER 2021-12-16 14:07:06 +01:00
Makefile gpu: host1x: Add DMA fence implementation 2021-08-10 14:39:50 +02:00
mipi.c media: gpu: host1x: mipi: Keep MIPI clock enabled and mutex locked till calibration done 2020-08-28 15:12:38 +02:00
syncpt.c gpu: host1x: Add initial runtime PM and OPP support 2021-12-16 14:07:07 +01:00
syncpt.h gpu: host1x: Add no-recovery mode 2021-08-10 14:40:23 +02:00