Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6143667rdb; Thu, 14 Dec 2023 09:21:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFb17PjTcOTjIt2fIlpAZG/J+OJ+YMqRlalmu0hi+na7dEx9jrMJCa/6v2yYhVBF+pojaNl X-Received: by 2002:a05:6a00:3912:b0:6d0:d864:e34d with SMTP id fh18-20020a056a00391200b006d0d864e34dmr3152879pfb.38.1702574462443; Thu, 14 Dec 2023 09:21:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702574462; cv=none; d=google.com; s=arc-20160816; b=ESRHGTROJhi8d899nwaTZ01NTguoBlzKiSr6QZWlCsHWFAduuaB1DwrCHBGQlBoilv tS5U5cA65Uv2TX+QXoAlrh/Q4sIt5U7ZCwKspbpMVfWuArziw0lI/x6ZtmQOCNtjLuii kMEY5aoaroVVHfoJ/uqXxYmdIvyuYS7XKIyuK8VR2/Fp2usWKPqOO7ywbF64dP6mo+Uo MXxoTMf35RxH1zL3olcjYjS5G3lVqG5iXBut2l1h+NSwcSdVyCcuBrf3wkM51RNJ2dhb wJ8cqR11m3jHey1fCdeqvavXJGs37S84s8gdkKFd26/rm4lKgqwiXmwxwv5g80d24+tG OEqA== 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=5+F8ciQVGIw9fMsFLXzGlUHF6cxC03FKdUbAqZam9Wc=; fh=wX0USW1Et6XRpLP0VuT6WP3B+9AhqXf+BiJXkq7aPTk=; b=XifMBEYGyr7PHqFnsH+/LUkP0u/+OuHo6VQ2yugC/CbOpuERYtOGsSmoK9bcvRophJ v4pzz2pMOEG/gG0ZVKHue9tQWbMFHi1P+tfN50K9NogbveXEUd/IsL29jTfj86jM7AHG MEMEMKIV32zCUq9fjlkOfiSLuBbY3TJG5PuvpkmEE23l4w1EjkPT64AVRq5t/p/2JZTH bvsMWluSuGINlztiMxMqB7amzLUWcZei3yHFRY444ul5cjrBejpIVp5NANiZqR4gOfEZ 3N0k0Z+7/8qSlfBahjnaTtgkRZwfNdYPnMpm7PKX5ii8Fm9yDiVCEt4yvir1ZMe2Ofqd xPFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=N46n21qa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id f11-20020a056a00238b00b006cdedafaec3si11848019pfc.49.2023.12.14.09.21.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 09:21:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=N46n21qa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 9E75180C8772; Thu, 14 Dec 2023 09:20:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229864AbjLNRUh (ORCPT + 99 others); Thu, 14 Dec 2023 12:20:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230387AbjLNRUe (ORCPT ); Thu, 14 Dec 2023 12:20:34 -0500 Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63356B2 for ; Thu, 14 Dec 2023 09:20:40 -0800 (PST) Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-6d9daa5207eso5560443a34.0 for ; Thu, 14 Dec 2023 09:20:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20230601.gappssmtp.com; s=20230601; t=1702574439; x=1703179239; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=5+F8ciQVGIw9fMsFLXzGlUHF6cxC03FKdUbAqZam9Wc=; b=N46n21qaChW5eXxSGESwOeGo8391qa7oDXiOFtFyUUpwpFB2TStjG3uXZr/AMUWwTC y0JyaD2eHbqTlu68g8YcUVeyOY/FWH8mFDpeb2OHWsCKqYHTksvgzJldOapnri2NftPp Sp4BFVUlCETSkb52XA9SrK3TN7SglUloWGGfIvxiNobBPsNKb6wrGA0O/CCBDQDU9PBC aKpzqtttqBvRv18nc9h5bveE3Dhm/Fbvkr1EYgUkrL3PB3yv9RCDdF28MZS3Oq1FFDeh McjSCc3Hg5YDFDNVBMAFUkAj6P94mbXIDiz4C2drzHgC7CxbubF3K/ON3khGBpx7oExp qy/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702574439; x=1703179239; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5+F8ciQVGIw9fMsFLXzGlUHF6cxC03FKdUbAqZam9Wc=; b=h9vORUAlK7WQEFffGHsg5nBKbMd+6f+wiDfOPNZ6ABBeASdBLxw5exV+yP7Z95DpKt tQ8iqXMkiFopbDMJ1ibbceuV6UwAgLZ8T4p+DdSFpa7NV5sYDoBBl0Oi6J5U+4MxJ7TH VLl/dw9V89UOI8iABKdwOVL/xu7BNYak43XeCJGvkbhpVvYMgEbNqeFt4UPyklanGBrN zrRIHud/mAaAyI3564QRT2iBiQTHeOMix+zJPqRcRe9qUlei2nHd+Thsjz/wLuPUHWeV nFbiL0vXrZkx3cL6DCJzoLarVPq9+9G+Gn5WKDH6n9pVtZrAOif/Hr2GGPt+ZuBs1afO iYsA== X-Gm-Message-State: AOJu0Yyv58ioqMLc8tNDivR8Aoj8b7KABOrL9govfGhdLbz/9Lml+IcW zF12a28An41MHt74PoYk9u93JA== X-Received: by 2002:a9d:7402:0:b0:6da:3068:e4ff with SMTP id n2-20020a9d7402000000b006da3068e4ffmr3616737otk.3.1702574439636; Thu, 14 Dec 2023 09:20:39 -0800 (PST) Received: from localhost ([192.184.165.199]) by smtp.gmail.com with ESMTPSA id h16-20020a9d7990000000b006d9d8abcdeesm3321329otm.40.2023.12.14.09.20.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 09:20:38 -0800 (PST) Date: Thu, 14 Dec 2023 09:20:38 -0800 (PST) X-Google-Original-Date: Thu, 14 Dec 2023 09:20:35 PST (-0800) Subject: Re: [PATCH v3 2/6] dt-bindings: riscv: Add StarFive JH8100 SoC In-Reply-To: <20231214-platonic-unhearing-27e2ec3d8f75@spud> CC: jeeheng.sia@starfivetech.com, kernel@esmil.dk, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, krzk@kernel.org, conor+dt@kernel.org, Paul Walmsley , aou@eecs.berkeley.edu, daniel.lezcano@linaro.org, tglx@linutronix.de, anup@brainfault.org, Greg KH , jirislaby@kernel.org, michal.simek@amd.com, michael.zhu@starfivetech.com, drew@beagleboard.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, leyfoon.tan@starfivetech.com, Conor Dooley From: Palmer Dabbelt To: Conor Dooley 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=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 14 Dec 2023 09:20:59 -0800 (PST) On Thu, 14 Dec 2023 08:22:29 PST (-0800), Conor Dooley wrote: > On Thu, Dec 14, 2023 at 12:36:57AM +0000, JeeHeng Sia wrote: >> >> >> > -----Original Message----- >> > From: Conor Dooley >> > Sent: Wednesday, December 13, 2023 8:43 PM >> > To: JeeHeng Sia >> > Cc: kernel@esmil.dk; robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; krzk@kernel.org; conor+dt@kernel.org; >> > paul.walmsley@sifive.com; palmer@dabbelt.com; aou@eecs.berkeley.edu; daniel.lezcano@linaro.org; tglx@linutronix.de; >> > anup@brainfault.org; gregkh@linuxfoundation.org; jirislaby@kernel.org; michal.simek@amd.com; Michael Zhu >> > ; drew@beagleboard.org; devicetree@vger.kernel.org; linux-riscv@lists.infradead.org; linux- >> > kernel@vger.kernel.org; Leyfoon Tan ; Conor Dooley >> > Subject: Re: [PATCH v3 2/6] dt-bindings: riscv: Add StarFive JH8100 SoC >> > >> > On Fri, Dec 01, 2023 at 08:14:06PM +0800, Sia Jee Heng wrote: >> > > Add device tree bindings for the StarFive JH8100 RISC-V SoC. >> > > >> > > Signed-off-by: Sia Jee Heng >> > > Reviewed-by: Ley Foon Tan >> > > Acked-by: Conor Dooley >> > > --- >> > > Documentation/devicetree/bindings/riscv/starfive.yaml | 4 ++++ >> > > 1 file changed, 4 insertions(+) >> > > >> > > diff --git a/Documentation/devicetree/bindings/riscv/starfive.yaml b/Documentation/devicetree/bindings/riscv/starfive.yaml >> > > index cc4d92f0a1bf..12d7844232b8 100644 >> > > --- a/Documentation/devicetree/bindings/riscv/starfive.yaml >> > > +++ b/Documentation/devicetree/bindings/riscv/starfive.yaml >> > > @@ -30,6 +30,10 @@ properties: >> > > - starfive,visionfive-2-v1.3b >> > > - const: starfive,jh7110 >> > > >> > > + - items: >> > > + - enum: >> > > + - starfive,jh8100-evb >> > >> > Hmm, reading some of the other threads it appears that the evaluation >> > platform that you guys have is actually just an FPGA? Could you please >> > provide more information as to what this "evb" actually is? >> > >> > If it is just an FPGA-based evaluation platform I don't think that we >> > want to merge patches for the platform. I'm fine with patches adding >> > peripheral support, but the soc/board dts files and things like pinctrl >> > or clock drivers I am not keen on. >> > Perhaps Emil also has an opinion on this. >> Eco the same reply here. I am not sure what you mean. We verified on FPGA & Emulator, >> and the logic is pretty much close to the real silicon. > > "Pretty much close" That doesn't give me confidence. The compatible > should uniquely identify an SoC, but if it is used for both the actual > SoC and for something "pretty much close" to the actual SoC then that > does not hold. Ya, trying to have some pre-silicon FPGA-based platform alias with the real chip is a repice for disaster. >> I did mention that in the cover letter as well. > > Ah apologies for missing that. I try to read cover letters but the > volume of mail gets to me at times. > >> I am new to Linux, so I am wondering if there is a Linux upstream guideline mentioning >> that pre-silicon software is not allowed to upstream? > > I wouldn't say that this is the case, but things like clock and pinctrl > drivers are the sort of things that are likely to vary in your "pretty > much close" as that is the kind of thing that change for your final > integration, versus a more "standalone" peripheral. Yep, and since integration issues in the ASIC blocks can end up manifesting as SW-visible behavior in nearby blocks it's hard to just pull out the peripherals -- we sort of try by getting the DT topology to match the SOC, but there's always some mismatches. > For dts stuff, in RISC-V at least, we've been operating so far on the > basis that systems implemented entirely on an FPGA are not suitable for > inclusion in mainline. I would say that this can probably be relaxed to > allow systems where there are publicly available, versioned, designs or > bitstreams that are widely used that these devicetrees correspond to. > This would suit something like if AMD published a bitstream using one > of their new MicroblazeV cpu cores as a sort of "reference design". FPGAs are definately in a grey area, but that's been my mindset as well. For me it's less about FPGA vs ASIC (or any other manufacturing technology in between) and more about whether something is being used publicly. Specifically: is the FPGA used for internal pre-silicon work or is it some publicly availiable system? The versioning stuff is also important, but we need that for ASICs as well since they can be re-spun. >> Hope there is an updated Linux >> upstream guideline that benefit other vendors. > > I have no idea if there is one or not. I think it generally varies on > individual maintainers etc, and for something like a dts it comes down > to the platform maintainer (Emil) I suppose. Sending stuff out before > your SoC has been produced is really great though, so it is a fine line > to avoid discouraging something we really like to see. IIRC we've got some stuff written for arch/riscv somewhere in Documentation, but the hardest part here is that each subsystem is going to have different policies so it's kind of hard to try and come up with a general rule. > Cheers, > Conor.