Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp867930iog; Wed, 29 Jun 2022 11:49:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1um0L/u04YeC4QvaCHozxA3qCdHYf2Po+BN8p4YGIuRdGLySX9+17H1JQAXNmX2yjiVryy/ X-Received: by 2002:a17:90a:b397:b0:1ec:c9b4:29cf with SMTP id e23-20020a17090ab39700b001ecc9b429cfmr5299044pjr.134.1656528581451; Wed, 29 Jun 2022 11:49:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656528581; cv=none; d=google.com; s=arc-20160816; b=tO/n76NrVYpEO77lu9GywQBdcSEbbIwlL/rEdbG1E6/HVUlNzSoeWfslQXkob4/kdp vpgWuxiUCGNJWRyY90YJ2urPM07l1qZtVW7Arbo5jQMYAWre1QQ1B/ZtlHZZ+8TNkrwL v92KZ9Lm4YWXkYJNUES17EtHsdfVNkuT6gtLpr6f4JweD57ZzFYfcFUv+8sBPASBPXe1 NSDPAwKDfnXShbbDr59lQaccwnz/WGHZkuA/Kv25qwg35C5OcbShDePtgaIfYonbcyL9 zy8kV2sErvbCmmNC6oDDfkhT9aMH4mu+bkDuvZXSpeF1MpAe8N9EZBF85hplgMvJIGIR xsuw== 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=fYjQdF4dlGYHRA6KRfEgrahNKWDO4Ji3Y/m7X9PqMbo=; b=j4O2QOVdT/DI7eyE1Co4chUWr2hv/g+52Wpvkf8ameSyRoleruYjoir7qbjSxvobMg kx7dDfvPG874Wt2orZ2ZM5yVBrWnbE5jaUwgqNdtxvJ4hK7UCenP6sd1v8rsXhFu/PiG 30YmQs0F60/rnbgKAfZjU5Ryi8fmg0esoZuNGthJDGT91RVB1z/G6b4kdU6+9CmvuBuB mVolTmrnkut+uf0vjPB30jcVt2nlM3NZVtfIDmd54c2kxYrLDkEQgOmKno+S5aITB/hf 1AP5VYKwJIyQ58yQnyhNtk9hflz8M2Z5+djRME3MU143HZYB+Xdb+STvFVyVWQQhLx+X rfQQ== 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 a8-20020a17090a6d8800b001ed0f6f1010si3977933pjk.70.2022.06.29.11.49.28; Wed, 29 Jun 2022 11:49:41 -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 S230286AbiF2Ssg (ORCPT + 99 others); Wed, 29 Jun 2022 14:48:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229948AbiF2SsZ (ORCPT ); Wed, 29 Jun 2022 14:48:25 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1B7D4272 for ; Wed, 29 Jun 2022 11:48:23 -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 1D9B41480; Wed, 29 Jun 2022 11:48:23 -0700 (PDT) Received: from bogus (unknown [10.57.39.193]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B330A3F5A1; Wed, 29 Jun 2022 11:48:19 -0700 (PDT) Date: Wed, 29 Jun 2022 19:47:08 +0100 From: Sudeep Holla To: Conor.Dooley@microchip.com Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, atishp@atishpatra.org, atishp@rivosinc.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, wangqing@vivo.com, robh+dt@kernel.org, rafael@kernel.org, ionela.voinescu@arm.com, pierre.gondois@arm.com, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, gshan@redhat.com, Valentina.FernandezAlanis@microchip.com Subject: Re: [PATCH v5 09/19] arch_topology: Use the last level cache information from the cacheinfo Message-ID: <20220629184708.x5exgjoy4sblyqml@bogus> References: <20220627165047.336669-1-sudeep.holla@arm.com> <20220627165047.336669-10-sudeep.holla@arm.com> <3656a067-cc3f-fd5b-e339-5925a856cce1@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3656a067-cc3f-fd5b-e339-5925a856cce1@microchip.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 On Wed, Jun 29, 2022 at 06:18:25PM +0000, Conor.Dooley@microchip.com wrote: > On 29/06/2022 18:49, Conor.Dooley@microchip.com wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > On 27/06/2022 17:50, Sudeep Holla wrote: > >> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > >> > >> The cacheinfo is now initialised early along with the CPU topology > >> initialisation. Instead of relying on the LLC ID information parsed > >> separately only with ACPI PPTT elsewhere, migrate to use the similar > >> information from the cacheinfo. > >> > >> This is generic for both DT and ACPI systems. The ACPI LLC ID information > >> parsed separately can now be removed from arch specific code. > > > > Hey Sudeep, > > I bisected broken boot on PolarFire SoC to this patch in next-20220629 :/ > > I suspect the issue is a missing "next-level-cache" in the the dt: > > arch/riscv/boot/dts/microchip/mpfs.dtsi Good that I included this in -next, I had not received any feedback from RISC-V even after 5 iterations. I also see this DTS is very odd. It also states CPU0 doesn't have L1-D$ while the other 4 CPUs have L1-D$. Is that a mistake or is it the reality ? Another breakage in userspace cacheinfo sysfs entry of cpu0 has both I$ and D$. -- Regards, Sudeep