]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: Detach from ARM DMA domain in attach_device
authorSteven Price <steven.price@arm.com>
Wed, 15 Jun 2022 15:48:30 +0000 (16:48 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 4 Jul 2022 15:17:35 +0000 (17:17 +0200)
commit38b7ce404420c54ab58ebe3fb2e98d321ea718cd
tree7222cc0782b7d04b8573020cddf0d36c52f082ca
parent02ec24dfc49d26d43981f24515f9ab8080cdaaa1
drm/rockchip: Detach from ARM DMA domain in attach_device

Since commit eff01ad7d8d6 ("iommu: Add DMA ownership management
interfaces") the Rockchip display driver on the Firefly RK3288 fails to
initialise properly. This is because ARM DMA domain is still attached.

Let's follow the lead of exynos and tegra and add code to explicitly
remove the ARM domain before attaching a new one.

Fixes: eff01ad7d8d6 ("iommu: Add DMA ownership management interfaces")
Suggested-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220615154830.555422-1-steven.price@arm.com
drivers/gpu/drm/rockchip/rockchip_drm_drv.c