Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2908401rdb; Tue, 6 Feb 2024 01:03:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IHPRBbHhfv8xu+rLrnm6LjbocWgwXJ9eJpOxHQZogEgDPoYRn9Wy4C47a8cATPor8qAcV4f X-Received: by 2002:a05:620a:9ce:b0:783:6eae:547 with SMTP id y14-20020a05620a09ce00b007836eae0547mr13415899qky.22.1707210181626; Tue, 06 Feb 2024 01:03:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707210181; cv=pass; d=google.com; s=arc-20160816; b=UU0RBeBAwZzEW2cT6BmYZC/q9SDVjN/1ruscRWn4hq86ji2tIXqzTWkTvHJvvE7KVZ zlQM5tsk/0Ni/Um6w4N7zV2bgxpH6JJ+XRLx56ySiYxoWbWlKrl8VIeJiyjDIB7AXhbI w2qGZ8U/O1SrTBVxZTgAbTgBhfjdrxzuCK1dIq37j2DJXeFZxoYZ/TUUDKbjgTpAkS1J QtTsoNuogfgqTTTA03Bf5bn+iwQJaM7v78o2bZB9nOsRY9MhRlW1IQIiNe8NkyACoaNu q93rVLVzV46MqjvulwF5b8H76UIHf2OSVTBXkR2u2kvp78B4SIJxTWb8EuLUQ4TTIhqc R7Dw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=qDA/c0GB/jdNWETef5L0VlQycCa3Yy8UHzYwG7wQK70=; fh=C+b0/RCDc8D1LFIEjpp0x20aUsxgxxd6jC9lGu5B/qw=; b=aiyCTN5+POgXmw9CPs6po6y323gsqWI1e8yluZO9//xSo0uc4813tvhBoFhGfBJZzK 0ujPGl8NMFJmJXFojADKde2j5WKCMDJfHHlJb6C/Dm6oqe71AD9GbaYxKA8rjz9ptfMN /p1vmR1pNaGjlFkqvEeSXIi5CNb+1f+l8HPbFj3AJ6E0GqW2fyDLYLNn2rCdFJ2Vh+Cf HJZxa7cfblpvSFBbiXykciwhdBz7n4fN0bGlF+vPJl8kytKT4+eZwvVXVl74BFTlTKTq QNh/4CmChvSCHXJT2f7CdP6I9Jd9htdahWFgyY8M5eleR/0qOGMYOSqjZDMg0gh/rh+/ siuA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ui2M4FW/"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-54553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54553-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCXIOoD+a38x0adXlWAPdvqjyfW8U3Y2o/DhqKodjmBjHL4QymqAW4ylNuX4csHSaOwYxyRi+DCqJ6us4Qh74bYk2/k4pF+S2ZoqK6LtHA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 9-20020ac85949000000b0042c2a68b984si1874688qtz.503.2024.02.06.01.03.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 01:03:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ui2M4FW/"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-54553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54553-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 557311C22845 for ; Tue, 6 Feb 2024 09:03:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADAEC12F398; Tue, 6 Feb 2024 09:00:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ui2M4FW/" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD68312AAD6 for ; Tue, 6 Feb 2024 09:00:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707210010; cv=none; b=upZXtiruN57dWcPIuRmFR8+96nxMjKSMy31jQPbc3/hE6sVRgPrYnPGs8F1+/YHYJIahAhCGBBRqytSnnWyNRR/yqxjx3c5nFpudfeAqf8FHV2PKtSEYq/zHfhlXTAvgTpOPURIWrH6Hpzj+jJ2hAsXG7ObQ6HVI8AxIIyO0tDM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707210010; c=relaxed/simple; bh=gtjY3sQf2DqdnEftJrneasK4+TGQaggqxQT/e+BRxjs=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=HhOJ/KDDVfy6P8KhJ/EvNk8OXBxqYdz3aK+rlfYauUQkA+SzDlfcIbaXxhjMvPNBFbULlYVVCZMignouEmapC4VfINhJaZ3Fz3k8sgcW9Gmm3SkDucIum+8xzhLWVRuFWeTjB9K3QT+94CCNSff6z2GoMjz5jgD38nR+RmxeHFk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ui2M4FW/; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-33b45e8a670so285284f8f.3 for ; Tue, 06 Feb 2024 01:00:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707210007; x=1707814807; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=qDA/c0GB/jdNWETef5L0VlQycCa3Yy8UHzYwG7wQK70=; b=ui2M4FW/WzUKN1I1jCz1otybqocvIPwXXmxwnxbtClFCb7bJt5j1p81h44eQEklqay o6M3N2uU4M3IWGh+eqh/Kw4lfDJLgnAmcVuykjd99smFkCq2eNNr1zEDY7/vavxqrsx3 tNfmE4OsTBdkvFPORiJPW+YT0yGwV3boWjQ1GG8P7AWRlWUI8Jg6rFGzqeNwc/N01KDQ LzvnWnd37HO5nCQkV51soDviDQderH0Kpb3zyc44DZT+DyniqHl8lYsuwNAqqRbkWpoO CdCOBrJsodsaO5UHastGPLRLBjW/nwcaF60T2WZBl25tgjn0vNsTAYVD0Tqi9g+rkcw2 Jv3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707210007; x=1707814807; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=qDA/c0GB/jdNWETef5L0VlQycCa3Yy8UHzYwG7wQK70=; b=a7vfw/Pl8wXJcR7gmEVRPTybBGa9RyTsYunKJU2gx+eN375sRqkBLtTYkv5D3cuAhM 3mE0ahxWIXjK/2WnEtgDp0VioUvS1Ps0FhdILNaMji6O2+Av4DNrsHPnxgPtvnQKRslg SWLhtPplORhKwF4MRcRhC2mliHvVkZO2i2mZNlZHBBdWTAl1Hzy0spAwCT7L1JnLI0ZI SmvTetKdrDqNa1Q+AGw+j4MxOtCkqIG2mhxs2LoJsQdDhYkJiHumKOGQstS6usq231Zj sFNvaopjkew3VRwYpwPjnD+uXL/c89dTb/gdhMgLoNlur1z+5PgMGP1hv29iyE0mgHk3 zvpw== X-Gm-Message-State: AOJu0Yy6ATPA59Wt0ayWqtCkSNggRKUKBxIuL9yXhC25sKvlu2Gy5ViD SFybbX4J6+YK7MwblVOq3aJYfIwT8PO0skBEj/d8YQRfq5RnMuUlTzA/VnSKr2U= X-Received: by 2002:a05:6000:11c7:b0:336:6a76:40cd with SMTP id i7-20020a05600011c700b003366a7640cdmr671376wrx.62.1707210006793; Tue, 06 Feb 2024 01:00:06 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUdRnH6cUHjQXQoS9ElKgXTzO05+dvNgzt+0WhToP1pzwBZGlGik+t7zOpL2tmY8wk15cOXta1sIKcTs5uIdxm6Kwx1xQ1nbMuXLfhMNwIhi7BksXBvDhm/pAZg6q0LJKBYp9UEVZnryQIHFJOLiaaAcb0WueT1NE2xvMSEy1dG4kbqEAg9ig25tJEziWm3m/1hySTr759JCUJW4cJ1xmnSOxmQq1nvkdCF6TdqsFB9aQNOp+p5L3sGKxezskvX3qvbalN47b+ilmLBtvl+YFti3nxvJeEpHdPnl/MGd+1p45Y347nZ7XeftyPq4oajVyVYfOp+UEmchG8u+T1cthveZwHUwNCoxzYBxhIN0a7JNG0eEPiJkEavTKCXpUiUT0ejFt/0poeZdaza9egnApOE/Q== Received: from ?IPV6:2a01:e0a:982:cbb0:ba23:8574:fa8:28dd? ([2a01:e0a:982:cbb0:ba23:8574:fa8:28dd]) by smtp.gmail.com with ESMTPSA id g14-20020a05600c4ece00b0040fe4b733f4sm930244wmq.26.2024.02.06.01.00.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Feb 2024 01:00:06 -0800 (PST) Message-ID: Date: Tue, 6 Feb 2024 10:00:05 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCHv1 4/5] arm64: dts: amlogic: Add cache information to the Amlogic S922X SoC Content-Language: en-US, fr To: Anand Moon , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240205171930.968-1-linux.amoon@gmail.com> <20240205171930.968-5-linux.amoon@gmail.com> Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+a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lySUVYu3SD6YBYnNi3G5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: <20240205171930.968-5-linux.amoon@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 05/02/2024 18:19, Anand Moon wrote: > As per S922X datasheet add missing cache information to the Amlogic > S922X SoC. > > - Each Cortex-A53 core has 32 KB of instruction cache and > 32 KB of L1 data cache available. > - Each Cortex-A73 core has 64 KB of L1 instruction cache and > 64 KB of L1 data cache available. > - The little (A53) cluster has 512 KB of unified L2 cache available. > - The big (A73) cluster has 1 MB of unified L2 cache available. Datasheet says: The quad core Cortex™-A73 processor is paired with A53 processor in a big.Little configuration, with each core has L1 instruction and data chaches, together with a single shared L2 unified cache with A53 And there's no indication of the L1 or L2 cache sizes. Neil > > To improve system performance. > > Signed-off-by: Anand Moon > --- > [0] https://dn.odroid.com/S922X/ODROID-N2/Datasheet/S922X_Public_Datasheet_V0.2.pdf > [1] https://en.wikipedia.org/wiki/ARM_Cortex-A73 > [2] https://en.wikipedia.org/wiki/ARM_Cortex-A53 > --- > arch/arm64/boot/dts/amlogic/meson-g12b.dtsi | 62 ++++++++++++++++++--- > 1 file changed, 55 insertions(+), 7 deletions(-) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi > index 86e6ceb31d5e..624c6fd763ac 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi > +++ b/arch/arm64/boot/dts/amlogic/meson-g12b.dtsi > @@ -49,7 +49,13 @@ cpu0: cpu@0 { > reg = <0x0 0x0>; > enable-method = "psci"; > capacity-dmips-mhz = <592>; > - next-level-cache = <&l2>; > + d-cache-line-size = <32>; > + d-cache-size = <0x8000>; > + d-cache-sets = <32>; > + i-cache-line-size = <32>; > + i-cache-size = <0x8000>; > + i-cache-sets = <32>; > + next-level-cache = <&l2_cache_l>; > #cooling-cells = <2>; > }; > > @@ -59,7 +65,13 @@ cpu1: cpu@1 { > reg = <0x0 0x1>; > enable-method = "psci"; > capacity-dmips-mhz = <592>; > - next-level-cache = <&l2>; > + d-cache-line-size = <32>; > + d-cache-size = <0x8000>; > + d-cache-sets = <32>; > + i-cache-line-size = <32>; > + i-cache-size = <0x8000>; > + i-cache-sets = <32>; > + next-level-cache = <&l2_cache_l>; > #cooling-cells = <2>; > }; > > @@ -69,7 +81,13 @@ cpu100: cpu@100 { > reg = <0x0 0x100>; > enable-method = "psci"; > capacity-dmips-mhz = <1024>; > - next-level-cache = <&l2>; > + d-cache-line-size = <64>; > + d-cache-size = <0x10000>; > + d-cache-sets = <64>; > + i-cache-line-size = <64>; > + i-cache-size = <0x10000>; > + i-cache-sets = <64>; > + next-level-cache = <&l2_cache_b>; > #cooling-cells = <2>; > }; > > @@ -79,7 +97,13 @@ cpu101: cpu@101 { > reg = <0x0 0x101>; > enable-method = "psci"; > capacity-dmips-mhz = <1024>; > - next-level-cache = <&l2>; > + d-cache-line-size = <64>; > + d-cache-size = <0x10000>; > + d-cache-sets = <64>; > + i-cache-line-size = <64>; > + i-cache-size = <0x10000>; > + i-cache-sets = <64>; > + next-level-cache = <&l2_cache_b>; > #cooling-cells = <2>; > }; > > @@ -89,7 +113,13 @@ cpu102: cpu@102 { > reg = <0x0 0x102>; > enable-method = "psci"; > capacity-dmips-mhz = <1024>; > - next-level-cache = <&l2>; > + d-cache-line-size = <64>; > + d-cache-size = <0x10000>; > + d-cache-sets = <64>; > + i-cache-line-size = <64>; > + i-cache-size = <0x10000>; > + i-cache-sets = <64>; > + next-level-cache = <&l2_cache_b>; > #cooling-cells = <2>; > }; > > @@ -99,14 +129,32 @@ cpu103: cpu@103 { > reg = <0x0 0x103>; > enable-method = "psci"; > capacity-dmips-mhz = <1024>; > - next-level-cache = <&l2>; > + d-cache-line-size = <64>; > + d-cache-size = <0x10000>; > + d-cache-sets = <64>; > + i-cache-line-size = <64>; > + i-cache-size = <0x10000>; > + i-cache-sets = <64>; > + next-level-cache = <&l2_cache_b>; > #cooling-cells = <2>; > }; > > - l2: l2-cache0 { > + l2_cache_l: l2-cache-cluster0 { > compatible = "cache"; > cache-level = <2>; > cache-unified; > + cache-size = <0x80000>; > + cache-line-size = <64>; > + cache-sets = <512>; > + }; > + > + l2_cache_b: l2-cache-cluster1 { > + compatible = "cache"; > + cache-level = <2>; > + cache-unified; > + cache-size = <0x100000>; > + cache-line-size = <64>; > + cache-sets = <512>; > }; > }; > };