Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3136077iog; Mon, 27 Jun 2022 09:52:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1upF+RY+6cL9buN/aUJRPrhC27iiRyM0KAcw9HEY5nAjB+YZgz+y56MLfE7XY6Ovo/ZYn8T X-Received: by 2002:a17:907:8a28:b0:726:a02a:5bea with SMTP id sc40-20020a1709078a2800b00726a02a5beamr6931961ejc.175.1656348722301; Mon, 27 Jun 2022 09:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656348722; cv=none; d=google.com; s=arc-20160816; b=pwSwH5q2dzCPflYo0iDLo6C84FhFAke+I6WDWXleQ1qWsu+YxvY1rIomWd2HQ4WKlE aF0I6C9tFs786y6FYUTYoh+af6Q/wEpXDlPpYAw1jxrM1FYNbveTRTtTvnXZp/m6VgNf He74bVB8DVpTQkOwH3JNAMowr3Ex3xubc72nbbNnjSL4J7Xi42Yunj39vcFjS/uy+wPi ajucr+wRAOn/BbxvyD87hPG/MDJQSa0gQsNJzSZj9wgxOGf5zYzgV+JULQmOpfNN0AAJ gC4bQv0VaHQ0wf7awHCFWiIQ4YGNtgmM4deKywQXPMqtTdlwRsrfjD6TDM99zKJnZXXc AxYQ== 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=Kb/m4kdqTmE4xOyX4OWGVCA1SpURMUEdsk9jsUlBcG8=; b=NFn1r+r28QVGaEFOIVoypv2t3uXIS4DnM3iLCpEoATNNgSgXHnTSA+Fnko2UtJa2yp 7jdImzjgZ9UClDjpYHAMvgcdaPL4efu+U3qBKb0VFWQYfY4q0to1iGgDWpesnsLyr5wy Upg8CT9FQbz/NzITfX27e5SZ20GrGPblsdvdx0JoNJQMj7hpY7u9aNwUNyP/X4CeLiXG Putcle1HQcbBKC9kGjh+jFMeu6vqt4+y+K43TOTcbVsaMF3fcLIG2BHi40LzM79XeHZ0 POhPrRWy1KmDzE47kQPF88L8G13wy86O5yugFmB/SJHyk0UpOqW7CU88/X0U8K+5TOns /Pxw== 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 mp35-20020a1709071b2300b0070abccf45adsi12600259ejc.362.2022.06.27.09.51.37; Mon, 27 Jun 2022 09:52:02 -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 S238763AbiF0QX1 (ORCPT + 99 others); Mon, 27 Jun 2022 12:23:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236443AbiF0QXZ (ORCPT ); Mon, 27 Jun 2022 12:23:25 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0C081A44A for ; Mon, 27 Jun 2022 09:23:24 -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 060381758; Mon, 27 Jun 2022 09:23:24 -0700 (PDT) Received: from bogus (unknown [10.57.39.193]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 106C03F66F; Mon, 27 Jun 2022 09:23:21 -0700 (PDT) Date: Mon, 27 Jun 2022 17:22:11 +0100 From: Sudeep Holla To: Ionela Voinescu 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 00/20] arch_topology: Updates to add socket support and fix cluster ids Message-ID: <20220627162211.t2dlu2no2turnc6r@bogus> References: <20220621192034.3332546-1-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Mon, Jun 27, 2022 at 02:54:28PM +0100, Ionela Voinescu wrote: > Hi Sudeep, > > On Tuesday 21 Jun 2022 at 20:20:14 (+0100), Sudeep Holla wrote: > > Hi All, > > > > This version updates cacheinfo to populate and use the information from > > there for all the cache topology. > > > > This series intends to fix some discrepancies we have in the CPU topology > > parsing from the device tree /cpu-map node. Also this diverges from the > > behaviour on a ACPI enabled platform. The expectation is that both DT > > and ACPI enabled systems must present consistent view of the CPU topology. > > > > Currently we assign generated cluster count as the physical package identifier > > for each CPU which is wrong. The device tree bindings for CPU topology supports > > sockets to infer the socket or physical package identifier for a given CPU. > > Also we don't check if all the cores/threads belong to the same cluster before > > updating their sibling masks which is fine as we don't set the cluster id yet. > > > > These changes also assigns the cluster identifier as parsed from the device tree > > cluster nodes within /cpu-map without support for nesting of the clusters. > > Finally, it also add support for socket nodes in /cpu-map. With this the > > parsing of exact same information from ACPI PPTT and /cpu-map DT node > > aligns well. > > > > The only exception is that the last level cache id information can be > > inferred from the same ACPI PPTT while we need to parse CPU cache nodes > > in the device tree. > > > > Hi Greg, > > > > I had not cc-ed you on earlier 3 versions as we had some disagreement > > amongst Arm developers which we have not settled. Let me know how you want to > > s/not/now :) > > > merge this once you agree with the changes. I can set pull request if > > you prefer. Let me know. > > > > v4[3]->v4: > > - Updated ACPI PPTT fw_token to use table offset instead of virtual > > address as it could get changed for everytime it is mapped before > > the global acpi_permanent_mmap is set > > - Added warning for the topology with nested clusters > > - Added update to cpu_clustergroup_mask so that introduction of > > correct cluster_id doesn't break existing platforms by limiting > > the span of clustergroup_mask(by Ionela) > > > > I've tested v4 on quite a few platforms: > - DT: Juno R0, DB845c, RB5 > - ACPI: TX2, Ampere Altra, Kunpeng920 > > and it all looks good from my point of view (topology and sched domain > hierarchy). > > So for the full set (after the changes requested for 16/20 and 20/20): > > Tested-by: Ionela Voinescu > Thanks for all the review and testing. Much appreciated! -- Regards, Sudeep