blob: 6591ba7f7005d67c37dc61c3d7477f2398b9af7d (
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
32
33
34
|
From c4d14cec22fba134b17ce105c7d9a42a3ac0c5d0 Mon Sep 17 00:00:00 2001
From: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Date: Mon, 1 May 2017 17:03:46 -0400
Subject: [PATCH 1273/4131] drm/amdkfd: Use NUMA only if platform supports
Change-Id: Ief5a0474d0cc9a61e1f0f5d30d97e19f1a7e956e
Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
---
drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
index 3b3366c..e740ca6 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
@@ -1043,11 +1043,14 @@ static int kfd_fill_gpu_direct_io_link(int *avail_size,
* TODO: Fill-in other fields of iolink subtype */
sub_type_hdr->io_interface_type = CRAT_IOLINK_TYPE_PCIEXPRESS;
sub_type_hdr->proximity_domain_from = proximity_domain;
+#ifdef CONFIG_NUMA
if (kdev->pdev->dev.numa_node == NUMA_NO_NODE)
sub_type_hdr->proximity_domain_to = 0;
else
sub_type_hdr->proximity_domain_to = kdev->pdev->dev.numa_node;
-
+#else
+ sub_type_hdr->proximity_domain_to = 0;
+#endif
return 0;
}
--
2.7.4
|