Jonathan Kim 09d49e14ea drm/amdkfd: fix and enable debugging for gfx11
There are a couple of fixes required to enable gfx11 debugging.

First, ADD_QUEUE.trap_en is an inappropriate place to toggle
a per-process register so move it to SET_SHADER_DEBUGGER.trap_en.
When ADD_QUEUE.skip_process_ctx_clear is set, MES will prioritize
the SET_SHADER_DEBUGGER.trap_en setting.

Second, to preserve correct save/restore priviledged wave states
in coordination with the trap enablement setting, resume suspended
waves early in the disable call.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-06-09 12:48:19 -04:00
..
2022-11-24 11:05:43 +10:00
2022-04-07 12:53:54 +02:00
2022-04-25 11:17:45 +02:00
2021-05-19 23:50:27 -04:00
2023-01-24 17:36:29 +01:00
2023-01-24 17:36:29 +01:00
2023-01-24 17:36:29 +01:00
2023-01-24 17:36:29 +01:00
2023-02-03 15:37:31 -05:00
2023-06-09 12:32:21 -04:00
2023-06-09 12:32:21 -04:00
2022-05-04 09:53:12 -04:00
2022-05-04 10:43:54 -04:00
2022-05-10 17:53:11 -04:00
2023-03-15 18:45:26 -04:00
2023-03-15 18:45:26 -04:00
2023-03-31 11:18:42 -04:00
2021-10-20 11:43:57 -04:00
2022-03-22 10:53:39 -04:00
2021-05-19 23:50:27 -04:00
2023-06-09 12:41:11 -04:00