All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Adam Ford <aford173@gmail.com>, Tim Harvey <tharvey@gateworks.com>
Cc: u-boot <u-boot@lists.denx.de>, Fabio Estevam <festevam@gmail.com>,
	Peng Fan <peng.fan@nxp.com>, Stefano Babic <sbabic@denx.de>
Subject: Re: [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency
Date: Sun, 17 Apr 2022 02:35:38 +0200	[thread overview]
Message-ID: <db3ee9b8-8980-8f1a-1368-7bdf6eacc187@denx.de> (raw)
In-Reply-To: <CAHCN7xKawT=U_3OF-8eY3_Mj6RbJ17+gqtsiXnH36dCmUR6rJQ@mail.gmail.com>

On 4/16/22 22:49, Adam Ford wrote:
> On Thu, Apr 7, 2022 at 5:21 PM Tim Harvey <tharvey@gateworks.com> wrote:
>>
>> On Wed, Mar 30, 2022 at 8:04 PM Marek Vasut <marex@denx.de> wrote:
>>>
>>> This driver is the only SMCCC dependency in iMX8M U-Boot port. Rework
>>> the driver based on Linux GPCv2 driver to directly control the GPCv2
>>> block instead of using SMCCC calls. This way, U-Boot can operate the
>>> i.MX8M power domains without depending on anything else.
>>>
>>> This is losely based on Linux GPCv2 driver. The GPU, VPU, MIPI power
>>> domains are not supported to save space, since they are not useful in
>>> the bootloader. The only domains kept are ones for HSIO, PCIe, USB.
>>>
>>> Signed-off-by: Marek Vasut <marex@denx.de>
>>> Cc: Fabio Estevam <festevam@gmail.com>
>>> Cc: Peng Fan <peng.fan@nxp.com>
>>> Cc: Stefano Babic <sbabic@denx.de>
>>> ---
>>> NOTE: So far this is tested on MX8MM and MX8MN. MX8MQ is not tested.
> 
> Sorry for the delay, I tested positive for Covid and needed to recover a bit.
> 
> I have confirmed this makes the 8MQ hang during boot.
> 
> Before patch series:
> 
> U-Boot SPL 2022.04-00812-g9859465bfe (Apr 16 2022 - 15:41:46 -0500)
> PMIC:  PFUZE100 ID=0x10
> SEC0:  RNG instantiated
> Normal Boot
> Trying to boot from MMC2
> 
> 
> U-Boot 2022.04-00812-g9859465bfe (Apr 16 2022 - 15:41:46 -0500)
> 
> CPU:   Freescale i.MX8MQ rev2.1 at 1000 MHz
> Reset cause: POR
> Model: NXP i.MX8MQ EVK
> DRAM:  3 GiB
> Core:  59 devices, 16 uclasses, devicetree: separate
> MMC:   FSL_SDHC: 0, FSL_SDHC: 1
> Loading Environment from MMC... *** Warning - bad CRC, using default environment
> 
> In:    serial
> Out:   serial
> Err:   serial
> SEC0:  RNG instantiated
> Net:   eth0: ethernet@30be0000
> Hit any key to stop autoboot:  0
> u-boot=>
> 
> After the patch:
> 
> U-Boot SPL 2022.04-00822-gc2a24a7ce5 (Apr 16 2022 - 15:45:29 -0500)
> PMIC:  PFUZE100 ID=0x10
> SEC0:  RNG instantiated
> Normal Boot
> Trying to boot from MMC2

There should be some sort of output from ATF here, which version did you 
use during your tests ?

Did you set IMX_BOOT_UART_BASE correctly ?

Did you set ATF_LOAD_ADDR correctly ?

Do you get a hang when you revert only this specific patch ?

The GPC is only used for USB and PCI on the MX8MQ, so you shouldn't be 
getting hang so early as to get no output at all.

> <hang>
> 
> I can test it on 8MN and 8MM, but it sounds like that's already been done.

[...]

  reply	other threads:[~2022-04-17  0:35 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-31  3:03 [PATCH 1/3] imx: power-domain: Descend into pgc subnode if present Marek Vasut
2022-03-31  3:03 ` [PATCH 2/3] imx: power-domain: Inline arch-imx8m/power-domain.h Marek Vasut
2022-03-31  3:03 ` [PATCH 3/3] imx: power-domain: Get rid of SMCCC dependency Marek Vasut
2022-04-04 12:51   ` Adam Ford
2022-04-04 13:01     ` Marek Vasut
2022-04-04 14:15       ` Adam Ford
2022-04-04 14:25         ` Marek Vasut
2022-04-05 20:14           ` Tim Harvey
2022-04-05 23:00             ` Marek Vasut
2022-04-06 12:22               ` Adam Ford
2022-04-06 12:27                 ` Fabio Estevam
2022-04-06 12:40                   ` Adam Ford
2022-04-06 13:13                     ` Marek Vasut
2022-04-17 22:02             ` Adam Ford
2022-04-07 22:21   ` Tim Harvey
2022-04-16 20:49     ` Adam Ford
2022-04-17  0:35       ` Marek Vasut [this message]
2022-04-17  1:01         ` Adam Ford
2022-04-17  2:13           ` Marek Vasut
2022-04-17 13:21             ` Adam Ford
2022-04-17 15:16               ` Marek Vasut
2022-04-17 16:37                 ` Adam Ford
2022-04-17 18:15                   ` Marek Vasut
2022-04-17 18:24                     ` Adam Ford
2022-04-17 21:37                       ` Marek Vasut

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=db3ee9b8-8980-8f1a-1368-7bdf6eacc187@denx.de \
    --to=marex@denx.de \
    --cc=aford173@gmail.com \
    --cc=festevam@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=sbabic@denx.de \
    --cc=tharvey@gateworks.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.