aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/1206-drm-amdkfd-Change-pr_warn-to-pr_debug-when-init-Peer.patch
blob: 9a2ba7584912f47b430a1d8aad6a181007952576 (plain)
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
From 2645fe0cc9e0f06d1c832be41521a3d41125ce54 Mon Sep 17 00:00:00 2001
From: Serguei Sagalovitch <Serguei.Sagalovitch@amd.com>
Date: Fri, 4 Nov 2016 11:30:01 -0400
Subject: [PATCH 1206/4131] drm/amdkfd: Change pr_warn to pr_debug when init
 PeerDirect

Switch to use pr_debug instead of pr_warn to avoid message log
pollution when PeerDirect support is not available

Change-Id: I8366fab330632f144313a52ef2b99ab9cdf39bef
Signed-off-by: Serguei Sagalovitch <Serguei.Sagalovitch@amd.com>
---
 drivers/gpu/drm/amd/amdkfd/kfd_peerdirect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_peerdirect.c b/drivers/gpu/drm/amd/amdkfd/kfd_peerdirect.c
index 0edc652..3fb8896 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_peerdirect.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_peerdirect.c
@@ -457,7 +457,7 @@ void kfd_init_peer_direct(void)
 
 	if (!pfn_ib_register_peer_memory_client ||
 		!pfn_ib_unregister_peer_memory_client) {
-		pr_warn("amdkfd: PeerDirect interface was not detected\n");
+		pr_debug("amdkfd: PeerDirect interface was not detected\n");
 		/* Do cleanup */
 		kfd_close_peer_direct();
 		return;
-- 
2.7.4