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

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