Commit f38f147a authored by Mukul Joshi's avatar Mukul Joshi Committed by Alex Deucher

drm/amdkfd: Update sysfs node properties for multi XCC

Update simd_count and array_count node properties to report
values multiplied by number of XCCs in the partition.
Signed-off-by: default avatarMukul Joshi <mukul.joshi@amd.com>
Tested-by: default avatarAmber Lin <Amber.Lin@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5e406012
...@@ -468,7 +468,8 @@ static ssize_t node_show(struct kobject *kobj, struct attribute *attr, ...@@ -468,7 +468,8 @@ static ssize_t node_show(struct kobject *kobj, struct attribute *attr,
sysfs_show_32bit_prop(buffer, offs, "cpu_cores_count", sysfs_show_32bit_prop(buffer, offs, "cpu_cores_count",
dev->node_props.cpu_cores_count); dev->node_props.cpu_cores_count);
sysfs_show_32bit_prop(buffer, offs, "simd_count", sysfs_show_32bit_prop(buffer, offs, "simd_count",
dev->gpu ? dev->node_props.simd_count : 0); dev->gpu ? (dev->node_props.simd_count *
dev->gpu->num_xcc_per_node) : 0);
sysfs_show_32bit_prop(buffer, offs, "mem_banks_count", sysfs_show_32bit_prop(buffer, offs, "mem_banks_count",
dev->node_props.mem_banks_count); dev->node_props.mem_banks_count);
sysfs_show_32bit_prop(buffer, offs, "caches_count", sysfs_show_32bit_prop(buffer, offs, "caches_count",
...@@ -492,7 +493,8 @@ static ssize_t node_show(struct kobject *kobj, struct attribute *attr, ...@@ -492,7 +493,8 @@ static ssize_t node_show(struct kobject *kobj, struct attribute *attr,
sysfs_show_32bit_prop(buffer, offs, "wave_front_size", sysfs_show_32bit_prop(buffer, offs, "wave_front_size",
dev->node_props.wave_front_size); dev->node_props.wave_front_size);
sysfs_show_32bit_prop(buffer, offs, "array_count", sysfs_show_32bit_prop(buffer, offs, "array_count",
dev->node_props.array_count); dev->gpu ? (dev->node_props.array_count *
dev->gpu->num_xcc_per_node) : 0);
sysfs_show_32bit_prop(buffer, offs, "simd_arrays_per_engine", sysfs_show_32bit_prop(buffer, offs, "simd_arrays_per_engine",
dev->node_props.simd_arrays_per_engine); dev->node_props.simd_arrays_per_engine);
sysfs_show_32bit_prop(buffer, offs, "cu_per_simd_array", sysfs_show_32bit_prop(buffer, offs, "cu_per_simd_array",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment