Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3014544rwb; Mon, 15 Aug 2022 16:10:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR6IuiN48h8/sNL04X4dOSB5dyQf4R4ifbXq+/k6keO3kEw8Cc6K849KjKIkLNO8tKFNpCVc X-Received: by 2002:a05:6402:2792:b0:43f:6873:7497 with SMTP id b18-20020a056402279200b0043f68737497mr17249717ede.175.1660605031712; Mon, 15 Aug 2022 16:10:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605031; cv=none; d=google.com; s=arc-20160816; b=m2ls3g98zc1ifYDLjMNNHfUiF2gJqSZwOA/XRy4p4cyWgfuWWCzo7Yt3gNfideKt6c QSH87yaA9hm5+/obuB+rmjzIT321XJK1Kmuhys0id1f9fbZL5G8kuciFSVLK06CnGO8R GxJoYcFDaZ0fkw2qF0GABeG5bY3nslGef6O/arn+xEnsOIkSPskpsrtSnlr1gX1U/cKy cAAZH16RlIbMIgSxvCSMCcZ9MhKhKQuOKZoAm6sM8vCdhuiL2W3gIrcQmqQ+xEdR4FNg yNbQSASAhBtj187Rds+U8XxTg2oHsoeKipZluhW7bGxsY9armDMik0eVa2OMMhB8guUU VNdQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jtm/LFpJt/2MHmfIG97cXifgWwtFUsG6jE7Q2sRxkjc=; b=iAVN+wyryCYFik2hyvDxQl73ONNRnuwzdW3P6jv7xN1HF69sS6fIJmcTEGR1GUY0Ad KRHdwkMnTGfMS+eTvzgW5MQGZJkzBiXB3j3D0oGmTLBMY/TZsnIXXjIhEOZJSEiqxNDg dLxGlLd1/r1de6Z7B2jRn2M4brF2y3Rfa3mFOK9zs7j5YaD8yMU4jW9Tj1j/Cqkr5ER4 4cVP5prs8KykSYFKaBYJRykmqldjGmsTtoTnMvHMqV3Chj5EGxCXD/S28QcOqBIaHdnT fh9+DjzPZXzp8mJgLSOEmA9fRxbv834TQr4nayGCMYnKQo8VQAWbwt2iTKrgXlplcsV0 m07A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2hdwX4hP; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g14-20020a1709065d0e00b0073150f3dbbfsi8590625ejt.950.2022.08.15.16.10.05; Mon, 15 Aug 2022 16:10:31 -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=@linuxfoundation.org header.s=korg header.b=2hdwX4hP; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346214AbiHOWE6 (ORCPT + 99 others); Mon, 15 Aug 2022 18:04:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350228AbiHOWBz (ORCPT ); Mon, 15 Aug 2022 18:01:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E78E113686; Mon, 15 Aug 2022 12:36:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B015AB81141; Mon, 15 Aug 2022 19:36:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0ABFAC433B5; Mon, 15 Aug 2022 19:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592171; bh=MqXDXlZKe82M+ZSR3HvDR2TXSZqOQYNlIWIzz4zgi5A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2hdwX4hPtbIIQWyoVtNdnbmasXBMaiG+luRaQOEnJ8nbw3B1v2Qz/Sw0+Bi/A+MMV pJLsMd5LpFp3Uaye0w0dEGRuQcQku3F2Bl3m2jtAqZ8XEjpVqIV1yxaqGq/8zHobA5 xjYUot6AY3ijqyytUBPyphsOK6puqMXJhBxBRCbU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Atul Khare , Conor Dooley , Krzysztof Kozlowski , Palmer Dabbelt Subject: [PATCH 5.19 0069/1157] dt-bindings: riscv: fix SiFive l2-caches cache-sets Date: Mon, 15 Aug 2022 19:50:25 +0200 Message-Id: <20220815180442.253046396@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Conor Dooley commit b60cf8e59e61133b6c9514ff8d8c8d7049d040ef upstream. 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 Reviewed-by: Krzysztof Kozlowski Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20220803185359.942928-1-mail@conchuod.ie Signed-off-by: Palmer Dabbelt Signed-off-by: Greg Kroah-Hartman --- Documentation/devicetree/bindings/riscv/sifive-l2-cache.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- 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