Message ID | 20221107155825.1644604-18-pierre.gondois@arm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2157713wru; Mon, 7 Nov 2022 08:33:31 -0800 (PST) X-Google-Smtp-Source: AMsMyM4RQs/VFXg5HkQ/5L0g3l4TSmvU2aoRctOaJzhizPS85HCA7KmJVyRssRc/zEktwEeD0yqu X-Received: by 2002:a17:902:b717:b0:188:547d:b142 with SMTP id d23-20020a170902b71700b00188547db142mr663983pls.103.1667838811640; Mon, 07 Nov 2022 08:33:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667838811; cv=none; d=google.com; s=arc-20160816; b=PT15j+qNGhyYZKRMOaXGAZB7S1ShgcGwsfb9w1MNNJz58YKULEmfrWhdm6HrYiUh4S JIm1mKdp9QUjucStfIm0abFvR8hq1O5YiZC5cSohZmhw8a/wa3+h6VYXOL/C2x3E+noP yviy6sr1JEGBkcad0HM5x5iaFBW3O7dqlDvpzThjjVfqIUSyUtEZ9bYtWQx32CqjRuJh N6mkPt4oOqZOnh6qmBLB5V2jTqRl+FuDrMME949iU6QyG8HtlqzNHJ051x3d1BCD491f mN6AA/YRrZyIlkWaUN9eCx8sxmsYd+ZkVDfXEj+eDVOj47kppBNd8bjUdPf1eauKansu Hjiw== 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; bh=S89qlfLEv8XlSTv714rvJzWqtsO0LUWDFauseN64fhU=; b=nn38R4o2RBp+0+CxNNUrEFMTwAwSa6ymNEbZNu8j/FIbHxfBVvhzpjF2Yz31bjsPzl 4IHEpastbqY6Lw6RRe9IWZ8K9gYxrjEaGB/zsivX5x2cjsIc98IQzCF3/8DL1QxUGerH hhUIUvg+GEswhM/SqETFdJAHGt97A9YbNpumm64RtNjXVe61zkxY01FGah0tOBC7m0sr 9GK2kh3Nu8luoaxwhbRxykl59W3M7x79mMc2aLK2QKacD96V35kwjQnCxETEcJ1tdIGG uw09Qfxk+GKHvwu2spSUmzGQZo4FnNVeq8AxBlXIouolKTVu3ZvlCNmJ1H6ogUqGpLWF 5xpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p13-20020a170902e74d00b001786b70f913si11839904plf.164.2022.11.07.08.33.18; Mon, 07 Nov 2022 08:33:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232267AbiKGQaw (ORCPT <rfc822;hjfbswb@gmail.com> + 99 others); Mon, 7 Nov 2022 11:30:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231374AbiKGQa2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 7 Nov 2022 11:30:28 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7B7EE2181B; Mon, 7 Nov 2022 08:28:36 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5E570ED1; Mon, 7 Nov 2022 08:28:42 -0800 (PST) Received: from pierre123.arm.com (pierre123.nice.arm.com [10.34.100.128]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 11F933F534; Mon, 7 Nov 2022 08:28:20 -0800 (PST) From: Pierre Gondois <pierre.gondois@arm.com> To: linux-kernel@vger.kernel.org Cc: Pierre Gondois <pierre.gondois@arm.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Florian Fainelli <f.fainelli@gmail.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Ray Jui <rjui@broadcom.com>, Scott Branden <sbranden@broadcom.com>, Tsahee Zidenberg <tsahee@annapurnalabs.com>, Antoine Tenart <atenart@kernel.org>, Brijesh Singh <brijeshkumar.singh@amd.com>, Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>, Tom Lendacky <thomas.lendacky@amd.com>, Neil Armstrong <neil.armstrong@linaro.org>, Kevin Hilman <khilman@baylibre.com>, Jerome Brunet <jbrunet@baylibre.com>, Martin Blumenstingl <martin.blumenstingl@googlemail.com>, Khuong Dinh <khuong@os.amperecomputing.com>, Liviu Dudau <liviu.dudau@arm.com>, Sudeep Holla <sudeep.holla@arm.com>, Lorenzo Pieralisi <lpieralisi@kernel.org>, William Zhang <william.zhang@broadcom.com>, Anand Gore <anand.gore@broadcom.com>, Kursad Oney <kursad.oney@broadcom.com>, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= <rafal@milecki.pl>, Alim Akhtar <alim.akhtar@samsung.com>, Shawn Guo <shawnguo@kernel.org>, Li Yang <leoyang.li@nxp.com>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, Chester Lin <clin@suse.com>, =?utf-8?q?Andreas_F=C3=A4rber?= <afaerber@suse.de>, Matthias Brugger <mbrugger@suse.com>, NXP S32 Linux Team <s32@nxp.com>, Wei Xu <xuwei5@hisilicon.com>, Chanho Min <chanho.min@lge.com>, Andrew Lunn <andrew@lunn.ch>, Gregory Clement <gregory.clement@bootlin.com>, Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>, Lars Povlsen <lars.povlsen@microchip.com>, Steen Hegelund <Steen.Hegelund@microchip.com>, Daniel Machon <daniel.machon@microchip.com>, UNGLinuxDriver@microchip.com, Avi Fishman <avifishman70@gmail.com>, Tomer Maimon <tmaimon77@gmail.com>, Tali Perry <tali.perry1@gmail.com>, Patrick Venture <venture@google.com>, Nancy Yuen <yuenn@google.com>, Benjamin Fair <benjaminfair@google.com>, Thierry Reding <thierry.reding@gmail.com>, Jonathan Hunter <jonathanh@nvidia.com>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@somainline.org>, Geert Uytterhoeven <geert+renesas@glider.be>, Magnus Damm <magnus.damm@gmail.com>, Heiko Stuebner <heiko@sntech.de>, Kunihiko Hayashi <hayashi.kunihiko@socionext.com>, Masami Hiramatsu <mhiramat@kernel.org>, Jisheng Zhang <jszhang@kernel.org>, Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>, Tero Kristo <kristo@kernel.org>, Viorel Suman <viorel.suman@nxp.com>, Abel Vesa <abelvesa@kernel.org>, Shenwei Wang <shenwei.wang@nxp.com>, Peng Fan <peng.fan@nxp.com>, Ming Qian <ming.qian@nxp.com>, Lucas Stach <l.stach@pengutronix.de>, Tim Harvey <tharvey@gateworks.com>, Adam Ford <aford173@gmail.com>, Li Jun <jun.li@nxp.com>, Richard Zhu <hongxing.zhu@nxp.com>, Marek Vasut <marex@denx.de>, Markus Niebel <Markus.Niebel@ew.tq-group.com>, Joakim Zhang <qiangqing.zhang@nxp.com>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Paul Elder <paul.elder@ideasonboard.com>, Alexander Stein <alexander.stein@ew.tq-group.com>, Martin Kepplinger <martink@posteo.de>, David Heidelberg <david@ixit.cz>, Liu Ying <victor.liu@nxp.com>, Oliver Graute <oliver.graute@kococonnector.com>, Shijie Qin <shijie.qin@nxp.com>, Clark Wang <xiaoning.wang@nxp.com>, Haibo Chen <haibo.chen@nxp.com>, Wei Fang <wei.fang@nxp.com>, Jacky Bai <ping.bai@nxp.com>, Chris Packham <chris.packham@alliedtelesis.co.nz>, Vadym Kochan <vadym.kochan@plvision.eu>, Sameer Pujar <spujar@nvidia.com>, Mikko Perttunen <mperttunen@nvidia.com>, Akhil R <akhilrajeev@nvidia.com>, Prathamesh Shete <pshete@nvidia.com>, Sumit Gupta <sumitg@nvidia.com>, Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>, Vidya Sagar <vidyas@nvidia.com>, Ashish Mhetre <amhetre@nvidia.com>, Johan Jonker <jbx6244@gmail.com>, Christopher Obbard <chris.obbard@collabora.com>, Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>, Aswani Reddy <aswani.reddy@samsung.com>, Shashank Prashar <s.prashar@samsung.com>, Arjun K V <arjun.kv@samsung.com>, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-mediatek@lists.infradead.org, openbmc@lists.ozlabs.org, linux-tegra@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-realtek-soc@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org Subject: [PATCH v2 17/23] arm64: dts: Update cache properties for realtek Date: Mon, 7 Nov 2022 16:57:10 +0100 Message-Id: <20221107155825.1644604-18-pierre.gondois@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221107155825.1644604-1-pierre.gondois@arm.com> References: <20221107155825.1644604-1-pierre.gondois@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748855749435381006?= X-GMAIL-MSGID: =?utf-8?q?1748855749435381006?= |
Series |
Update cache properties for arm64 DTS
|
|
Commit Message
Pierre Gondois
Nov. 7, 2022, 3:57 p.m. UTC
The DeviceTree Specification v0.3 specifies that the cache node
'compatible' and 'cache-level' properties are 'required'. Cf.
s3.8 Multi-level and Shared Cache Nodes
The 'cache-unified' property should be present if one of the
properties for unified cache is present ('cache-size', ...).
Update the Device Trees accordingly.
Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
---
arch/arm64/boot/dts/realtek/rtd1293.dtsi | 1 +
arch/arm64/boot/dts/realtek/rtd1295.dtsi | 1 +
arch/arm64/boot/dts/realtek/rtd1296.dtsi | 1 +
arch/arm64/boot/dts/realtek/rtd1395.dtsi | 1 +
arch/arm64/boot/dts/realtek/rtd16xx.dtsi | 2 ++
5 files changed, 6 insertions(+)
Comments
(subset for cc list) Hello, Just a reminder in case the patch was forgotten, Regards, Pierre On 11/7/22 16:57, Pierre Gondois wrote: > The DeviceTree Specification v0.3 specifies that the cache node > 'compatible' and 'cache-level' properties are 'required'. Cf. > s3.8 Multi-level and Shared Cache Nodes > The 'cache-unified' property should be present if one of the > properties for unified cache is present ('cache-size', ...). > > Update the Device Trees accordingly. > > Signed-off-by: Pierre Gondois <pierre.gondois@arm.com> > --- > arch/arm64/boot/dts/realtek/rtd1293.dtsi | 1 + > arch/arm64/boot/dts/realtek/rtd1295.dtsi | 1 + > arch/arm64/boot/dts/realtek/rtd1296.dtsi | 1 + > arch/arm64/boot/dts/realtek/rtd1395.dtsi | 1 + > arch/arm64/boot/dts/realtek/rtd16xx.dtsi | 2 ++ > 5 files changed, 6 insertions(+) > > diff --git a/arch/arm64/boot/dts/realtek/rtd1293.dtsi b/arch/arm64/boot/dts/realtek/rtd1293.dtsi > index 2d92b56ac94d..0696b99fc40d 100644 > --- a/arch/arm64/boot/dts/realtek/rtd1293.dtsi > +++ b/arch/arm64/boot/dts/realtek/rtd1293.dtsi > @@ -30,6 +30,7 @@ cpu1: cpu@1 { > > l2: l2-cache { > compatible = "cache"; > + cache-level = <2>; > }; > }; > > diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi > index 1402abe80ea1..4ca322e420e6 100644 > --- a/arch/arm64/boot/dts/realtek/rtd1295.dtsi > +++ b/arch/arm64/boot/dts/realtek/rtd1295.dtsi > @@ -44,6 +44,7 @@ cpu3: cpu@3 { > > l2: l2-cache { > compatible = "cache"; > + cache-level = <2>; > }; > }; > > diff --git a/arch/arm64/boot/dts/realtek/rtd1296.dtsi b/arch/arm64/boot/dts/realtek/rtd1296.dtsi > index fb864a139c97..03fccd48f0c0 100644 > --- a/arch/arm64/boot/dts/realtek/rtd1296.dtsi > +++ b/arch/arm64/boot/dts/realtek/rtd1296.dtsi > @@ -44,6 +44,7 @@ cpu3: cpu@3 { > > l2: l2-cache { > compatible = "cache"; > + cache-level = <2>; > }; > }; > > diff --git a/arch/arm64/boot/dts/realtek/rtd1395.dtsi b/arch/arm64/boot/dts/realtek/rtd1395.dtsi > index 05c9216a87ee..94c0a8cf4953 100644 > --- a/arch/arm64/boot/dts/realtek/rtd1395.dtsi > +++ b/arch/arm64/boot/dts/realtek/rtd1395.dtsi > @@ -44,6 +44,7 @@ cpu3: cpu@3 { > > l2: l2-cache { > compatible = "cache"; > + cache-level = <2>; > }; > }; > > diff --git a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi > index afba5f04c8ec..2ee9ba1ecdc1 100644 > --- a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi > +++ b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi > @@ -87,12 +87,14 @@ cpu5: cpu@500 { > > l2: l2-cache { > compatible = "cache"; > + cache-level = <2>; > next-level-cache = <&l3>; > > }; > > l3: l3-cache { > compatible = "cache"; > + cache-level = <3>; > }; > }; >
Hello, On 12.01.23 09:33, Pierre Gondois wrote: > Just a reminder in case the patch was forgotten, [...] > On 11/7/22 16:57, Pierre Gondois wrote: >> The DeviceTree Specification v0.3 specifies that the cache node >> 'compatible' and 'cache-level' properties are 'required'. Cf. >> s3.8 Multi-level and Shared Cache Nodes >> The 'cache-unified' property should be present if one of the >> properties for unified cache is present ('cache-size', ...). >> >> Update the Device Trees accordingly. >> >> Signed-off-by: Pierre Gondois <pierre.gondois@arm.com> >> --- >> arch/arm64/boot/dts/realtek/rtd1293.dtsi | 1 + >> arch/arm64/boot/dts/realtek/rtd1295.dtsi | 1 + >> arch/arm64/boot/dts/realtek/rtd1296.dtsi | 1 + >> arch/arm64/boot/dts/realtek/rtd1395.dtsi | 1 + >> arch/arm64/boot/dts/realtek/rtd16xx.dtsi | 2 ++ >> 5 files changed, 6 insertions(+) Short-term I can offer an Acked-by: Andreas Färber <afaerber@suse.de> Regards, Andreas >> >> diff --git a/arch/arm64/boot/dts/realtek/rtd1293.dtsi >> b/arch/arm64/boot/dts/realtek/rtd1293.dtsi >> index 2d92b56ac94d..0696b99fc40d 100644 >> --- a/arch/arm64/boot/dts/realtek/rtd1293.dtsi >> +++ b/arch/arm64/boot/dts/realtek/rtd1293.dtsi >> @@ -30,6 +30,7 @@ cpu1: cpu@1 { >> l2: l2-cache { >> compatible = "cache"; >> + cache-level = <2>; >> }; >> }; >> diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi >> b/arch/arm64/boot/dts/realtek/rtd1295.dtsi >> index 1402abe80ea1..4ca322e420e6 100644 >> --- a/arch/arm64/boot/dts/realtek/rtd1295.dtsi >> +++ b/arch/arm64/boot/dts/realtek/rtd1295.dtsi >> @@ -44,6 +44,7 @@ cpu3: cpu@3 { >> l2: l2-cache { >> compatible = "cache"; >> + cache-level = <2>; >> }; >> }; >> diff --git a/arch/arm64/boot/dts/realtek/rtd1296.dtsi >> b/arch/arm64/boot/dts/realtek/rtd1296.dtsi >> index fb864a139c97..03fccd48f0c0 100644 >> --- a/arch/arm64/boot/dts/realtek/rtd1296.dtsi >> +++ b/arch/arm64/boot/dts/realtek/rtd1296.dtsi >> @@ -44,6 +44,7 @@ cpu3: cpu@3 { >> l2: l2-cache { >> compatible = "cache"; >> + cache-level = <2>; >> }; >> }; >> diff --git a/arch/arm64/boot/dts/realtek/rtd1395.dtsi >> b/arch/arm64/boot/dts/realtek/rtd1395.dtsi >> index 05c9216a87ee..94c0a8cf4953 100644 >> --- a/arch/arm64/boot/dts/realtek/rtd1395.dtsi >> +++ b/arch/arm64/boot/dts/realtek/rtd1395.dtsi >> @@ -44,6 +44,7 @@ cpu3: cpu@3 { >> l2: l2-cache { >> compatible = "cache"; >> + cache-level = <2>; >> }; >> }; >> diff --git a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi >> b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi >> index afba5f04c8ec..2ee9ba1ecdc1 100644 >> --- a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi >> +++ b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi >> @@ -87,12 +87,14 @@ cpu5: cpu@500 { >> l2: l2-cache { >> compatible = "cache"; >> + cache-level = <2>; >> next-level-cache = <&l3>; >> }; >> l3: l3-cache { >> compatible = "cache"; >> + cache-level = <3>; >> }; >> };
diff --git a/arch/arm64/boot/dts/realtek/rtd1293.dtsi b/arch/arm64/boot/dts/realtek/rtd1293.dtsi index 2d92b56ac94d..0696b99fc40d 100644 --- a/arch/arm64/boot/dts/realtek/rtd1293.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd1293.dtsi @@ -30,6 +30,7 @@ cpu1: cpu@1 { l2: l2-cache { compatible = "cache"; + cache-level = <2>; }; }; diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi index 1402abe80ea1..4ca322e420e6 100644 --- a/arch/arm64/boot/dts/realtek/rtd1295.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd1295.dtsi @@ -44,6 +44,7 @@ cpu3: cpu@3 { l2: l2-cache { compatible = "cache"; + cache-level = <2>; }; }; diff --git a/arch/arm64/boot/dts/realtek/rtd1296.dtsi b/arch/arm64/boot/dts/realtek/rtd1296.dtsi index fb864a139c97..03fccd48f0c0 100644 --- a/arch/arm64/boot/dts/realtek/rtd1296.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd1296.dtsi @@ -44,6 +44,7 @@ cpu3: cpu@3 { l2: l2-cache { compatible = "cache"; + cache-level = <2>; }; }; diff --git a/arch/arm64/boot/dts/realtek/rtd1395.dtsi b/arch/arm64/boot/dts/realtek/rtd1395.dtsi index 05c9216a87ee..94c0a8cf4953 100644 --- a/arch/arm64/boot/dts/realtek/rtd1395.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd1395.dtsi @@ -44,6 +44,7 @@ cpu3: cpu@3 { l2: l2-cache { compatible = "cache"; + cache-level = <2>; }; }; diff --git a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi index afba5f04c8ec..2ee9ba1ecdc1 100644 --- a/arch/arm64/boot/dts/realtek/rtd16xx.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd16xx.dtsi @@ -87,12 +87,14 @@ cpu5: cpu@500 { l2: l2-cache { compatible = "cache"; + cache-level = <2>; next-level-cache = <&l3>; }; l3: l3-cache { compatible = "cache"; + cache-level = <3>; }; };