Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 87A6EC433FE for ; Fri, 21 Oct 2022 04:48:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Qn6BgfOO8X7aJzo0u5uhB8iB1L64iJrlDPnQ7D5NCt0=; b=wG3CbtSBYAkIB3 6h2X++g/eCQU4iwtBByjePBkA3zGBDzsFbf6hV6zlGOjn+7rS05d84AeQAgLhLWZn8Yip8KcYjhyG hMpJjZsL1DAKD1kxE1EP3fqKFI/7NsRDijdxo44z+1gT0ULZ1dh83E+wiWkgFhdhhO1Z/aJoyjr3/ 1GC9KhgTRBgpdZHWD1bmUSjXYNhk1WYddDHj0EBS3+KZI+BLz/3nBLLTdGSqVGzDM42QeF15r1hRT nhJlX31KXa4D9g3xw3BU2AH2HoFUOkWR8JvQenb7ePgM3yaq80Z3aE/VW9qikB9zwIbuwcopd67vz CR6mLg9xsU6ucoQwrunA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oljwH-0058NZ-C9; Fri, 21 Oct 2022 04:47:21 +0000 Received: from box.stevenhay.com ([2a01:7e01:e001:325::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oljwE-0058Lj-9Q for linux-arm-kernel@lists.infradead.org; Fri, 21 Oct 2022 04:47:20 +0000 Received: from authenticated-user (box.stevenhay.com [172.104.133.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.stevenhay.com (Postfix) with ESMTPSA id D8D7820374; Fri, 21 Oct 2022 00:47:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=stevenhay.com; s=mail; t=1666327631; bh=tjsJAP2cDDLMiJtUSWcDvPlpdQmmfi8ObhZLtPuiP88=; h=From:To:Cc:Subject:Date:From; b=ONB+R0ZCB0gwDb08zp6AL+Uifz+rzjg4oWssC7Ifpol4yM/IaP3SBDF4Jj/z/Lrvz +3xSDlYW1r3mL4OKobkc0h8gCL49MHqh3gPa6P2KUWi6Qn1ZJ8RWZh77PG49ojrmnO wSAqrG2/gFYlo2NmMrR1/UlS2WJ/bYMG3hi4iiIWELRLtYKBEV014YRO/lBjWmcOir giTRB/Y3LqTTZ4H5cHIpR3IyLehq7wVKXuTbRmoIHTyBlzRfSSFGXyZqM0eBTOfx55 CWQt9sJiZG2Mjn6S856boYV8v5Jr7VMhMgFXUdN44GP29RthXGfoQqm3pZmz1i+9+f M9wKmjYkGbmYw== From: Steven To: gregory.clement@bootlin.com Cc: me@stevenhay.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH] This commit updates the armada-37xx and armada-372x device tree files to add L1 and L2 cache information. This information is provided by the following sources: Date: Fri, 21 Oct 2022 00:46:50 -0400 Message-Id: <20221021044650.345647-1-me@stevenhay.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221020_214718_631706_BAEA7648 X-CRM114-Status: UNSURE ( 9.86 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Description of the Armada 3700 series cache configuration: https://datasheet.datasheetarchive.com/originals/crawler/marvell.com/18bd41681c6d1d9932> Description of the ARM Cortex A53 L1 and L2 memory systems: https://developer.arm.com/documentation/ddi0500/e/level-1-memory-system/about-the-l1-me> --- arch/arm64/boot/dts/marvell/armada-372x.dtsi | 9 +++++++++ arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-372x.dtsi b/arch/arm64/boot/dts/marvell/armada-372x.dtsi index 5ce55bdbb995..a9c36d997082 100644 --- a/arch/arm64/boot/dts/marvell/armada-372x.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-372x.dtsi @@ -22,6 +22,15 @@ cpu1: cpu@1 { reg = <0x1>; clocks = <&nb_periph_clk 16>; enable-method = "psci"; + /* https://datasheet.datasheetarchive.com/originals/crawler/marvell.com/18bd41681c6d1d9932acc66ac0482950.pdf */ + /* https://developer.arm.com/documentation/ddi0500/e/level-1-memory-system/about-the-l1-memory-system */ + d-cache-size = <0x8000>; // 32KB 4-way set-associative data cache + d-cache-line-size = <64>; // Fixed line length of 64 bytes + d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set + i-cache-size = <0x8000>; // 32kB 2-way set-associative data cache + i-cache-line-size = <64>; // Fixed line length of 64 bytes + i-cache-sets = <256>; // 32KiB(size)/64(line-size)=512ways/2-way set + next-level-cache = <&l2>; }; }; }; diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi index df152c72276b..d1f7b1acd54b 100644 --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi @@ -46,6 +46,25 @@ cpu0: cpu@0 { reg = <0>; clocks = <&nb_periph_clk 16>; enable-method = "psci"; + /* https://datasheet.datasheetarchive.com/originals/crawler/marvell.com/18bd41681c6d1d9932> */ + /* https://developer.arm.com/documentation/ddi0500/e/level-1-memory-system/about-the-l1-me> */ + d-cache-size = <0x8000>; // 32KB 4-way set-associative data cache + d-cache-line-size = <64>; // Fixed line length of 64 bytes + d-cache-sets = <128>; // 32KiB(size)/64(line-size)=512ways/4-way set + i-cache-size = <0x8000>; // 32kB 2-way set-associative data cache + i-cache-line-size = <64>; // Fixed line length of 64 bytes + i-cache-sets = <256>; // 32KiB(size)/64(line-size)=512ways/2-way set + next-level-cache = <&l2>; + }; + + l2: l2-cache0 { + /* https://datasheet.datasheetarchive.com/originals/crawler/marvell.com/18bd41681c6d1d9932> */ + /* https://developer.arm.com/documentation/ddi0500/e/level-1-memory-system/about-the-l1-me> */ + compatible = "cache"; + cache-size = <0x40000>; // 256kB + cache-line-size = <64>; // Fixed line length of 64 bytes + cache-sets = <256>; // 256kB(size)/64(line-size)=4000ways/16-way set + cache-level = <2>; }; }; -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel