]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/panthor: Evict groups before VM termination
authorKetil Johnsen <ketil.johnsen@arm.com>
Fri, 19 Dec 2025 09:35:44 +0000 (10:35 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 19 Dec 2025 10:57:55 +0000 (11:57 +0100)
commit565ed40b5fc1242f7538a016fce5a85f802d4fb5
treebae1aac01587b1f0766f0b0de40c3ca272031839
parent332070795bd96193756cb4446eddc3ec9ff6a0e8
drm/panthor: Evict groups before VM termination

Ensure all related groups are evicted and suspended before VM
destruction takes place.

This fixes an issue where panthor_vm_destroy() destroys and unmaps the
heap context while there are still on slot groups using this.
The FW will do a write out to the heap context when a CSG (group) is
suspended, so a premature unmap of the heap context will cause a
GPU page fault.
This page fault is quite harmless, and do not affect the continued
operation of the GPU.

Fixes: 647810ec2476 ("drm/panthor: Add the MMU/VM logical block")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Ketil Johnsen <ketil.johnsen@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://patch.msgid.link/20251219093546.1227697-1-ketil.johnsen@arm.com
Co-developed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/gpu/drm/panthor/panthor_mmu.c
drivers/gpu/drm/panthor/panthor_sched.c
drivers/gpu/drm/panthor/panthor_sched.h