From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4DF07C77B7F for ; Mon, 8 May 2023 15:56:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NerD3/T72PhcBDraClyNB5oh2VlDAdJoSgyXmDSNGr8=; b=fW8wfmXHQVJL47 3JrILQ94He6dsyQ6uRoSaSUgPxwEKLfiNp5Dq5tBh7xxRTFsy/ON5Ycj9yjZF+HWt5t40RSvZj70D ciGkdcJv7Zfy1xriNVXYMoaTma+gsjXFylU4P/TIaboFW8amDn0w77t8y4o16uXIpNIBC0f7o45Qs 2Usrgb98rAvYfg8jz2PoVdeZcwzu86HKs5iEkbtii1wdCC7h0GZ3fkJTDpU6uWGlSxHpL4jqJSGUj RqgPRI8oC59W3JEazUtgUf513zLvm07/six76imunKKr8+KG5x6x8FOKAjhwvmveHm4NbrzCvexrm ULAiWtMFmtNTY70EqwIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pw3Dq-000uSJ-2w; Mon, 08 May 2023 15:56:22 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pw3Dn-000uR6-1a for linux-riscv@lists.infradead.org; Mon, 08 May 2023 15:56:21 +0000 Received: from ip4d1634d3.dynamic.kabel-deutschland.de ([77.22.52.211] 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 1pw3DW-00063i-N6; Mon, 08 May 2023 17:56:02 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Conor Dooley Subject: Re: [PATCH 3/5] riscv: dts: add initial T-HEAD light SoC device tree Date: Mon, 08 May 2023 17:56:01 +0200 Message-ID: <3554468.R56niFO833@diego> In-Reply-To: <20230508-refute-reliable-f50dafa6afbd@wendy> References: <20230507182304.2934-1-jszhang@kernel.org> <7518428.EvYhyI6sBW@diego> <20230508-refute-reliable-f50dafa6afbd@wendy> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230508_085619_531689_280C6A84 X-CRM114-Status: GOOD ( 29.98 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Conor Dooley , Albert Ou , Krzysztof Kozlowski , Marc Zyngier , linux-kernel@vger.kernel.org, Conor Dooley , Rob Herring , Palmer Dabbelt , Jisheng Zhang , Paul Walmsley , Guo Ren , Thomas Gleixner , linux-riscv@lists.infradead.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org QW0gTW9udGFnLCA4LiBNYWkgMjAyMywgMTA6MzU6MzggQ0VTVCBzY2hyaWViIENvbm9yIERvb2xl eToKPiBPbiBNb24sIE1heSAwOCwgMjAyMyBhdCAxMDoyMzowMkFNICswMjAwLCBIZWlrby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19fCmxpbnV4LXJpc2N2IG1haWxpbmcgbGlzdApsaW51eC1yaXNj dkBsaXN0cy5pbmZyYWRlYWQub3JnCmh0dHA6Ly9saXN0cy5pbmZyYWRlYWQub3JnL21haWxtYW4v bGlzdGluZm8vbGludXgtcmlzY3YK From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DAAAC77B75 for ; Mon, 8 May 2023 15:56:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232674AbjEHP4P convert rfc822-to-8bit (ORCPT ); Mon, 8 May 2023 11:56:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229523AbjEHP4O (ORCPT ); Mon, 8 May 2023 11:56:14 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4D2C90; Mon, 8 May 2023 08:56:11 -0700 (PDT) Received: from ip4d1634d3.dynamic.kabel-deutschland.de ([77.22.52.211] 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 1pw3DW-00063i-N6; Mon, 08 May 2023 17:56:02 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Conor Dooley Cc: Conor Dooley , Jisheng Zhang , Icenowy Zheng , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Guo Ren Subject: Re: [PATCH 3/5] riscv: dts: add initial T-HEAD light SoC device tree Date: Mon, 08 May 2023 17:56:01 +0200 Message-ID: <3554468.R56niFO833@diego> In-Reply-To: <20230508-refute-reliable-f50dafa6afbd@wendy> References: <20230507182304.2934-1-jszhang@kernel.org> <7518428.EvYhyI6sBW@diego> <20230508-refute-reliable-f50dafa6afbd@wendy> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Am Montag, 8. Mai 2023, 10:35:38 CEST schrieb Conor Dooley: > On Mon, May 08, 2023 at 10:23:02AM +0200, Heiko Stübner wrote: > > Am Montag, 8. Mai 2023, 05:32:17 CEST schrieb Icenowy Zheng: > > > 在 2023-05-07星期日的 22:35 +0100,Conor Dooley写道: > > > > Hey Jisheng, > > > > > > > > On Mon, May 08, 2023 at 02:23:02AM +0800, Jisheng Zhang wrote: > > > > > > > > > + c910_0: cpu@0 { > > > > > + compatible = "thead,c910", "riscv"; > > > > > + device_type = "cpu"; > > > > > + riscv,isa = "rv64imafdc"; > > > > > > > > Does this support more than "rv64imafdc"? > > > > I assume there's some _xtheadfoo extensions that it does support, > > > > although I am not sure how we are proceeding with those - Heiko might > > > > have a more nuanced take. > > > > I guess the interesting question still is, are these part of the isa > > string or more of an errata? > > Yeah, I dunno. That's possible a policy decision more than anything > else. I don't remember if it was one of your patchsets or elsewhere, but > I do recall a split between xtheadba etc and vector, where xtheadba was > defined as a vendor extension, whereas vector is not. Their extension > spec repo appears > to be aligned with that view, apart from the CMOs that we have already > called an erratum. I think the CMO stuff came a bit before that repo actually existed ;-) . I guess another argument for riscv,isa would be that we don't have to trust MVENDORID, and especially values in MARCHID and MIMPID. Somehow part of me doesn't have enough trust that these values will always be suitably different when they are baked into the hardware ;-) . I guess vector is somewhat special, with it implementing version 0.7.1 it's not a t-head invention but also not the real RISCV "v" . So I _guess_ the jury might still be out on how to handle that everywhere. > > The binding currently says > > Identifies the specific RISC-V instruction set architecture > > supported by the hart. These are documented in the RISC-V > > User-Level ISA document, available from > > https://riscv.org/specifications/ > > > > > > I guess if we decide to make them part of the isa-string the binding > > then should get a paragraph mention _xfoo vendor-extensions too. > > I have an idea in the works that may allow dealing with this kind of > thing, but it's a bit of a departure from the existing binding. > I will hopefully post an early RFC of it later today. > That said, the binding does currently allow you to put in _xfoo vendor > extensions as-is. > > > Personally, making these part of the ISA string definitly sounds like > > the best solution though :-) . > > You would say that wouldn't you! In general, I'd rather we filled in as > much information as possible here, even if it is not currently in use, > to avoid having to retrofit as support becomes available. yep definitively. Especially as switching to expecting _xfoo later on then causes of course compatiblity issues. The fun part will be though to get vendors, toolchains and friends to agree on the naming. Heiko