summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
diff options
context:
space:
mode:
authorAlex Sierra <alex.sierra@amd.com>2019-11-18 15:33:07 -0600
committerAlex Deucher <alexander.deucher@amd.com>2019-11-22 14:20:23 -0500
commitb4672c8a84beba6d04dc564b02e439590b5c93f7 (patch)
tree1b958dcbbc370510e3997b7304ea14f44565fa97 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
parentf43ef951f6c0ddd71787b28de4e5d96b40c832ca (diff)
downloadlinux-b4672c8a84beba6d04dc564b02e439590b5c93f7.tar.gz
linux-b4672c8a84beba6d04dc564b02e439590b5c93f7.tar.bz2
linux-b4672c8a84beba6d04dc564b02e439590b5c93f7.zip
amd/amdgpu: force to trigger a no-retry-fault after a retry-fault
Only for the debugger use case. [why] Avoid endless translation retries, after an invalid address access has been issued to the GPU. Instead, the trap handler is forced to enter by generating a no-retry-fault. A s_trap instruction is inserted in the debugger case to let the wave to enter trap handler to save context. [how] Intentionally using an invalid flag combination (F and P set at the same time) to trigger a no-retry-fault, after a retry-fault happens. This is only valid under compute context. Signed-off-by: Alex Sierra <alex.sierra@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions