aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_topology.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
index 52d20f51cad4..80bc71d2c76a 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
@@ -1229,12 +1229,15 @@ int kfd_topology_add_device(struct kfd_dev *gpu)
1229 /* Fix errors in CZ CRAT. 1229 /* Fix errors in CZ CRAT.
1230 * simd_count: Carrizo CRAT reports wrong simd_count, probably 1230 * simd_count: Carrizo CRAT reports wrong simd_count, probably
1231 * because it doesn't consider masked out CUs 1231 * because it doesn't consider masked out CUs
1232 * capability flag: Carrizo CRAT doesn't report IOMMU 1232 * max_waves_per_simd: Carrizo reports wrong max_waves_per_simd
1233 * flags. TODO: Fix this. 1233 * capability flag: Carrizo CRAT doesn't report IOMMU flags
1234 */ 1234 */
1235 if (dev->gpu->device_info->asic_family == CHIP_CARRIZO) 1235 if (dev->gpu->device_info->asic_family == CHIP_CARRIZO) {
1236 dev->node_props.simd_count = 1236 dev->node_props.simd_count =
1237 cu_info.simd_per_cu * cu_info.cu_active_number; 1237 cu_info.simd_per_cu * cu_info.cu_active_number;
1238 dev->node_props.max_waves_per_simd = 10;
1239 dev->node_props.capability |= HSA_CAP_ATS_PRESENT;
1240 }
1238 1241
1239 kfd_debug_print_topology(); 1242 kfd_debug_print_topology();
1240 1243