drm/amdkfd: Fix race in gfx10 context restore handler
authorJay Cornwall <jay.cornwall@amd.com>
Wed, 25 Sep 2019 22:05:01 +0000 (17:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:11:04 +0000 (09:11 -0500)
commitc18cc2bb9e064d3a613d8276f2cab3984926a779
tree53e01cd2ebd20f081ab1e4e7fe2cdd76f8399f59
parentb2100ce1db91d65b3f90414777ec32dbc547bde1
drm/amdkfd: Fix race in gfx10 context restore handler

Missing synchronization with VGPR restore leads to intermittent
VGPR trashing in the user shader.

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