Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp415615ioo; Sat, 21 May 2022 03:03:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzz1NRcVvFK/a0ozeF6OvOojiZ7LHXoBxDkdhvQssLE4Y8+k402vmfU3Bmr37UZIPXrw4ZM X-Received: by 2002:a65:404c:0:b0:3c6:4018:ffbf with SMTP id h12-20020a65404c000000b003c64018ffbfmr12291379pgp.408.1653127430498; Sat, 21 May 2022 03:03:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653127430; cv=none; d=google.com; s=arc-20160816; b=X8U7dzZcZGU6ctpFEgKefu79HzLVDClSa+YEkbbCOeFV3anUnzbaGpl0rtyu/Vd8vH UpJkI5X4ClpnGK7DkJUgEVRMxL2RS2rZYNk3b0d6kX++KxLwMZbAf4wJaaPO0dVbr+Z5 ZKeUwcE7kPmG4LIMb+IUoZKhGddH4p7iNOXdilcbb5f4QCE4jBWspLPKlnmpyfNbBKwj xCxfut5axByFvYg71d/OYBLSwT/sXhFrcL9KBudwKfenuo6S37f9+C6EPXbf8aYJbxju 42cKELHlStw/KTN+QsolfXV+kP0Jos3/w9FR0T1UW3whbqmoWW0+V6OqGk3gh3q+5tNh vqFQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=x8py7j1SG4lFGS7B2KmTWgh5D5BZV43HJhRUXjeckyg=; b=M8E2PDGO0Z2De1Pl2Pe9Xrt2ChqzO5OcPjzluAfy8g0EA4lL6Elg9lOWltsDEXlpil ijrSGbKldIAYEB+ZsKldksq2J5o4CUo/hidv8cypPkrG2ogmaCsUcu69pCm2qlzNruyd y9kaVq+u6MO8BLrfOc2iKIEV2klNenVbPDcVsc/d17IgUbyB6gkTGfQRfrR4uee4iRPi Nq88Y3OOMRYO96uydK6jCve1GW1bG60BcqNsxk+KhznpDQgXMGV1nnnmfFZjagXeJm4K ecN3VFMa1O39GMsJsjmnhaSDgrizbqLPPZdqT3ez5XAbX6rfQiSiQAsi0pXKd7Y4b+8V Y0mA== 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 x21-20020a17090300d500b00156a2cedc79si2223482plc.529.2022.05.21.03.03.35; Sat, 21 May 2022 03:03:50 -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 S1349647AbiETNN7 (ORCPT + 99 others); Fri, 20 May 2022 09:13:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236665AbiETNN5 (ORCPT ); Fri, 20 May 2022 09:13:57 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 909A1146745 for ; Fri, 20 May 2022 06:13:56 -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 5885B1477; Fri, 20 May 2022 06:13:56 -0700 (PDT) Received: from bogus (unknown [10.57.66.157]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7272A3F73D; Fri, 20 May 2022 06:13:53 -0700 (PDT) Date: Fri, 20 May 2022 14:13:47 +0100 From: Sudeep Holla To: Dietmar Eggemann Cc: Atish Patra , linux-kernel@vger.kernel.org, Atish Patra , Sudeep Holla , Vincent Guittot , Morten Rasmussen , Qing Wang , linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, Rob Herring Subject: Re: [PATCH v2 1/8] arch_topology: Don't set cluster identifier as physical package identifier Message-ID: <20220520131347.cgaevw77yjk523mw@bogus> References: <20220518093325.2070336-1-sudeep.holla@arm.com> <20220518093325.2070336-2-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 Fri, May 20, 2022 at 02:31:24PM +0200, Dietmar Eggemann wrote: > On 18/05/2022 11:33, Sudeep Holla wrote: > > You say `cluster identifier` which to me refers to > `cpu_topology[cpu].cluster_id`. But I guess you meant `cluster node` > from cpu-map DT node? > Correct, I am referring to the leaf cluster node identifier in terms of cpu-map DT node which we now store in cpu_topology[cpu].cluster_id as part of this series instead of previous cpu_topology[cpu].package_id. > Otherwise you say we link (1.level) cpu-map cluster nodes to > `cluster_id\_sibling`? But then (1) we will never support nested > clusters and (2) why would we need llc support then? > (1) Do we have any platforms with nested clusters today ? No phantom clusters please as this is info that gets to the userspace and must reflect the real hardware. If one exist, then we need to add nested cluster if we need to support that hardware. I am not aware of any platform in particular DT based one. (2) LLC was added to support chiplets. IIRC, cpu_coregroup_mask was changed to select the smallest of LLC, socket siblings, and NUMA node siblings to ensure that the sched domain we build for the MC layer isn't larger than the DIE above it or it's shrunk to the socket or NUMA node if LLC exist across NUMA node/chiplets. But overtime, we have patched cpu_coregroup_mask to workaround things which I think is now about to break ????. -- Regards, Sudeep