drm/panthor: flush FW AS caches in slow reset path
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Mon, 2 Sep 2024 13:02:35 +0000 (14:02 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Thu, 5 Sep 2024 07:45:33 +0000 (09:45 +0200)
commit7de295d1a1a1b84e57b348e8bfd0fab5aab3ce69
tree3a3e6ed9182cd7bf807a53e52061b061fff6443d
parent76dce2a96c0f48295e92acf7a8f3fa46ea0ee524
drm/panthor: flush FW AS caches in slow reset path

In the off-chance that waiting for the firmware to signal its booted status
timed out in the fast reset path, one must flush the cache lines for the
entire FW VM address space before reloading the regions, otherwise stale
values eventually lead to a scheduler job timeout.

Fixes: 647810ec2476 ("drm/panthor: Add the MMU/VM logical block")
Cc: stable@vger.kernel.org
Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240902130237.3440720-1-adrian.larumbe@collabora.com
drivers/gpu/drm/panthor/panthor_fw.c
drivers/gpu/drm/panthor/panthor_mmu.c
drivers/gpu/drm/panthor/panthor_mmu.h