drm/amdkfd: Use S_ENDPGM_SAVED in trap handler
authorJay Cornwall <jay.cornwall@amd.com>
Fri, 5 Jan 2024 14:49:06 +0000 (08:49 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 31 Jan 2024 22:22:16 +0000 (17:22 -0500)
commitc49bf4fcfc2f5516f76a706b06fcad5886cc25e1
treef2c5872a97100cd4bafb3dd9a2d6fb29cf003b15
parent961df3085416ffabea192989941c89ffbf2af2d5
drm/amdkfd: Use S_ENDPGM_SAVED in trap handler

This instruction has no functional difference to S_ENDPGM
but allows performance counters to track save events correctly.

Signed-off-by: Jay Cornwall <jay.cornwall@amd.com>
Reviewed-by: Laurent Morichetti <laurent.morichetti@amd.com>
Acked-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_gfx10.asm
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler_gfx9.asm