drm/amdkfd: Clear MODE.VSKIP in gfx9 trap handler
authorJay Cornwall <jay.cornwall@amd.com>
Wed, 8 Jan 2025 03:59:06 +0000 (21:59 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 Jan 2025 14:53:05 +0000 (09:53 -0500)
commit1241b64d4be8f9cc013711df9847436ef1599b24
tree964ee6fda98f778d3aca6518b39c13d14134e14e
parenta0db1ea0dd4d7442cded8be30474eadc6638caaa
drm/amdkfd: Clear MODE.VSKIP in gfx9 trap handler

If user shader issues S_SETVSKIP then this state will persist when
executing the trap handler, causing vector instructions to be
skipped.

VSKIP state is already saved/restored through the MODE register.

Signed-off-by: Jay Cornwall <jay.cornwall@amd.com>
Reviewed-by: Lancelot Six <lancelot.six@amd.com>
Suggested-by: Alex Deucher <alexander.deucher@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_gfx9.asm