drm/amdkfd: Support debugger in Navi1x trap handler
authorJay Cornwall <jay.cornwall@amd.com>
Thu, 21 Nov 2019 18:41:11 +0000 (12:41 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:11 +0000 (01:59 -0400)
commit3cefc7189c964d1e93bbaaa9c131195800f84211
treee3cd9b876673a6bbbd8ddb3e53e8be9c7c63893e
parentd0f1a85366bc0fe57c4a21c56568742a174965c1
drm/amdkfd: Support debugger in Navi1x trap handler

- Preserve scalar GPRs ttmp[4:11] and ttmp13
- Add single step exception during context save workaround
- Remove incorrect PC adjustment during context save

Signed-off-by: Jay Cornwall <jay.cornwall@amd.com>
Reviewed-by: Yong Zhao <Yong.Zhao@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