From nobody Mon Apr 6 01:59:48 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A3543C6FA82 for ; Tue, 13 Sep 2022 04:28:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230401AbiIME20 (ORCPT ); Tue, 13 Sep 2022 00:28:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230335AbiIME1K (ORCPT ); Tue, 13 Sep 2022 00:27:10 -0400 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5AE3D558F7; Mon, 12 Sep 2022 21:23:56 -0700 (PDT) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Sep 2022 13:23:30 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id BEAB02059027; Tue, 13 Sep 2022 13:23:30 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Sep 2022 13:23:30 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 23BEDB62A4; Tue, 13 Sep 2022 13:23:30 +0900 (JST) From: Kunihiko Hayashi To: soc@kernel.org, Arnd Bergmann , Olof Johansson Cc: Rob Herring , Krzysztof Kozlowski , Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 10/10] arm64: dts: uniphier: Add L2 cache node Date: Tue, 13 Sep 2022 13:23:21 +0900 Message-Id: <20220913042321.4817-11-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220913042321.4817-1-hayashi.kunihiko@socionext.com> References: <20220913042321.4817-1-hayashi.kunihiko@socionext.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Add a L2 cache node referenced from CPU nodes as the missing cache hierarchy information because the following warning was issued. cacheinfo: Unable to detect cache hierarchy for CPU 0 Early cacheinfo failed, ret =3D -2 Signed-off-by: Kunihiko Hayashi --- arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi | 6 ++++++ arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 12 ++++++++++++ arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | 8 ++++++++ 3 files changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi b/arch/arm64/= boot/dts/socionext/uniphier-ld11.dtsi index 525bff79efea..1c76b4375b2e 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi @@ -36,6 +36,7 @@ cpu0: cpu@0 { reg =3D <0 0x000>; clocks =3D <&sys_clk 33>; enable-method =3D "psci"; + next-level-cache =3D <&l2>; operating-points-v2 =3D <&cluster0_opp>; }; =20 @@ -45,8 +46,13 @@ cpu1: cpu@1 { reg =3D <0 0x001>; clocks =3D <&sys_clk 33>; enable-method =3D "psci"; + next-level-cache =3D <&l2>; operating-points-v2 =3D <&cluster0_opp>; }; + + l2: l2-cache { + compatible =3D "cache"; + }; }; =20 cluster0_opp: opp-table { diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi b/arch/arm64/= boot/dts/socionext/uniphier-ld20.dtsi index 938753ded7c0..9308458f9611 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi @@ -46,6 +46,7 @@ cpu0: cpu@0 { reg =3D <0 0x000>; clocks =3D <&sys_clk 32>; enable-method =3D "psci"; + next-level-cache =3D <&a72_l2>; operating-points-v2 =3D <&cluster0_opp>; #cooling-cells =3D <2>; }; @@ -56,6 +57,7 @@ cpu1: cpu@1 { reg =3D <0 0x001>; clocks =3D <&sys_clk 32>; enable-method =3D "psci"; + next-level-cache =3D <&a72_l2>; operating-points-v2 =3D <&cluster0_opp>; #cooling-cells =3D <2>; }; @@ -66,6 +68,7 @@ cpu2: cpu@100 { reg =3D <0 0x100>; clocks =3D <&sys_clk 33>; enable-method =3D "psci"; + next-level-cache =3D <&a53_l2>; operating-points-v2 =3D <&cluster1_opp>; #cooling-cells =3D <2>; }; @@ -76,9 +79,18 @@ cpu3: cpu@101 { reg =3D <0 0x101>; clocks =3D <&sys_clk 33>; enable-method =3D "psci"; + next-level-cache =3D <&a53_l2>; operating-points-v2 =3D <&cluster1_opp>; #cooling-cells =3D <2>; }; + + a72_l2: l2-cache0 { + compatible =3D "cache"; + }; + + a53_l2: l2-cache1 { + compatible =3D "cache"; + }; }; =20 cluster0_opp: opp-table-0 { diff --git a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi b/arch/arm64/= boot/dts/socionext/uniphier-pxs3.dtsi index f10685625b6a..b0c29510a7da 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi @@ -43,6 +43,7 @@ cpu0: cpu@0 { reg =3D <0 0x000>; clocks =3D <&sys_clk 33>; enable-method =3D "psci"; + next-level-cache =3D <&l2>; operating-points-v2 =3D <&cluster0_opp>; #cooling-cells =3D <2>; }; @@ -53,6 +54,7 @@ cpu1: cpu@1 { reg =3D <0 0x001>; clocks =3D <&sys_clk 33>; enable-method =3D "psci"; + next-level-cache =3D <&l2>; operating-points-v2 =3D <&cluster0_opp>; #cooling-cells =3D <2>; }; @@ -63,6 +65,7 @@ cpu2: cpu@2 { reg =3D <0 0x002>; clocks =3D <&sys_clk 33>; enable-method =3D "psci"; + next-level-cache =3D <&l2>; operating-points-v2 =3D <&cluster0_opp>; #cooling-cells =3D <2>; }; @@ -73,9 +76,14 @@ cpu3: cpu@3 { reg =3D <0 0x003>; clocks =3D <&sys_clk 33>; enable-method =3D "psci"; + next-level-cache =3D <&l2>; operating-points-v2 =3D <&cluster0_opp>; #cooling-cells =3D <2>; }; + + l2: l2-cache { + compatible =3D "cache"; + }; }; =20 cluster0_opp: opp-table { --=20 2.25.1