mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
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: Mukul Joshi <mukul.joshi@amd.com> Tested-by: Amber Lin <Amber.Lin@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
5e40601236
commit
f38f147ab3
|
|
@ -468,7 +468,8 @@ static ssize_t node_show(struct kobject *kobj, struct attribute *attr,
|
|||
sysfs_show_32bit_prop(buffer, offs, "cpu_cores_count",
|
||||
dev->node_props.cpu_cores_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",
|
||||
dev->node_props.mem_banks_count);
|
||||
sysfs_show_32bit_prop(buffer, offs, "caches_count",
|
||||
|
|
@ -492,7 +493,8 @@ static ssize_t node_show(struct kobject *kobj, struct attribute *attr,
|
|||
sysfs_show_32bit_prop(buffer, offs, "wave_front_size",
|
||||
dev->node_props.wave_front_size);
|
||||
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",
|
||||
dev->node_props.simd_arrays_per_engine);
|
||||
sysfs_show_32bit_prop(buffer, offs, "cu_per_simd_array",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user