Kernel crashed when power by USBC PD

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

Kernel crashed when power by USBC PD

847 Views
thanhle1990
Contributor II

Hi support team,
I'm using the USBC PSU to power the iMX8MQ dev kit 
https://www.amazon.com/Mackertop-Charger-Adapter-Latitude-Inspiron/dp/B07VV4HB1V

Uboot was able to detect PD and boot kernel

```

U-Boot 2020.04-5.4.24-2.1.0+g4979a99482 (Jun 22 2022 - 19:25:19 +0000)

CPU: i.MX8MQ rev2.1 1500 MHz (running at 1000 MHz)
CPU: Commercial temperature grade (0C to 95C) at 35C
Reset cause: POR
Model: NXP i.MX8MQ EVK
DRAM: 3 GiB
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C0 0x50]
SNK.Power3.0 on CC2
PDO 0: type 0, 5000 mV, 3000 mA [DE]
PDO 1: type 0, 9000 mV, 3000 mA []
PDO 2: type 0, 15000 mV, 3000 mA []
PDO 3: type 0, 20000 mV, 2250 mA []
Requesting PDO 3: 20000 mV, 750 mA
Source accept request
PD source ready! <============================ PD ready
tcpc_pd_receive_message: Polling ALERT register, TCPC_ALERT_RX_STATUS bit failed, ret = -62
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

[*]-Video Link 0imx8m_hdmi_probe
(1280 x 720)
[0] display-controller@32e00000, video
[1] hdmi@32c00000, display
In: serial
Out: serial
Err: serial

BuildInfo:
- ATF b0a00f2
- U-Boot 2020.04-5.4.24-2.1.0+g4979a99482

switch to partitions #0, OK


```

But the kernel was crashed


```

[ 2.982299] mmcblk0rpmb: mmc0:0001 DG4016 partition 3 4.00 MiB, chardev (237:0)
[ 3.053150] mmcblk0: p1 p2
[ 3.062677] [drm] Initialized vivante 1.0.0 20170808 for 38000000.gpu3d on minor 1
[ 3.073029] hantrodec: module inserted. Major = 236
[ 3.081941] debugfs: Directory '308c0000.sai' with parent 'bt-sco-audio' already present!
[ 3.090199] asoc-simple-card sound-bt-sco: bt-sco-pcm-wb <-> 308c0000.sai mapping ok
[ 3.097957] asoc-simple-card sound-bt-sco: ASoC: no DMI vendor name!
[ 3.104349] debugfs: File 'Playback' in directory 'dapm' already present!
[ 3.111143] debugfs: File 'Capture' in directory 'dapm' already present!
[ 3.121044] debugfs: Directory '308b0000.sai' with parent 'wm8524-audio' already present!
[ 3.129319] asoc-simple-card sound-wm8524: wm8524-hifi <-> 308b0000.sai mapping ok
[ 3.136921] asoc-simple-card sound-wm8524: ASoC: no DMI vendor name!
[ 3.149905] ak4458 2-0010: ASoC: failed to probe component -6
[ 3.155700] imx-ak4458 sound-ak4458: ASoC: failed to instantiate card -6
[ 3.162484] imx-ak4458 sound-ak4458: snd_soc_register_card failed (-6)
[ 3.170001] ak5558 2-0013: ASoC: failed to probe component -6
[ 3.175776] imx-ak5558 sound-ak5558: ASoC: failed to instantiate card -6
[ 3.182520] imx-ak5558 sound-ak5558: snd_soc_register_card failed (-6)
[ 3.189593] debugfs: Directory '30050000.sai' with parent 'imx-audio-hdmi' already present!
[ 3.198025] imx-cdnhdmi sound-hdmi: i2s-hifi <-> 30050000.sai mapping ok
[ 3.198784] random: fast init done
[ 3.204749] imx-cdnhdmi sound-hdmi: ASoC: no DMI vendor name!
[ 3.213913] debugfs: File 'Capture' in directory 'dapm' already present!
[ 3.221957] input: imx-audio-hdmi HDMI Jack as /devices/platform/sound-hdmi/sound/card4/input1
� <============================ CRASHED HERE
U-Boot SPL 2020.04-5.4.24-2.1.0+g4979a99482 (Jun 22 2022 - 19:25:19 +0000)
PMIC: PFUZE100 ID=0x10
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3200MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from MMC1


U-Boot 2020.04-5.4.24-2.1.0+g4979a99482 (Jun 22 2022 - 19:25:19 +0000)

```

The issue did not happen if I use the PSU from the dev kit, could you please take a look.
Thank you 

0 Kudos
3 Replies

810 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @thanhle1990,

From the logs, it seems that there is no crash in the kernel, but it is rebooting continuously.

One possible reason can be improper power input. Due to insufficient power, the processor might get rebooted.

Are you booting the processor with the pre-build images provided by the NXP, or are you using your custom images?

 

Best Regards,
Dhruvit.

0 Kudos

804 Views
thanhle1990
Contributor II

Hi, Dhruvit

As I had some investigation before, the issue ware caused by missing of power supply for HDMI. 
The power from USBC PD did not become the main power source, as I read from another post, USBC PD on this board was not designed for power supply, so I gave up the idea.

0 Kudos

766 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @thanhle1990,

 

As indicated in the Power topology (image attached below), After the VSYS is generated, there is a common power path going ahead in power sequence irrespective of the power source. So, DCDC_5V rail will be genrated in both the cases (DC jack power source or USB Type C power source).

 

image.png

 

Thank you.
Best Regards,
Dhruvit.

0 Kudos