drm/amdkfd: Preserve ttmp[4:5] instead of ttmp[14:15]
authorJay Cornwall <Jay.Cornwall@amd.com>
Tue, 2 Apr 2019 16:43:30 +0000 (11:43 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:21:01 +0000 (12:21 -0500)
commitfa722f0d9820a84952a3cbaccb888c31f9bfca2a
treea71afca6efd0e9875498697ba716f14a0ccf7f17
parent58836009015c6e1139f227ce827655b7e9639c2d
drm/amdkfd: Preserve ttmp[4:5] instead of ttmp[14:15]

ttmp[4:5] is initialized by the SPI with SPI_GDBG_TRAP_DATA* values.
These values are more useful to the debugger than ttmp[14:15], which
carries dispatch_scratch_base*. There are too few registers to
preserve both.

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_gfx9.asm