From: Tim Harvey <tharvey@gateworks.com>
To: Adam Ford <aford173@gmail.com>
Cc: Fabio Estevam <festevam@gmail.com>,
Linux ARM Mailing List <linux-arm-kernel@lists.infradead.org>,
Adam Ford-BE <aford@beaconembedded.com>,
"Ariel D'Alessandro" <ariel.dalessandro@collabora.com>,
Krzysztof Kozlowski <krzk@kernel.org>,
Lucas Stach <l.stach@pengutronix.de>,
Device Tree Mailing List <devicetree@vger.kernel.org>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
NXP Linux Team <linux-imx@nxp.com>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH V3 0/9] arm64: imx8mn: Enable more imx8m Nano functions
Date: Mon, 22 Nov 2021 09:59:50 -0800 [thread overview]
Message-ID: <CAJ+vNU37=qPuuNaSsvRntKU5wbVZoOtS_tAx7En6EMGfKN=QLg@mail.gmail.com> (raw)
In-Reply-To: <CAHCN7xKpjVWiTvXpYH11kaHX=0Figh=ALQS4qnUroGCu-q3NNA@mail.gmail.com>
On Sun, Nov 21, 2021 at 7:25 AM Adam Ford <aford173@gmail.com> wrote:
>
> On Sun, Nov 21, 2021 at 8:34 AM Adam Ford <aford173@gmail.com> wrote:
> >
> > On Sun, Nov 21, 2021 at 8:21 AM Fabio Estevam <festevam@gmail.com> wrote:
> > >
> > > Hi Adam,
> > >
> > > On Sun, Nov 21, 2021 at 11:17 AM Adam Ford <aford173@gmail.com> wrote:
> > >
> > > > I am using https://source.codeaurora.org/external/imx/imx-atf/log/?h=lf_v2.4
> > > >
> > > > Since the driver sending SMCC commands to ATF isn't doing that, I
> > > > assume it's safe to use the linux power-domain drivers with the ATF
> > > > from NXP's kernel.
> > > >
> > > > If you can point me to the repo you think I should be using, I'll give it a try.
> > >
> > > Do you know if the mainline TF-A repo v2.5 works too?
> > > https://github.com/ARM-software/arm-trusted-firmware/tree/v2.5
> >
> > That's good to know.
> >
> > I just built it into U-Boot:
> >
> > NOTICE: BL31: v2.5(release):v2.5
> > NOTICE: BL31: Built : 08:24:13, Nov 21 2021
> >
> > The Etnaviv driver is still loading without hanging
> >
> > root@beacon-imx8mn-kit:~# dmesg |grep -i etna
> > [ 12.393936] etnaviv etnaviv: bound 38000000.gpu (ops gpu_ops [etnaviv])
> > [ 12.400676] etnaviv-gpu 38000000.gpu: model: GC7000, revision: 6203
> > [ 12.641297] [drm] Initialized etnaviv 1.3.0 20151214 for etnaviv on minor 0
> >
> >
>
> Tim,
>
> Which version of Nano do you have? Not all Nano SoC's have a GPU from
> looking at the datasheet [1] . I am using MIMX8MN2CVTIZAA (Nano Solo)
>
> [1] - https://www.nxp.com/docs/en/data-sheet/IMX8MNIEC.pdf
>
Adam,
The board I have here has MIMX8MN5CVTIZAA so i.MX 8M Nano QuadLite
with 'No GPU' as you expected.
So I have to add the following to keep my board from hanging after your series:
diff --git a/arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts
b/arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts
index 236f425e1570..0d256a607b7c 100644
--- a/arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts
@@ -251,6 +251,10 @@
};
};
+&gpu {
+ status = "disabled";
+};
+
&i2c1 {
clock-frequency = <100000>;
pinctrl-names = "default";
This situation is similar to the one I encountered with the
imx8mm-venice-gw7901 where adding the GPC node caused my board (which
did not power the GPU) to hang until I added disables to the
device-tree with commit 7973009235e2 ("arm64: dts:
imx8mm-venice-gw7901.dts: disable pgc_gpumix"). It feels painful to
have to add patches to keep things from hanging after additional
functionality is added to dt but perhaps that is more common than I
think esp for SoC's like IMX8M which have a lot of lingering support
still coming in.
I don't mind at all submitting the above patch to fix my board after
your series is accepted as I think that having an IMX8MN with 'no gpu'
is perhaps less likely than having one with a GPU and thus we probably
shouldn't mark the node as disabled and force everyone that has a GPU
to go and enable it.
I wonder however if we should think about adding something to etnaviv
to check the capability so that the same dt could be used with both
CPU variants?
At any rate for now let's keep the ball rolling!
For the series:
Reviewed-by: Tim Harvey <tharvey@gateworks.com>
Tested-by: Tim Harvey <tharvey@gateworks.com> (tested on imx8mm-venice-gw7902)
Best regards,
Tim
next prev parent reply other threads:[~2021-11-22 18:00 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-04 16:17 [PATCH V3 0/9] arm64: imx8mn: Enable more imx8m Nano functions Adam Ford
2021-11-04 16:17 ` [PATCH V3 1/9] soc: imx: gpcv2: keep i.MX8MN gpumix bus clock enabled Adam Ford
2021-11-04 16:17 ` [PATCH V3 2/9] soc: imx: gpcv2: Add dispmix and mipi domains to imx8mn Adam Ford
2021-11-04 16:17 ` [PATCH V3 3/9] dt-bindings: power: imx8mn: add defines for DISP blk-ctrl domains Adam Ford
2021-11-12 21:58 ` Rob Herring
2021-11-04 16:17 ` [PATCH V3 4/9] dt-bindings: soc: add binding for i.MX8MN DISP blk-ctrl Adam Ford
2021-11-12 22:02 ` Rob Herring
2021-11-12 23:35 ` Adam Ford
2021-11-04 16:18 ` [PATCH V3 5/9] soc: imx: imx8m-blk-ctrl: add " Adam Ford
2021-11-04 16:18 ` [PATCH V3 6/9] arm64: dts: imx8mn: add GPC node Adam Ford
2021-11-04 16:18 ` [PATCH V3 7/9] arm64: dts: imx8mn: put USB controller into power-domains Adam Ford
2021-11-04 16:18 ` [PATCH V3 8/9] arm64: dts: imx8mn: add DISP blk-ctrl Adam Ford
2021-11-04 16:18 ` [PATCH V3 9/9] arm64: dts: imx8mn: Enable GPU Adam Ford
2021-11-16 17:57 ` [PATCH V3 0/9] arm64: imx8mn: Enable more imx8m Nano functions Tim Harvey
2021-11-16 18:04 ` Adam Ford
2021-11-16 18:27 ` Tim Harvey
2021-11-21 13:07 ` Adam Ford
2021-11-21 14:11 ` Fabio Estevam
2021-11-21 14:17 ` Adam Ford
2021-11-21 14:21 ` Fabio Estevam
2021-11-21 14:34 ` Adam Ford
2021-11-21 15:25 ` Adam Ford
2021-11-22 17:59 ` Tim Harvey [this message]
2021-11-22 18:20 ` Lucas Stach
2021-11-22 21:52 ` Tim Harvey
2021-11-23 14:08 ` Adam Ford
2021-11-23 14:16 ` Adam Ford
2021-11-23 14:24 ` Lucas Stach
2021-11-23 14:30 ` Adam Ford
2021-11-23 16:40 ` Adam Ford
2021-11-23 17:10 ` Lucas Stach
2021-11-23 17:03 ` Lucas Stach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJ+vNU37=qPuuNaSsvRntKU5wbVZoOtS_tAx7En6EMGfKN=QLg@mail.gmail.com' \
--to=tharvey@gateworks.com \
--cc=aford173@gmail.com \
--cc=aford@beaconembedded.com \
--cc=ariel.dalessandro@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=krzk@kernel.org \
--cc=l.stach@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).