Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2908980rdb; Tue, 6 Feb 2024 01:04:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IHzk6yT+Luqv1P89QmnhRHsUWAoBnXTW/Qs3NN1tVfWKQgYkyYaE3YdeFzxBVQ0mOl9tR8U X-Received: by 2002:a17:906:ca58:b0:a38:1712:ef2b with SMTP id jx24-20020a170906ca5800b00a381712ef2bmr1263065ejb.21.1707210247481; Tue, 06 Feb 2024 01:04:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707210247; cv=pass; d=google.com; s=arc-20160816; b=jU8QA42l2ouRtEJ1eAQbxQdueJ4Qc0hNjpKQHV2pnGYKfX/TXUkZVvo1S5ET9aaXZ9 2towyBgW8cQ3d2J7aqQa/vDBM5p+tdWyspbrWHyp5tNLrHfvMZr961tHJzH15H3Y29bE oa+88d+Ri9M53eXrX9XJxZMRTvfgVQo195DAR2jlJ+ZbIQ+eELWGt+t9FLnhnQdq4TmJ f5qTv1W3yMbf0XcZyS2moyoyyRG4mWNLoCR00nYhJSWSfQuRn5t+KIi/5x8t+3++wPil q7aGN+epHN5zuXMhbBuhOFO+abMJC6qRTRAx10dOx8NFGMXkm6M0mJUi36L4aUla6JT8 zSfg== 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=/dIUJgwnOyWSt0uclCiKcW3R3F0dsn7PgLN2KshxQ3w=; fh=mmU/PvHqpMsS+eo4cLmwZjHZ0EgRiQwNuMGVkN9LeVo=; b=Bva33GsNYmQ0MbgaLFl1/WuiM34EEuXgeBVw4ZQkbqm60u8qIm2fE9GgD/osQMtpLa Bt2+C9CaIj0rifnrqzKHspfRMiks1+CqcIPHCn5JUrrk9T+A3Ikq4RMpm0fQHQYbFsrt VOSdQ1hzUiCipQVylfZ0B/aX3/Xfoo9yDHLLqSCpZ7D0e5yl8yPpS/DMNlK7z8c9HDiX SlcaVOMr0DE/whfRoLg1+One6G7z44qlqNgzEsiPXnScbSWWeeKzYZKyLwH3EBIMdtQ3 SjwMqEZFAZLOuFRSl42o6q+w8+IHyarepjx7zK2DsPyizLyhTfmDA6lBeb60DeRvweeW /DaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JHrPMfKb; 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-54556-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54556-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; AJvYcCXJsPjCbpHkx84o26z+83/xZT8fDlUEPZLrRCZ3ZIs9eoI+ZE4w/4KjqNAF/5bu742q1Mc8u23RC8pKJbMpvMqJP19ZAYsBFhpzycZHpA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lg9-20020a170906f88900b00a361240236esi858920ejb.777.2024.02.06.01.04.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 01:04:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54556-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JHrPMfKb; 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-54556-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54556-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 13CAD1F244A6 for ; Tue, 6 Feb 2024 09:04:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAE4A12DDBB; Tue, 6 Feb 2024 09:01:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JHrPMfKb" Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 A74DC12D148 for ; Tue, 6 Feb 2024 09:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707210069; cv=none; b=Nog2nwgU+xXqxXPVtNZv3toSWr74uORy99q6TMhoaWcW7mr2b+k7ZSJCPB4KyW5Qdg3B1Q1GwXgEXi/sRf/B5IwtjLr+7D2jaB41FGiHTRVWz/CfqjN0iRPbkdQVkyXXn53qku8XgmbfLIjSP4cndfekihg9tFje/AiQo6mWsd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707210069; c=relaxed/simple; bh=Obp3+iU0NYx3LVy2xs6Xipc0ORb8bkb/WXC4pfh6d94=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=VLy64EvS5Kg7BCPiFhaM3zhuiWwzPpDePTOyV5HrjrAccNMn2hDRTKzkYF24f7pF9tgZY8S9fJLnv+47rpUm5S+qnMrmPMgg2qqKI3J4lOvB/99ZoWSRTCvTdhJoxkzapdC2g9NB0y+VgoJEEvH09uOqC7WyTwuwdoFs3cp39AU= 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=JHrPMfKb; arc=none smtp.client-ip=209.85.128.50 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-wm1-f50.google.com with SMTP id 5b1f17b1804b1-40fd2f7ef55so1692185e9.0 for ; Tue, 06 Feb 2024 01:01:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707210066; x=1707814866; 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=/dIUJgwnOyWSt0uclCiKcW3R3F0dsn7PgLN2KshxQ3w=; b=JHrPMfKb2dlWty49NwFfInXA2WSqwz8R1tFuHZhvcXFEO264JM87ucrOyU3cpZhodA xlwtyJ4a7dTMFJhDWQYum9ho644ju6dY4WQ7nSQ2qlWfwaX+tJmEYIetqe/YU0EuR79I k4I1ql5nCjjdBtRzFr8nhAXKqgFiN4y0GIFKwMTOCH4pXHOVPfiyNIOJxA/NA7coRH2d 2d8A3070ribOqbNd1BXxI+5+4gBWXAKlCmJftTKHxnEQRnBEC6rkdByGXkE7n7dZIEcW wYXCexvhD6E9DhrlJuonRDFHZgY+ZwCepBzqWORfJaVM2FNZTLAUI+KcK8fpsm5PTyWX o5LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707210066; x=1707814866; 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=/dIUJgwnOyWSt0uclCiKcW3R3F0dsn7PgLN2KshxQ3w=; b=jWnVXfZZTuaQ4IRLcOKXBhVtssMsTuU6D/SmyCQhhYQvGvlmo2+f4QH4u/xPbQ2B6U J7ZQ3zukfDl1JHU9X58skh6UoRzOW9jZ3kLRJVsslxmcMcgLlhaxj1O2EiKlKlX4AwbY X2TmhKILKMTTNAfq9ohzVbu/NkycrYY5YoODSG10poTjmT4XmqM+4sg4YSYRWo8MiqZQ z6a64Rd9pWH/v22ekDwjni4VpSDDJPgRIVtFiiQM7oEM1BJDV9TC7B0zDPLtmCwHNekM WAF58xP3fFaon4s7x/9I7iZJCSWoYONv2y3Jyr2JQvyBrniNekkeSQOL8m/L3EyZ2Dc4 Aa+Q== X-Gm-Message-State: AOJu0YyUgIzTEv7W8aM8FfkH92ie1e1sMJKNn/4DbcrL5ZyryVVVu++0 zDI9D5XSQbhzVNN+hCwtcrH0RczVbh5yuOUkqLoIWffxGJlE6uYG3wLC82WfY60= X-Received: by 2002:a05:600c:4f4d:b0:40f:de25:f9a9 with SMTP id m13-20020a05600c4f4d00b0040fde25f9a9mr2756501wmq.15.1707210065859; Tue, 06 Feb 2024 01:01:05 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUP7hpkPQs7XkJMZeboQiQzxcsHpLY+gTBGwCFcvYyYWfB1HXTUMUjZdT3sGA+YwRK7KRZctuePJz8Q8x2E3sy9jf8g8SJfnPfmR5ySJuTCvMoHytOefwnpgh7w5Nve4WKMDPFPRTlzJKB2Z8csbiobrmPe6PTNitRlQLIxmwYxAtGjhySX3d7Y3qATn9a8aYUHt5mkAVmXK3S4Idxell0Hmp+ujPMOTWQlMGSeyX/DIG3rB7OWBNatXmD0tQHIYVN9R83Wfeu4bzR/osbHPvCXCEFitQ+kMlGccXMXb0/6PU+h/Pab5rUGJr6w4vdNkgxaP8M1n43VOFxpBdTjbUArN5G31siq/HVwVlf3wudQLgxMV4tBZ02MSD+z4V7ELMmqHFQqfkka 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.01.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Feb 2024 01:01:05 -0800 (PST) Message-ID: <451adbff-c2b7-4141-990d-73cf869b752f@linaro.org> Date: Tue, 6 Feb 2024 10:01:04 +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 5/5] arm64: dts: amlogic: Add cache information to the Amlogic A7 SoC Content-Language: en-US, fr To: Anand Moon , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240205171930.968-1-linux.amoon@gmail.com> <20240205171930.968-6-linux.amoon@gmail.com> Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIM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6itMrAIfn M7IbRuiSZS1unlySUVYu3SD6YBYnNi3G5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: <20240205171930.968-6-linux.amoon@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 05/02/2024 18:19, Anand Moon wrote: > As per A311D datasheet add missing cache information to the Amlogic A7 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. Where did you get those numbers ? I can't find them. Neil > > To improve system performance. > > Signed-off-by: Anand Moon > --- > [0] https://dl.khadas.com/products/vim4/datasheet/a311d2_quick_reference_manual_v0.6.pdf > [1] https://en.wikipedia.org/wiki/ARM_Cortex-A73 > [2] https://en.wikipedia.org/wiki/ARM_Cortex-A53 > --- > arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 74 +++++++++++++++++++++ > 1 file changed, 74 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi > index a03c7667d2b6..72dedc40f460 100644 > --- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi > +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi > @@ -52,6 +52,13 @@ cpu100: cpu@100 { > compatible = "arm,cortex-a53"; > reg = <0x0 0x100>; > enable-method = "psci"; > + 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>; > }; > > cpu101: cpu@101{ > @@ -59,6 +66,13 @@ cpu101: cpu@101{ > compatible = "arm,cortex-a53"; > reg = <0x0 0x101>; > enable-method = "psci"; > + 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>; > }; > > cpu102: cpu@102 { > @@ -66,6 +80,13 @@ cpu102: cpu@102 { > compatible = "arm,cortex-a53"; > reg = <0x0 0x102>; > enable-method = "psci"; > + 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>; > }; > > cpu103: cpu@103 { > @@ -73,6 +94,13 @@ cpu103: cpu@103 { > compatible = "arm,cortex-a53"; > reg = <0x0 0x103>; > enable-method = "psci"; > + 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>; > }; > > cpu0: cpu@0 { > @@ -80,6 +108,13 @@ cpu0: cpu@0 { > compatible = "arm,cortex-a73"; > reg = <0x0 0x0>; > enable-method = "psci"; > + 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>; > }; > > cpu1: cpu@1 { > @@ -87,6 +122,13 @@ cpu1: cpu@1 { > compatible = "arm,cortex-a73"; > reg = <0x0 0x1>; > enable-method = "psci"; > + 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>; > }; > > cpu2: cpu@2 { > @@ -94,6 +136,13 @@ cpu2: cpu@2 { > compatible = "arm,cortex-a73"; > reg = <0x0 0x2>; > enable-method = "psci"; > + 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>; > }; > > cpu3: cpu@3 { > @@ -101,6 +150,31 @@ cpu3: cpu@3 { > compatible = "arm,cortex-a73"; > reg = <0x0 0x3>; > enable-method = "psci"; > + 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>; > + }; > + > + 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 = <1024>; > }; > }; >