* [PATCH] ARM: imx: Fix parsing of ROM log event IDs on iMX8M
@ 2022-04-14 16:36 fedorross
2022-04-14 18:00 ` Fedor Ross
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: fedorross @ 2022-04-14 16:36 UTC (permalink / raw)
To: u-boot; +Cc: Fedor Ross, Fabio Estevam, Marek Vasut, Peng Fan, Stefano Babic
From: Fedor Ross <fedor.ross@ifm.com>
It seems like the ROM log events for the iMX8M are not fully covered by
AN12853 i.MX ROMs Log Events, Rev. 0, May 2020. On iMX8M the ROM event
ID 0x82 seems to use parameter0 which stops the parsing because the end
of list is detected too early.
This patch adds ROM event ID 0x82 and skips the next word if ID 0x82 is
parsed.
Fixes: a5ee05cf71 ("ARM: imx: Pick correct eMMC boot partition from ROM log")
Signed-off-by: Fedor Ross <fedor.ross@ifm.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
---
arch/arm/mach-imx/imx8m/soc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
index 8171631db1..4df57cb150 100644
--- a/arch/arm/mach-imx/imx8m/soc.c
+++ b/arch/arm/mach-imx/imx8m/soc.c
@@ -677,6 +677,7 @@ int spl_mmc_emmc_boot_partition(struct mmc *mmc)
/* Log entries with 1 parameter, skip 1 */
case 0x80: /* Start to perform the device initialization */
case 0x81: /* The boot device initialization completes */
+ case 0x82: /* Starts to execute boot device driver pre-config */
case 0x8f: /* The boot device initialization fails */
case 0x90: /* Start to read data from boot device */
case 0x91: /* Reading data from boot device completes */
--
2.20.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH] ARM: imx: Fix parsing of ROM log event IDs on iMX8M
2022-04-14 16:36 [PATCH] ARM: imx: Fix parsing of ROM log event IDs on iMX8M fedorross
@ 2022-04-14 18:00 ` Fedor Ross
2022-05-06 15:17 ` Fedor Ross
2023-04-20 12:47 ` Peng Fan
2023-04-24 9:19 ` Peng Fan
2023-05-21 17:12 ` sbabic
2 siblings, 2 replies; 7+ messages in thread
From: Fedor Ross @ 2022-04-14 18:00 UTC (permalink / raw)
To: u-boot
Hello Peng,
can you please check the parameter of event 0x82 internally? The AN12853
doesn't mention a parameter for ID 0x82, but we see something else coming
out of the bootrom of iMX8MN.
Best regards,
Fedor
Am Do., 14. Apr. 2022 um 18:37 Uhr schrieb <fedorross@gmail.com>:
>
> From: Fedor Ross <fedor.ross@ifm.com>
>
> It seems like the ROM log events for the iMX8M are not fully covered by
> AN12853 i.MX ROMs Log Events, Rev. 0, May 2020. On iMX8M the ROM event
> ID 0x82 seems to use parameter0 which stops the parsing because the end
> of list is detected too early.
>
> This patch adds ROM event ID 0x82 and skips the next word if ID 0x82 is
> parsed.
>
>
> Fixes: a5ee05cf71 ("ARM: imx: Pick correct eMMC boot partition from ROM
log")
>
> Signed-off-by: Fedor Ross <fedor.ross@ifm.com>
> Cc: Fabio Estevam <festevam@gmail.com>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Peng Fan <peng.fan@nxp.com>
> Cc: Stefano Babic <sbabic@denx.de>
> ---
> arch/arm/mach-imx/imx8m/soc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
> index 8171631db1..4df57cb150 100644
> --- a/arch/arm/mach-imx/imx8m/soc.c
> +++ b/arch/arm/mach-imx/imx8m/soc.c
> @@ -677,6 +677,7 @@ int spl_mmc_emmc_boot_partition(struct mmc *mmc)
> /* Log entries with 1 parameter, skip 1 */
> case 0x80: /* Start to perform the device initialization
*/
> case 0x81: /* The boot device initialization completes */
> + case 0x82: /* Starts to execute boot device driver
pre-config */
> case 0x8f: /* The boot device initialization fails */
> case 0x90: /* Start to read data from boot device */
> case 0x91: /* Reading data from boot device completes */
> --
> 2.20.1
>
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH] ARM: imx: Fix parsing of ROM log event IDs on iMX8M
2022-04-14 18:00 ` Fedor Ross
@ 2022-05-06 15:17 ` Fedor Ross
2023-01-25 18:47 ` Fedor Ross
2023-04-20 12:47 ` Peng Fan
1 sibling, 1 reply; 7+ messages in thread
From: Fedor Ross @ 2022-05-06 15:17 UTC (permalink / raw)
To: u-boot
Hello Peng,
just a gentle ping -- did you already had a chance to check the mentioned
parameter of event 0x82?
Thanks in advance.
Best regards,
Fedor
On Thu, Apr 14, 2022 at 8:00 PM Fedor Ross <fedorross@gmail.com> wrote:
>
> Hello Peng,
>
> can you please check the parameter of event 0x82 internally? The AN12853
> doesn't mention a parameter for ID 0x82, but we see something else coming
> out of the bootrom of iMX8MN.
>
> Best regards,
> Fedor
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: imx: Fix parsing of ROM log event IDs on iMX8M
2022-05-06 15:17 ` Fedor Ross
@ 2023-01-25 18:47 ` Fedor Ross
0 siblings, 0 replies; 7+ messages in thread
From: Fedor Ross @ 2023-01-25 18:47 UTC (permalink / raw)
To: u-boot
Hello Stefano,
do you know why this is in the state 'Superseded' ?
Thanks in advance.
Best regards,
Fedor
On Fri, May 6, 2022 at 5:17 PM Fedor Ross <fedorross@gmail.com> wrote:
>
> Hello Peng,
>
> just a gentle ping -- did you already had a chance to check the mentioned
> parameter of event 0x82?
>
> Thanks in advance.
>
> Best regards,
> Fedor
>
> On Thu, Apr 14, 2022 at 8:00 PM Fedor Ross <fedorross@gmail.com> wrote:
> >
> > Hello Peng,
> >
> > can you please check the parameter of event 0x82 internally? The AN12853
> > doesn't mention a parameter for ID 0x82, but we see something else coming
> > out of the bootrom of iMX8MN.
> >
> > Best regards,
> > Fedor
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: imx: Fix parsing of ROM log event IDs on iMX8M
2022-04-14 18:00 ` Fedor Ross
2022-05-06 15:17 ` Fedor Ross
@ 2023-04-20 12:47 ` Peng Fan
1 sibling, 0 replies; 7+ messages in thread
From: Peng Fan @ 2023-04-20 12:47 UTC (permalink / raw)
To: Fedor Ross, u-boot
Hi,
Marek pointed me this thread. I admitted I overlooked this patch.
Will check internally and back.
Regards,
Peng.
On 4/15/2022 2:00 AM, Fedor Ross wrote:
> Hello Peng,
>
> can you please check the parameter of event 0x82 internally? The AN12853
> doesn't mention a parameter for ID 0x82, but we see something else coming
> out of the bootrom of iMX8MN.
>
> Best regards,
> Fedor
>
> Am Do., 14. Apr. 2022 um 18:37 Uhr schrieb <fedorross@gmail.com>:
>>
>> From: Fedor Ross <fedor.ross@ifm.com>
>>
>> It seems like the ROM log events for the iMX8M are not fully covered by
>> AN12853 i.MX ROMs Log Events, Rev. 0, May 2020. On iMX8M the ROM event
>> ID 0x82 seems to use parameter0 which stops the parsing because the end
>> of list is detected too early.
>>
>> This patch adds ROM event ID 0x82 and skips the next word if ID 0x82 is
>> parsed.
>>
>>
>> Fixes: a5ee05cf71 ("ARM: imx: Pick correct eMMC boot partition from ROM
> log")
>>
>> Signed-off-by: Fedor Ross <fedor.ross@ifm.com>
>> Cc: Fabio Estevam <festevam@gmail.com>
>> Cc: Marek Vasut <marex@denx.de>
>> Cc: Peng Fan <peng.fan@nxp.com>
>> Cc: Stefano Babic <sbabic@denx.de>
>> ---
>> arch/arm/mach-imx/imx8m/soc.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
>> index 8171631db1..4df57cb150 100644
>> --- a/arch/arm/mach-imx/imx8m/soc.c
>> +++ b/arch/arm/mach-imx/imx8m/soc.c
>> @@ -677,6 +677,7 @@ int spl_mmc_emmc_boot_partition(struct mmc *mmc)
>> /* Log entries with 1 parameter, skip 1 */
>> case 0x80: /* Start to perform the device initialization
> */
>> case 0x81: /* The boot device initialization completes */
>> + case 0x82: /* Starts to execute boot device driver
> pre-config */
>> case 0x8f: /* The boot device initialization fails */
>> case 0x90: /* Start to read data from boot device */
>> case 0x91: /* Reading data from boot device completes */
>> --
>> 2.20.1
>>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] ARM: imx: Fix parsing of ROM log event IDs on iMX8M
2022-04-14 16:36 [PATCH] ARM: imx: Fix parsing of ROM log event IDs on iMX8M fedorross
2022-04-14 18:00 ` Fedor Ross
@ 2023-04-24 9:19 ` Peng Fan
2023-05-21 17:12 ` sbabic
2 siblings, 0 replies; 7+ messages in thread
From: Peng Fan @ 2023-04-24 9:19 UTC (permalink / raw)
To: fedorross, u-boot
Cc: Fedor Ross, Fabio Estevam, Marek Vasut, Peng Fan, Stefano Babic
On 4/15/2022 12:36 AM, fedorross@gmail.com wrote:
> From: Fedor Ross <fedor.ross@ifm.com>
>
> It seems like the ROM log events for the iMX8M are not fully covered by
> AN12853 i.MX ROMs Log Events, Rev. 0, May 2020. On iMX8M the ROM event
> ID 0x82 seems to use parameter0 which stops the parsing because the end
> of list is detected too early.
>
> This patch adds ROM event ID 0x82 and skips the next word if ID 0x82 is
> parsed.
>
> Fixes: a5ee05cf71 ("ARM: imx: Pick correct eMMC boot partition from ROM log")
>
> Signed-off-by: Fedor Ross <fedor.ross@ifm.com>
> Cc: Fabio Estevam <festevam@gmail.com>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Peng Fan <peng.fan@nxp.com>
> Cc: Stefano Babic <sbabic@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
> ---
> arch/arm/mach-imx/imx8m/soc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
> index 8171631db1..4df57cb150 100644
> --- a/arch/arm/mach-imx/imx8m/soc.c
> +++ b/arch/arm/mach-imx/imx8m/soc.c
> @@ -677,6 +677,7 @@ int spl_mmc_emmc_boot_partition(struct mmc *mmc)
> /* Log entries with 1 parameter, skip 1 */
> case 0x80: /* Start to perform the device initialization */
> case 0x81: /* The boot device initialization completes */
> + case 0x82: /* Starts to execute boot device driver pre-config */
> case 0x8f: /* The boot device initialization fails */
> case 0x90: /* Start to read data from boot device */
> case 0x91: /* Reading data from boot device completes */
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH] ARM: imx: Fix parsing of ROM log event IDs on iMX8M
2022-04-14 16:36 [PATCH] ARM: imx: Fix parsing of ROM log event IDs on iMX8M fedorross
2022-04-14 18:00 ` Fedor Ross
2023-04-24 9:19 ` Peng Fan
@ 2023-05-21 17:12 ` sbabic
2 siblings, 0 replies; 7+ messages in thread
From: sbabic @ 2023-05-21 17:12 UTC (permalink / raw)
To: fedorross, u-boot
> From: Fedor Ross <fedor.ross@ifm.com>
> It seems like the ROM log events for the iMX8M are not fully covered by
> AN12853 i.MX ROMs Log Events, Rev. 0, May 2020. On iMX8M the ROM event
> ID 0x82 seems to use parameter0 which stops the parsing because the end
> of list is detected too early.
> This patch adds ROM event ID 0x82 and skips the next word if ID 0x82 is
> parsed.
> Fixes: a5ee05cf71 ("ARM: imx: Pick correct eMMC boot partition from ROM log")
> Signed-off-by: Fedor Ross <fedor.ross@ifm.com>
> Cc: Fabio Estevam <festevam@gmail.com>
> Cc: Marek Vasut <marex@denx.de>
> Cc: Peng Fan <peng.fan@nxp.com>
> Cc: Stefano Babic <sbabic@denx.de>
> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de
=====================================================================
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-05-21 17:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-14 16:36 [PATCH] ARM: imx: Fix parsing of ROM log event IDs on iMX8M fedorross
2022-04-14 18:00 ` Fedor Ross
2022-05-06 15:17 ` Fedor Ross
2023-01-25 18:47 ` Fedor Ross
2023-04-20 12:47 ` Peng Fan
2023-04-24 9:19 ` Peng Fan
2023-05-21 17:12 ` sbabic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox