[PATCH v2] drm/rockchip: vop2: Reset the AXI master after detaching the IOMMU

Cristian Ciocaltea cristian.ciocaltea at collabora.com
Wed Dec 2 14:22:22 PST 2026


On 12/2/26 10:00 PM, Tim Surber wrote:
> Asserting the AXI reset in vop2_disable(), while the IOMMU is still
> attached, can hang RK3588 hard when buffers are mapped into or unmapped
> from the VOP's IOMMU domain at the same time, e.g. when a KMS client
> exits and fbcon takes the display back.
> 
> Assert the reset after the IOMMU is detached instead. Mapping and
> unmapping buffers then no longer goes through the VOP's IOMMU, so it
> cannot race with the reset.
> 
> Fixes: 67a391e50271 ("drm/rockchip: vop2: Reset AXI and DCLK to improve robustness")

We should also add:

Suggested-by: Chaoyi Chen <chaoyi.chen at rock-chips.com>

> Signed-off-by: Tim Surber <me at timsurber.de>
> ---
> Changes in v2:
> - Keep the reset in vop2_disable(), after the IOMMU is detached, instead
>   of moving it to vop2_enable() (Chaoyi Chen)
> - Link to v1: https://lore.kernel.org/linux-rockchip/20261125204511.2867433-1-me@timsurber.de/
> 

[...]

As previously discussed, I confirm that this solves the problem, and I also
didn't notice any regressions during manual testing.  In the meantime, I
verified again on my ROCK 5B board with over 1K cycles of the reproducer script.

Reviewed-by: Cristian Ciocaltea <cristian.ciocaltea at collabora.com>
Tested-by: Cristian Ciocaltea <cristian.ciocaltea at collabora.com>



More information about the linux-arm-kernel mailing list