Skip to content

Commit 8fc2796

Browse files
superm1alexdeucher
authored andcommitted
drm/amdkfd: Export the cwsr_size and ctl_stack_size to userspace
This is important for userspace to avoid hardcoding VGPR size. Reviewed-by: Kent Russell <kent.russell@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 71776e0) Cc: stable@vger.kernel.org
1 parent cf841f6 commit 8fc2796

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/gpu/drm/amd/amdkfd/kfd_topology.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,10 @@ static ssize_t node_show(struct kobject *kobj, struct attribute *attr,
491491
dev->node_props.num_sdma_queues_per_engine);
492492
sysfs_show_32bit_prop(buffer, offs, "num_cp_queues",
493493
dev->node_props.num_cp_queues);
494+
sysfs_show_32bit_prop(buffer, offs, "cwsr_size",
495+
dev->node_props.cwsr_size);
496+
sysfs_show_32bit_prop(buffer, offs, "ctl_stack_size",
497+
dev->node_props.ctl_stack_size);
494498

495499
if (dev->gpu) {
496500
log_max_watch_addr =

0 commit comments

Comments
 (0)