Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp977704rwb; Fri, 28 Jul 2023 02:53:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlExAQJaZS3FSm3T/GdveMT1TJfL1Ahl1JbtzXt9Ic2MtNqAucEvFpPnuFj5ugZBRbi8DAcf X-Received: by 2002:a17:903:454:b0:1b5:5162:53bd with SMTP id iw20-20020a170903045400b001b5516253bdmr1419565plb.33.1690538031930; Fri, 28 Jul 2023 02:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690538031; cv=none; d=google.com; s=arc-20160816; b=Rjo46sbdqAsy2oxiUc4pr3dQ0mhS3vgeXaFyAn85G9hUUGhFE1m6DnLGuM/fAoyngO 2xaU9HxTRocMA06n70Kj0waC9PmNIABRen4SCMa3Ag4uz+9mtdBHk9LHXamIw9iEH+hY RuU/3Tdci4cSg61efsU03tAcRNSMH6fcamV7sxU80jD0JgCSNjUFMC3HZSX4FkNSF+yj +dhfzaWp2THPBN8dmM7i+hwqCOv9g+4bFu1lLed12INzCu8cfZzcbkROxz/rozwmvZmt u0wdGs/FJTCkuvZlhbMUpJLmMe8iJS0MenVF0hDj3FQCq3/0gX2xb0qHrGQRmHZgxi3F 4BuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Nfg1hAFAFOQRB0/caU2cskMNI6q+Xu+UtevR3ZMivJM=; fh=VkMimE+uhxMS3w+QsbmEo4DR4cHC20wNZ+kie0iaV8s=; b=hj4tkVYGMlj+GuA2LYQEJzVUZeqnJirQtswV7++KZJNqNunjA1bx/i79Ny4XRPTszu QSU7lklYl4xMWzx33ubip/c091zGWioCXRHV93uxuJhEFjC/FGQPqnZF47CNQZe8nkTN fTceLFBTaFVCeSTFgG3pEWydI7BCW0hY1yPSLSNeMa4lwXQFlravvNVKLvAMqLaWe1J2 zgDg3bjIG+INouieECbPYcCUnPFD8iSa6s9tSI5Bw5g7hoag/XidvYD0g2qNqPr4LsAb pdWqOcTyRq7rIhWs9xig9qUERs6X26SCiFjnXHUHFkArbhJTI3UEuO69h/MG5FE7lPYA eEaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=Vh9YSeCI; 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=sifive.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c8-20020a170902d48800b001b8a56b9895si441660plg.616.2023.07.28.02.53.40; Fri, 28 Jul 2023 02:53:51 -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=@sifive.com header.s=google header.b=Vh9YSeCI; 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=sifive.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234812AbjG1I0q (ORCPT + 99 others); Fri, 28 Jul 2023 04:26:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235050AbjG1IZj (ORCPT ); Fri, 28 Jul 2023 04:25:39 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B1284202 for ; Fri, 28 Jul 2023 01:24:21 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2b72161c6e9so39464811fa.0 for ; Fri, 28 Jul 2023 01:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1690532660; x=1691137460; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Nfg1hAFAFOQRB0/caU2cskMNI6q+Xu+UtevR3ZMivJM=; b=Vh9YSeCIoQwXiMdNvouVxbJZmT0mZh2Gc4haKgKJA9lGwQ3+sygkU/zwc2EibPipxv BsAzSC5mcVJrgOda1VzsKYsAGxfWclLMaHbvnSpJnNtAeawDY57RzK/h5xpBxhR4qMGa TT2nuDK9+2LZD+AX4RH9KGU4mTjEkoeu5FV/cABUqIH4op26G32QtU1tNe33/Vgj/W7J LCHToWF/FRxzGzCrC46dgQGamdJI+pr3g+E8VVaZEKaYSRSqpzPreZrgtrR5mQop5jNF 2hpMy9xdQyz55RLghHhtFpJtPD421ZVHQYkLKceiVplpvPVBGcrzb611v5hslZH8J8/Z tGiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690532660; x=1691137460; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Nfg1hAFAFOQRB0/caU2cskMNI6q+Xu+UtevR3ZMivJM=; b=BEEY8FtNgsDnhlGAYQaR/0FErWIeI81PkyP1jXlY+MegemBBsuPh/SB/gmS0EASlTI CNvmTyeuiiOCMFAtD0Z6ZefqLEo9GbILB5lYdvLMWqMaKGK/zJb7Sosww5OLYgS3ux7X gyf0iRghX3uRS0HoGfkhWX5h1GWSEFOWGquxklg6Gyitjdur4YXd3b+BcQR93/NxHTFf P4Edd+B1eg+0KkdPRWz1qtWSosoqpfvXbbeDklT0KQPsKL5n0hTeKXgyYp3w2r8iHMey dpg6d+PrZdaa4CVu46lz9h+exrgVNIMp9w4cOj8RQpz4/SWJ5hvvVf00/9+UFCSU40EY IxQg== X-Gm-Message-State: ABy/qLYxFNUmgF+vKfG5S44XXDgsjR5jzc8Q3A5G64J7wdcqRy1Io2JH vmfdsS2Lu31j5wlTJX6uTKnyLwbfBOH0sfVqPPVH5Q== X-Received: by 2002:a2e:9b8b:0:b0:2b9:aac2:710e with SMTP id z11-20020a2e9b8b000000b002b9aac2710emr765623lji.7.1690532659661; Fri, 28 Jul 2023 01:24:19 -0700 (PDT) MIME-Version: 1.0 References: <20230720135125.21240-1-eric.lin@sifive.com> <20230720135125.21240-2-eric.lin@sifive.com> <20230720-slept-guru-216e2803061e@spud> <20230728-facedown-husked-9813fa79d9a0@wendy> In-Reply-To: <20230728-facedown-husked-9813fa79d9a0@wendy> From: Eric Lin Date: Fri, 28 Jul 2023 16:24:08 +0800 Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: riscv: sifive: Add SiFive Private L2 cache controller To: Conor Dooley Cc: Conor Dooley , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, zong.li@sifive.com, greentime.hu@sifive.com, vincent.chen@sifive.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 Hi Conor, On Fri, Jul 28, 2023 at 3:06=E2=80=AFPM Conor Dooley wrote: > > On Thu, Jul 20, 2023 at 06:10:51PM +0100, Conor Dooley wrote: > > Hey Eric, > > > > 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 > > > > > > Signed-off-by: Eric Lin > > > Reviewed-by: Zong Li > > > Reviewed-by: Nick Hu > > > --- > > > .../bindings/cache/sifive,pl2cache.yaml | 62 +++++++++++++++++= ++ > > > > btw, your $subject should be "dt-bindings: cache: ...." rather than > > "riscv: sifive". > > OK, I'll fix it in v3. > > > 1 file changed, 62 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/cache/sifive,pl= 2cache.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/cache/sifive,pl2cache.= yaml 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 > > > > There's extra spaces in these lines for some reason. > > OK, I'll fix it in v3. > > > + > > > +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# > > > + > > > > I'm pretty sure that I pointed out last time around that you need to ad= d > > something like in the ccache driver: > > > > select: > > properties: > > compatible: > > contains: > > enum: > > - sifive,ccache0 > > - sifive,fu540-c000-ccache > > - sifive,fu740-c000-ccache > > > > otherwise this binding will be used for anything containing "cache" in > > the dt-binding. > > For this binding, I think that the following is sufficient: > > > > select: > > properties: > > compatible: > > contains: > > const: sifive,pl2cache1 > > Sorry, I misunderstood your meaning. To be honest, I'm not quite familiar with the usage of the select property. When should we use the select property? May I ask, is there a document to detail introduce each property and its usage like the device-tree spec? I think it would be very helpful for beginners writing correct dt-binding and it can save much reviewers time. Thanks for your kind explanation, I'll fix it in v3. > > > +properties: > > > + compatible: > > > + items: > > > + - const: sifive,pl2cache1 > > > + - const: cache > > > > You omitted the pl2cache0 from here, that needs to come back! You'll en= d > > up with 2 items entries. OK, it should be as follows, right? +properties: + compatible: + oneOf: + - items: + - const: sifive,pl2cache0 + - const: sifive,pl2cache1 + - const: cache + - items: + - const: sifive,pl2cache1 + - const: cache I'll fix it in v3. Thanks. > > 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. > OK, I'll add "sifive,perfmon-counters" property in v3. Thanks for your kind review. Best regards, Eric Lin > Thanks, > Conor.