Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp940151rwe; Wed, 24 Aug 2022 11:40:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR5MXIGrhSqKc+wArFC2hB+URp1PhUQwIXDQP53l0JVSWYHzd9M4ktcwkdKiftZw9DMXtlCj X-Received: by 2002:a17:902:be05:b0:172:f256:2b3c with SMTP id r5-20020a170902be0500b00172f2562b3cmr241673pls.150.1661366411145; Wed, 24 Aug 2022 11:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661366411; cv=none; d=google.com; s=arc-20160816; b=aOzuEzE6eVyqQcLstQDun154G4vE6y8yiNmdP1Vbx8lydH6XqPeFq2JTguUbq/2JlU hk8sIZhLwAE/kHfPu/xogePAeLrtRLaf3b4rjU/kI+RMVXI0EHw8f9yFqdtozf8cWo1Z 5ea6+D2qJs+aXy2zkWTaMN7iOLGX5mYpyZz3ed65TU8o2uCY6AI4bKNwviK2oT29DxCv Kd/L+7et/3Y+5Lnbio4Zy4tAlB/AhmO841GDh7OnPXAjwAPyaZnZQneZxbQmp5CfDSdq kZNZz+FqJrNQZy+8NlDvEKShh2u2D8JxRL6AVAeEEwZjXQL2BbpaA1SuOIzdA/LRhIHj 2j2A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=MalvSg/jXj1arUmvL6QbZzqevSbqBjDPpdf5l8hsjWY=; b=JakvMQTaWQ0vdUdFMEAhH213XfmNPYByFmPXMQJvIPX3rjCOcDwmUodrJFq8vVU2A6 KT3K1CoIAesKsgQbaRGhAvb5JQ81+6e3d0trBA0c4jHZnx15gykZe65T56/EuS5K2WTc uuOVBZsV64QKfPb3USz1ShRiR6Xx8qrFgmi3GMpxGd2IKdP3QlvEV23y5+RxpRAjpo7i fC+jmHh3JvLqmHvAgfS6h3bC2E3SEAq1CcDnkQCUDEOK8G8onzLdG8t+f1CuQAwB/PCo T1BpRrRMb7hqgfOAN/Nk3wZ1zIy3I5k9FXCU3i9DRMYvIb14/3Rqvs0+AsewJbvbQdFL P58w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e19-20020a056a001a9300b00535d7265923si19517445pfv.377.2022.08.24.11.39.59; Wed, 24 Aug 2022 11:40:11 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240425AbiHXSCT convert rfc822-to-8bit (ORCPT + 99 others); Wed, 24 Aug 2022 14:02:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240304AbiHXSBv (ORCPT ); Wed, 24 Aug 2022 14:01:51 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CD7D4DF22; Wed, 24 Aug 2022 11:00:39 -0700 (PDT) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oQug4-0004qH-Mb; Wed, 24 Aug 2022 20:00:32 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: tglx@linutronix.de, maz@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, linux-riscv@lists.infradead.org, Conor.Dooley@microchip.com Cc: daniel.lezcano@linaro.org, anup@brainfault.org, Conor.Dooley@microchip.com, guoren@kernel.org, sagar.kadam@sifive.com, jrtc27@jrtc27.com, ajones@ventanamicro.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, qemu-riscv@nongnu.org, robh@kernel.org Subject: Re: [PATCH v4 2/4] dt-bindings: interrupt-controller: sifive,plic: add legacy riscv compatible Date: Wed, 24 Aug 2022 20:00:31 +0200 Message-ID: <7260367.4vTCxPXJkl@diego> In-Reply-To: <95fe8df7-581e-f7ec-be1f-1c6e06cb30a4@microchip.com> References: <20220823183319.3314940-1-mail@conchuod.ie> <3948407.AJdgDx1Vlc@diego> <95fe8df7-581e-f7ec-be1f-1c6e06cb30a4@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR 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 Am Mittwoch, 24. August 2022, 19:55:17 CEST schrieb Conor.Dooley@microchip.com: > On 24/08/2022 18:44, Heiko St?bner wrote: > > Am Dienstag, 23. August 2022, 20:33:18 CEST schrieb Conor Dooley: > >> From: Conor Dooley > >> > >> While "real" hardware might not use the compatible string "riscv,plic0" > >> it is present in the driver & QEMU uses it for automatically generated > >> virt machine dtbs. To avoid dt-validate problems with QEMU produced > >> dtbs, such as the following, add it to the binding. > >> > >> riscv-virt.dtb: plic@c000000: compatible: 'oneOf' conditional failed, one must be fixed: > >> 'sifive,plic-1.0.0' is not one of ['sifive,fu540-c000-plic', 'starfive,jh7100-plic', 'canaan,k210-plic'] > >> 'sifive,plic-1.0.0' is not one of ['allwinner,sun20i-d1-plic'] > >> 'sifive,plic-1.0.0' was expected > >> 'thead,c900-plic' was expected > >> riscv-virt.dtb: plic@c000000: '#address-cells' is a required property > >> > >> Reported-by: Rob Herring > >> Link: https://lore.kernel.org/linux-riscv/20220803170552.GA2250266-robh@kernel.org/ > >> Reviewed-by: Rob Herring > >> Signed-off-by: Conor Dooley > >> --- > >> .../bindings/interrupt-controller/sifive,plic-1.0.0.yaml | 5 +++++ > >> 1 file changed, 5 insertions(+) > >> > >> diff --git a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml > >> index 92e0f8c3eff2..99e01f4d0a69 100644 > >> --- a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml > >> +++ b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml > >> @@ -66,6 +66,11 @@ properties: > >> - enum: > >> - allwinner,sun20i-d1-plic > >> - const: thead,c900-plic > >> + - items: > >> + - const: sifive,plic-1.0.0 > >> + - const: riscv,plic0 > >> + deprecated: true > > > > hmm, when setting this to deprecated, does this mean qemu was changed > > to not use that compatible anymore? > > > > I.e. reading deprecated I'd assume that this is kept around for old qemu builds? > > I did not make that change to QEMU. From v1 [0]: > > Rob: > > Conor: > >> In arm's virt.c they use the generic gic compatible & I don't see any > >> evidence of other archs using "qemu,foo" bindings. I suppose there's > >> always the option of just removing the "riscv,plic0" from the riscv's > >> virt.c > > > > I think we're pretty much stuck with what's in use already. > > > I'm on the fence whether to mark it deprecated though if there is no > > plan to 'fix' it. Doesn't really matter until the tools can selectively > > remove deprecated properties from validation. > > My interpretation was "do not use this compatible in any new devicetrees". > > I don't really have any strong feelings here. Maybe the description is > sufficient? that makes sense then. Existing users can keep using it, but no-one should create new usages of it, so this looks good then Heiko