From c4d14cec22fba134b17ce105c7d9a42a3ac0c5d0 Mon Sep 17 00:00:00 2001 From: Harish Kasiviswanathan 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 --- 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