Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp782918rwd; Wed, 7 Jun 2023 06:56:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68koq23Xl9bc2iohskM6uY0PIq5paPPJWCqyjViNUSIUSP53703MG9ejs4f+Kxvqy88Dv6 X-Received: by 2002:a05:6359:6382:b0:129:c9fb:1d86 with SMTP id sg2-20020a056359638200b00129c9fb1d86mr4528421rwb.25.1686146192116; Wed, 07 Jun 2023 06:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686146192; cv=none; d=google.com; s=arc-20160816; b=EcZp/BxBkci9T0nU5R+WANa3yfdNnQmPU+wVruViy/T7hWBN1ZWoZabATN2UEFUPOz QbS+vSN39D6hqElDMkfCA7FAlsGPu7J1GAv6VPmP92YrS+3R7ya+dKNCR0yac+tyr0wR dzgm5HzIHkbwRsaSeCAX+FmTi43d+o9dEkryHLVZnnsX2SbU3xdI0Rpt5r7Cy6hSfI7p fs2gF2w9i6f45+FX1SMygrytSbTP4SM/VtErGNin0MT8BN5O8joiaOMcCaMEkb+nSXQl IAejuDNiDNGclb9xv54sKxvvfmHQ6ke9sz3WYwiu5M6MsUHqhrDUD5mvVO+evBV8iyq9 os4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=i0lMNuEbXOOcWGfHtGlJsdDwFKP9YumhUcl+P6RDGn4=; b=hoQ9wPVaN9fv7uxjaUwm3aVmOd4olyK60fGEAqI/nFQ7uKVDQ5J2AtHLJ+9FyATj8H bf2d92S/421qNM1Qse6vj2sw6+lJ8kJ4ODyCR/ivhAOYD6uKTCNMAlnlw2ccBoir9r7+ azAkIPW9NVqhKI00hc6SuGcwbwGmFPYly0mFmdxL+ZdQUCRniTBUKhnR+QZmhYGP2439 z6nIJ0PWZsNcF2SmSsntsqt/caAH7Rx7Cf6ik/Npkc5E81WJ+TIvCO6OftC4w8fM/DWJ CFptssPmzV8wesxAQq3wa4I2OiVFfTyEjoDFTS+zr5TfkcV3Ut6XyiC1SidbMIwGrfYL mAVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="Y4TRVi/z"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k26-20020a637b5a000000b00508eeafc9ecsi9127052pgn.176.2023.06.07.06.56.19; Wed, 07 Jun 2023 06:56:32 -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=@gmail.com header.s=20221208 header.b="Y4TRVi/z"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240258AbjFGNbp (ORCPT + 99 others); Wed, 7 Jun 2023 09:31:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235683AbjFGNbn (ORCPT ); Wed, 7 Jun 2023 09:31:43 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4596919BF; Wed, 7 Jun 2023 06:31:42 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-25691a1b2b8so3108722a91.1; Wed, 07 Jun 2023 06:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686144701; x=1688736701; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=i0lMNuEbXOOcWGfHtGlJsdDwFKP9YumhUcl+P6RDGn4=; b=Y4TRVi/zBzYTgwHSBjrv/UBECrHxL0YS5U1fbNvrt9G/XWdydeS2CIUrFOWtiDQT2E HvxyrF7R2ExSH5a/HbyzyLbDO5U66tnOh45aVr4N0ZvF8yGhSKRohrMfiBBqFSsI+Zm0 4DrCTKeOY+miL237Q5aso/eJiVgjheRehAA8cS9TnssvQGGimKaCQG3tUTxmfreLITIi 2b3l+8oudik8rZksFhPOvH+mpz1JNX2MSxfMu1X72KC0w86TIkD9aUxq0dNAgX/GZGc3 a9+DnDbQhE8uLLSs1vHiIDg+Oagzs7eKJ834Y1XGnnhcsrv9dR64YvuXLMwchXqfg+NW gVlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686144701; x=1688736701; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=i0lMNuEbXOOcWGfHtGlJsdDwFKP9YumhUcl+P6RDGn4=; b=TYmk+iiwgzK3DCCr0U3qQqiMpxze8FR77obKuAaiM6tZs6en1wblll9frF7pMGB0dc A0AerNCMyQwh6hR+1lb9HWZaO/UbxdiEMCvqwLyKe0mROmE1Vbt9uNcZwJsYwwhWKYIu cdgqgU88EBwn5trs/gjtd4e7wT22VcX6iiL1z3WsL/aHtZ9r+jifX9gUO4e3ADmq3aG6 Nn8lY2rJxogzPcnr1j+/8cuZrBizGWpTRY6x4w4VsHqcb+fjiPus4KIZbEFpnhdzF6N2 FJ8WktrFlUbMfO/I+NDmPqv6eTvxMDd2NX1ktbackVL8rvaC0jEsniSNSlOdlXEzAMMt A00Q== X-Gm-Message-State: AC+VfDxTQc5M1uFiC/PWQSWAYX7HNXwdYJ8erLVq6JibJQB2s5P6A8B/ KR5PR1YfPSrbMpOjGXkCHSzBartCWF6iQjNpWbjKO4E6 X-Received: by 2002:a17:90a:1db:b0:259:cafc:4e08 with SMTP id 27-20020a17090a01db00b00259cafc4e08mr321667pjd.29.1686144701405; Wed, 07 Jun 2023 06:31:41 -0700 (PDT) MIME-Version: 1.0 References: <20230530112050.5635-1-aford173@gmail.com> <20230530112050.5635-3-aford173@gmail.com> In-Reply-To: From: Adam Ford Date: Wed, 7 Jun 2023 08:31:30 -0500 Message-ID: Subject: Re: [RFC 3/3] arm64: dts: renesas: r8a774a1: Add GPU Node To: Geert Uytterhoeven Cc: linux-renesas-soc@vger.kernel.org, biju.das.jz@bp.renesas.com, marek.vasut+renesas@gmail.com, cstevens@beaconembedded.com, aford@beaconembedded.com, Geert Uytterhoeven , Magnus Damm , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Wed, Jun 7, 2023 at 8:21=E2=80=AFAM Geert Uytterhoeven wrote: > > Hi Adam, > > On Tue, May 30, 2023 at 1:21=E2=80=AFPM Adam Ford wr= ote: > > With the 3dge and ZG clocks now available, the generic GPU node can > > be added. Until proper firmware is made, it is not usable. > > > > Signed-off-by: Adam Ford > > --- > > This is based on the assumption that the Rogue 6250 could use > > generic driver [1] and firmware [2] being implemebted by the Mesa group > > and others. In practice, the firmware isn't really compatible since > > the 6250 in the RZ/G2M appears to be a different variant. > > > > [1] - https://gitlab.freedesktop.org/frankbinns/powervr/-/tree/powervr-= next > > [2] - https://gitlab.freedesktop.org/frankbinns/linux-firmware/-/tree/p= owervr/powervr > > Thanks for your patch! > > > --- a/arch/arm64/boot/dts/renesas/r8a774a1.dtsi > > +++ b/arch/arm64/boot/dts/renesas/r8a774a1.dtsi > > @@ -226,6 +226,27 @@ extalr_clk: extalr { > > clock-frequency =3D <0>; > > }; > > > > + gpu_opp_table: opp-table { > > + compatible =3D "operating-points-v2"; > > + > > + opp-200000000 { > > + opp-hz =3D /bits/ 64 <200000000>; > > + opp-microvolt =3D <830000>; > > + }; > > + opp-300000000 { > > + opp-hz =3D /bits/ 64 <300000000>; > > + opp-microvolt =3D <830000>; > > + }; > > + opp-400000000 { > > + opp-hz =3D /bits/ 64 <400000000>; > > + opp-microvolt =3D <830000>; > > + }; > > + opp-600000000 { > > + opp-hz =3D /bits/ 64 <600000000>; > > + opp-microvolt =3D <830000>; > > + }; > > + }; > > + > > /* External PCIe clock - can be overridden by the board */ > > pcie_bus_clk: pcie_bus { > > compatible =3D "fixed-clock"; > > @@ -2347,6 +2368,18 @@ gic: interrupt-controller@f1010000 { > > resets =3D <&cpg 408>; > > }; > > > > + gpu@fd000000 { > > + compatible =3D "img,powervr-series6xt"; > > + reg =3D <0 0xfd000000 0 0x40000>; > > + interrupts =3D ; > > + clocks =3D <&cpg CPG_MOD 112>, <&cpg CPG_MOD 11= 2>,<&cpg CPG_MOD 112>; > > + clock-names =3D "core", "mem", "sys"; > > + interrupt-names =3D "gpu"; > > + operating-points-v2 =3D <&gpu_opp_table>; > > + power-domains =3D <&sysc R8A774A1_PD_3DG_B>; > > + resets =3D <&cpg 112>; > > + }; > > + > > pciec0: pcie@fe000000 { > > compatible =3D "renesas,pcie-r8a774a1", > > "renesas,pcie-rcar-gen3"; > > LGTM. But obviously I cannot take this as-is, as there are no DT binding= s > for this device, and it didn't work for you... It was mostly to follow up to the previous ones with links for the mainline Rogue video driver in the hopes that someone from Renesas might have some input on whether or not Renesas might be able to support this and have a discussion. I knew when I submitted it that it wouldn't be accepted which is why I posted it as an RFC. If I address concerns you have in the previous patches, would you be OK with me submitting then as a formal patch to at least get the rest of the system ready in the event the GPU driver/firmware becomes available? It seems harmless, but I also see the argument that it's dead code without the GPU node. If not, I'll shelve this for now, and hope to get some responses from Renes= as. adam > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m6= 8k.org > > In personal conversations with technical people, I call myself a hacker. = But > when I'm talking to journalists I just say "programmer" or something like= that. > -- Linus Torvalds