]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdkfd: gfx12.1 trap handler instruction fixup for VOP3PX
authorJay Cornwall <jay.cornwall@amd.com>
Wed, 21 Jan 2026 21:25:09 +0000 (15:25 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Jan 2026 21:21:21 +0000 (16:21 -0500)
commit05762d9c7da1f7e8ec6c456f592a17390ad43ddd
treec886e3e4b2f9107631b232f22e7cbddfd571ef4e
parent1197366cca89a4c44c541ddedb8ce8bf0757993d
drm/amdkfd: gfx12.1 trap handler instruction fixup for VOP3PX

A trap may occur in the middle of VOP3PX instruction co-issue.
The PC would be restored incorrectly if left unmodified.

Identify this case by examining the instruction opcode and
rewind the PC 8 bytes if it occurs.

Signed-off-by: Jay Cornwall <jay.cornwall@amd.com>
Reviewed-by: Lancelot Six <lancelot.six@amd.com>
Reviewed-by: Vladimir Indic <vladimir.indic@amd.com>
Cc: Shweta Khatri <shweta.khatri@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_gfx12.asm