]> git.baikalelectronics.ru Git - kernel.git/commit
amd/amdgpu: force to trigger a no-retry-fault after a retry-fault
authorAlex Sierra <alex.sierra@amd.com>
Mon, 18 Nov 2019 21:33:07 +0000 (15:33 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Nov 2019 19:20:23 +0000 (14:20 -0500)
commit604fbb63099c8adbb42f590d3312dc35de12dd0f
tree1b958dcbbc370510e3997b7304ea14f44565fa97
parent0bec2c3cd7aaa77a6e5b0dc2c8b335326f9bcc26
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c