Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14036715rwb; Sun, 27 Nov 2022 16:22:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf4yjzggwQsrs1UTNktAO6Mi79XbNl0eM/gE2Suji+QhbCKKht/uZS/dHdpJ4m/PXmv4/fws X-Received: by 2002:a17:902:d395:b0:189:58a9:14aa with SMTP id e21-20020a170902d39500b0018958a914aamr18806192pld.22.1669594978582; Sun, 27 Nov 2022 16:22:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669594978; cv=none; d=google.com; s=arc-20160816; b=dbSUt8oXtSjJjZkDAs2SRJ9UVm99UKW47u68WTUPCYLQq+svDWdstGO8RDjbXgXFIK JoFt4OHKF+Mhvc5yDhihn4HHbhSrTdN5o3TDq02N4/atKv7uz7U13GfkKMlUvdSlrTk9 k2m+w+eO8ja2oz1U8O1nS5ARa9XupVs1HmisGfaQ1DS2covSP/GkW00jltu3uTh5IIil bV/dfbPIi9YNdu+P8dEaulRZHSnOuhio57NPGHGfK8Fd1NuYw0/Rvmd4Ri8v4mTbyMVU UXS2MecFXnROdZS1XUHcrkfIYqb57uTlAB5GKbYcAIqBxFbki6sg8kY8My2rQfULc9+r ffJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=Ybv7gENJyTR/kPaS82sTWfCOIaSg+Tq6OBZhSLuHKXA=; b=w3F6WE+JnjjseBtnpKIIM+HzfGLW9v16uGIj+ZZ/7OsVB3kZIJxk4kdKMEZj3/Jt4x wRpgDZdw4XnbMqXUOK9q4E9HLIu+PDEPVSN/I0V5j2Mk4DnNAuYRtQZa2nLLGGlIf/zy 7M+gilkx35OSVg9/x7/a5BeSE1DCy+0Ag4LWe3cJAO5KQMSofFqhM5MXJH1BuRwAH1R/ fonCzf5L40qHhFiYNRa5qUbbYYqODtl/Nf34rxxkI6HfTMxNj1ohbNWDIIjheAVPx9lF q3/ySNMWSUritZyRofk+avh9P5e4cDbX0nnwYSlk7NeJkOODirXXUzwlIY3z9UoKqXbQ 4D6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=llmc7EBn; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i18-20020a170902cf1200b001871c762261si9969838plg.189.2022.11.27.16.22.48; Sun, 27 Nov 2022 16:22:58 -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; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=llmc7EBn; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229589AbiK1AJ4 (ORCPT + 84 others); Sun, 27 Nov 2022 19:09:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbiK1AJz (ORCPT ); Sun, 27 Nov 2022 19:09:55 -0500 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [217.70.178.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2577B1006F; Sun, 27 Nov 2022 16:09:51 -0800 (PST) Received: (Authenticated sender: gregory.clement@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 37AF8240003; Mon, 28 Nov 2022 00:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1669594190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ybv7gENJyTR/kPaS82sTWfCOIaSg+Tq6OBZhSLuHKXA=; b=llmc7EBnLW8lgY9XCNhvhM0+Pl61OQNJmuJkiTvIU/1fAK4M6Rdcu62Hcom6lmpQSTkwpN ugdvWtf/XgKM4CZUjiXnOfqNu6SQJFohqnP2mYSXiA8gJNZwbsY9aISVf+D8AqU4vPS0SU XsWVMycjXX/owT7ckT7kTfXAUGWWasJbOASke6qaok1uHzPHqNegJ5icIa3aeoRIyRhzX1 A8lVPFuh+WeaSCiNU7C3MNjAG2Rk2XehcZsKfGZ2I3nd8O8SGn3gyYOAAr/hc+gsgXmF07 ojAu9cwke8iDOT1q9IkmWDDDAW+iapV2AyI+zYPjqOFiVniXb4Am/pfwmoI5AQ== From: Gregory CLEMENT To: Pierre Gondois , linux-kernel@vger.kernel.org Cc: pierre.gondois@arm.com, Rob.Herring@arm.com, Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Sebastian Hesselbarth , Vadym Kochan , Chris Packham , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 10/20] arm64: dts: Update cache properties for marvell In-Reply-To: <20221031092020.532456-1-pierre.gondois@arm.com> References: <20221031092020.532456-1-pierre.gondois@arm.com> Date: Mon, 28 Nov 2022 01:09:48 +0100 Message-ID: <87r0xo7xdf.fsf@BL-laptop> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Pierre Gondois writes: > 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 recently added init_of_cache_level() function checks > these properties. Add them if missing. > > Signed-off-by: Pierre Gondois Applied on mvebu/dt64 Thanks, Gregory > --- > arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 1 + > arch/arm64/boot/dts/marvell/armada-ap806-dual.dtsi | 1 + > arch/arm64/boot/dts/marvell/armada-ap806-quad.dtsi | 2 ++ > arch/arm64/boot/dts/marvell/armada-ap807-quad.dtsi | 2 ++ > 4 files changed, 6 insertions(+) > > diff --git a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi > index 80b44c7df56a..d4770acec6ac 100644 > --- a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi > +++ b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi > @@ -49,6 +49,7 @@ cpu1: cpu@1 { > > l2: l2-cache { > compatible = "cache"; > + cache-level = <2>; > }; > }; > > diff --git a/arch/arm64/boot/dts/marvell/armada-ap806-dual.dtsi b/arch/arm64/boot/dts/marvell/armada-ap806-dual.dtsi > index fcab5173fe67..990f70303fe6 100644 > --- a/arch/arm64/boot/dts/marvell/armada-ap806-dual.dtsi > +++ b/arch/arm64/boot/dts/marvell/armada-ap806-dual.dtsi > @@ -51,6 +51,7 @@ l2: l2-cache { > cache-size = <0x80000>; > cache-line-size = <64>; > cache-sets = <512>; > + cache-level = <2>; > }; > }; > > diff --git a/arch/arm64/boot/dts/marvell/armada-ap806-quad.dtsi b/arch/arm64/boot/dts/marvell/armada-ap806-quad.dtsi > index 3db427122f9e..a7b8e001cc9c 100644 > --- a/arch/arm64/boot/dts/marvell/armada-ap806-quad.dtsi > +++ b/arch/arm64/boot/dts/marvell/armada-ap806-quad.dtsi > @@ -81,6 +81,7 @@ l2_0: l2-cache0 { > cache-size = <0x80000>; > cache-line-size = <64>; > cache-sets = <512>; > + cache-level = <2>; > }; > > l2_1: l2-cache1 { > @@ -88,6 +89,7 @@ l2_1: l2-cache1 { > cache-size = <0x80000>; > cache-line-size = <64>; > cache-sets = <512>; > + cache-level = <2>; > }; > }; > }; > diff --git a/arch/arm64/boot/dts/marvell/armada-ap807-quad.dtsi b/arch/arm64/boot/dts/marvell/armada-ap807-quad.dtsi > index 68782f161f12..7740098fd108 100644 > --- a/arch/arm64/boot/dts/marvell/armada-ap807-quad.dtsi > +++ b/arch/arm64/boot/dts/marvell/armada-ap807-quad.dtsi > @@ -81,6 +81,7 @@ l2_0: l2-cache0 { > cache-size = <0x80000>; > cache-line-size = <64>; > cache-sets = <512>; > + cache-level = <2>; > }; > > l2_1: l2-cache1 { > @@ -88,6 +89,7 @@ l2_1: l2-cache1 { > cache-size = <0x80000>; > cache-line-size = <64>; > cache-sets = <512>; > + cache-level = <2>; > }; > }; > }; > -- > 2.25.1 > -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com