summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorBen Goz <ben.goz@amd.com>2014-12-02 16:41:08 +0200
committerOded Gabbay <oded.gabbay@amd.com>2014-12-02 16:41:08 +0200
commit8dfead6c2836621bd878626ae841fc55259b2523 (patch)
tree0edb46318c7e449ebf2740bf803a16d8b5814dc2 /drivers/gpu
parentb6ffbab813cfc535db5c3815b4eb16dd7d97197c (diff)
downloadop-kernel-dev-8dfead6c2836621bd878626ae841fc55259b2523.zip
op-kernel-dev-8dfead6c2836621bd878626ae841fc55259b2523.tar.gz
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: Ben Goz <ben.goz@amd.com> Reviewed-by: Oded Gabbay <oded.gabbay@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
index b11792d..cca1708 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
@@ -921,7 +921,7 @@ static int kfd_build_sysfs_node_tree(void)
uint32_t i = 0;
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)
return ret;
i++;
OpenPOWER on IntegriCloud