Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp16586pxb; Wed, 30 Mar 2022 21:34:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhXDsN8/eFejvTWnIxRzVF1f7rH28G1HvbhbeBcEm932ay+M7waWskSD7qg/n2UqVXmmn8 X-Received: by 2002:a63:1a5f:0:b0:381:f043:320d with SMTP id a31-20020a631a5f000000b00381f043320dmr9242674pgm.63.1648701261297; Wed, 30 Mar 2022 21:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648701261; cv=none; d=google.com; s=arc-20160816; b=S+pQQ7l6P3iJSPqAp8qa604yt8gwqEdQN3fIco0kcyZkWOSPl5xW/No1FFLz0xdoX0 uC6CgNQreWoBCYbGaIlDXqa5pwo5r9lBYjnRMGbEXUeTMq0496BhyDMrnqrmHEM680X2 w3uh61GTcyZ0QB8FWh+UtrIeo3HjFtIerAIC4P7fpcRtShV3FBDx5iQXd8zoZEI0HeD7 lpVJGy5xVNCuM0fCL3OjFklbLwLYX3ezYCi9ao9Kg6mIhKsGRSZq4LzwHsnLxh+yLWCT gwt29aeTL8h2CAqM/8av8j3gqlMZa2kg3FnHrrHQST738v00zOY3VdnU8KJO7i0mo86b kCfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RxH3dquIXeQxLIN6WepyB5e2VyZY3bs4yZJXZefyDNg=; b=GVPSaVm4RBBOfK9RxGIk9tysZRjx6muX9d1D3knK+nhsA6PIU7vbx+9jQSxDnagMZf Xc1EaEQ47uYoaiMQ1tWdW+s8N7qtplGAhxn/qIBJ3KHUGcmRZtyhOV3cuiNkutDQxdcV dkc4mYZM6LQ40xiWwCZgJj1fNRP1xxHPlYBCLv8WFNTSPYaRZnhzYrysi2vZCohMSbeJ V2I3LjtK3FA83/jpNpoE2gKpv19wiIInL+xCW/eN33sX+7UVvXhl5y6srVS3iK58jKnB ExvhJlnmt6h2r7fT7SnPBjFam1KesMTa1Q8BWbC3BFjjC8Bek3gz17n8utp+iE84l98U aA3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X2WfVG1c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c15-20020a170902d48f00b00153faf9d66bsi7471709plg.447.2022.03.30.21.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Mar 2022 21:34:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X2WfVG1c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 053011E5201; Wed, 30 Mar 2022 20:26:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232791AbiC3L7q (ORCPT + 99 others); Wed, 30 Mar 2022 07:59:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344639AbiC3LxV (ORCPT ); Wed, 30 Mar 2022 07:53:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02CF5269356; Wed, 30 Mar 2022 04:49:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3461961616; Wed, 30 Mar 2022 11:49:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FBBCC36AE2; Wed, 30 Mar 2022 11:49:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648640959; bh=93YLaa0zQ7hqgghUl04JHh02d/eZiQqyJBOIBGaKxuc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X2WfVG1ctqfGWgEO5xVlJXG6I4lmDc42ujXfsD5HMwDvRUXT9R3ZLK9wxyzrSYxaJ 0ER05E+95mH+IW852ORaTrFB4AW1LrSt31Lp/UK8Kc5VRs6H/incTrgrgyAElsON0a /RcdZ8kBoCMo63FV+gUdhYjXiqKAm/OIiCUVtlhZUWQwf8T1BlInt7s6hhaC/c35o6 3SmsuEQVwX7evpP4RG872gC97GvrgcIE50odxxvDVbwDGnMEnTaShiBVR1N5sNnqUs xH9ylkNPlvtZTT/mPUjhzOKdZR68HvVpCgplEbGrD1JAXawYoAlQx9wOXwMkC6o8DA uZhgFqM1ZLzzg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Richard Schleich , Stefan Wahren , Florian Fainelli , Sasha Levin , robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.16 30/59] ARM: dts: bcm2711: Add the missing L1/L2 cache information Date: Wed, 30 Mar 2022 07:48:02 -0400 Message-Id: <20220330114831.1670235-30-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220330114831.1670235-1-sashal@kernel.org> References: <20220330114831.1670235-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Richard Schleich [ Upstream commit 618682b350990f8f1bee718949c4b3858711eb58 ] This patch fixes the kernel warning "cacheinfo: Unable to detect cache hierarchy for CPU 0" for the bcm2711 on newer kernel versions. Signed-off-by: Richard Schleich Tested-by: Stefan Wahren [florian: Align and remove comments matching property values] Signed-off-by: Florian Fainelli Signed-off-by: Sasha Levin --- arch/arm/boot/dts/bcm2711.dtsi | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi index 21294f775a20..89af57482bc8 100644 --- a/arch/arm/boot/dts/bcm2711.dtsi +++ b/arch/arm/boot/dts/bcm2711.dtsi @@ -459,12 +459,26 @@ #size-cells = <0>; enable-method = "brcm,bcm2836-smp"; // for ARM 32-bit + /* Source for d/i-cache-line-size and d/i-cache-sets + * https://developer.arm.com/documentation/100095/0003 + * /Level-1-Memory-System/About-the-L1-memory-system?lang=en + * Source for d/i-cache-size + * https://www.raspberrypi.com/documentation/computers + * /processors.html#bcm2711 + */ cpu0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a72"; reg = <0>; enable-method = "spin-table"; cpu-release-addr = <0x0 0x000000d8>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <256>; // 32KiB(size)/64(line-size)=512ways/2-way set + i-cache-size = <0xc000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; // 48KiB(size)/64(line-size)=768ways/3-way set + next-level-cache = <&l2>; }; cpu1: cpu@1 { @@ -473,6 +487,13 @@ reg = <1>; enable-method = "spin-table"; cpu-release-addr = <0x0 0x000000e0>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <256>; // 32KiB(size)/64(line-size)=512ways/2-way set + i-cache-size = <0xc000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; // 48KiB(size)/64(line-size)=768ways/3-way set + next-level-cache = <&l2>; }; cpu2: cpu@2 { @@ -481,6 +502,13 @@ reg = <2>; enable-method = "spin-table"; cpu-release-addr = <0x0 0x000000e8>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <256>; // 32KiB(size)/64(line-size)=512ways/2-way set + i-cache-size = <0xc000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; // 48KiB(size)/64(line-size)=768ways/3-way set + next-level-cache = <&l2>; }; cpu3: cpu@3 { @@ -489,6 +517,28 @@ reg = <3>; enable-method = "spin-table"; cpu-release-addr = <0x0 0x000000f0>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <256>; // 32KiB(size)/64(line-size)=512ways/2-way set + i-cache-size = <0xc000>; + i-cache-line-size = <64>; + i-cache-sets = <256>; // 48KiB(size)/64(line-size)=768ways/3-way set + next-level-cache = <&l2>; + }; + + /* Source for d/i-cache-line-size and d/i-cache-sets + * https://developer.arm.com/documentation/100095/0003 + * /Level-2-Memory-System/About-the-L2-memory-system?lang=en + * Source for d/i-cache-size + * https://www.raspberrypi.com/documentation/computers + * /processors.html#bcm2711 + */ + l2: l2-cache0 { + compatible = "cache"; + cache-size = <0x100000>; + cache-line-size = <64>; + cache-sets = <1024>; // 1MiB(size)/64(line-size)=16384ways/16-way set + cache-level = <2>; }; }; -- 2.34.1