]> git.itanic.dy.fi Git - linux-stable/commitdiff
arch_topology: Warn that topology for nested clusters is not supported
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 10:16:04 +0000 (11:16 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 15:23:23 +0000 (16:23 +0100)
We don't support the topology for clusters of CPU clusters while the
DT and ACPI bindings theoritcally support the same. Just warn about the
same so that it is clear to the users of arch_topology that the nested
clusters are not yet supported.

Link: https://lore.kernel.org/r/20220704101605.1318280-21-sudeep.holla@arm.com
Tested-by: Ionela Voinescu <ionela.voinescu@arm.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/base/arch_topology.c

index 8719c4458df962b7f6e7cdb5bbe04936dd67494d..441e14ac33a4959208b2ab1ff68b17ba4f03e1e3 100644 (file)
@@ -567,6 +567,8 @@ static int __init parse_cluster(struct device_node *cluster, int package_id,
                if (c) {
                        leaf = false;
                        ret = parse_cluster(c, package_id, i, depth + 1);
+                       if (depth > 0)
+                               pr_warn("Topology for clusters of clusters not yet supported\n");
                        of_node_put(c);
                        if (ret != 0)
                                return ret;