]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdkfd: enable missed single-step workaround for gfx12
authorLaurent Morichetti <laurent.morichetti@amd.com>
Tue, 30 Jan 2024 19:25:00 +0000 (11:25 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2024 20:18:13 +0000 (16:18 -0400)
commitcf338b5dfe9d3a00f3c9d56fda05d70f78719af4
treee557f6342bb241907f6578a49fd0f8c575fce1f5
parent450abfe4330a4131a02bd0682b1f742c424c30f3
drm/amdkfd: enable missed single-step workaround for gfx12

When trap_ctrl.trap_after_inst is set, it is possible for a wave to
enter the trap handler, after single-stepping an instruction and a
save_context is raised, with only save_context set in excp_flag_priv.

Because excp_flag_priv.trap_after_inst is not reliably set, we need to
use the missed single-step workaround for gfx12 as well.

Also add wave_start and wave_end as exceptions that should be handled
by the 2nd level trap handler.

Signed-off-by: Laurent Morichetti <laurent.morichetti@amd.com>
Tested-by: Lancelot Six <lancelot.six@amd.com>
Reviewed-by: Jonathan Kim <jonathan.kim@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler.h
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler_gfx10.asm