]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Mar 2025 21:04:58 +0000 (22:04 +0100)
commitcad65562a54cf83337c40e5d1d77aed86d63df42
tree020e8bba74881aeefe22f66666920943d65881b6
parentd2cfea1c10968e1b8da0e3e9226da06439f2dce3
drm/amdkfd: Fix instruction hazard in gfx12 trap handler

commit 424648c3838133f93a34fdfe4f9d5597551e7b3b upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler.h
drivers/gpu/drm/amd/amdkfd/cwsr_trap_handler_gfx12.asm