Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1865300rbb; Tue, 27 Feb 2024 03:56:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVsdm6jaefzGK2XrMnu+47MfcVOlEebltPecv6NTg3u8v4dFwo0m2sxVI4QVn0CoM5MH1uYO2M8XDhNIYbVnzEaPsCRvCQPp8zoemwjjg== X-Google-Smtp-Source: AGHT+IFmMmYUSe1Vm6lS9qIWipRo+LtgethwkPKjA59kLpZMdsxPrODg7dcFo8/nT9/ROtfVL4s5 X-Received: by 2002:a17:906:8414:b0:a43:76d4:806c with SMTP id n20-20020a170906841400b00a4376d4806cmr2823044ejx.74.1709035010314; Tue, 27 Feb 2024 03:56:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709035010; cv=pass; d=google.com; s=arc-20160816; b=ol4Q6GHH9Cf2VeN+vOYnK+LnVJxqRbh30VOHkTxE8QlFMgjgY4zXEUDbgvRpEcn0Gx pfiOw2qCqQ70YmroI9ZvQc3z2EN9qihZtw+p0VBaNsTt15LI5rKYUE3hGkBCrLKlVSOV 0niYOAZSguQPOoUUYBUetaDPuQ2fWNdYDJjSjEP7eq36MsXN9hVcsgiRcTo/9xiO1FJl YT9yvNx84caHp9iaOHMXaE+yn3q5XqdAPXLoQtlim4RMhzXnYdFMVJIOYDsdv7D0Wr0K 0sKCPrjYiO6zskQ5YsN1xqFwDVxDXVWntPzgIJBvNhaFvAkJGvF8WncHsPDcUDchZdkz ucZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=rDoS3gLGI0Ru88ibWZYCmaUVCnms/5yXvnI03PkRJbQ=; fh=LQu6PeUWzC+LOwRfYf2q6NSIcL2hSFbiWR/rf/OP5FQ=; b=n5hPtIJZUY46Dek3IlCr1rPAsUnnBEIzaFA6kBN0xwu7aaiXqRJzR38Ya00cmLgALU E2fvEG/EKTzBjA6DgevVt0wn1dmuSBqm8DrzY5T1tFUZGKYAmBwmG8QNXan8b9pstcyA XIyvkEqB7h9FP4WGW/J720zsFG2Tc7/nmKFO8ttSIT6eIq73K/5KNIIe1vqJfDGqB7A8 AVv2ToxXWxGbvEWenJZaRXtCGVJDbyIucsM2AB2LYNnjzH8+vXal4OA02pulkKdBT3eQ eAq5ncnOQnGYNcDKtGqxy1XqtfO7vEXYVPpO2v1wYpIJwB77zsohgO6dV3i8DF2QHI1T NBMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NwQ6Ohr9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-83144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l14-20020a170906a40e00b00a42f8189ec0si660326ejz.906.2024.02.27.03.56.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 03:56:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NwQ6Ohr9; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-83144-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83144-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 94DF31F283DD for ; Tue, 27 Feb 2024 11:51:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C919813A24E; Tue, 27 Feb 2024 11:50:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NwQ6Ohr9" Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CDD41386D4; Tue, 27 Feb 2024 11:50:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709034655; cv=none; b=Ikvc4MYGtPfARhrtG8mvg48e9Bde6nKsO+XUoLms6QXl/1/xN5BtDHCcP8RPGLG7AeC7uXsnu03h66NEJN4cqRM0ZelU48M+6gNL9J9MQYxpQBnm5GeLwPUNmpJwhvNEqB3pAxW5XWyrH2QAqnhDcHSujuvPHyVNM/Exeld8zPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709034655; c=relaxed/simple; bh=i0MNHvBEyvrrz/r9ERUgGvr7jDMCWr36xdWDXtvGdgQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=OKpEqx3JPXw1R7cyktJo6sUf6fl1UlpJtNXmkOmZltEzEqm8VEoWzPC6nZLSpfOeQ1WYZvj1X+jlRHIUkUzv7mZy/7EKCK+vUZ19Ntn5foW/V/yQnMCHBp206zj6H+uIzvLWISs72JQ+gmaSiHGYYn9IMQFfuoLHvuu6iq9QayU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NwQ6Ohr9; arc=none smtp.client-ip=209.85.215.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-5c6bd3100fcso3116352a12.3; Tue, 27 Feb 2024 03:50:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709034653; x=1709639453; darn=vger.kernel.org; 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=rDoS3gLGI0Ru88ibWZYCmaUVCnms/5yXvnI03PkRJbQ=; b=NwQ6Ohr9RXgRR/E8HhpgGlNW4TkTHcWoRuW58BEtV44tftqHkWilk4kDBRuA70F1fy PfO17hlYFknaE4BY+jHnqvY9FoJALKVSC+Bj2FLPiRwkVZrjlRWgQYGNApY/UT9Ti8w6 fLAaQv2sPJXXbAEJYJ6ZVNFwr29FNh/nwblWJs0iX+OKIRSTay7Kch2QqgnVm4toS5yf lYWgtKqlr6bGBvzCHQE15zOssFS7eQQ+jZYjWRvdeE1/4T7l+KC7CdkRtlPyS4MBEhlJ gNcGQytMEaMHx/INMj582MYaIucT7y0GgL/fstqpB5sUXvo1DV1ztCRsvCZ9nTOmVApV Z7LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709034653; x=1709639453; 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=rDoS3gLGI0Ru88ibWZYCmaUVCnms/5yXvnI03PkRJbQ=; b=P5yuQQTWiawAkzlUIuL0VQ7UvoDkyvskXBJR3W5boo1515yTqcH/xVQ2KOX4TSc+lB +JbEZORGi9BLFn3wMjOO+3BUIiOkvBMbueNsYUC13Am6F6D4p4131H7wf0owj6JdEjwj DLIdFB8mlA8uq7kLovjITl66iA0/jaOmOwvgrFuxf1dvKTtd8KWGhtL5/fCeeFE1hGMr z7nx56pvXVl4IpuS7Vj18naMUVmnn8e2yGxvcc+U0wk1FWtgr9XSPN8lfqdPk8wx9tvZ yQXmovbGX4khhj9ZDCK63NqnJF4HjKlq0HbLYntKc6FZYRqmjcqOwSKxKV6F2vQgDQ1U 9jJw== X-Forwarded-Encrypted: i=1; AJvYcCW2jTE301NPcKxXRaxT5DNWLDF3rB3FG9fsJVjjnP5K0oS7GbKk4TTwt8P/wWiFe+5891TOylDsRuO2o5rvYweLLSXOZmY111TR15tVxQh82VOiusTcIDB0Im4uOwmCHNVSSGWjfXWj/TZTXGOfFzTPUei88SzV6yqb6C5IigUH3TwPzYRQ2gnHmOFl X-Gm-Message-State: AOJu0YybvOv95qOdEOb/WCRpy/pE2Q+Kn+lp+jphaBXOLVNW71JlA064 NXdxjeSfTqo9Keu5SJEWq6VFZ/ue2Q5Gxo8AT5K1fEg+hvMsSxe6iAUwqSOswJpZmVuIOgBC/2Z LGjGq2HWSbpl9VaN+g/PesS1eKrk= X-Received: by 2002:a05:6a20:d41b:b0:1a0:e5a7:60b7 with SMTP id il27-20020a056a20d41b00b001a0e5a760b7mr1460652pzb.29.1709034653492; Tue, 27 Feb 2024 03:50:53 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240227034539.193573-1-aford173@gmail.com> <20240227034539.193573-3-aford173@gmail.com> <39aead3b-b809-4c9c-8a5d-c0be2b36ea47@imgtec.com> In-Reply-To: <39aead3b-b809-4c9c-8a5d-c0be2b36ea47@imgtec.com> From: Adam Ford Date: Tue, 27 Feb 2024 05:50:42 -0600 Message-ID: Subject: Re: [PATCH 2/6] arm64: dts: renesas: r8a774a1: Enable GPU To: Matt Coster Cc: "dri-devel@lists.freedesktop.org" , "linux-renesas-soc@vger.kernel.org" , Adam Ford , Frank Binns , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 27, 2024 at 3:31=E2=80=AFAM Matt Coster wrote: > > Hi Adam, > > Thanks for these patches! I'll just reply to this one patch, but my > comments apply to them all. > > On 27/02/2024 03:45, Adam Ford wrote: > > The GPU on the RZ/G2M is a Rogue GX6250 which uses firmware > > rogue_4.45.2.58_v1.fw available from Imagination. > > > > When enumerated, it appears as: > > powervr fd000000.gpu: [drm] loaded firmware powervr/rogue_4.45.2.58_v= 1.fw > > powervr fd000000.gpu: [drm] FW version v1.0 (build 6513336 OS) > > These messages are printed after verifying the firmware blob=E2=80=99s he= aders, > *before* attempting to upload it to the device. Just because they appear > in dmesg does *not* imply the device is functional beyond the handful of > register reads in pvr_load_gpu_id(). > > Since Mesa does not yet have support for this GPU, there=E2=80=99s not a = lot > that can be done to actually test these bindings. > > When we added upstream support for the first GPU (the AXE core in TI=E2= =80=99s > AM62), we opted to wait until userspace was sufficiently progressed to > the point it could be used for testing. This thought process still > applies when adding new GPUs. > > Our main concern is that adding bindings for GPUs implies a level of > support that cannot be tested. That in turn may make it challenging to > justify UAPI changes if/when they=E2=80=99re needed to actually make thes= e GPUs > functional. I wrongly assumed that when the firmware was ready, there was some preliminary functionality, but it sounds like we need to work for Series6XT support to be added to the driver. I only used the AXE compatible since it appeared to the be the only one and the existing binding document stated "model/revision is fully discoverable" which I interpreted to mean that the AXE compatible was sufficient. > > > Signed-off-by: Adam Ford > > > > diff --git a/arch/arm64/boot/dts/renesas/r8a774a1.dtsi b/arch/arm64/boo= t/dts/renesas/r8a774a1.dtsi > > index a8a44fe5e83b..8923d9624b39 100644 > > --- a/arch/arm64/boot/dts/renesas/r8a774a1.dtsi > > +++ b/arch/arm64/boot/dts/renesas/r8a774a1.dtsi > > @@ -2352,6 +2352,16 @@ gic: interrupt-controller@f1010000 { > > resets =3D <&cpg 408>; > > }; > > > > + gpu: gpu@fd000000 { > > + compatible =3D "renesas,r8a774a1-gpu", "img,img-a= xe"; > > The GX6250 is *not* an AXE core - it shouldn=E2=80=99t be listed as compa= tible > with one. For prior art, see [1] where we added support for the MT8173 > found in Elm Chromebooks R13 (also a Series6XT GPU). > > > + reg =3D <0 0xfd000000 0 0x20000>; > > + clocks =3D <&cpg CPG_MOD 112>; > > + clock-names =3D "core"; > > Series6XT cores have three clocks (see [1] again). I don=E2=80=99t have a > Renesas TRM to hand =E2=80=93 do you know if their docs go into detail on= the > GPU integration? > > > + interrupts =3D ; > > + power-domains =3D <&sysc R8A774A1_PD_3DG_B>; > > + resets =3D <&cpg 112>; > > + }; > > + > > pciec0: pcie@fe000000 { > > compatible =3D "renesas,pcie-r8a774a1", > > "renesas,pcie-rcar-gen3"; > > As you probably expect by this point, I have to nack this series for > now. I appreciate your effort here and I=E2=80=99ll be happy to help you = land I get that. I wasn't sure if I should have even pushed this, but I wanted to get a little traction, because I know there are people like myself who want to use the 3D in the Renesas boards, but don't want to use the closed-source blobs tied to EULA and NDA documents. > these once Mesa gains some form of usable support to allow testing. Is there a way for your group to add me to the CC list when future updates are submitted? I'd like to follow this and resubmit when it's ready. > > Cheers, > Matt > > [1]: https://gitlab.freedesktop.org/imagination/linux/-/blob/b3506b8bc45e= d6d4005eb32a994df0e33d6613f1/arch/arm64/boot/dts/mediatek/mt8173.dtsi#L993-= 1006