Other Parts Discussed in Thread: SK-AM62A-LP
Tool/software:
Hi,
HW: TI SK-AM62A-LP EVM
SW: Processor SDK Linux 10_01_00. TI prebuilt binary can reproduce this symptom as well.
Symptom:
Can’t enter suspend mode.
Reproduce procedure:
- Power-up the board and let Linux boot from the SD card.
- Wait a few seconds until the shell prompt appears (no apps started).
- Run (echo mem > /sys/power/state)
Log:
am62axx-evm login: root [ 83.492252] systemd-journald[129]: Successfully sent stream file descriptor to service manager. [ 83.547606] systemd-journald[129]: Successfully sent stream file descriptor to service manager. [ 83.554206] audit: type=1006 audit(111.316:16): pid=1161 uid=0 subj=kernel old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=3 res=1 [ 83.569243] audit: type=1300 audit(111.316:16): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=ffffe17b5638 a2=1 a3=1 items=0 ppid=1 pid=1161 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="(systemd)" exe="/usr/lib/systemd/systemd-executor" subj=kernel key=(null) [ 83.596278] audit: type=1327 audit(111.316:16): proctitle="(systemd)" [ 83.602757] audit: type=1334 audit(111.352:17): prog-id=18 op=LOAD [ 83.608982] audit: type=1300 audit(111.352:17): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=ffffddbba848 a2=90 a3=0 items=0 ppid=1 pid=1161 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="systemd" exe="/usr/lib/systemd/systemd" subj=kernel key=(null) [ 83.635240] audit: type=1327 audit(111.352:17): proctitle="(systemd)" [ 83.641725] audit: type=1334 audit(111.364:18): prog-id=18 op=UNLOAD [ 83.648109] audit: type=1300 audit(111.364:18): arch=c00000b7 syscall=57 success=yes exit=0 a0=8 a1=1 a2=0 a3=0 items=0 ppid=1 pid=1161 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="systemd" exe="/usr/lib/systemd/systemd" subj=kernel key=(null) [ 83.673242] audit: type=1327 audit(111.364:18): proctitle="(systemd)" [ 83.679751] audit: type=1334 audit(111.364:19): prog-id=19 op=LOAD [ 84.230147] systemd-journald[129]: Successfully sent stream file descriptor to service manager. [ 84.668928] vdec 30210000.video-codec: Runtime PM usage count underflow! [ 84.706616] vdec 30210000.video-codec: error -ENXIO: IRQ index 0 not found [ 84.713513] vdec 30210000.video-codec: failed to get irq resource, falling back to polling [ 84.722029] vdec 30210000.video-codec: OPP table not found in device tree [ 84.734082] vdec 30210000.video-codec: Added wave5 driver with caps: 'ENCODE' 'DECODE' [ 84.742080] vdec 30210000.video-codec: Product Code: 0x521c [ 84.748126] vdec 30210000.video-codec: Firmware Revision: 334314 [ 99.374342] systemd-journald[129]: Sent WATCHDOG=1 notification. root@am62axx-evm:/opt/edgeai-gst-apps# echo mem > /sys/power/state [ 108.602585] PM: suspend entry (deep) [ 108.610767] Filesystems sync: 0.004 seconds [ 108.619046] Freezing user space processes [ 108.624768] Freezing user space processes completed (elapsed 0.001 seconds) [ 108.631769] OOM killer disabled. [ 108.634999] Freezing remaining freezable tasks [ 108.640732] Freezing remaining freezable tasks completed (elapsed 0.001 seconds) [ 108.659321] ti-sci 44043000.system-controller: ti_sci_cmd_set_device_constraint: device: 179: state: 1: ret 0 [ 108.669382] ti-sci 44043000.system-controller: ti_sci_cmd_set_device_constraint: device: 178: state: 1: ret 0 [ 108.687296] ti-sci 44043000.system-controller: ti_sci_cmd_set_device_constraint: device: 117: state: 1: ret 0 [ 109.714240] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_suspend+0x1a4/0x1b4) [ 109.723737] ti-sci 44043000.system-controller: Mbox send fail -110 [ 109.729914] ti-sci 44043000.system-controller: PM: dpm_run_callback(): platform_pm_suspend+0x0/0x6c returns -110 [ 109.740086] ti-sci 44043000.system-controller: PM: failed to suspend: error -110 [ 109.747477] PM: Some devices failed to suspend, or early wake event detected [ 109.754537] Internal error: synchronous external abort: 0000000096000010 [#1] PREEMPT SMP [ 109.762697] Modules linked in: wave5 snd_soc_hdmi_codec rpmsg_ctrl rpmsg_char crct10dif_ce overlay snd_soc_simple_card snd_soc_simple_card_utils cpufreq_dt e5010_jpeg_enc display_connector v4l2_jpeg cfg80211 rti_wdt k3_j72xx_bandgap rtc_ti_k3 ti_k3_r5_remoteproc ti_k3_dsp_remoteproc videobuf2_dma_contig videobuf2_memops v4l2_mem2mem videobuf2_v4l2 videobuf2_common sa2ul videodev mc snd_soc_davinci_mcasp snd_soc_ti_udma snd_soc_ti_edma tidss mcrc64 snd_soc_ti_sdma drm_dma_helper omap_hwspinlock omap_mailbox snd_soc_tlv320aic3x_i2c sii902x snd_soc_tlv320aic3x drm_kms_helper tps6598x typec bluetooth ecdh_generic ecc rfkill cryptodev(O) fuse drm drm_panel_orientation_quirks backlight ipv6 [last unloaded: wave5] [ 109.825354] CPU: 1 PID: 1167 Comm: sh Tainted: G O 6.6.44-ti-01478-g541c20281af7-dirty #1 [ 109.834902] Hardware name: Texas Instruments AM62A7 SK (DT) [ 109.840460] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 109.847407] pc : e5010_hw_bypass_mmu+0x4/0x28 [e5010_jpeg_enc] [ 109.853239] lr : e5010_init_device+0x20/0x134 [e5010_jpeg_enc] [ 109.859066] sp : ffff800082673a70 [ 109.862368] x29: ffff800082673a70 x28: ffff000810398000 x27: 00000019811c5ce2 [ 109.869493] x26: 0000000000000010 x25: ffff800081586580 x24: ffff800081527000 [ 109.876617] x23: 0000000000000000 x22: ffff800080fdbe20 x21: ffff0008002d7a80 [ 109.883741] x20: ffff000800161010 x19: ffff0008002d7a80 x18: 0000000000000006 [ 109.890865] x17: 7463657465642074 x16: 6e65766520656b61 x15: ffff800082673610 [ 109.897990] x14: 0000000000000000 x13: ffff8000813cf218 x12: 0000000000000ada [ 109.905114] x11: 000000000000039e x10: ffff800081427218 x9 : ffff8000813cf218 [ 109.912239] x8 : 00000000ffffefff x7 : 0000000000019a27 x6 : 00000006629c60c1 [ 109.919363] x5 : 03ffffffffffffff x4 : 001f3b9b00000000 x3 : 0000000000000018 [ 109.926487] x2 : 00000000000037a8 x1 : 0000000000000001 x0 : ffff800082656270 [ 109.933611] Call trace: [ 109.936047] e5010_hw_bypass_mmu+0x4/0x28 [e5010_jpeg_enc] [ 109.941530] e5010_resume+0x30/0x80 [e5010_jpeg_enc] [ 109.946490] pm_generic_resume+0x2c/0x44 [ 109.950407] ti_sci_pd_resume+0x20/0x2c [ 109.954237] dpm_run_callback+0x8c/0x14c [ 109.958151] __device_resume+0x88/0x26c [ 109.961977] dpm_resume+0xa4/0x140 [ 109.965370] dpm_resume_end+0x18/0x30 [ 109.969023] suspend_devices_and_enter+0x4c0/0x634 [ 109.973805] pm_suspend+0x1fc/0x368 [ 109.977283] state_store+0x80/0xec [ 109.980675] kobj_attr_store+0x18/0x2c [ 109.984416] sysfs_kf_write+0x44/0x54 [ 109.988072] kernfs_fop_write_iter+0x120/0x1cc [ 109.992506] vfs_write+0x1c0/0x308 [ 109.995903] ksys_write+0x74/0x10c [ 109.999297] __arm64_sys_write+0x1c/0x28 [ 110.003212] invoke_syscall+0x48/0x114 [ 110.006953] el0_svc_common.constprop.0+0xc0/0xe0 [ 110.011647] do_el0_svc+0x1c/0x28 [ 110.014955] el0_svc+0x2c/0x84 [ 110.018004] el0t_64_sync_handler+0x120/0x12c [ 110.022353] el0t_64_sync+0x190/0x194 [ 110.026010] Code: 9124e021 95b4cc41 17ffffe8 9101c000 (b9400002) [ 110.032089] ---[ end trace 0000000000000000 ]--- HW: SK-AM62A-LP SW: Processor SDK Linux 10_01_00 Symptom: Can’t enter suspend mode. Reproduce procedure: Power-up the board and let Linux boot from the SD card. Wait a few seconds until the shell prompt appears (no apps started). Run (echo mem > /sys/power/state) Log: am62axx-evm login: root [ 83.492252] systemd-journald[129]: Successfully sent stream file descriptor to service manager. [ 83.547606] systemd-journald[129]: Successfully sent stream file descriptor to service manager. [ 83.554206] audit: type=1006 audit(111.316:16): pid=1161 uid=0 subj=kernel old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=3 res=1 [ 83.569243] audit: type=1300 audit(111.316:16): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=ffffe17b5638 a2=1 a3=1 items=0 ppid=1 pid=1161 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="(systemd)" exe="/usr/lib/systemd/systemd-executor" subj=kernel key=(null) [ 83.596278] audit: type=1327 audit(111.316:16): proctitle="(systemd)" [ 83.602757] audit: type=1334 audit(111.352:17): prog-id=18 op=LOAD [ 83.608982] audit: type=1300 audit(111.352:17): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=ffffddbba848 a2=90 a3=0 items=0 ppid=1 pid=1161 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="systemd" exe="/usr/lib/systemd/systemd" subj=kernel key=(null) [ 83.635240] audit: type=1327 audit(111.352:17): proctitle="(systemd)" [ 83.641725] audit: type=1334 audit(111.364:18): prog-id=18 op=UNLOAD [ 83.648109] audit: type=1300 audit(111.364:18): arch=c00000b7 syscall=57 success=yes exit=0 a0=8 a1=1 a2=0 a3=0 items=0 ppid=1 pid=1161 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="systemd" exe="/usr/lib/systemd/systemd" subj=kernel key=(null) [ 83.673242] audit: type=1327 audit(111.364:18): proctitle="(systemd)" [ 83.679751] audit: type=1334 audit(111.364:19): prog-id=19 op=LOAD [ 84.230147] systemd-journald[129]: Successfully sent stream file descriptor to service manager. [ 84.668928] vdec 30210000.video-codec: Runtime PM usage count underflow! [ 84.706616] vdec 30210000.video-codec: error -ENXIO: IRQ index 0 not found [ 84.713513] vdec 30210000.video-codec: failed to get irq resource, falling back to polling [ 84.722029] vdec 30210000.video-codec: OPP table not found in device tree [ 84.734082] vdec 30210000.video-codec: Added wave5 driver with caps: 'ENCODE' 'DECODE' [ 84.742080] vdec 30210000.video-codec: Product Code: 0x521c [ 84.748126] vdec 30210000.video-codec: Firmware Revision: 334314 [ 99.374342] systemd-journald[129]: Sent WATCHDOG=1 notification. root@am62axx-evm:/opt/edgeai-gst-apps# echo mem > /sys/power/state [ 108.602585] PM: suspend entry (deep) [ 108.610767] Filesystems sync: 0.004 seconds [ 108.619046] Freezing user space processes [ 108.624768] Freezing user space processes completed (elapsed 0.001 seconds) [ 108.631769] OOM killer disabled. [ 108.634999] Freezing remaining freezable tasks [ 108.640732] Freezing remaining freezable tasks completed (elapsed 0.001 seconds) [ 108.659321] ti-sci 44043000.system-controller: ti_sci_cmd_set_device_constraint: device: 179: state: 1: ret 0 [ 108.669382] ti-sci 44043000.system-controller: ti_sci_cmd_set_device_constraint: device: 178: state: 1: ret 0 [ 108.687296] ti-sci 44043000.system-controller: ti_sci_cmd_set_device_constraint: device: 117: state: 1: ret 0 [ 109.714240] ti-sci 44043000.system-controller: Mbox timedout in resp(caller: ti_sci_suspend+0x1a4/0x1b4) [ 109.723737] ti-sci 44043000.system-controller: Mbox send fail -110 [ 109.729914] ti-sci 44043000.system-controller: PM: dpm_run_callback(): platform_pm_suspend+0x0/0x6c returns -110 [ 109.740086] ti-sci 44043000.system-controller: PM: failed to suspend: error -110 [ 109.747477] PM: Some devices failed to suspend, or early wake event detected [ 109.754537] Internal error: synchronous external abort: 0000000096000010 [#1] PREEMPT SMP [ 109.762697] Modules linked in: wave5 snd_soc_hdmi_codec rpmsg_ctrl rpmsg_char crct10dif_ce overlay snd_soc_simple_card snd_soc_simple_card_utils cpufreq_dt e5010_jpeg_enc display_connector v4l2_jpeg cfg80211 rti_wdt k3_j72xx_bandgap rtc_ti_k3 ti_k3_r5_remoteproc ti_k3_dsp_remoteproc videobuf2_dma_contig videobuf2_memops v4l2_mem2mem videobuf2_v4l2 videobuf2_common sa2ul videodev mc snd_soc_davinci_mcasp snd_soc_ti_udma snd_soc_ti_edma tidss mcrc64 snd_soc_ti_sdma drm_dma_helper omap_hwspinlock omap_mailbox snd_soc_tlv320aic3x_i2c sii902x snd_soc_tlv320aic3x drm_kms_helper tps6598x typec bluetooth ecdh_generic ecc rfkill cryptodev(O) fuse drm drm_panel_orientation_quirks backlight ipv6 [last unloaded: wave5] [ 109.825354] CPU: 1 PID: 1167 Comm: sh Tainted: G O 6.6.44-ti-01478-g541c20281af7-dirty #1 [ 109.834902] Hardware name: Texas Instruments AM62A7 SK (DT) [ 109.840460] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 109.847407] pc : e5010_hw_bypass_mmu+0x4/0x28 [e5010_jpeg_enc] [ 109.853239] lr : e5010_init_device+0x20/0x134 [e5010_jpeg_enc] [ 109.859066] sp : ffff800082673a70 [ 109.862368] x29: ffff800082673a70 x28: ffff000810398000 x27: 00000019811c5ce2 [ 109.869493] x26: 0000000000000010 x25: ffff800081586580 x24: ffff800081527000 [ 109.876617] x23: 0000000000000000 x22: ffff800080fdbe20 x21: ffff0008002d7a80 [ 109.883741] x20: ffff000800161010 x19: ffff0008002d7a80 x18: 0000000000000006 [ 109.890865] x17: 7463657465642074 x16: 6e65766520656b61 x15: ffff800082673610 [ 109.897990] x14: 0000000000000000 x13: ffff8000813cf218 x12: 0000000000000ada [ 109.905114] x11: 000000000000039e x10: ffff800081427218 x9 : ffff8000813cf218 [ 109.912239] x8 : 00000000ffffefff x7 : 0000000000019a27 x6 : 00000006629c60c1 [ 109.919363] x5 : 03ffffffffffffff x4 : 001f3b9b00000000 x3 : 0000000000000018 [ 109.926487] x2 : 00000000000037a8 x1 : 0000000000000001 x0 : ffff800082656270 [ 109.933611] Call trace: [ 109.936047] e5010_hw_bypass_mmu+0x4/0x28 [e5010_jpeg_enc] [ 109.941530] e5010_resume+0x30/0x80 [e5010_jpeg_enc] [ 109.946490] pm_generic_resume+0x2c/0x44 [ 109.950407] ti_sci_pd_resume+0x20/0x2c [ 109.954237] dpm_run_callback+0x8c/0x14c [ 109.958151] __device_resume+0x88/0x26c [ 109.961977] dpm_resume+0xa4/0x140 [ 109.965370] dpm_resume_end+0x18/0x30 [ 109.969023] suspend_devices_and_enter+0x4c0/0x634 [ 109.973805] pm_suspend+0x1fc/0x368 [ 109.977283] state_store+0x80/0xec [ 109.980675] kobj_attr_store+0x18/0x2c [ 109.984416] sysfs_kf_write+0x44/0x54 [ 109.988072] kernfs_fop_write_iter+0x120/0x1cc [ 109.992506] vfs_write+0x1c0/0x308 [ 109.995903] ksys_write+0x74/0x10c [ 109.999297] __arm64_sys_write+0x1c/0x28 [ 110.003212] invoke_syscall+0x48/0x114 [ 110.006953] el0_svc_common.constprop.0+0xc0/0xe0 [ 110.011647] do_el0_svc+0x1c/0x28 [ 110.014955] el0_svc+0x2c/0x84 [ 110.018004] el0t_64_sync_handler+0x120/0x12c [ 110.022353] el0t_64_sync+0x190/0x194 [ 110.026010] Code: 9124e021 95b4cc41 17ffffe8 9101c000 (b9400002) [ 110.032089] ---[ end trace 0000000000000000 ]---
Reproduce rate:
100%
Observation:
According to log, looks relates with e5010_jpeg_enc driver.