Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3149534iog; Mon, 27 Jun 2022 10:08:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t5dRMksnFRhpcxKBA2fBQ3XdntNTwgMfkp+wy4DpQAcGnoOS2cw534TQX8gtnZx8GBKrqU X-Received: by 2002:a17:902:ce0c:b0:168:ca2e:c944 with SMTP id k12-20020a170902ce0c00b00168ca2ec944mr356358plg.107.1656349695642; Mon, 27 Jun 2022 10:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656349695; cv=none; d=google.com; s=arc-20160816; b=rDBTKmkcEqnPn4aAy/G1J9zJnJk+pQNBhHewgC5OL8vcb6EvgcwSQ4UOdF4zDPd45x m9gXnA2jn+/RtPq6YwVhGhL3gmqOpss5WWZz9xxMfuQPhdDfGpIs8k7yAZrYENC/vof9 BN8ZdJUJZi2hV+dtsCeR6ooWWGOybdjCdKQA1FtejLw5ueYYqeoMH4Mn+x5ebsWEteha BGyq//p5hVD/4VbAebOMsJP/fb6wKn73ZeFqoZ7Qm87d26e+pwI0/YV8b1i1QnxUU98f zAoS4yxDChLL6w+5tFU/AuKnChNnP8rvh6br/jkgFLy0E4hen8w4uj2fL18fyVsB1c9D olag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=z/8fTI/YLVc3kjF5oNvzh2FMo27+xpHDMLMNKexwAcA=; b=vrYVzr3VzvCoVRMCWoafQ1Bp/1RswFb6S6Lm9iGJ85o+8S4H2ntHuxOxLuLVd7LWZF DmKySicdF9VWcpTffiUOr0889iUyL/S/A4qrP8QwpbQ7CRJyeac2qbzippHPWwwToxsJ Q66iM39wprRMm7jCs8xAdB9CWmFjGTqp0gJvUtaw7UR9RBYd7wmupFlnoNOF8GdNXK7W i5PVld/LaF5bCAdpbZr4lughtUt73kKraIvQOHnYpWbDmMqXMLslTTWfJd6PGMK/CPJ+ ebLzJZGc2ej8H2AsWkFnJ9EJaQNI8wC3NJOsWEO/kCtCEXrv4q80xrw0MZQYme9MeMsQ jxhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a056a00191100b00525106ac52fsi12704283pfi.79.2022.06.27.10.08.01; Mon, 27 Jun 2022 10:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239701AbiF0QwR (ORCPT + 99 others); Mon, 27 Jun 2022 12:52:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239578AbiF0Qvg (ORCPT ); Mon, 27 Jun 2022 12:51:36 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6A1D713DFB for ; Mon, 27 Jun 2022 09:51:35 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 49CC01758; Mon, 27 Jun 2022 09:51:35 -0700 (PDT) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 5E09E3F792; Mon, 27 Jun 2022 09:51:33 -0700 (PDT) From: Sudeep Holla To: linux-kernel@vger.kernel.org Cc: Sudeep Holla , Greg Kroah-Hartman , Atish Patra , Atish Patra , Vincent Guittot , Dietmar Eggemann , Qing Wang , Rob Herring , "Rafael J . Wysocki" , Ionela Voinescu , Pierre Gondois , linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Subject: [PATCH v5 19/19] arch_topology: Warn that topology for nested clusters is not supported Date: Mon, 27 Jun 2022 17:50:47 +0100 Message-Id: <20220627165047.336669-20-sudeep.holla@arm.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627165047.336669-1-sudeep.holla@arm.com> References: <20220627165047.336669-1-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/20220621192034.3332546-21-sudeep.holla@arm.com Tested-by: Ionela Voinescu Signed-off-by: Sudeep Holla --- drivers/base/arch_topology.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index 7cbe21b1b295..d7e48e995691 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -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; -- 2.36.1