Commit 8dfead6c authored by Ben Goz's avatar Ben Goz Committed by Oded Gabbay

amdkfd: Fixing topology bug in building sysfs nodes

Original code sent always 0 as the index number of the node. This patch fixes
this bug by sending a variable which is incremented per node.
Signed-off-by: default avatarBen Goz <ben.goz@amd.com>
Reviewed-by: default avatarOded Gabbay <oded.gabbay@amd.com>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@amd.com>
parent b6ffbab8
...@@ -921,7 +921,7 @@ static int kfd_build_sysfs_node_tree(void) ...@@ -921,7 +921,7 @@ static int kfd_build_sysfs_node_tree(void)
uint32_t i = 0; uint32_t i = 0;
list_for_each_entry(dev, &topology_device_list, list) { list_for_each_entry(dev, &topology_device_list, list) {
ret = kfd_build_sysfs_node_entry(dev, 0); ret = kfd_build_sysfs_node_entry(dev, i);
if (ret < 0) if (ret < 0)
return ret; return ret;
i++; i++;
......
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