This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM62A7: Error during Deep sleep sequence in v10.01.00 build

Part Number: AM62A7

Tool/software:

Hello TI,
I was working with the deep sleep mode in AM62A7 EVM Board. I downloaded the v10.01.00 edgeai image from the website.
But when i tried to put the EVM in Sleep I'm facing some errors I'm mentioning that below

root@am62axx-evm:/opt/edgeai-gst-apps# echo mem > /sys/power/state 
[  366.121590] PM: suspend entry (deep)
[  371.675225] Filesystems sync: 5.550 seconds
[  371.681364] Freezing user space processes
[  371.686967] Freezing user space processes completed (elapsed 0.001 seconds)
[  371.693968] OOM killer disabled.
[  371.697196] Freezing remaining freezable tasks
[  371.702875] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[  371.723974] ti-sci 44043000.system-controller: ti_sci_cmd_set_device_constraint: device: 179: state: 1: ret 0
[  371.734035] ti-sci 44043000.system-controller: ti_sci_cmd_set_device_constraint: device: 178: state: 1: ret 0
[  371.747675] ti-sci 44043000.system-controller: ti_sci_cmd_set_device_constraint: device: 117: state: 1: ret 0
[  372.760798] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_suspend+0x144/0x170)
[  372.770295] ti-sci 44043000.system-controller: Mbox send fail -110
[  372.776473] ti-sci 44043000.system-controller: PM: dpm_run_callback(): platform_pm_suspend+0x0/0x6c returns -110
[  372.786643] ti-sci 44043000.system-controller: PM: failed to suspend: error -110
[  372.794036] PM: Some devices failed to suspend, or early wake event detected
[  372.801096] Internal error: synchronous external abort: 0000000096000010 [#1] PREEMPT SMP
[  372.809257] Modules linked in: wave5 overlay e5010_jpeg_enc v4l2_jpeg videobuf2_dma_contig bluetooth videobuf2_memops v4l2_mem2mem cfg80211 ecdh_generic videobuf2_v4l2 ecc rfkill videobuf2_common snd_soc_hdmi_codec snd_soc_simple_card crct10dif_ce videodev snd_soc_davinci_mcasp rpmsg_ctrl snd_soc_simple_card_utils rpmsg_char mc tidss snd_soc_ti_udma display_connector snd_soc_ti_edma snd_soc_ti_sdma ti_k3_r5_remoteproc rtc_ti_k3 ti_k3_dsp_remoteproc omap_mailbox sii902x mcrc64 sa2ul snd_soc_tlv320aic3x_i2c rti_wdt k3_j72xx_bandgap omap_hwspinlock drm_dma_helper snd_soc_tlv320aic3x drm_kms_helper tps6598x typec cryptodev(O) fuse drm drm_panel_orientation_quirks backlight ipv6 [last unloaded: wave5]
[  372.870956] CPU: 3 PID: 1368 Comm: sh Tainted: G           O       6.6.58-ti-01497-ga7758da17c28-dirty #1
[  372.880503] Hardware name: Texas Instruments AM62A7 SK (DT)
[  372.886061] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[  372.893007] pc : e5010_hw_bypass_mmu+0x4/0x28 [e5010_jpeg_enc]
[  372.898841] lr : e5010_init_device+0x20/0x134 [e5010_jpeg_enc]
[  372.904668] sp : ffff800081693ac0
[  372.907971] x29: ffff800081693ac0 x28: ffff00080665d580 x27: 0000000000000000
[  372.915096] x26: 0000000000000000 x25: ffff800081478500 x24: ffff8000813b9840
[  372.922221] x23: ffff800080738674 x22: 0000000000000000 x21: ffff000801600e80
[  372.929346] x20: ffff00080015d010 x19: ffff000801600e80 x18: 0000000000000006
[  372.936471] x17: 7463657465642074 x16: 6e65766520656b61 x15: ffff800081693620
[  372.943595] x14: 0000000000000000 x13: ffff8000812ef178 x12: 0000000000000bdf
[  372.950718] x11: 00000000000003f5 x10: ffff800081347178 x9 : ffff8000812ef178
[  372.957843] x8 : 00000000ffffefff x7 : 0000000000019a27 x6 : 00000011bf257c21
[  372.964967] x5 : 03ffffffffffffff x4 : 002e03c900000000 x3 : 0000000000000018
[  372.972092] x2 : 0000000000008f98 x1 : 0000000000000001 x0 : ffff8000822c9270
[  372.979216] Call trace:
[  372.981653]  e5010_hw_bypass_mmu+0x4/0x28 [e5010_jpeg_enc]
[  372.987134]  e5010_resume+0x30/0x80 [e5010_jpeg_enc]
[  372.992094]  pm_generic_resume+0x2c/0x44
[  372.996009]  ti_sci_pd_resume+0x20/0x2c
[  372.999838]  __device_resume+0x84/0x230
[  373.003669]  dpm_resume+0x9c/0x124
[  373.007065]  dpm_resume_end+0x18/0x30
[  373.010720]  suspend_devices_and_enter+0x1b0/0x550
[  373.015503]  pm_suspend+0x1ac/0x260
[  373.018981]  state_store+0x80/0xec
[  373.022378]  kobj_attr_store+0x18/0x2c
[  373.026122]  sysfs_kf_write+0x44/0x54
[  373.029779]  kernfs_fop_write_iter+0x120/0x1cc
[  373.034214]  vfs_write+0x1c0/0x308
[  373.037610]  ksys_write+0x74/0x10c
[  373.041003]  __arm64_sys_write+0x1c/0x28
[  373.044918]  invoke_syscall+0x48/0x114
[  373.048660]  el0_svc_common.constprop.0+0xc0/0xe0
[  373.053355]  do_el0_svc+0x1c/0x28
[  373.056661]  el0_svc+0x2c/0x84
[  373.059707]  el0t_64_sync_handler+0x120/0x12c
[  373.064054]  el0t_64_sync+0x190/0x194
[  373.067711] Code: 9124e021 95bc06a0 17ffffe8 9101c000 (b9400002) 
[  373.073789] ---[ end trace 0000000000000000 ]---


So, I found that driver e5010_jpeg_enc is crashing so i removed and again tried to make it go sleep but i encountered some error please check.

root@am62axx-evm:/opt/edgeai-gst-apps# echo mem > /sys/power/state 
[  157.222253] PM: suspend entry (deep)
[  169.759294] Filesystems sync: 12.533 seconds
[  169.765570] Freezing user space processes
[  169.771267] Freezing user space processes completed (elapsed 0.001 seconds)
[  169.778255] OOM killer disabled.
[  169.781471] Freezing remaining freezable tasks
[  169.787185] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[  169.808332] ti-sci 44043000.system-controller: ti_sci_cmd_set_device_constraint: device: 179: state: 1: ret 0
[  169.818398] ti-sci 44043000.system-controller: ti_sci_cmd_set_device_constraint: device: 178: state: 1: ret 0
[  169.832069] ti-sci 44043000.system-controller: ti_sci_cmd_set_device_constraint: device: 117: state: 1: ret 0
[  170.874020] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_suspend+0x144/0x170)
[  170.883564] ti-sci 44043000.system-controller: Mbox send fail -110
[  170.889745] ti-sci 44043000.system-controller: PM: dpm_run_callback(): platform_pm_suspend+0x0/0x6c returns -110
[  170.899917] ti-sci 44043000.system-controller: PM: failed to suspend: error -110
[  170.907308] PM: Some devices failed to suspend, or early wake event detected
[  171.930018] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_cmd_get_device_exclusive+0x18/0x24)
[  171.940831] ti-sci 44043000.system-controller: Mbox send fail -110
[  171.947043] spi-nand spi0.0: resume failed with -110
[  172.954029] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: k3_ringacc_ring_cfg_sci+0x94/0xf8)
[  172.964133] ti-sci 44043000.system-controller: RM_RA:Mbox config send fail -110
[  172.971437] ti-udma 485c0000.dma-controller: TISCI config ring fail (-110) ring_idx 19
[  172.979353] am65-cpsw-nuss 8000000.ethernet: Failed to cfg ringtx -110
[  172.985973] am65-cpsw-nuss 8000000.ethernet: error -ETIMEDOUT: Failed to request tx dma channel
[  172.994725] am65-cpsw-nuss 8000000.ethernet: PM: dpm_run_callback(): ti_sci_pd_resume+0x0/0x2c returns -110
[  173.004483] am65-cpsw-nuss 8000000.ethernet: PM: failed to resume: error -110
[  174.042015] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_cmd_get_clock+0x28/0x34)
[  174.051857] ti-sci 44043000.system-controller: Mbox send fail -110
[  175.066000] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_cmd_get_clock+0x28/0x34)
[  175.075829] ti-sci 44043000.system-controller: Mbox send fail -110
[  176.090005] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_cmd_get_clock+0x28/0x34)
[  176.099835] ti-sci 44043000.system-controller: Mbox send fail -110
[  176.106018] sdhci-am654 fa10000.mmc: PM: dpm_run_callback(): ti_sci_pd_resume+0x0/0x2c returns -110
[  176.115062] sdhci-am654 fa10000.mmc: PM: failed to resume: error -110
[  177.146027] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_cmd_get_clock+0x28/0x34)
[  177.155864] ti-sci 44043000.system-controller: Mbox send fail -110
[  177.162046] sdhci-am654 fa00000.mmc: PM: dpm_run_callback(): ti_sci_pd_resume+0x0/0x2c returns -110
[  177.171090] sdhci-am654 fa00000.mmc: PM: failed to resume: error -110
[  178.202000] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xec)
[  178.212010] ti-sci 44043000.system-controller: Mbox send fail -110
[  178.218187] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
[  179.257998] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xec)
[  179.267997] ti-sci 44043000.system-controller: Mbox send fail -110
[  179.274172] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
[  180.313998] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: sci_clk_determine_rate+0x68/0xec)
[  180.323997] ti-sci 44043000.system-controller: Mbox send fail -110
[  180.330172] ti-sci-clk 44043000.system-controller:clock-controller: determine-rate failed for dev=135, clk=0, ret=-110
[  180.340857] cpu cpu0: _opp_config_clk_single: failed to set clock rate: -22
[  180.347812] cpufreq: __target_index: Failed to change cpu frequency: -22
[  180.355475] OOM killer enabled.
[  180.358648] Restarting tasks ... done.
[  180.364456] random: crng reseeded on system resumption
[  180.372684] PM: suspend exit
-sh: echo: write error: Connection timed out

Kindly tell me the solution.

Thank you,
Harsh