]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Fix spurious debug exception on gfx10
authorJay Cornwall <jay.cornwall@amd.com>
Fri, 24 Jul 2020 23:58:48 +0000 (16:58 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Jul 2020 20:22:16 +0000 (16:22 -0400)
commit6cf7cab04510e7c6752e4f440e83d15248fd46ea
tree90a631ce0cc9207a37094a574d919ab5d6e76f76
parent7a25539f9e15c2511a7b59df2a0e8278aae18aaf
drm/amdkfd: Fix spurious debug exception on gfx10

s_barrier triggers a debug exception when issued with PRIV=1,
DEBUG_EN=1. This causes spurious notifications to rocm-gdb.

Clear MODE before issuing s_barrier and restore MODE afterwards
in the context restore handler.

Signed-off-by: Jay Cornwall <jay.cornwall@amd.com>
Tested-by: Laurent Morichetti <laurent.morichetti@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@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