Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp462347ioo; Sat, 21 May 2022 04:30:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjOUi2E9FQq89M4XS8kr+v299kBhnaWvNsdcxI/IaLV9ljmi3mNWZLaDksUaowPXHhODTv X-Received: by 2002:a05:6402:cae:b0:42a:ba8f:9d05 with SMTP id cn14-20020a0564020cae00b0042aba8f9d05mr15157071edb.277.1653132611515; Sat, 21 May 2022 04:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653132611; cv=none; d=google.com; s=arc-20160816; b=zaMQ2L30NnblGshj+kbCeFodG0hBTyu+tGJJ1mPplxZDXXDNosWmhIG1tlM5ReC66F 8PsRJTJQVoRrypFBJqc7Vra21Irbt95KyIJ36fcgd3SGrCyTHto0cVb4YcJArW0SLEni UPTtopBLGAZqTk33QMy7bBf0e7SBFmJcWXxjlufDD5wbVxwAcxBOaylv6PQxsoEH+tP2 yFECT67rktZesg2XIdTYrHxc/LtaPAf3f6NR5q1+7Z/HP5SyhBfDqD13FyRMuk6DLP3S H0KNPcEsuHo9ilV0x9/cHCA/EiX9lv+h6E4VSTMm6S1uNUU+xw6uM4h3WE2y1SVP5rz/ 1jdQ== 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=Q0mguRnonbHb7A7JaOJTzXkq+9tuDdpVAM/4PXOQ3cw=; b=Bskc8bbn6gB/otVd/lgPHB8+yW0G8xl3BRKGZS8i7n5WeOfjY+hlsvqg4fR9zo4U0N OscFYO6M/JUmfQGm6pmJOvKBBJaEcZinNjIk1HqSPhagULHYFxnhQY4X/+4Fn4sfK99e 6Ze6quaKNGDMxhDYN3w+5qZUG0vW4n7++5DrNHBAk0jcdAjWacCpWBZbmb9Z6k4rbGVW wFSfSuF4Tqd9akQR4ck0exCpXoexNESo+QT8zvrT5V/A3g8uDtue970pwK9N2Ap5AcY/ +SUlagLDw/loHb5gt0lYYtmevE1qZTlS+AcFBqFiinXtlf4nzhO395tZj7I/+R1qSfY0 /u1A== 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 gs34-20020a1709072d2200b006feb5e45804si4276828ejc.229.2022.05.21.04.29.30; Sat, 21 May 2022 04:30:11 -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 S1349675AbiETNAN (ORCPT + 99 others); Fri, 20 May 2022 09:00:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236247AbiETNAJ (ORCPT ); Fri, 20 May 2022 09:00:09 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9B9B816A271 for ; Fri, 20 May 2022 06:00:08 -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 50D731477; Fri, 20 May 2022 06:00:08 -0700 (PDT) Received: from bogus (unknown [10.57.66.157]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id ECDCE3F73D; Fri, 20 May 2022 06:00:05 -0700 (PDT) Date: Fri, 20 May 2022 13:59:59 +0100 From: Sudeep Holla To: Rob Herring Cc: Atish Patra , "linux-kernel@vger.kernel.org" , Atish Patra , Sudeep Holla , Vincent Guittot , Morten Rasmussen , Dietmar Eggemann , Qing Wang , linux-arm-kernel , linux-riscv Subject: Re: [PATCH v2 8/8] arch_topology: Add support to build llc_sibling on DT platforms Message-ID: <20220520125959.wlxz53cfqldljxjy@bogus> References: <20220518093325.2070336-1-sudeep.holla@arm.com> <20220518093325.2070336-9-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_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 Thu, May 19, 2022 at 01:10:51PM -0500, Rob Herring wrote: > On Wed, May 18, 2022 at 4:34 AM Sudeep Holla wrote: > > > > ACPI PPTT provides cache identifiers and especially the last level cache > > identifier is used in obtaining last level cache siblings amongst CPUs. > > > > While we have the cpu map representing all the CPUs sharing last level > > cache in the cacheinfo driver, it is populated quite late in the boot > > while the information is needed to build scheduler domains quite early. > > Late is because it's a device_initcall() rather than late in the cpu > hotplug state machine, right? Right. The expectation is to run in on each online CPU in CPU hotplug state machine for some architectures. We may not need that on arm64 especially since we get all info from DT or ACPI, but e.g. x86 uses cpuid which needs to be executed on that CPU. > The late aspect is for sysfs presumably,but I think we could decouple that. OK, not sure when this sched_domain info is actually needed. It think it could be decoupled if we can wait until all the cpus are online. > Do all the firmware cache parsing early and then populate the sysfs parts > later. Yes that may work on DT/ACPI based systems, as I said x86 relies on cpuid. > It's not a unique problem as the DT unflattening and init code has to > do the same thing. I'd assume the hotplug and cpu sysfs devices have > to deal with the same thing. > OK, I will take a look at how to do that. -- Regards, Sudeep