Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1448000imk; Mon, 4 Jul 2022 03:20:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s9hYr20nuxylvyswZTcCxByRUgWPmGxvNDv48TKsTaCKemuQSSeD7GXe8YwM6I4Cb+0iAa X-Received: by 2002:a63:2bd2:0:b0:40d:62e4:b880 with SMTP id r201-20020a632bd2000000b0040d62e4b880mr23792512pgr.488.1656930023902; Mon, 04 Jul 2022 03:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656930023; cv=none; d=google.com; s=arc-20160816; b=R3YG1rV5OqZa5qFWu1t5TC9611zjoFWyvYnILSn+v06l9qRjslyq5VKb42sdU/4RIZ FHURIHPXqF/0VfS83xZaLnYC8gXrgBdKi0mDB4CWlYmcoBG8uGcpn0kO3Xlg68zIwhlY IuK/KLG5IsegFjqEIi3spm5FsH6TwvVTkyAw8J5PAuDc6lOASLgam7Lg0Za6SAxJR7yT 3WuWvdoMG5cisQOUaUmoOlNjQ70P+p0fOqyRty352uMEKUKl3UjsQjBTZ4FNc6mREhBY AJKXT4PjnWuFloqOlurOpnlvm5vXrtsL3IqfDKCghlMBXuxlQjECp0hHyyOaEBXl6c+B x4pA== 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=0VH4LE+zJ5/S9O+r1jOBJMAv9K1pejzguuDc7EW9X5A=; b=r/PadzQH6k1MV2Bb2Sg1bnHEf4ln+i4j1gRM04z+4KWOiuh1pZsqA7SZhCG/efD5Ch P4hhMJRkI5545VOpc4kzIdjkZjoh/a/uCRqkjdAFfXZM4goc1fzOKPS1ats6MFfX0jaL L+1Sa0Qcg5Zd6WS/m+XYQfucfss82oJirUP2zHBE9b0HYVjuX3inysxE5bt1eBYYCTNI 6mexP0DKzDF/6PoGTLReqqFwqRpf92WuzsUW+h5S3Y1RU99UDam9+bDDUzjc0JzvZwNP PMK5vvTeOOC0XoIRl2j3yhC43acN56luBXpnoN8qzCt+yjx0bFjaaEHhIYZTMMfp9xgS Sk0w== 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 o4-20020a635a04000000b003fcbc8b5e7dsi41454056pgb.811.2022.07.04.03.20.12; Mon, 04 Jul 2022 03:20:23 -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 S234466AbiGDKSV (ORCPT + 99 others); Mon, 4 Jul 2022 06:18:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234302AbiGDKQ6 (ORCPT ); Mon, 4 Jul 2022 06:16:58 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 03779DFC5 for ; Mon, 4 Jul 2022 03:16:57 -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 1C14F23A; Mon, 4 Jul 2022 03:16:57 -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 0142C3F792; Mon, 4 Jul 2022 03:16:54 -0700 (PDT) From: Sudeep Holla To: linux-kernel@vger.kernel.org, Greg Kroah-Hartman Cc: Sudeep Holla , conor.dooley@microchip.com, valentina.fernandezalanis@microchip.com, 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 v6 20/21] arch_topology: Warn that topology for nested clusters is not supported Date: Mon, 4 Jul 2022 11:16:04 +0100 Message-Id: <20220704101605.1318280-21-sudeep.holla@arm.com> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220704101605.1318280-1-sudeep.holla@arm.com> References: <20220704101605.1318280-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. 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 8719c4458df9..441e14ac33a4 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.37.0