]> git.karo-electronics.de Git - linux-beck.git/commitdiff
amdkfd: Fixing topology bug in building sysfs nodes
authorBen Goz <ben.goz@amd.com>
Tue, 2 Dec 2014 14:41:08 +0000 (16:41 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Tue, 2 Dec 2014 14:41:08 +0000 (16:41 +0200)
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>
drivers/gpu/drm/amd/amdkfd/kfd_topology.c

index b11792d7e70e2a6fca1fdc15636c4672fb3165dc..cca1708fd811be8253ab0d2989d74e405f3dab04 100644 (file)
@@ -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++;