Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp474648lqs; Tue, 5 Mar 2024 07:24:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUKOLToqC4FIFoF3/lV1Bnr/HAx7brnjgCPlfp623tTMtA65OlswU0m7I1v1jasdJOnvDihwMYNudrtY+iyS6kQ3BJJypNRqnR1y2hrfA== X-Google-Smtp-Source: AGHT+IGDYXnq9gkZyaVWOIFaY/n5MFKUYKuFiLdxY8dZZal5QHXrk72rznRI3jGXpqKkw/H+VKg9 X-Received: by 2002:a17:90a:3907:b0:29b:4dfc:7c34 with SMTP id y7-20020a17090a390700b0029b4dfc7c34mr5051426pjb.33.1709652273639; Tue, 05 Mar 2024 07:24:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709652273; cv=pass; d=google.com; s=arc-20160816; b=u1RaW4fWqkJ0IEWq90VRz9C/qiGRCt329xCzpfdscBy3L241vQykfUDMLOw6nVYCco pZpSi+77/CJtrhCcqCp9RKbvnYONuFl5ZPTVVvt0XOKv9oPZtyT1wtAft7kECgSroXau 6749Sz1xirCmwu2X4KJT3GL0QdfmJ6fK6kHs13ZurkuMH7NQuQQtE/g32PA9lCXkEMzH fAztZDUb7dULA3f2rWe2hoe4mFoZ8ivwdZ7kMVOKLFzk+tRDa+l43wV5tUOz0RaCX2r9 O8c7j8Jqm/JmXLh+6fTKQB77UT4z0d2T0spQuVaRNZVcy9x9LCst+NAEcHetoOgu2qw7 0+dg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=vTjQrjqX0zPrUCY9YI+ukkpdk+8Igru9bp//+YrCF5s=; fh=4CFuWEopTs1/7nV8vBGdVhuBjuLOVep+LJHQ9rFMRMk=; b=xKUlZDUlu6byVl+P32LOUsiOPWNBF1h0A/T4yo6oHTI/POolSK/DiWAtd4fAdg01Ev eJHjirmXbJQzyH3BhR0aMurEIto00j0E8TOaQt3wtoEG2JfE+hizgBaD4+gpkuFtIWLw HKW3RKM65ur5Y+RrO3xeRgAr0lo9A+3cbYivf65QE6FX8UZvra8G6QLgG3WlBEYNCAIT 9GgAqg7YldbhZOAya8Xy9TM/jftAx9zKzLtkMSsIChs0vyY9PG/DOiZZVFiL6gsWVcRV vnj+WHrLET5zolabWYb1tfoRv4mtAWhr6TjsSVLYmeHI+kHtNpJaF2fIADTPEJYNXWMW ia9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@osasysteme.de header.s=19022017 header.b=YKwE2vlv; arc=pass (i=1 spf=pass spfdomain=osasysteme.de dkim=pass dkdomain=osasysteme.de); spf=pass (google.com: domain of linux-kernel+bounces-92584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92584-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g15-20020a17090ace8f00b0029b6b2ff7f3si710571pju.72.2024.03.05.07.24.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 07:24:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@osasysteme.de header.s=19022017 header.b=YKwE2vlv; arc=pass (i=1 spf=pass spfdomain=osasysteme.de dkim=pass dkdomain=osasysteme.de); spf=pass (google.com: domain of linux-kernel+bounces-92584-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92584-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6567DB212B8 for ; Tue, 5 Mar 2024 15:14:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D84731272B2; Tue, 5 Mar 2024 15:14:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=osasysteme.de header.i=@osasysteme.de header.b="YKwE2vlv" Received: from secondary.pambor.com (secondary.pambor.com [46.38.233.203]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 666DD1272A0; Tue, 5 Mar 2024 15:14:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.38.233.203 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709651689; cv=none; b=OO8FAzJ2gosK47WkgDSPC/BfUOT6nTrb8jWTAgap+ZzIgV0GXMiwNDVW3RfAw6upGEL0cbKeOHWzI1kuxUaJvRoI/z0w7QFxSMvRNIHItK0UlGMsIROHCX0nijBzuRucVWzdu2LkGyMUluZ7TsDNQ1K9wwLV+JfWzhbl6EfC/Ho= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709651689; c=relaxed/simple; bh=VOYq/MFTo0yEAHpbuYHcwnTD5HvVjidlBhWkaXa2qP8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=f052fS0W4Rej+TocanB+uLAhR0+iDZDX6k9AIi2xx23Lbvhz8Ev6s4FoQZrXd/d7y5PivMKk6QTTgrxhjJXTuuwh3z/xAZXv0vhzD+ReUc/OkdTi0glAaDzPuc25nKL/6E6WnggbNkGEf516K2OggqjDxRdOfwg80q0jCyAq6XE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=osasysteme.de; spf=pass smtp.mailfrom=osasysteme.de; dkim=pass (2048-bit key) header.d=osasysteme.de header.i=@osasysteme.de header.b=YKwE2vlv; arc=none smtp.client-ip=46.38.233.203 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=osasysteme.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=osasysteme.de Received: from localhost (localhost [127.0.0.1]) by secondary.pambor.com (Postfix) with ESMTP id 5A24E6F03B4; Tue, 5 Mar 2024 16:14:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=osasysteme.de; s=19022017; t=1709651682; bh=VOYq/MFTo0yEAHpbuYHcwnTD5HvVjidlBhWkaXa2qP8=; h=From:To:Cc:Subject:Date:From; b=YKwE2vlvRdJoqi6l+wjPZe/8ZFrPXzXlssXOhHNFBFJ/Fu0OgEWmeXQg2u9BUr4gl Lu/6ROceiY85q6HQaBHEapUe39htU+nilNP53HixffXqhjIJEKtU/NSjEklWx5DG1h JQShK0YX3E1GajudwFGkc8rZ9A8dJi+lDU3D7ZbJD99GzijGnm4DWXvOGgdk/4fFjB fXiBi+XXphofSQ9qDrFNmbDmZ5xZSzzqPyS1ovNSrw+yvFVqjbDrjXOgc1Hyj4qrvm YCW+lLTr+zVFZDdZZxG+50uQcIu9BNjNsyShdJwXnPEgmAnC9fe7SQFTAY2yI22hh3 FiY25YXR4dE3g== X-Virus-Scanned: Debian amavisd-new at secondary.pambor.com Received: from secondary.pambor.com ([127.0.0.1]) by localhost (secondary.pambor.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id upWvgw96FKnx; Tue, 5 Mar 2024 16:14:40 +0100 (CET) Received: from chromebook.fritz.box (dynamic-2a02-3100-5dd1-2001-a8cd-25c2-d6af-d5f4.310.pool.telefonica.de [IPv6:2a02:3100:5dd1:2001:a8cd:25c2:d6af:d5f4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.osasysteme.de (Postfix) with ESMTPSA id 1E9796F03A5; Tue, 5 Mar 2024 16:14:40 +0100 (CET) From: Tim Pambor To: Geert Uytterhoeven Cc: Magnus Damm , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tim Pambor Subject: [PATCH] arm64: dts: r9a07g044: Add complete CPU cache information Date: Tue, 5 Mar 2024 16:13:36 +0100 Message-ID: <20240305151336.144707-1-tp@osasysteme.de> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Based on ARM Cortex-A55 TRM and RZG2/L user's manual, each Cortex-A55 has - 32 KB of L1 4-way, set-associative instruction cache - 32 KB of L1 4-way, set-associative data cache Each cache has a cache line length of 64B and therefore there are 32768B/(4 * 64B)=128 sets for each cache. RZG2/L are not configured with the optional per-core L2 cache but only have a L3 cache shared among all cores. In this case, the L3 cache appears as a L2 cache to the system. Therefore, specify "cache-level = <2>" for the L3 cache. Signed-off-by: Tim Pambor --- arch/arm64/boot/dts/renesas/r9a07g044.dtsi | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi index 9f00b75d2bd0..6379c850526a 100644 --- a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi @@ -89,6 +89,12 @@ cpu0: cpu@0 { reg = <0>; device_type = "cpu"; #cooling-cells = <2>; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + i-cache-size = <0x8000>; + i-cache-line-size = <64>; + i-cache-sets = <128>; next-level-cache = <&L3_CA55>; enable-method = "psci"; clocks = <&cpg CPG_CORE R9A07G044_CLK_I>; @@ -99,6 +105,12 @@ cpu1: cpu@100 { compatible = "arm,cortex-a55"; reg = <0x100>; device_type = "cpu"; + d-cache-size = <0x8000>; + d-cache-line-size = <64>; + d-cache-sets = <128>; + i-cache-size = <0x8000>; + i-cache-line-size = <64>; + i-cache-sets = <128>; next-level-cache = <&L3_CA55>; enable-method = "psci"; clocks = <&cpg CPG_CORE R9A07G044_CLK_I>; @@ -109,7 +121,7 @@ L3_CA55: cache-controller-0 { compatible = "cache"; cache-unified; cache-size = <0x40000>; - cache-level = <3>; + cache-level = <2>; }; }; -- 2.43.0