]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/panthor: Make sure caches are flushed/invalidated when an AS is recycled
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 3 Dec 2025 12:17:49 +0000 (13:17 +0100)
committerLiviu Dudau <liviu.dudau@arm.com>
Wed, 3 Dec 2025 12:30:03 +0000 (12:30 +0000)
commit32e593d74c39249ae14c8f0de88eec677c621aa7
tree3391771978a49de0d27c2cceda9b9577c88060f4
parent657803cbcafde8caf11d207b042384577a3d5f17
drm/panthor: Make sure caches are flushed/invalidated when an AS is recycled

When we re-assign a slot to a different VM, we need to make sure the
old VM caches are flushed before doing the switch. Specialize
panthor_mmu_as_disable() so we can skip the slot programmation while
still getting the cache flushing, and call this helper from
panthor_vm_active() when an idle slot is recycled.

v2:
- Collect R-bs

Fixes: 6e2d3b3e8589 ("drm/panthor: Add support for atomic page table updates")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patch.msgid.link/20251203121750.404340-3-boris.brezillon@collabora.com
drivers/gpu/drm/panthor/panthor_mmu.c