Commit 8fc2796d authored by Mario Limonciello's avatar Mario Limonciello Committed by Alex Deucher
Browse files

drm/amdkfd: Export the cwsr_size and ctl_stack_size to userspace



This is important for userspace to avoid hardcoding VGPR size.

Reviewed-by: default avatarKent Russell <kent.russell@amd.com>
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 71776e09)
Cc: stable@vger.kernel.org
parent cf841f6a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -491,6 +491,10 @@ static ssize_t node_show(struct kobject *kobj, struct attribute *attr,
			      dev->node_props.num_sdma_queues_per_engine);
	sysfs_show_32bit_prop(buffer, offs, "num_cp_queues",
			      dev->node_props.num_cp_queues);
	sysfs_show_32bit_prop(buffer, offs, "cwsr_size",
			      dev->node_props.cwsr_size);
	sysfs_show_32bit_prop(buffer, offs, "ctl_stack_size",
			      dev->node_props.ctl_stack_size);

	if (dev->gpu) {
		log_max_watch_addr =