]> www.infradead.org Git - users/hch/misc.git/commit
drm/amdkfd: Fix instruction hazard in gfx12 trap handler
authorJay Cornwall <jay.cornwall@amd.com>
Fri, 7 Feb 2025 21:40:34 +0000 (16:40 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Mar 2025 20:28:34 +0000 (16:28 -0400)
commit424648c3838133f93a34fdfe4f9d5597551e7b3b
tree505e1bbfbfee3e404bb24cf91769d61f3988ee16
parent5ca0040ecfe8ba0dee9df1f559e8d7587f12bf89
drm/amdkfd: Fix instruction hazard in gfx12 trap handler

VALU instructions with SGPR source need wait states to avoid hazard
with SALU using different SGPR.

v2: Eliminate some hazards to reduce code explosion

Signed-off-by: Jay Cornwall <jay.cornwall@amd.com>
Reviewed-by: Lancelot Six <lancelot.six@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 7e0459d453b911435673edd7a86eadc600c63238)
Cc: stable@vger.kernel.org # 6.12.x
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler.h
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler_gfx12.asm