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)
commit8490cad4dc4e2ee265ba9e12cd47bdfd6b9a3d34
tree7222cc0782b7d04b8573020cddf0d36c52f082ca
parent1dbc790b4d416dacb124a6acd05f88a0bcf3be39
drm/rockchip: Detach from ARM DMA domain in attach_device

Since commit 1ea2a07a532b ("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: 1ea2a07a532b ("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