From patchwork Fri Oct 20 19:50:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 156300 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp1290787vqb; Fri, 20 Oct 2023 12:52:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGL0wKUGdogKWk5NiabCvdvospAZfkrbOgpDv2K69rFMf1V1Wp/btx4/SFN11M9qk14u5yB X-Received: by 2002:a05:6a21:3b4a:b0:14c:d494:77c3 with SMTP id zy10-20020a056a213b4a00b0014cd49477c3mr2840310pzb.33.1697831543162; Fri, 20 Oct 2023 12:52:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697831543; cv=none; d=google.com; s=arc-20160816; b=TvJEyR6dM5zCiLxdtyCy1nmE1do1/kHXijvEf5whGOyekCa8ojefE+XyCzWDXAzds4 sq2DadP5TqdqzgC2g7++ko2hWNmWv8W0LbShJl6KWKC1E/lZKRheNyScGk6F9lDUc0j4 EI00r/cF0sXhQG0ILD7fQDMlUAsFfUjE3nDPZeDOZ7c4FgmCAtGNk/elHVEECf0FtOC3 orDY5F7qTLUou6HAIzQ5HQpQQhUX4lvthIu1Km7fPvMXnQ8GKTOB1tDmkz0Qg4V9ySJD UIBUgECYfEq3wPPLF2e/CiAtWbWoLQSS7W20sStoYn2EIpjLP28RtoyiT5rR3pP1MbXJ 4GNA== 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 :message-id:date:subject:cc:to:from; bh=K8/ZbVb/9IBC0WHwq8jl1yDqEWiHfKExUA5yi1WK5j4=; fh=n0Ztz+MIVxbAdTL6AiANHQA5Kvc0EaPuHIpNN+rC2Fw=; b=gRu4Q4GKXaMO93Fbdi/hpjCYkmJM0HUSeke4PDu9j4Hn7bZz1Y6P1rEn2HmM0kn9Xq tzvOxNFsUWKIEeoiVVN5NrhbzcoPUVc3XofN0qW6W8kchnmrJ4P3fZIu+LdKSCVs02WC 7bzGNXX7zYSAV4kOpnKpt7pLJYsSSA4WpIegtreUj9e6d9wMDwibz6YMAXJD4N+TJpI2 8zm3+u2iMgn5/uWZARvfwby7QX+1bTYTmJworTX3ElqYhzjvjxi+/b/kgYNRMOnaK+lN aGSIRqUGhr96WNsNfrz8NyOog8q9Gx58gnLfOXI2D9LZBwtT3FPj+7A6Gmo+tR7m5UTF l+KA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id k26-20020a637b5a000000b005b4ef61bfc7si2383247pgn.596.2023.10.20.12.52.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 12:52:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 36EF38303B39; Fri, 20 Oct 2023 12:52:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230028AbjJTTvv (ORCPT + 26 others); Fri, 20 Oct 2023 15:51:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229554AbjJTTvt (ORCPT ); Fri, 20 Oct 2023 15:51:49 -0400 Received: from mail-oa1-f42.google.com (mail-oa1-f42.google.com [209.85.160.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15C8BD57; Fri, 20 Oct 2023 12:51:48 -0700 (PDT) Received: by mail-oa1-f42.google.com with SMTP id 586e51a60fabf-1ea45b07c59so880063fac.0; Fri, 20 Oct 2023 12:51:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697831507; x=1698436307; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=K8/ZbVb/9IBC0WHwq8jl1yDqEWiHfKExUA5yi1WK5j4=; b=rmU9uUbtLDCSOWkVhw67/Bk/zB+G9tlsxI4PplkxPTWygDNnEbVYC1sDIvE3+YXKM7 rJ23raeIp53YbTc+9Rt89Ax81cS29adKY9Gy5Msa4mVe7Ebf1kn3MP9XhdMDopfh99kF WhW1S+HdB5M/irNd4lpxxpIg7mAYqcG/NHM13JiJ4rWJv5NDEuUuB8hAMJuG9PPvTIuv 6Q+mM1JRVKi98MFNGC6/UrVgVL6SXb3o8lUhfbK6BXf+P2tQ71JfIG16fwofDhq0s2MA D8kN5andnyEue7W/9XlR7jUTULv9ZCaRhXlsDtD1ArC7kF/ENZnDzT6+7YnuoLYHqhJt viNw== X-Gm-Message-State: AOJu0Yyg8SDeE1e0UMiEfGJHABvLAXTRTBBTo+TCWfAFDwVbE/5jecWF ZP9fpH0R9KwZMlLXYXB3XQ== X-Received: by 2002:a05:6870:5cc9:b0:1e9:9989:33a5 with SMTP id et9-20020a0568705cc900b001e9998933a5mr3353395oab.5.1697831507323; Fri, 20 Oct 2023 12:51:47 -0700 (PDT) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id m7-20020a056870194700b001cc9bc7b569sm483158oak.27.2023.10.20.12.51.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 12:51:46 -0700 (PDT) Received: (nullmailer pid 4185737 invoked by uid 1000); Fri, 20 Oct 2023 19:51:45 -0000 From: Rob Herring To: soc@kernel.org, Krzysztof Kozlowski , Conor Dooley , Kunihiko Hayashi , Masami Hiramatsu Cc: Pierre Gondois , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH v2] arm64: dts: Update cache properties for socionext Date: Fri, 20 Oct 2023 14:50:22 -0500 Message-ID: <20231020195022.4183862-2-robh@kernel.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 20 Oct 2023 12:52:07 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780305288746738567 X-GMAIL-MSGID: 1780305407887875478 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 Link: https://lore.kernel.org/r/20221107155825.1644604-21-pierre.gondois@arm.com Signed-off-by: Rob Herring Reviewed-by: Krzysztof Kozlowski --- I noticed this one fell thru the cracks from the rest of the series. Arnd, Can you take this directly. 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>; }; };