Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1024259rwb; Thu, 11 Aug 2022 14:24:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR5asPxSMYI6AarQdtgsuE3RumfsBU+8RmXz0jArKjOuMnwWxVhoi29vWdo2NiotWrbeyyrL X-Received: by 2002:a65:6d98:0:b0:41d:d9:a338 with SMTP id bc24-20020a656d98000000b0041d00d9a338mr671384pgb.421.1660253066195; Thu, 11 Aug 2022 14:24:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660253066; cv=none; d=google.com; s=arc-20160816; b=XfbseW79GpIR5bvah/grcNjc5MVVp+LD2qXpoMUjWzWNaFMgL1AYlHKt7HrCOOkJbE r8B0/qG7Mi9Qsqe8BdUtuPIQBd0hXetGBs9E9AYrH2fGOSNqWT3QV8MEMYNaKWlgZI7e w0ecs9yqoRcIHdAJVb0ePeBjAiDaZkT9ffFMZndfIV8O+2YUhqnxZE+yQKEwjk7ZHYk9 kzqiUjx9v6w6mFnqnXoEKfzFV453vCS80pR2UwZQfAnv5+1yd+ml6FE31CICOqi7UMrj 8LROXP1BRq/L9EYmY30pkTEwBDGRU2Ag3a+Yvx4cdN/lmdCebIFHQobg0VVd9/xlW+Tk b3RA== 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:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=fYIwfWDqXvJTpIZp6wWu1QnQ1p5fYHmeOm5er300uW0=; b=rVAu7NO9Bkj5MaaOMx5ujdaR9KGsE1Q9z+nQmiaTYLOm3vJj5fk+y/xyltqtvC+1AP JIotPJzjuxTLT5pOF7EzYgv+EANdevlWKAIQBOMLR2uk4aBe6Rh5iX8A5efvDco2kRni J0pzScKTfbKPfL1ieQrltdL03HEbSezPM5i9ZQHQ8HLqUAq69Y5+1+gFEgg6oKkH2mEv E47g9uo0gtOPoEuh1A95UexAzqSSisQUf6mI3X3dtYdialfkdz4nIaODyyVKh8ensAHR 8fkj8+BJ/+AyeaJHHFf/n77wDAHC+wOFREowLvMlzrFmjIjwDk+vAgTSzmcc5NX9Crlv Q8eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=bCRcnoMd; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h71-20020a63834a000000b0041d37623284si419865pge.643.2022.08.11.14.24.13; Thu, 11 Aug 2022 14:24:26 -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=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=bCRcnoMd; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236528AbiHKVIO (ORCPT + 99 others); Thu, 11 Aug 2022 17:08:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236486AbiHKVHx (ORCPT ); Thu, 11 Aug 2022 17:07:53 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DB90A061D for ; Thu, 11 Aug 2022 14:07:10 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id a8so18737788pjg.5 for ; Thu, 11 Aug 2022 14:07:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc; bh=fYIwfWDqXvJTpIZp6wWu1QnQ1p5fYHmeOm5er300uW0=; b=bCRcnoMd0iKE/9LgGvS5U9Khr9pMfS0mzU8SLvpNVACCVJqJPmsDOjWtSWl5n9N/yS 3JFou+HII01bQrn62nQVHgVrYehTqkwoV41tt8IRH+EhAQA8FXu4eaz635W9hKAyyBT1 85dX/QZz6Mfp8pA43pHm4uZF2LB9G58Bhmr80hx2nEcKlEnvd3wdo8BlqgCymspxvYFU J1N38sMn+8GPiFZ7D5bCBr0Ia9e7/oizTh84yL2voY4yF8YBkfZEqZCyrgTduwQo0u5M NYgqfBi5vLoTXmYF9Pp51zxNvyJgq91C8E0M7nVGDpEq7OLcEdpYQFjrWcbD+6SjsBI+ q/Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc; bh=fYIwfWDqXvJTpIZp6wWu1QnQ1p5fYHmeOm5er300uW0=; b=NxRZ8Us7ADGZC+pHsKdC1LarazdFsHswfeTCuwM+roU6AKpeMnWFFpyNFD6C56sJXu Qg6HFQlHIj8hWrqpnWdeOUwJ+sciHqHzkUWWvPTPP7TnPjapY6nys4Kbi2jcKARHhw+j EOx0uobKgfLHx3X6AaqLay3hHQlfGcWqyJfWufVGKlTCDiqM3HPWNDZj2MmjN6ZPeWjF p/MGZDQaR8/WuDotRH0U5abNQlA71U/uhWykLAWs3IldK3aIBpuwSn9ynmWFl0Dao/xp dSFyu5KZkBYbrYPrU1m3/oK+dw1Njwnd33OETNwSiB+5J6Rft5cxS2P0ffbx4mhYN2Hn QDUg== X-Gm-Message-State: ACgBeo1entN6hVQ21ZRP3LPwPpvPldySN1jijuvF/vkwRi8VuJ903DZ4 AWP/C40Rn3HOi+aAYE4lWL5s+A== X-Received: by 2002:a17:90b:38cb:b0:1f5:2321:63cb with SMTP id nn11-20020a17090b38cb00b001f5232163cbmr10757573pjb.110.1660252021424; Thu, 11 Aug 2022 14:07:01 -0700 (PDT) Received: from localhost ([50.221.140.186]) by smtp.gmail.com with ESMTPSA id x190-20020a6231c7000000b0052def2e20dasm122957pfx.167.2022.08.11.14.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 14:07:00 -0700 (PDT) Date: Thu, 11 Aug 2022 14:07:00 -0700 (PDT) X-Google-Original-Date: Thu, 11 Aug 2022 14:00:19 PDT (-0700) Subject: Re: [PATCH] dt-bindings: riscv: fix SiFive l2-cache's cache-sets In-Reply-To: <20220803185359.942928-1-mail@conchuod.ie> CC: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, Paul Walmsley , aou@eecs.berkeley.edu, conor.dooley@microchip.com, atulkhare@rivosinc.com, sagar.kadam@sifive.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: mail@conchuod.ie Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wed, 03 Aug 2022 11:54:00 PDT (-0700), mail@conchuod.ie wrote: > From: Conor Dooley > > Fix device tree schema validation error messages for the SiFive > Unmatched: ' cache-sets:0:0: 1024 was expected'. > > The existing bindings allow for just 1024 cache-sets but the fu740 on > Unmatched the has 2048 cache-sets. The ISA itself permits any arbitrary > power of two, however this is not supported by dt-schema. The RTL for > the IP, to which the number of cache-sets is a tunable parameter, has > been released publicly so speculatively adding a small number of > "reasonable" values seems unwise also. > > Instead, as the binding only supports two distinct controllers: add 2048 > and explicitly lock it to the fu740's l2 cache while limiting 1024 to > the l2 cache on the fu540. > > Fixes: af951c3a113b ("dt-bindings: riscv: Update l2 cache DT documentation to add support for SiFive FU740") > Reported-by: Atul Khare > Signed-off-by: Conor Dooley > --- > I split this off from the existing series as there is no dependancy > between this cache change and the gpio patch. The prior series can > be found at: > https://lore.kernel.org/all/20220726170725.3245278-2-mail@conchuod.ie/ > --- > .../devicetree/bindings/riscv/sifive-l2-cache.yaml | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml b/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml > index e2d330bd4608..69cdab18d629 100644 > --- a/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml > +++ b/Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml > @@ -46,7 +46,7 @@ properties: > const: 2 > > cache-sets: > - const: 1024 > + enum: [1024, 2048] > > cache-size: > const: 2097152 > @@ -84,6 +84,8 @@ then: > description: | > Must contain entries for DirError, DataError and DataFail signals. > maxItems: 3 > + cache-sets: > + const: 1024 > > else: > properties: > @@ -91,6 +93,8 @@ else: > description: | > Must contain entries for DirError, DataError, DataFail, DirFail signals. > minItems: 4 > + cache-sets: > + const: 2048 > > additionalProperties: false Thanks, this is on for-next.