From 9f754f456f455b6c79f9ec20d2edc06ecc11c18d Mon Sep 17 00:00:00 2001 From: ferreo Date: Thu, 21 Nov 2024 10:58:49 +0100 Subject: [PATCH] Add patches/0006-amdgpuagain.patch --- patches/0006-amdgpuagain.patch | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 patches/0006-amdgpuagain.patch diff --git a/patches/0006-amdgpuagain.patch b/patches/0006-amdgpuagain.patch new file mode 100644 index 0000000..4035124 --- /dev/null +++ b/patches/0006-amdgpuagain.patch @@ -0,0 +1,35 @@ +From 89ed5473d025e35b175eb2396a05828feddb520d Mon Sep 17 00:00:00 2001 +From: Jack Xiao +Date: Mon, 4 Nov 2024 18:06:01 +0800 +Subject: drm/amdgpu/mes12: correct kiq unmap latency + +commit 79365ea70714427b4dff89b43234ad7c3233d7ba upstream. + +Correct kiq unmap queue timeout value. + +Signed-off-by: Jack Xiao +Reviewed-by: Hawking Zhang +Signed-off-by: Alex Deucher +(cherry picked from commit cfe98204a06329b6b7fce1b828b7d620473181ff) +Cc: stable@vger.kernel.org # 6.11.x +Signed-off-by: Greg Kroah-Hartman +--- + drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c b/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c +index 62d792ed0323aa..0383d1f95780a4 100644 +--- a/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c +@@ -524,7 +524,7 @@ static int mes_v12_0_set_hw_resources_1(struct amdgpu_mes *mes, int pipe) + mes_set_hw_res_1_pkt.header.type = MES_API_TYPE_SCHEDULER; + mes_set_hw_res_1_pkt.header.opcode = MES_SCH_API_SET_HW_RSRC_1; + mes_set_hw_res_1_pkt.header.dwsize = API_FRAME_SIZE_IN_DWORDS; +- mes_set_hw_res_1_pkt.mes_kiq_unmap_timeout = 100; ++ mes_set_hw_res_1_pkt.mes_kiq_unmap_timeout = 0xa; + + return mes_v12_0_submit_pkt_and_poll_completion(mes, pipe, + &mes_set_hw_res_1_pkt, sizeof(mes_set_hw_res_1_pkt), +-- +cgit 1.2.3-korg +