Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4950977iog; Wed, 22 Jun 2022 08:55:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1veowG42lfW1azSd+yuVy8J3EdMRD05F1+TyimvgzvjXp7VD6tPIrKvR5a4VY2kZgwp/g4Q X-Received: by 2002:a05:6402:299a:b0:435:c75:64e6 with SMTP id eq26-20020a056402299a00b004350c7564e6mr4875321edb.134.1655913322301; Wed, 22 Jun 2022 08:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655913322; cv=none; d=google.com; s=arc-20160816; b=Nuwhe8jj/c69gHCwBjp9RlcNOXtUrKJFmkx2oEhNfifg93EZtW8MCjpzCfrBLB2ZK2 Tqgj8kRMyGjP5RGIsm0QqYb5JF8OXRL1Dz6pdfcWlYwoVRT2aR3ptnPA81p1sUlKbgTB e/lc9CvwHXkhPuWFA+PHfS6Fx4BY7AjRpe4GF2YTXb/H+2QLZ6APCi9h8rF8dIpnr2B3 elQUlbkL3j1aqSq7Be11G9mx+bj/Pg1h/k7dMPDe9EOwWggJRfwihSR+sethLmbbtUjy QyGahT8IL+nzTtp7S1oPkam2KSXdzgY6HHV6R1Npmk4R2s2Bog1wBUnkg5125h6nT8GJ 8SKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=SGPNl/GP3lWGsfFq7s8f3Gqis0rUX2SpshvZ7i62IEE=; b=PXUu82ud8puIfhmuLu8EZADWVse4jLCdg45FW+PS8qanAqtkzmh7VV3DB7WHgLad/r uKMdhOzOEThFsIB0ACG6SD6GSuK4BwPndJ6xXBpZ6PYaEwo/5N43OeYSI0WeRVbhh6LF mJNQuxkUGOBTmV2vsQgph1riI9ikHEV1XqnJepPu+K1v2jWCTuWhDplckOvLAfbcbPsC LPv/8Y9H0WImmpDtV5d7cHkrat23izMLiK9CYpmfxFsOix+e4BuUM7ZDqURkkbJDnYmp Cl0X15oRnyN2sBUrz08hZuh7iguU7fIMdcIUrVgeReuNxEJQFrwlgPd7pU8E6vfYMKrV Un+A== 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 ej27-20020a056402369b00b00435be992059si641750edb.125.2022.06.22.08.54.54; Wed, 22 Jun 2022 08:55:22 -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 S1359032AbiFVPGk (ORCPT + 99 others); Wed, 22 Jun 2022 11:06:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358934AbiFVPGc (ORCPT ); Wed, 22 Jun 2022 11:06:32 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 70F96393F7 for ; Wed, 22 Jun 2022 08:06:31 -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 68EAD12FC; Wed, 22 Jun 2022 08:06:31 -0700 (PDT) Received: from localhost (ionvoi01-desktop.cambridge.arm.com [10.1.196.65]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D67D83F792; Wed, 22 Jun 2022 08:06:30 -0700 (PDT) Date: Wed, 22 Jun 2022 16:06:29 +0100 From: Ionela Voinescu To: Sudeep Holla Cc: linux-kernel@vger.kernel.org, Greg KH , Atish Patra , Atish Patra , Vincent Guittot , Dietmar Eggemann , Qing Wang , Rob Herring , "Rafael J . Wysocki" , Pierre Gondois , linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v4 20/20] arch_topology: Warn that topology for nested clusters is not supported Message-ID: References: <20220621192034.3332546-1-sudeep.holla@arm.com> <20220621192034.3332546-21-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220621192034.3332546-21-sudeep.holla@arm.com> 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 Hi, I just noticed this in a quick test. On Tuesday 21 Jun 2022 at 20:20:34 (+0100), Sudeep Holla wrote: > 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. > > 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 ed1cb64a95aa..1c5fa7bbbd00 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 > 1) > + pr_warn("Topology for clusters of clusters not yet supported\n"); I think the check should be for (depth > 0) or (depth >= 1). We end up having depth = 2 when we have cluster 0 { //depth is 0 cluster 0 { //depth is 1 cluster0 { //depth is 2 ... I suppose we should warn about nested clusters from depth 1, right? Thanks, Ionela. > of_node_put(c); > if (ret != 0) > return ret; > -- > 2.36.1 >