From patchwork Mon Oct 23 02:12:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 156636 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1033238vqx; Sun, 22 Oct 2023 19:12:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEJS9bIxIwfIr8sqyO4oU1pZxbW2zwQKiBoorNTa5/s9W5yIXT2gfeRMOobU+B5dGsr+rLJ X-Received: by 2002:a05:6808:182a:b0:3b2:e95d:8b2 with SMTP id bh42-20020a056808182a00b003b2e95d08b2mr11219072oib.12.1698027173016; Sun, 22 Oct 2023 19:12:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698027172; cv=none; d=google.com; s=arc-20160816; b=roHM+Bmcnlg07ktKVtkaA9LWgqvtP8iZT4CWYeVm3yzWFES4RA3/ajIf/lY0bz6kqd 8rgGWTBD7myb9PlkZmp+1E66iddZ9Ae56vUWml/tEaxsFXp3iZENCGL7qTyMV3STZ5WL NGyi72d+UtMQJvaIHm38FwF1aRXyJuuGzGsFjDT4zyLVzzeWJsNbigj1r4OxGuXOrPPY lgybIeAyMFWKdMCCBOgfjpFnoRPilOK+NkIiezxZfn3L9jt/22hLdfDVtc/PqFQFjNq1 dUzqKbsp5POe3ITnurdRn0d6TE/WnrturcnqD7Wza89h+B4LHps+yzj75kLvDZilQMjO /Qpg== 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=yUri15EL0BuvF+Q9m2S5q9yFqy49NPidxOxcmz23ZN8=; fh=waCC6SMQzpwF1JJja0RiUdLloAdUxPss3k2je+Mqq80=; b=JrvZs5iodZn9UGqZUv0tXwZ7Raa0VZfA00JgHt1roiu9BB0tL/02Yh8FWrFO5hy5d2 9x52tkWDMRj5qJUoy62mrftHLpiekpc3P77SAAiMRoo3PRDAfrEuaPmZlEwAqnQkNUp2 mBJ3UkpCQDWi4PYZu/Mu1n+ZvmkailTcgxkJ7UjFOMeKagz0sRx7mkwnzs63GsyQfZig DpTTuIbev+PD6Hzso73vqCHVECqjg2pZwu0KsEIvzMdnQO+v3b3a6pBPPWlCweJXiQOf 82V2tPTDBBPAwDwWR3mWA6vOjL09ZqFgUhmGYXgHjlALukk3hAdPRA5F2V1SGO61y7HC 8AbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id fj9-20020a056a003a0900b006be1dd2313asi5875397pfb.210.2023.10.22.19.12.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 19:12:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id F41758061CF3; Sun, 22 Oct 2023 19:12:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233133AbjJWCMf (ORCPT + 26 others); Sun, 22 Oct 2023 22:12:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233097AbjJWCMb (ORCPT ); Sun, 22 Oct 2023 22:12:31 -0400 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4AC99E6; Sun, 22 Oct 2023 19:12:29 -0700 (PDT) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 23 Oct 2023 11:12:28 +0900 Received: from mail.mfilter.local (mail-arc01.css.socionext.com [10.213.46.36]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 97CC52059034; Mon, 23 Oct 2023 11:12:28 +0900 (JST) Received: from kinkan2.css.socionext.com ([172.31.9.51]) by m-FILTER with ESMTP; Mon, 23 Oct 2023 11:12:28 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id E8626B1D40; Mon, 23 Oct 2023 11:12:27 +0900 (JST) From: Kunihiko Hayashi To: soc@kernel.org, Arnd Bergmann Cc: Pierre Gondois , Krzysztof Kozlowski , Rob Herring , Conor Dooley , Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH 1/2] arm64: dts: Update cache properties for socionext Date: Mon, 23 Oct 2023 11:12:20 +0900 Message-Id: <20231023021221.2884828-2-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231023021221.2884828-1-hayashi.kunihiko@socionext.com> References: <20231023021221.2884828-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 22 Oct 2023 19:12:50 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780510540997487407 X-GMAIL-MSGID: 1780510540997487407 From: Pierre Gondois 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 Reviewed-by: Kunihiko Hayashi Reviewed-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20221107155825.1644604-21-pierre.gondois@arm.com Signed-off-by: Rob Herring Signed-off-by: Kunihiko Hayashi --- arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi | 1 + arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 2 ++ arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | 1 + 3 files changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi index 7bb36b071475..54e58d945fd7 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi @@ -52,6 +52,7 @@ cpu1: cpu@1 { l2: l2-cache { compatible = "cache"; + cache-level = <2>; }; }; diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi index 4e2171630272..18390cba2eda 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi @@ -86,10 +86,12 @@ cpu3: cpu@101 { a72_l2: l2-cache0 { compatible = "cache"; + cache-level = <2>; }; a53_l2: l2-cache1 { compatible = "cache"; + cache-level = <2>; }; }; diff --git a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi index 38ccfb46ea42..56e037900818 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi @@ -83,6 +83,7 @@ cpu3: cpu@3 { l2: l2-cache { compatible = "cache"; + cache-level = <2>; }; }; From patchwork Mon Oct 23 02:12:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 156635 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1033214vqx; Sun, 22 Oct 2023 19:12:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGK7T8/ex8bwnqG+jUoIgGFhUpp5Er27I3uJtfqPevioWtKZbyzYZHXGgKsRgui06EqwT4K X-Received: by 2002:a05:6a21:7882:b0:137:74f8:62ee with SMTP id bf2-20020a056a21788200b0013774f862eemr10630551pzc.18.1698027166332; Sun, 22 Oct 2023 19:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698027166; cv=none; d=google.com; s=arc-20160816; b=gyrBGz2Z6YKzFCop9I95/Z8Eetbwkjiu2JYSCiEhijUq/Eo5vcxYwpIO0BrLaBTlwq J5vVq0H9/IofYF8YT0acQN5crjfwTaKj+R+t6Aq7JiHA5Ae6xon34YHKO3oHRWalBvR6 CZWNqtNuIKoWF5sY9fxfddaTi6S+8lLo0SekOtiRykT1MlrPX4CnnKfjttrPvOTWezud E0vBCT3xrL/jwyNh7ebfcaSZvMQXJ/69OgPgTvvm0BihCe9bEZ/Bjq0v6WRbp++FcANM 29kpeAGDNiWc6xVWQCQRA+saSw84i1CV/hGmUtmvx9aKgF4Lhyf9r3/RqI/OPN/7IoXp o2+Q== 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=2K0lmKPmp8drN4Y0HKos30EI9hadgwTcd1vDJc2NVoE=; fh=waCC6SMQzpwF1JJja0RiUdLloAdUxPss3k2je+Mqq80=; b=0DXsNq/PeU9pxBvXNX1GkclujQoL3rnXtapqyAz8LRaNcTPEiwA6OjjufmH7jFyQu8 CdCIvxfd3ejyN2dqouC+KYkGmG6fVBmGgZbwpo3rBzhNbbErrGUhvaCihwOmA8N08ct3 e9K/Pe7unKgW83IpPRhkKFTPC7g0ZrUyrRDkuAxH0cQCzQQVEtacxkY5I8ZmNb2IQrI/ qvRbDT76YW+WlTzH0uhR8AXKrdTewcUu/dzupJnw6J8fOXQs5kbF4ak89JMD3Ze4w6tu 46kOoz/spz8+ZCZTUdXigiV8iijW+0jAZZvtRkLy2eCAUiq+9hF+LPyHOXahU3VBw7l/ xhyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id p26-20020a637f5a000000b005b8915cc557si3393233pgn.773.2023.10.22.19.12.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 19:12:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8E763805ECE8; Sun, 22 Oct 2023 19:12:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233145AbjJWCMh (ORCPT + 26 others); Sun, 22 Oct 2023 22:12:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233105AbjJWCMb (ORCPT ); Sun, 22 Oct 2023 22:12:31 -0400 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E997A8E; Sun, 22 Oct 2023 19:12:29 -0700 (PDT) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 23 Oct 2023 11:12:29 +0900 Received: from mail.mfilter.local (mail-arc02.css.socionext.com [10.213.46.40]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 54D902059034; Mon, 23 Oct 2023 11:12:29 +0900 (JST) Received: from kinkan2.css.socionext.com ([172.31.9.51]) by m-FILTER with ESMTP; Mon, 23 Oct 2023 11:12:29 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id A7B71B1D40; Mon, 23 Oct 2023 11:12:28 +0900 (JST) From: Kunihiko Hayashi To: soc@kernel.org, Arnd Bergmann Cc: Pierre Gondois , Krzysztof Kozlowski , Rob Herring , Conor Dooley , Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH 2/2] arm64: dts: socionext: add missing cache properties Date: Mon, 23 Oct 2023 11:12:21 +0900 Message-Id: <20231023021221.2884828-3-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231023021221.2884828-1-hayashi.kunihiko@socionext.com> References: <20231023021221.2884828-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 22 Oct 2023 19:12:45 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780510534076125070 X-GMAIL-MSGID: 1780510534076125070 From: Krzysztof Kozlowski As all level 2 and level 3 caches are unified, add required cache-unified property to fix warnings like: uniphier-ld11-ref.dtb: l2-cache: 'cache-unified' is a required property Signed-off-by: Krzysztof Kozlowski Signed-off-by: Kunihiko Hayashi --- arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi | 1 + arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 2 ++ arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | 1 + 3 files changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi index 54e58d945fd7..4680571c264d 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi @@ -53,6 +53,7 @@ cpu1: cpu@1 { l2: l2-cache { compatible = "cache"; cache-level = <2>; + cache-unified; }; }; diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi index 18390cba2eda..335093da6573 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi @@ -87,11 +87,13 @@ cpu3: cpu@101 { a72_l2: l2-cache0 { compatible = "cache"; cache-level = <2>; + cache-unified; }; a53_l2: l2-cache1 { compatible = "cache"; cache-level = <2>; + cache-unified; }; }; diff --git a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi index 56e037900818..d6e3cc6fdb25 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi @@ -84,6 +84,7 @@ cpu3: cpu@3 { l2: l2-cache { compatible = "cache"; cache-level = <2>; + cache-unified; }; };