]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdkfd: Apply VGPR bank state fixup on gfx12.1 trap exit
authorJay Cornwall <jay.cornwall@amd.com>
Thu, 23 Oct 2025 20:33:04 +0000 (15:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Jan 2026 21:59:56 +0000 (16:59 -0500)
commitba80939feca0d85ffa272a18c7c4763adf040114
tree6ebb61e85fef66f1fc35180e15ff300e7f6edebd
parent1005ab86cf75aec3462c1c58d6efa87871f2843f
drm/amdkfd: Apply VGPR bank state fixup on gfx12.1 trap exit

- Identify co-issue of S_SET_VGPR_MSB and VALU with banked VGPR
- Restore previous bank setting when exiting the trap

v2:
- Refine VOP3PX2 detection
- Improve load pipelining
- Fix a comment typo

Signed-off-by: Jay Cornwall <jay.cornwall@amd.com>
Reviewed-by: Lancelot Six <lancelot.six@amd.com>
Cc: Joseph Greathouse <joseph.greathouse@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