Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp865404iog; Wed, 29 Jun 2022 11:46:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sq4/BYtOqyLqtHo8ZrXMzhUGu8aaNcQFREFtUJsQJAYPuX7oQJvPeiYd/LLf8o9kY8eTEY X-Received: by 2002:a17:902:c405:b0:16a:25ae:78b5 with SMTP id k5-20020a170902c40500b0016a25ae78b5mr11775680plk.110.1656528361173; Wed, 29 Jun 2022 11:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656528361; cv=none; d=google.com; s=arc-20160816; b=t7YV+7FwaVJ9ZobF2WY0gIS2OyIjJ6HZb3KdINv5CAziC7IKvuoqYfZCrxVCCTOFcC vW5y7hJCX+6w+4cSEwEKPKRgccsVpTQ4s9yxg9QhzCyNN6wnoAr1qX37YAqbQkbs91Rm c5MPD2d6YV6WAsOaLUZoJ7GCKxovapd8xESQaHnH3vEEBDw7cm1LNdPLPIXH/fjNPhM4 DNSA2BrPgEt8YMeMyRkLJQvc52cPCXVGWZ2VUtByRke3Bm/aVegECCUJx1M0bx1q/F3k iS5It7xJs4obGeLvYtrLTPzsJuK/hiW9UYWwhOcBKSa51r00JTr4SWqE7e5kVzMkEb/7 3VbQ== 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=TEEbpOzgHuW82LMQtCCpMSpBN3EXOIavq8Qx1ksIbek=; b=CqMMk805HCrc4hOqqVmnDHvOcPoOZcrCgj2ff/QtffgCbW1hOkqIqz+7Fvctcp3aDL OVSrhfkB62RLsXCBVhjDCmtGaODxlDAk0zD5O202tj/G4fyvVKsfKteRwBYZM/qvvNSo H43jy/F4CSAUEa0DHc3bxPikkEA+ySJRLGKjV2/Yzb2o+Sk8hNcKsjUpS4EfNYerJujR hgBcr3xHkxNjmZHwyXjSZgdU7IDvO3Lh1y1eYcQlb4GxmYAhCzBYwgEwFfg/7EFJBfe/ EMnAE4hkplfXEXtsbnWyIXmVglSrXySUJz3kvnh3hAUq7Ap1iarxlZztVKD9dclMp/7n WEVQ== 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 71-20020a63024a000000b0041147230b19si2825185pgc.350.2022.06.29.11.45.46; Wed, 29 Jun 2022 11:46:01 -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 S230281AbiF2Snb (ORCPT + 99 others); Wed, 29 Jun 2022 14:43:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbiF2Sna (ORCPT ); Wed, 29 Jun 2022 14:43:30 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4AC11248D4 for ; Wed, 29 Jun 2022 11:43:30 -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 492F11480; Wed, 29 Jun 2022 11:43:30 -0700 (PDT) Received: from bogus (unknown [10.57.39.193]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D24E43F5A1; Wed, 29 Jun 2022 11:43:27 -0700 (PDT) Date: Wed, 29 Jun 2022 19:42:17 +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: <20220629184217.krzt6l7qadymbj6h@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: > > No, no it doesn't. Not sure what I was thinking there. > Prob tested that on the the last commit that bisect tested > rather than the one it pointed out the problem was with. > > Either way, boot is broken in -next. > Can you check if the below fixes the issue ? Assuming presenting L1 as LLC might be causing issue. Regards, Sudeep -->8 diff --git i/drivers/base/cacheinfo.c w/drivers/base/cacheinfo.c index 167abfa6f37d..a691317f7fdd 100644 --- i/drivers/base/cacheinfo.c +++ w/drivers/base/cacheinfo.c @@ -60,7 +60,8 @@ bool last_level_cache_is_valid(unsigned int cpu) llc = per_cpu_cacheinfo_idx(cpu, cache_leaves(cpu) - 1); - return (llc->attributes & CACHE_ID) || !!llc->fw_token; + return (llc->type == CACHE_TYPE_UNIFIED) && + ((llc->attributes & CACHE_ID) || !!llc->fw_token); }