1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
From f4f5f6aa6bbdd8e1277ebf80a5c7991afd177c4d 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 1190/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
|