]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/etnaviv: fix dumping of active MMU context
authorLucas Stach <l.stach@pengutronix.de>
Fri, 14 Apr 2023 14:38:10 +0000 (16:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:22:37 +0000 (12:22 +0200)
commit1dd43e1e54d50277d590633e9dc1a205ddb279c9
tree8aac2db2be3257a423ea0dadd0fd98bbfb952f6d
parent1634fe406c345106c6d187889b26bb6ad13acc31
drm/etnaviv: fix dumping of active MMU context

[ Upstream commit 20faf2005ec85fa1a6acc9a74ff27de667f90576 ]

gpu->mmu_context is the MMU context of the last job in the HW queue, which
isn't necessarily the same as the context from the bad job. Dump the MMU
context from the scheduler determined bad submit to make it work as intended.

Fixes: 17e4660ae3d7 ("drm/etnaviv: implement per-process address spaces on MMUv2")
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/etnaviv/etnaviv_dump.c