aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
diff options
context:
space:
mode:
authorFelix Kuehling <Felix.Kuehling@amd.com>2017-12-08 23:08:56 -0500
committerOded Gabbay <oded.gabbay@gmail.com>2017-12-08 23:08:56 -0500
commit175b926335c9ce30a531b7a162dde055e7182cbe (patch)
tree04671edbbb60ba1a0b5906438509a5f34c8843b7 /drivers/gpu/drm/amd/amdkfd/kfd_crat.c
parentdrm/amdkfd: Turn verbose topology messages into pr_debug (diff)
downloadlinux-dev-175b926335c9ce30a531b7a162dde055e7182cbe.tar.xz
linux-dev-175b926335c9ce30a531b7a162dde055e7182cbe.zip
drm/amdkfd: Simplify counting of memory banks
Only count memory banks in one place. Ignore redundant num_banks entry in crat_subtype_computeunit. Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_crat.c')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_crat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
index 31717971d8dd..e62493b39041 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c
@@ -45,7 +45,6 @@ static void kfd_populated_cu_info_gpu(struct kfd_topology_device *dev,
dev->node_props.lds_size_in_kb = cu->lds_size_in_kb;
dev->node_props.max_waves_per_simd = cu->max_waves_simd;
dev->node_props.wave_front_size = cu->wave_front_size;
- dev->node_props.mem_banks_count = cu->num_banks;
dev->node_props.array_count = cu->num_arrays;
dev->node_props.cu_per_simd_array = cu->num_cu_per_array;
dev->node_props.simd_per_cu = cu->num_simd_per_cu;
@@ -111,7 +110,7 @@ static int kfd_parse_subtype_mem(struct crat_subtype_memory *mem,
mem->length_low;
props->width = mem->width;
- dev->mem_bank_count++;
+ dev->node_props.mem_banks_count++;
list_add_tail(&props->list, &dev->mem_props);
break;