]> git.ipfire.org Git - thirdparty/linux.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>
Fri, 14 Mar 2025 03:12:28 +0000 (23:12 -0400)
commit7e0459d453b911435673edd7a86eadc600c63238
tree8a994deef8ea26476b798a61797ecff51f58f080
parent18537feb182d8506d4ee2778e11aad7c60e1453f
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>
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler.h
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler_gfx12.asm