Hello experts,
--------------------
ELB-iSCADA8m$cat /sys/power/state
freeze mem
ELB-iSCADA8m$ echo "freeze" > /sys/power/state
ELB-iSCADA8m$ echo "mem" > /sys/power/state
--------------------
after i do this the device reboots instead of SUSPEND
Serial console kernel logs are as bellow
----------------------
nitrogen8mm # [ 1361.130333] PM: suspend entry (deep)
[ 1361.134014] PM: Syncing filesystems ... done.
[ 1361.169663] Freezing user space processes ... (elapsed 0.002 seconds) done.
[ 1361.179441] OOM killer disabled.
[ 1361.182693] Freezing remaining freezable tasks ... (elapsed 0.269 seconds) done.
[ 1362.010590] rtc-m41t80 4-0068: Oscillator failure, data is invalid.
[ 1362.019449] HIFsuspendwow TODO
[ 1362.039311] fec 30be0000.ethernet eth0: Link is Down
[ 1362.039786] rtc-m41t80 4-0068: Oscillator failure, data is invalid.
[ 1362.051180] rtc-m41t80 4-0068: Oscillator failure, data is invalid.
[ 1362.058524] dpm_run_callback(): platform_pm_suspend+0x0/0x50 returns -22
[ 1362.065240] PM: Device alarmtimer failed to suspend: error -22
/*POWER CYCLES AUTOMATICALLY*/
U-Boot SPL 2018.07-boundary-gf06d4679 (Feb 25 2019 - 15:24:58 +0000)
fracpll_configure timeout
fracpll_configure timeout
config to do 3000 1d training.
config to do 3000 2d training.
config to do 400 1d training.
config to do 100 1d training.
Normal Boot Trying to boot from MMC1
-------------------
Can some one help me on this one please ?
Regards
Thanks igor
even when i use "mem" i still see the CPU reboots
please see the logs here
so exactly at this point the sleep is issue and then i have the following response please see the CPU never goes to SLEEP.
now the strange part is I2C transfer error as soon as i issue SLEEP but if i do not issue SLEEP everything is fine.
------------
[ 189.605720] alloc_contig_range: 248 callbacks suppressed
[ 189.605724] alloc_contig_range: [94600, 94ecb) PFNs busy
[ 189.616917] alloc_contig_range: [94600, 94fcb) PFNs busy
[ 189.622737] alloc_contig_range: [94800, 950cb) PFNs busy
[ 189.628609] alloc_contig_range: [94900, 951cb) PFNs busy
[ 189.634501] alloc_contig_range: [94a00, 952cb) PFNs busy
[ 189.640389] alloc_contig_range: [94a00, 953cb) PFNs busy
[ 189.646232] alloc_contig_range: [94c00, 954cb) PFNs busy
[ 189.652090] alloc_contig_range: [94d00, 955cb) PFNs busy
[ 189.657936] alloc_contig_range: [94e00, 956cb) PFNs busy
[ 189.663811] alloc_contig_range: [94e00, 957cb) PFNs busy
[ 192.725029] _sec_mipi_dsim_check_pll_out: 950400000 = 118800000 * 8 (min)
[ 192.749132] Goodix-TS 1-005d: I2C transfer error: -6
[ 192.754440] Goodix-TS 1-005d: I2C write end_cmd error
[ 194.321205] Goodix-TS 1-005d: Failed to enable ESD: -6
[ 196.349276] alloc_contig_range: 691 callbacks suppressed
[ 196.349281] alloc_contig_range: [94600, 94ee8) PFNs busy
[ 196.360454] alloc_contig_range: [94600, 94fe8) PFNs busy
[ 196.366288] alloc_contig_range: [94800, 950e8) PFNs busy
[ 196.372165] alloc_contig_range: [94900, 951e8) PFNs busy
[ 196.378008] alloc_contig_range: [94a00, 952e8) PFNs busy
[ 196.383885] alloc_contig_range: [94a00, 953e8) PFNs busy
[ 196.389742] alloc_contig_range: [94c00, 954e8) PFNs busy
[ 196.395627] alloc_contig_range: [94d00, 955e8) PFNs busy
[ 196.401511] alloc_contig_range: [94e00, 956e8) PFNs busy
[ 196.407405] alloc_contig_range: [94e00, 957e8) PFNs busy
[ 196.676429] PM: suspend entry (deep)
[ 196.680044] PM: Syncing filesystems ... done.
[ 198.831301] Freezing user space processes ...
[ 198.832371] PM: Wakeup pending, aborting suspend
[ 198.849028] Freezing of tasks aborted after 0.017 seconds
[ 198.854463] OOM killer enabled.
[ 198.857643] Restarting tasks ... done.
[ 198.863065] PM: suspend exit
[ 199.066301] PM: suspend entry (deep)
[ 199.069932] PM: Syncing filesystems ... done.
[ 199.075465] Freezing user space processes ... (elapsed 0.002 seconds) done.
[ 199.085061] OOM killer disabled.
[ 199.088292] Freezing remaining freezable tasks ... (elapsed 0.291 seconds) done.
[ 199.394313] HIFsuspendwow TODO
[ 199.412894] fec 30be0000.ethernet eth0: Link is Down
[ 199.427925] Goodix-TS 1-005d: Screen off command failed
[ 199.433172] dpm_run_callback(): goodix_sleep+0x0/0x160 returns -11
[ 199.439365] PM: Device 1-005d failed to suspend: error -11
after this is see the CPU Rebooting
--------------
Regards
Hi Nick
if this is custom board first please run ddr test (use latest MX8M_LPDDR4_RPA*.xlsx)
i.MX8 MSCALE SERIES DDR Tool Release (V3.00)
and update image using Chapter 4 How to bring up a new MX8MSCALE board MSCALE_DDR_Tool_User_Guide.pdf included in package. Use
uboot/linux from nxp source.codeaurora.org/external/imx/linux-imx repository
Linux 4.19.35_1.1.0 Documentation
Best regards
igor
Hi Nick
I am afraid "freeze" is not used in nxp bsps, only "mem", example can be found in
AN12118 sect.6.1. Deep-Sleep mode
i.MX 8M Quad Power Consumption Measurement
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------