Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5218383rwl; Wed, 28 Dec 2022 15:05:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXtlx0aZdqwDF1aOF6keUN6Wzeo6UXKx0NgeuuDWkP6p1JoF/ngPpS/9jgUw5/kp9HosCQyk X-Received: by 2002:a17:90a:bd11:b0:225:b29f:42 with SMTP id y17-20020a17090abd1100b00225b29f0042mr29978554pjr.14.1672268717760; Wed, 28 Dec 2022 15:05:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672268717; cv=none; d=google.com; s=arc-20160816; b=Lkbpc7Seo9kfFX1i5AmZ9Wj027kuAVy8/VRxZwYDs0To9oTE1dbgIhn4d15qkrJs0r hy7agsBsCQ+/zed4Ncwh963/BXkmOBw90I0lsrDA9GPmCgF1BT/uKBn3KCwVeg0ZQ6hM IKCP9IaClyL9khyM+lUuPbBmkFseDfzAjmb/vBT0+EMaeROGZ3nFepAFXzgkDDlSvyvL 8PRpd3bFf7I/R1axUYGLQdiUvz28elVmx1JImiq11rS2ZFNQ0N9Zea8R1Y4tG4AwOcNF zbxhHuNNoUj1rbjGZZJ8lfnIEWs6oCu85Ku+Tml9xHa6nPo0bIxjB/KQv5IEingw7CQI ooBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Rgg8kKpaouNY+E4PrDF+TCIc/OvV0POXlVhrivhGh1E=; b=ap+rCTHlPi1maWggkrmXnbvZTBcA2uAkp2uV5gDrn9km/5OU6hEyrB96Yd3EJPyqVc 9arHPw3vspujCiXICtrREZh2xecF7CWMrDFgp68s9j1tPs2/3pchqcJNpNSgnrt/en4y NwVcTFnwU3wRaxbWsaZbIFIaZylqieHJ145EnlQ8BcvyP7x+RNCDZk3N+qkEBnJFUW6Q orWQgSiLztWLPH0ORdnghLVCyC92x5wPmTEL0RuatO4gmSOmfyOM1jOYDhOUbRlwGgiz e1nQPb2QbD18hRCwHWyBohJCcBE3X3uS2G88tc8Vu98H8PbyWOiIvBG97KNhSoa8Jeyl Gj2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OrtpYwSO; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t17-20020a17090aba9100b0021a11dba89asi17606747pjr.24.2022.12.28.15.05.09; Wed, 28 Dec 2022 15:05:17 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=OrtpYwSO; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230398AbiL1Wsz (ORCPT + 63 others); Wed, 28 Dec 2022 17:48:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229630AbiL1Wsx (ORCPT ); Wed, 28 Dec 2022 17:48:53 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE2D9140E9; Wed, 28 Dec 2022 14:48:52 -0800 (PST) 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 786CBB81914; Wed, 28 Dec 2022 22:48:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2A96C433D2; Wed, 28 Dec 2022 22:48:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672267730; bh=NpdedqY/UTF4uGtmQnKeb03AizfJv69Dyw7+UYmfMTI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OrtpYwSOR4m8WnCl/Mf8LMEdEVVsPneyDJF41yJ6LWb6/7YXTotxA0t2lQ60MNvrG pBPfRBZHNDLFWGzbZb1dXpGynJeo2YHWG1AdK8pZjEeHk+WfnFI/I6dsnnLtQ8pLIv TZGNX5k+YTsivGZdaEDyaj4CnwOGmmuCLjnnSHnI95SIaCmyP9jwnEpUtDGI0O9T51 xE51e4n9UbZF9IHZBula35YMhCYhTo0koHBu00NZ4O2YH3A7j33So0AvFvvua900V7 wSs9xfZ28XGmgpZvy/xfHrBhHn2FmduADwgy9PhgxCISlEXQwzSleIrZm+dAUd0o/T PpXaUKLi65t5A== Date: Wed, 28 Dec 2022 22:48:43 +0000 From: Conor Dooley To: Hal Feng Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, Palmer Dabbelt , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Albert Ou , Ben Dooks , Daniel Lezcano , Thomas Gleixner , Marc Zyngier , Stephen Boyd , Michael Turquette , Philipp Zabel , Linus Walleij , Emil Renner Berthing , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 6/7] riscv: dts: starfive: Add initial StarFive JH7110 device tree Message-ID: References: <20221220011247.35560-1-hal.feng@starfivetech.com> <20221220011247.35560-7-hal.feng@starfivetech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ANn4P8tMvc1B4Y18" Content-Disposition: inline In-Reply-To: <20221220011247.35560-7-hal.feng@starfivetech.com> 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 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 --ANn4P8tMvc1B4Y18 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, On Tue, Dec 20, 2022 at 09:12:46AM +0800, Hal Feng wrote: > From: Emil Renner Berthing >=20 > Add initial device tree for the JH7110 RISC-V SoC by StarFive > Technology Ltd. >=20 > Signed-off-by: Emil Renner Berthing > Co-developed-by: Jianlong Huang > Signed-off-by: Jianlong Huang > Co-developed-by: Hal Feng > Signed-off-by: Hal Feng > --- > arch/riscv/boot/dts/starfive/jh7110.dtsi | 411 +++++++++++++++++++++++ > 1 file changed, 411 insertions(+) > create mode 100644 arch/riscv/boot/dts/starfive/jh7110.dtsi >=20 > diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/d= ts/starfive/jh7110.dtsi > new file mode 100644 > index 000000000000..64d260ea1f29 > --- /dev/null > +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi > @@ -0,0 +1,411 @@ > +// SPDX-License-Identifier: GPL-2.0 OR MIT > +/* > + * Copyright (C) 2022 StarFive Technology Co., Ltd. > + * Copyright (C) 2022 Emil Renner Berthing > + */ > + > +/dts-v1/; > +#include > +#include > + > +/ { > + compatible =3D "starfive,jh7110"; > + #address-cells =3D <2>; > + #size-cells =3D <2>; > + > + cpus { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + S76_0: cpu@0 { > + compatible =3D "sifive,u74-mc", "riscv"; The label here says S76 but the compatible says u74-mc. Which is correct? Your docs say S7 and S76, so I would imagine that it is actually an S76? > + reg =3D <0>; > + d-cache-block-size =3D <64>; > + d-cache-sets =3D <64>; > + d-cache-size =3D <8192>; > + d-tlb-sets =3D <1>; > + d-tlb-size =3D <40>; > + device_type =3D "cpu"; > + i-cache-block-size =3D <64>; > + i-cache-sets =3D <64>; > + i-cache-size =3D <16384>; > + i-tlb-sets =3D <1>; > + i-tlb-size =3D <40>; > + mmu-type =3D "riscv,sv39"; > + next-level-cache =3D <&ccache>; > + riscv,isa =3D "rv64imac"; While I was poking around trying to see if there was some logic behind that compatible, I noticed that SiFive's docs for the S76 say it is RV64GBC *but* the docs for the u74-mc say "4xRV64GBC and 1xRV64IMAC". I assume that rv64imac is the correct one here? > + tlb-split; > + status =3D "disabled"; > + > + cpu0_intc: interrupt-controller { > + compatible =3D "riscv,cpu-intc"; > + interrupt-controller; > + #interrupt-cells =3D <1>; > + }; > + }; > + > + U74_1: cpu@1 { > + compatible =3D "sifive,u74-mc", "riscv"; > + reg =3D <1>; > + d-cache-block-size =3D <64>; > + d-cache-sets =3D <64>; > + d-cache-size =3D <32768>; > + d-tlb-sets =3D <1>; > + d-tlb-size =3D <40>; > + device_type =3D "cpu"; > + i-cache-block-size =3D <64>; > + i-cache-sets =3D <64>; > + i-cache-size =3D <32768>; > + i-tlb-sets =3D <1>; > + i-tlb-size =3D <40>; > + mmu-type =3D "riscv,sv39"; > + next-level-cache =3D <&ccache>; > + riscv,isa =3D "rv64imafdc"; That also begs the question: Do your u74s support RV64GBC, as the (current) SiFive documentation suggests? Thanks, Conor. --ANn4P8tMvc1B4Y18 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCY6zHywAKCRB4tDGHoIJi 0qgIAP9goDzTR6Vrk3MaunduxIAwBUWHl3xCKWlRZnoQe55+eAD9HZ6QEMK242tX +jlk7hQ1SjjbYoeCLbpCrF0OoheU2Q4= =lZyu -----END PGP SIGNATURE----- --ANn4P8tMvc1B4Y18--