kernel_samsung_a53x/drivers/gpu/drm/v3d
Maíra Canal e14a6b3c0d drm/v3d: Address race-condition in MMU flush
[ Upstream commit cf1becb7f996a0a23ea2c270cf6bb0911ec3ca1a ]

We must first flush the MMU cache and then, flush the TLB, not the other
way around. Currently, we can see a race condition between the MMU cache
and the TLB when running multiple rendering processes at the same time.
This is evidenced by MMU errors triggered by the IRQ.

Fix the MMU flush order by flushing the MMU cache and then the TLB.
Also, in order to address the race condition, wait for the MMU cache flush
to finish before starting the TLB flush.

Fixes: 57692c94dcbe ("drm/v3d: Introduce a new DRM driver for Broadcom V3D V3.x+")
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240923141348.2422499-2-mcanal@igalia.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:04 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v3d_bo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v3d_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v3d_drv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v3d_drv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v3d_fence.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v3d_gem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v3d_irq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v3d_mmu.c drm/v3d: Address race-condition in MMU flush 2024-12-17 13:24:04 +01:00
v3d_regs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v3d_sched.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v3d_trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v3d_trace_points.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00