Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2468097rwd; Fri, 16 Jun 2023 04:14:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7iPJ9a7D0vGtg5teG7zbXKYZ9FHlFwVBZA7AyMzy/p4+DZ1Bu+yxYAYQssRae8FYdnIqnx X-Received: by 2002:a05:6830:1011:b0:6af:9899:6db4 with SMTP id a17-20020a056830101100b006af98996db4mr1754505otp.14.1686914051017; Fri, 16 Jun 2023 04:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686914050; cv=none; d=google.com; s=arc-20160816; b=bKsqo0mxnbViFMKE8HSnA4YGaCLHVdU1XnrCYygsQlkfSx2hr1K6Fa4NsUSsCF+OL8 XOMgpkMKSXf0WfX46Yb8vizE6b/TL2DMOzRmn6PFoBOgXGlY5Q9Ch4nMOtA9hyNOIomp tGYX9qzZj9E+lITG/ltJnX00ZkdYXxRUVIh9JisdzFdjJ1dz7UEMvEYr7TKwhkPVJliE yti6Qd6vRUaxhaw65NxFMkeTY4U3yndR5urwfyZxPpFGE5ztoDVD1C+RtOLT05dLQGXi rTjUinzNxS0cAl7gX6j4RgHNqcoMSWpgk9SNZGQPSlevrcu/zO/m6ffXatWLEwhOIyAG FwLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CCG5A6ajXLTLE10xD/EwQtRbiFYAr92BjqbfBvbs0JM=; b=CQBwyfSnkc4YqURMbk8roFyJe3LL69Wh6NvUUxVk0DDio/6f0B+ZUx/paWN8QkFd0t 0xb8GhnKAH0D761YiNhbxnObl2WKp0RXkefALih5jwXZ8FfFp5mqSZ403E2iH5gZJEMC +koHP+DTSnwCGzneNC37WQiXotucO+wR6TMFKnsI/pKevnfXUm83virSFCZE3hMs/dW+ rC0ADCGQYwzApYSrsfw69uYNO6cytBBULdGzXGSFNvmAYzNujDgXEp+54Ljv71lZwftg rZW56unjBmIDU0RFXjQeTT1kC8AN8EWypmp84uFXZIOHcd5uVPGumw5Q2g798gGZhtoM uhNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cx8hqyXE; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 135-20020a63018d000000b0054fe4986366si4055084pgb.342.2023.06.16.04.13.58; Fri, 16 Jun 2023 04:14:10 -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=@linaro.org header.s=google header.b=Cx8hqyXE; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345519AbjFPKxp (ORCPT + 99 others); Fri, 16 Jun 2023 06:53:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345531AbjFPKxS (ORCPT ); Fri, 16 Jun 2023 06:53:18 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA79765AB for ; Fri, 16 Jun 2023 03:45:14 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-982ae93386aso78920866b.1 for ; Fri, 16 Jun 2023 03:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686912313; x=1689504313; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CCG5A6ajXLTLE10xD/EwQtRbiFYAr92BjqbfBvbs0JM=; b=Cx8hqyXEUK5n/F62ME4CFIQWOYqMOsvyeK757+STYBi0A9mA22sCgVtbAKNgMDmWMD KfEynGMuCfXSlNJ5DV0IEagQ91+r8zLn6dzyd2769QJ+lagubdNtu65uUeLDN3IGtDNN oDxDctQHR+auluwdqh/kIlGLiCuUzRViTl6TIdAwZ4a3JM+XMHgM5942iMj+dssyMhKb NKqNJ80dcdIidj+M5FgoCPqQPN96kKGGaUNu5hwKdmzn5awhUAdZJHZG5WE1a6+J2Izm 8vssm2rgCrbFScEW9FraY2Ehl/1CKjarUvOEuXRLRYDq+9GG3E5jENuuNFSPj7FuuN/p XsEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686912313; x=1689504313; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CCG5A6ajXLTLE10xD/EwQtRbiFYAr92BjqbfBvbs0JM=; b=F2e/62zFeXwW7qouFu8yX5pAAM3Karp0Jz6FXjVZ+ZVQDfhGHWoaVZHNTBxUqCQo3+ Sa9KF0Wu/ycNP9TiVpUAkBLq6c05AyZk27X86VSnSzU/S4iBAkInA9JokhonI9jPS7HG cU4VV78/ap28yziUgDyPB7V37eN6ZFk1swa0Jqsgoce8UowCTeYBznXnc6EzxYKt9ZXT 521alJksyv8NEpr4botCCUXs4A1QXYq2iVavic7DABIiaG3Hlyv+zJPEbq37r3u7OUw3 dw7F5YV9EuKMpI39zTUyVqvhreGFQ7gN3G6xCbfdddlgGo7oIIAol/cxpIMrxbYBv3Gz 9ySQ== X-Gm-Message-State: AC+VfDy2hguF9D41KhkYyDC7EoQaFErzsdVnZZYg3wsKTyu1S5EmiCsF 5tRfT7L+SwKfK61lZvH8zN2BVg== X-Received: by 2002:a17:906:974a:b0:982:7735:436d with SMTP id o10-20020a170906974a00b009827735436dmr1948610ejy.7.1686912313065; Fri, 16 Jun 2023 03:45:13 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id k10-20020a17090646ca00b009827b97c89csm3130806ejs.102.2023.06.16.03.45.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Jun 2023 03:45:12 -0700 (PDT) Message-ID: <2437bda9-bbdb-ad80-7201-1e16e1388890@linaro.org> Date: Fri, 16 Jun 2023 12:45:09 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 3/3] dt-bindings: riscv: sifive: Add SiFive Private L2 cache controller Content-Language: en-US To: Eric Lin , conor@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, maz@kernel.org, chenhuacai@kernel.org, baolu.lu@linux.intel.com, will@kernel.org, kan.liang@linux.intel.com, nnac123@linux.ibm.com, pierre.gondois@arm.com, huangguangbin2@huawei.com, jgross@suse.com, chao.gao@intel.com, maobibo@loongson.cn, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dslin1010@gmail.com Cc: Zong Li , Nick Hu References: <20230616063210.19063-1-eric.lin@sifive.com> <20230616063210.19063-4-eric.lin@sifive.com> From: Krzysztof Kozlowski In-Reply-To: <20230616063210.19063-4-eric.lin@sifive.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 16/06/2023 08:32, 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/riscv/sifive,pL2Cache0.yaml | 81 +++++++++++++++++++ > 1 file changed, 81 insertions(+) > create mode 100644 Documentation/devicetree/bindings/riscv/sifive,pL2Cache0.yaml > > diff --git a/Documentation/devicetree/bindings/riscv/sifive,pL2Cache0.yaml b/Documentation/devicetree/bindings/riscv/sifive,pL2Cache0.yaml > new file mode 100644 > index 000000000000..b5d8d4a39dde > --- /dev/null > +++ b/Documentation/devicetree/bindings/riscv/sifive,pL2Cache0.yaml > @@ -0,0 +1,81 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright (C) 2023 SiFive, Inc. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/riscv/sifive,pL2Cache0.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: SiFive Private L2 Cache Controller > + > +maintainers: > + - Greentime Hu > + - Eric Lin > + > +description: > + The SiFive Private L2 Cache Controller is per hart and communicates with both the upstream > + L1 caches and downstream L3 cache or memory, enabling a high-performance cache subsystem. > + All the properties in ePAPR/DeviceTree specification applies for this platform. Drop the last sentence. Why specification would not apply? > + > +allOf: > + - $ref: /schemas/cache-controller.yaml# > + > +select: > + properties: > + compatible: > + contains: > + enum: > + - sifive,pL2Cache0 > + - sifive,pL2Cache > + > + required: > + - compatible > + > +properties: > + compatible: > + items: You have only one item, so no need for items... unless you just missed proper fallback. > + - enum: > + - sifive,pL2Cache0 > + - sifive,pL2Cache1 What is "0" and "1" here? What do these compatibles represent? Why they do not have any SoC related part? > + > + cache-block-size: > + const: 64 > + > + cache-level: > + const: 2 > + > + cache-sets: > + const: 512 > + > + cache-size: > + const: 262144 Are you sure? So all private L2 cache controllers will have fixed size of cache? > + > + cache-unified: true > + > + reg: > + maxItems: 1 > + > + next-level-cache: true > + > +additionalProperties: false > + > +required: required: goes before additionalProperties:. Best regards, Krzysztof