aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2810-drm-amdkfd-Delete-alloc_format-field-from-map_queue-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2810-drm-amdkfd-Delete-alloc_format-field-from-map_queue-.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2810-drm-amdkfd-Delete-alloc_format-field-from-map_queue-.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2810-drm-amdkfd-Delete-alloc_format-field-from-map_queue-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2810-drm-amdkfd-Delete-alloc_format-field-from-map_queue-.patch
new file mode 100644
index 00000000..21fc7425
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2810-drm-amdkfd-Delete-alloc_format-field-from-map_queue-.patch
@@ -0,0 +1,30 @@
+From 0cf092dac427e27a5e897192d8cf4fb4aa39b2c0 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Wed, 8 May 2019 22:51:48 -0500
+Subject: [PATCH 2810/2940] drm/amdkfd: Delete alloc_format field from
+ map_queue struct for gfx10
+
+Alloc format was never really supported by MEC FW. FW always
+does one per pipe allocation.
+
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c b/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c
+index 26153c51493a..aed32ab7102e 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c
+@@ -159,8 +159,6 @@ static int pm_map_queues_v10(struct packet_manager *pm, uint32_t *buffer,
+
+ packet->header.u32All = pm_build_pm4_header(IT_MAP_QUEUES,
+ sizeof(struct pm4_mes_map_queues));
+- packet->bitfields2.alloc_format =
+- alloc_format__mes_map_queues__one_per_pipe_vi;
+ packet->bitfields2.num_queues = 1;
+ packet->bitfields2.queue_sel =
+ queue_sel__mes_map_queues__map_to_hws_determined_queue_slots_vi;
+--
+2.17.1
+