]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Fix gfx8 MEM_VIOL exception handler
authorJay Cornwall <Jay.Cornwall@amd.com>
Thu, 15 Nov 2018 04:23:25 +0000 (22:23 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:21:01 +0000 (12:21 -0500)
commita56507abc1e9c3e07a9988890ca6d9541fac68c7
treea4d7883d0749324e3e56c5aad52147db6be17e7e
parent0d06d41a876d1a6c7c157233a01afd94680a3bbf
drm/amdkfd: Fix gfx8 MEM_VIOL exception handler

When MEM_VIOL is asserted the context save handler rewinds the
program counter. This is incorrect for any source of the exception.
MEM_VIOL may be raised in normal operation by out-of-bounds access
to LDS or GDS and does not require special handling.

Remove PC adjustment when MEM_VIOL has been raised.

Signed-off-by: Jay Cornwall <Jay.Cornwall@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@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_gfx8.asm