aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1509-drm-amdkfd-Remove-warning-when-CU-Mask-is-zero.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1509-drm-amdkfd-Remove-warning-when-CU-Mask-is-zero.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1509-drm-amdkfd-Remove-warning-when-CU-Mask-is-zero.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1509-drm-amdkfd-Remove-warning-when-CU-Mask-is-zero.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1509-drm-amdkfd-Remove-warning-when-CU-Mask-is-zero.patch
new file mode 100644
index 00000000..ee32c0b0
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/1509-drm-amdkfd-Remove-warning-when-CU-Mask-is-zero.patch
@@ -0,0 +1,44 @@
+From e69747170879e1986280f5746fbc37120d25799a Mon Sep 17 00:00:00 2001
+From: Kent Russell <kent.russell@amd.com>
+Date: Tue, 20 Sep 2016 11:30:07 -0400
+Subject: [PATCH 1509/4131] drm/amdkfd: Remove warning when CU Mask is zero
+
+This is a normal condition, so don't flood the dmesg with warnings for
+an expected use-case.
+
+Change-Id: I6e650774de071847a4aee4a9fa9c696de01bbdc6
+Signed-off-by: Kent Russell <kent.russell@amd.com>
+---
+ drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c | 2 +-
+ drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
+index 959a7f1..7528265 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
+@@ -53,7 +53,7 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
+ const uint32_t *cu_mask = q->cu_mask;
+ int se, cu_per_sh, cu_index, i;
+
+- if (WARN_ON(cu_mask_count == 0))
++ if (cu_mask_count == 0)
+ return;
+
+ m = get_mqd(mqd);
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
+index 59bc27e..ebb4664 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
+@@ -53,7 +53,7 @@ static void update_cu_mask(struct mqd_manager *mm, void *mqd,
+ const uint32_t *cu_mask = q->cu_mask;
+ int se, cu_per_sh, cu_index, i;
+
+- if (WARN_ON(cu_mask_count == 0))
++ if (cu_mask_count == 0)
+ return;
+
+ m = get_mqd(mqd);
+--
+2.7.4
+