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)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 17 Jul 2023 09:28:39 +0000 (11:28 +0200)
commit20faf2005ec85fa1a6acc9a74ff27de667f90576
tree4b0f9e8c1aa358891d87fd336df81d2ae4d9974e
parent295b6c02f84b81971c42b592771920783fc181cd
drm/etnaviv: fix dumping of active MMU context

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>
drivers/gpu/drm/etnaviv/etnaviv_dump.c