Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp941714rwb; Fri, 28 Jul 2023 02:08:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlEoLY6cJ+crkbuqdJzxGBv7zhfd+zP5KtZT0cH29cD3DNCnQKov+VJBI8gF4V7Ot6Fc3my0 X-Received: by 2002:a17:907:77ce:b0:99b:5c3c:3e61 with SMTP id kz14-20020a17090777ce00b0099b5c3c3e61mr1544785ejc.1.1690535326890; Fri, 28 Jul 2023 02:08:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690535326; cv=none; d=google.com; s=arc-20160816; b=i89jlMDvPIM7oLZn799M6jgzHmMBf7RvJi2AryP50G1foGcSSpsmq4q8hI4ZlaluA4 db+X/12zA6hxbuC8mhjqV7j3Nu6fIfLUBrsmlZKxAiMvPos1zqjxscQBplY4TIs9QDUH QAPCqEe8fHsOWIcrNfpfqrFy8/eovHzEpUeRuBdr1rMMXKoQX84qtiWKGDIdUob3oCmP dIBCz2f3/PC4eAt3yB6Exsy1OND+t9JMYoCGm2QYBipXSDRUBxPbxFp5nytIDnIuCni2 SFP0xhcrMS6XnBYPPUc6egZjYQmmGItIwR7rstoy0rdHGFo/DBgXeVmKiAQd3fdhxPzy rj8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6gx/H4oU57JfZzIdqSbxsDZENMwrEjiTgyH4fXD5hoY=; fh=XivTdEvcTyItdKMY+Yhm/NnQTwtpllpj3UbdES7+zrw=; b=OitciZSEPbW1hpLj2FcJJLs+8mQm9KVUJzNkX3iN1frBy3MiNBVbeH0Hi2nKbFVrxM dmbvhq31ZRsxHuFVk45Qzz8Xwdj6S/axIk0XFgOPGWdk0fJCRU3zi4ziWzaEmAk2T4V2 hw9lcWnMeLZE4KID6t63YVOeiwTS16wUVZ4QMdj3BTjrUjOalZdLmRcE0ubx0IvQLU28 //Ol3G1bqhfT62awE2QTEcn8tM0IK6+EJgbS307fLCkE7OhYUS8MeU4p2sTLiL+1VD5k qdU0M1Rz0TfYSYNjCM3Gx6hfjGsvMwavZiGo7V+wKBvES74Rgz8GvBtNE4P5arpgvOeU dfWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="WQP/BC+0"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u27-20020a1709063b9b00b0098cf69d9447si2375432ejf.820.2023.07.28.02.08.21; Fri, 28 Jul 2023 02:08:46 -0700 (PDT) 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=@microchip.com header.s=mchp header.b="WQP/BC+0"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233808AbjG1HGd (ORCPT + 99 others); Fri, 28 Jul 2023 03:06:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233801AbjG1HG3 (ORCPT ); Fri, 28 Jul 2023 03:06:29 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37729268B; Fri, 28 Jul 2023 00:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1690527985; x=1722063985; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YV/HherCTDGw+ls4/jLdsAyaf6VBOQkF2Uf7NZiBfII=; b=WQP/BC+00hmQAj2QkA+0SPtlcQzErmCG+jmPXpM85yNL+EV2X5HCfxj5 /8a5pUG+ptFu1wjDXUDaHX8L7GnIIV+AaXtjrRAszlhLGB9JuE5MgSpko KczGV19hrJw8S4lWB2Qgy31qRuRwxB/9HcFa/Ipq1XZmzmJtMSaCFXYS3 Ic8fSTipn3JkMqS+lYXTl6DxA7iGglZvDroDGUjZBaBMd0bGEVuz06mPp gcZ8QliWvrJcn5hDhR161SX1GHL6eigx4IRCv7RZ2lJdEX9y2nWyOsHb1 BGXEzFZDr3rpTE1nP63G0qGMrAp5pmK/QvujsLc/j/Y8pcgWfGMN6DGhB Q==; X-IronPort-AV: E=Sophos;i="6.01,236,1684825200"; d="asc'?scan'208";a="227027311" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Jul 2023 00:06:24 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 28 Jul 2023 00:06:23 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21 via Frontend Transport; Fri, 28 Jul 2023 00:06:20 -0700 Date: Fri, 28 Jul 2023 08:05:46 +0100 From: Conor Dooley To: Conor Dooley CC: Eric Lin , , , , , , , , , , , , , , , , Nick Hu Subject: Re: [PATCH v2 1/3] dt-bindings: riscv: sifive: Add SiFive Private L2 cache controller Message-ID: <20230728-facedown-husked-9813fa79d9a0@wendy> References: <20230720135125.21240-1-eric.lin@sifive.com> <20230720135125.21240-2-eric.lin@sifive.com> <20230720-slept-guru-216e2803061e@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CLBf1mcbqLUt7ULL" Content-Disposition: inline In-Reply-To: <20230720-slept-guru-216e2803061e@spud> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 --CLBf1mcbqLUt7ULL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jul 20, 2023 at 06:10:51PM +0100, Conor Dooley wrote: > Hey Eric, >=20 > On Thu, Jul 20, 2023 at 09:51:19PM +0800, Eric Lin wrote: > > This add YAML DT binding documentation for SiFive Private L2 > > cache controller > >=20 > > Signed-off-by: Eric Lin > > Reviewed-by: Zong Li > > Reviewed-by: Nick Hu > > --- > > .../bindings/cache/sifive,pl2cache.yaml | 62 +++++++++++++++++++ >=20 > btw, your $subject should be "dt-bindings: cache: ...." rather than > "riscv: sifive". >=20 > > 1 file changed, 62 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/cache/sifive,pl2c= ache.yaml > >=20 > > diff --git a/Documentation/devicetree/bindings/cache/sifive,pl2cache.ya= ml b/Documentation/devicetree/bindings/cache/sifive,pl2cache.yaml > > new file mode 100644 > > index 000000000000..ee8356c5eeee > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/cache/sifive,pl2cache.yaml > > @@ -0,0 +1,62 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +# Copyright (C) 2023 SiFive, Inc. > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/cache/sifive,pl2cache.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: SiFive Private L2 Cache Controller > > + > > +maintainers: > > + - Greentime Hu > > + - Eric Lin >=20 > There's extra spaces in these lines for some reason. >=20 > > + > > +description: > > + The SiFive Private L2 Cache Controller is per core and > > + communicates with both the upstream L1 caches and > > + downstream L3 cache or memory, enabling a high-performance > > + cache subsystem. > > + > > +allOf: > > + - $ref: /schemas/cache-controller.yaml# > > + >=20 > I'm pretty sure that I pointed out last time around that you need to add > something like in the ccache driver: >=20 > select: > properties: > compatible: > contains: > enum: > - sifive,ccache0 > - sifive,fu540-c000-ccache > - sifive,fu740-c000-ccache >=20 > otherwise this binding will be used for anything containing "cache" in > the dt-binding. > For this binding, I think that the following is sufficient: >=20 > select: > properties: > compatible: > contains: > const: sifive,pl2cache1 >=20 > > +properties: > > + compatible: > > + items: > > + - const: sifive,pl2cache1 > > + - const: cache >=20 > You omitted the pl2cache0 from here, that needs to come back! You'll end > up with 2 items entries. > Either way, I can't take this binding without a soc-specific compatible, > per sifive-blocks-ip-versioning.txt.. Further, "sifive,perfmon-counters" is an undocumented property. Thanks, Conor. --CLBf1mcbqLUt7ULL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZMNoygAKCRB4tDGHoIJi 0t7lAP4l8gcLhmzGLDZoKSuera2y1ijqtLLcIiiMvpnoAU9Z6gEA3sHmaOCWY5wC Dp6THGXUlDytdskVE4dXvgAel5laawk= =Bv67 -----END PGP SIGNATURE----- --CLBf1mcbqLUt7ULL--