Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2201947rwl; Thu, 13 Apr 2023 03:10:49 -0700 (PDT) X-Google-Smtp-Source: AKy350ZIrXYAUwsmEKToKuu4jZ2AxlSbmUs6czvRzYszKa4uXRBy2oPHyb6xTnXU3JibZ3O+NDN/ X-Received: by 2002:aa7:c38a:0:b0:504:8b5c:a961 with SMTP id k10-20020aa7c38a000000b005048b5ca961mr2047577edq.18.1681380649351; Thu, 13 Apr 2023 03:10:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681380649; cv=none; d=google.com; s=arc-20160816; b=Ns9Q6on5l7b2n32E7XsZTCRVadwWf1SDW9htoPDJojQXkdaBR88pocMhAkVDFA7CrB AM8Od01IY34Vszp9ZdOXoPGFD7APeXu9MCS4VDiOlW8TGXCuOozkJtR9QWa/+FxFHMI3 orfWU3kRu49SaAQW7zU5EnOV/Nx1DIOZmLoYd68pZqjvxxZh85xV936aDDo9zkP0sKtF M5iF1hQYAMmkQUiEejSrIqp2RIiAIwhD9yLyR++NfD3e9ZB+hhNu6RDoVeLHFq0Wrv47 gP5Db3e6HrHRTw2AVw4lXCT2pR1xbpHubWeFZCCMKh9zMoYG+kkBm/HhP/28hzwFrL2R RgJg== 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:dkim-signature; bh=MahB42LmzX7QN0BqdafUMTqdpJKiPq953vM8bvDKx2Y=; b=zaMvrPz9ATBVuuPD/0zUpobEFtdt7kCTN5LQyrKwTKrr5xVTuIA6d8g8J7HY7ZAdFu +p8m0qXlGfoDAkxhg767WPAQhxRWndwMQiPHewnSdtEEWDxGvTfn+sso8aPTcBgToxSd MATr2PVEG3HnyHwqooBNTjFG966k7lsl1r7eJzHzr7xnFg40kHdGwxgvPa1foLpccjBt mcM5qjMp/tpy39VFjyiVfbOepKlHZNUJC2SAERGvN5Mni6xrfGaetMfV9o1OivvyuicK OFcWs2cTEy9BO7VCtvRgpDnmThpz567cNChg9Ko6uXq6zm7KSJJZ2DNWUUHDoN7fc84i uPgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="y5/MMoVy"; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fp16-20020a1709069e1000b0094de15eea22si1631898ejc.299.2023.04.13.03.10.25; Thu, 13 Apr 2023 03:10:49 -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; dkim=pass header.i=@microchip.com header.s=mchp header.b="y5/MMoVy"; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230224AbjDMKGe (ORCPT + 99 others); Thu, 13 Apr 2023 06:06:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230177AbjDMKGa (ORCPT ); Thu, 13 Apr 2023 06:06:30 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54AC3903D for ; Thu, 13 Apr 2023 03:06:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1681380389; x=1712916389; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=MahB42LmzX7QN0BqdafUMTqdpJKiPq953vM8bvDKx2Y=; b=y5/MMoVyR5umzf8oZA+CblQa+/hDwjhMZszx2MFaaq88LZquKPrTnsOZ KJmJv0gsvcYzFwkcKIEI8tyAowebMrfzZDA76zfEkbn8tdAhvavg3UI/W OtdQ+VGj6ZuytwhxXDw+hCBLeOlvuKK9nLSO21e8efjEX2mj9H0kb5vhR A+jPpjJcXblCKUudHqfKeMU2zmsF4D1RCfzZkNlX/4yvQTx6/0O+Y6Gcn eiLPy4btLj8JOY9ZWFKc8ltMs2LfmpHdfgjFTbzfhCFhzy7IORpkSSqoJ MxIhF0ggbJXl7chct6LQqiRxWAyBETPsMfvsj5kJRzVAgmk24bABdEUB0 A==; X-IronPort-AV: E=Sophos;i="5.98,341,1673938800"; d="asc'?scan'208";a="146868096" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Apr 2023 03:06:28 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 13 Apr 2023 03:06:25 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Thu, 13 Apr 2023 03:06:24 -0700 Date: Thu, 13 Apr 2023 11:06:08 +0100 From: Conor Dooley To: Pierre Gondois CC: , Radu Rendec , Alexandre Ghiti , Will Deacon , Sudeep Holla , Greg Kroah-Hartman , "Rafael J. Wysocki" , Palmer Dabbelt , Gavin Shan Subject: Re: [PATCH v3 2/4] cacheinfo: Check cache properties are present in DT Message-ID: <20230413-dimness-shove-5ecd9d69bfff@wendy> References: <20230413091436.230134-1-pierre.gondois@arm.com> <20230413091436.230134-3-pierre.gondois@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dQquVz6905+48oFs" Content-Disposition: inline In-Reply-To: <20230413091436.230134-3-pierre.gondois@arm.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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 --dQquVz6905+48oFs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 13, 2023 at 11:14:32AM +0200, Pierre Gondois wrote: > If a Device Tree (DT) is used, the presence of cache properties is > assumed. Not finding any is not considered. For arm64 platforms, > cache information can be fetched from the clidr_el1 register. > Checking whether cache information is available in the DT > allows to switch to using clidr_el1. >=20 > init_of_cache_level() > \-of_count_cache_leaves() > will assume there a 2 cache leaves (L1 data/instruction caches), which > can be different from clidr_el1 information. >=20 > cache_setup_of_node() tries to read cache properties in the DT. > If there are none, this is considered a success. Knowing no > information was available would allow to switch to using clidr_el1. >=20 > Fixes: de0df442ee49 ("cacheinfo: Check 'cache-unified' property to count = cache leaves") > Reported-by: Alexandre Ghiti > Link: https://lore.kernel.org/all/20230404-hatred-swimmer-6fecdf33b57a@sp= ud/ > Signed-off-by: Pierre Gondois Since there's no longer an error printed Reviewed-by: Conor Dooley Thanks for the update Pierre, Conor. --dQquVz6905+48oFs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZDfUEAAKCRB4tDGHoIJi 0gghAQCTRxTbb6SwSqB9GdjRpJ6WWL9YQP9e2xv61t0mE/HVDQD+KBkTQ7rvk/HN 4pYNhhCVpNQcDagMZ0UZdRfbNKTj2g8= =mM+f -----END PGP SIGNATURE----- --dQquVz6905+48oFs--