[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250611201013.GB3141695@robin.jannau.net>
Date: Wed, 11 Jun 2025 22:10:13 +0200
From: Janne Grunau <j@...nau.net>
To: Sven Peter <sven@...nel.org>
Cc: fnkl.kernel@...il.com, asahi@...ts.linux.dev,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Neal Gompa <neal@...pa.dev>,
Alyssa Rosenzweig <alyssa@...enzweig.io>,
linux-arm-kernel@...ts.infradead.org,
Conor Dooley <conor+dt@...nel.org>, Rob Herring <robh@...nel.org>,
Maxime Ripard <mripard@...nel.org>, dri-devel@...ts.freedesktop.org,
Simona Vetter <simona@...ll.ch>, David Airlie <airlied@...il.com>,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Thomas Zimmermann <tzimmermann@...e.de>,
Krzysztof Kozlowski <krzk+dt@...nel.org>
Subject: Re: [PATCH 2/2] arm64: dts: Add Apple SoC GPU
On Wed, Jun 11, 2025 at 09:12:35PM +0200, Sven Peter wrote:
> Hi,
>
> On 11.06.25 19:32, Sasha Finkelstein via B4 Relay wrote:
> > From: Sasha Finkelstein <fnkl.kernel@...il.com>
> >
> > Add device tree entries for GPUs in M-series SoCs
> >
> > Signed-off-by: Sasha Finkelstein <fnkl.kernel@...il.com>
> > ---
> > arch/arm64/boot/dts/apple/t6000.dtsi | 4 ++++
> > arch/arm64/boot/dts/apple/t6001.dtsi | 4 ++++
> > arch/arm64/boot/dts/apple/t6002.dtsi | 4 ++++
> > arch/arm64/boot/dts/apple/t600x-common.dtsi | 34 ++++++++++++++++++++++++++++++++++
> > arch/arm64/boot/dts/apple/t600x-die0.dtsi | 28 ++++++++++++++++++++++++++++
> > arch/arm64/boot/dts/apple/t8103.dtsi | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > arch/arm64/boot/dts/apple/t8112.dtsi | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > 7 files changed, 198 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/apple/t6000.dtsi b/arch/arm64/boot/dts/apple/t6000.dtsi
> > index 89c3b211b116e96ee0a5ea0c923c3ab824008307..3b60842045d4c3277e9530a13ef2811774209697 100644
> > --- a/arch/arm64/boot/dts/apple/t6000.dtsi
> > +++ b/arch/arm64/boot/dts/apple/t6000.dtsi
> > @@ -16,3 +16,7 @@ / {
> > };
> >
>
> [....]
>
> > };
> > +
> > + reserved-memory {
> > + #address-cells = <2>;
> > + #size-cells = <2>;
> > + ranges;
> > +
> > + gpu_globals: globals {
> > + reg = <0x0 0 0 0>;
> > + };
> > +
> > + gpu_hw_cal_a: hw-cal-a {
> > + reg = <0x0 0 0 0>;
> > + };
> > +
> > + gpu_hw_cal_b: hw-cal-b {
> > + reg = <0x0 0 0 0>;
> > + };
> > +
> > + uat_handoff: uat-handoff {
> > + reg = <0x0 0 0 0>;
> > + };
> > +
> > + uat_pagetables: uat-pagetables {
> > + reg = <0x0 0 0 0>;
> > + };
> > +
> > + uat_ttbs: uat-ttbs {
> > + reg = <0x0 0 0 0>;
> > + };
>
> With W=1 this results in a bunch of new warnings like
>
> arch/arm64/boot/dts/apple/t600x-common.dtsi:391.24-394.5: Warning
> (unit_address_vs_reg): /reserved-memory/globals: node has a reg or
> ranges property, but no unit name
>
> but I'm not sure it's possible to fix that without making up fake
> addresses that then get overwritten here. Would be nice to fix this some
> other way but I'm not sure how and so far we don't enforce "no
> additional W=1 warnings", so:
warnings go away if the "uninitialized" reg property is removed. Since
it will be filled by the bootloader fills those anyway we could use:
| gpu_globals: globals {
| /* bootloader static allocation */
| status = "disabled";
| }
Janne
Powered by blists - more mailing lists