[PATCH] ARM: imx: Fix parsing of ROM log event IDs on iMX8M

Peng Fan peng.fan at oss.nxp.com
Mon Apr 24 11:19:32 CEST 2023



On 4/15/2022 12:36 AM, fedorross at gmail.com wrote:
> From: Fedor Ross <fedor.ross at 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 at ifm.com>
> Cc: Fabio Estevam <festevam at gmail.com>
> Cc: Marek Vasut <marex at denx.de>
> Cc: Peng Fan <peng.fan at nxp.com>
> Cc: Stefano Babic <sbabic at denx.de>

Reviewed-by: Peng Fan <peng.fan at 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 */


More information about the U-Boot mailing list