mirror_ubuntu-kernels/drivers/gpu/drm/amd
Alex Sierra b4672c8a84 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>
2019-11-22 14:20:23 -05:00
..
acp treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
amdgpu amd/amdgpu: force to trigger a no-retry-fault after a retry-fault 2019-11-22 14:20:23 -05:00
amdkfd drm/amdkfd: remove set but not used variable 'top_dev' 2019-11-19 10:12:51 -05:00
display Revert "drm/amd/display: enable S/G for RAVEN chip" 2019-11-19 10:12:54 -05:00
include drm/amdgpu: add JPEG PG and CG interface 2019-11-19 10:12:50 -05:00
powerplay drm/amdgpu: split swSMU baco_reset into enter and exit 2019-11-19 16:42:51 -05:00