radv: query and report the last GPUVM fault with RADV_DEBUG=hang
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 10 Oct 2023 08:43:38 +0000 (10:43 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 25 Oct 2023 15:29:22 +0000 (15:29 +0000)
commit5a6208ad722d89416f19daf705b640c143add877
tree8291701a12deec8875d4fa3d38745ae23f186415
parent5eb8b3e9b11297dafb686ead6578a142abb0eb6d
radv: query and report the last GPUVM fault with RADV_DEBUG=hang

Tested with a small use-after-free Vulkan test. It's pretty basic
for now but I think I will add status decoding support to report
more useful information.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23238>
src/amd/vulkan/radv_debug.c