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>
Mon, 29 Jan 2024 20:38:20 +0000 (15:38 -0500)
commit7297ff96ea5704c23c61cab781fe727bf72569aa
treeba47f3d87ae6f7561a1f21b3a27615fd22396802
parent34e98e5b07fcd2bd06e6abbea2ccc9cef6ef5349
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