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>
Wed, 13 Sep 2023 07:42:39 +0000 (09:42 +0200)
commit7db90dd1c5a45025cca496b743957abfa15022b3
treeb236817111b653658a1e88413e1c586290d629b2
parent800bf8a2226e45179cf46da24c166d38a733a46f
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