iMX8M yocto Zeus Kernel hangs at imx-sdma

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX8M yocto Zeus Kernel hangs at imx-sdma

4,062 Views
antonyabeepraka
Contributor II

Hi,

We are porting our yocto sumo BSP to yocto zeus branch for our custom imx8m target.

We have taken imx-yocto-LF_L5.4.3_1.0.0 release package and building yocto image.

We successfully built the kernel image. When booting the target, kernel hangs at imx-sdma firmware loading stage.

[ 0.784529] imx-sdma 302c0000.sdma: Direct firmware load for imx/sdma/sdma-imx7d.bin failed with error -2

[ 0.791297] imx-sdma 302c0000.sdma: Falling back to sysfs fallback for: imx/sdma/sdma-imx7d.bin

[ 0.791830] mxs-dma 33000000.dma-apbh: initialized

We tried resolving this issue by giving the binary path in config file as below:

CONFIG_EXTRA_FIRMWARE = "imx/sdma/sdma-imx7d.bin"

Firmware loaded successfully. But still the kernel hangs after the below logs.

[ 0.815586] imx-sdma 302c0000.sdma: loaded firmware 4.2

[ 0.820811] imx-sdma 30bd0000.sdma: loaded firmware 4.2

[ 0.822815] mxs-dma 33000000.dma-apbh: initialized

Yocto sumo kernel without our custom board patch, will boot straightaway. But Zeus kernel does not boot successfully. We also tried applying our custom board patches. But kernel still hangs at the same place. Attached the full logs for your reference.

Please provide your inputs to resolve this issue.

Thanks,

Antony

Labels (1)
5 Replies

2,203 Views
ShaIng
Contributor I

i have the same problem using IOT-GATE-iMX8 , following steps in IOT-GATE-iMX8 and SBC-IOT-iMX8: Debian Linux: Installation - Compulab Mediawiki

booting from USB , at starting Kernel , stop at this step

0.760317] mxs-dma 33000000.dma-controller: initialized 

0 Kudos
Reply

1,736 Views
zeh
Contributor I

Have you solved this problem?

0 Kudos
Reply

3,817 Views
antonyabeepraka
Contributor II

Hi,

Kernel hang issue resolved after using imx8mq-evk-root.dtb file. Earlier we were using imx8mq-evk.dtb which causes kernel hang.

In imx8mq-evk-root.dtb, we are seeing the below cpu sleep related node.

&CPU_SLEEP {
/* We are not using GPC for now, need set 0 to avoid hang */
arm,psci-suspend-param = <0x0>;
};

We hope this handles the problem. Please advice if our guess is wrong.

Now we are able to load the kernel and rootfs successfully.

Thanks,

Antony

3,817 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Antony,

Is weird that you have some problem with MX8M and SDMA, We use IMX_SDMA as module . (SDMA error in serial ports (sumo-4.14.78-1.0.0_ga)

 

It only hangs with I.MX7S on your sumo-5.4.3.
With I.MX7D on our board we can load the imx-sdma module.

 

If we checkout mainline 5.4.3 version of drivers/dma/imx-sdma.c we have the same problem.
But if we use mainline 5.4.3 and checkout the NXP rel_imx_5.4.3_1.0.0_ga version of drivers/dma/imx-sdma.c (drivers/dma/Kconfig, drivers/dma/virt-dma.c, drivers/dma/pxp/Kconfig and include/linux/dmaengine.h), we can load the module imx-sdma.

Regards

0 Kudos
Reply

3,817 Views
antonyabeepraka
Contributor II

Hi,

I tried enabling SDMA as lodable module (CONFIG_IMX_SDMA=m) in kernel configuration file to avoid this SDMA firmware loading issue. But still the kernel hangs at below line:

 [   0.805389] EINJ: ACPI disabled.

[   0.810919] mxs-dma 33000000.dma-apbh: initialized

Without loading SDMA aslo, kernel hangs up. What might be the issue here ?

We are using NXP released imx_5.4.3_1.0.0_ga kernel.

Branch : lf-5.4.y

Commit ID : f8118585ee3c7025265b28985fdfe0af96a84466

Are you using the same branch and ID ?

Thanks,
Antony

0 Kudos
Reply