Open ardangelo opened 1 week ago
Driver at src/little/linux/drivers/soc/kendryte/k230-pmu.c
is hanging at this line:
pmu_status = readl(pmu->regs + PMU_STATUS);
I also tried suspending on the 6.6.36 dev
branch of https://github.com/kendryte/k230_linux_sdk
Adding to the kernel config
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
CONFIG_PM_SLEEP=y
SD card controller fails to suspend.
[root@canaan ~ ]#echo mem | tee /sys/power/state
mem[ 175.899938] PM: suspend entry (s2idle)
[ 175.948482] Filesystems sync: 0.044 seconds
[ 175.953659] Freezing user space processes
[ 175.958839] Freezing user space processes completed (elapsed 0.001 seconds)
[ 175.965839] OOM killer disabled.
[ 175.969083] Freezing remaining freezable tasks
[ 175.974683] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[ 175.982121] printk: Suspending console(s) (use no_console_suspend to debug)
[ 175.990200] [dhd] bcmsdh_sdmmc_suspend Enter func->num=2
[ 175.990213] [dhd] dhdsdio_suspend Enter
[ 175.990217] [dhd] bcmsdh_sdmmc_suspend: can't keep power while host is suspended
[ 175.990231] bcmsdh_sdmmc mmc0:0001:2: PM: dpm_run_callback(): pm_generic_suspend+0x0/0x26 returns -22
[ 175.990265] bcmsdh_sdmmc mmc0:0001:2: PM: failed to suspend async: error -22
[ 176.038043] PM: Some devices failed to suspend, or early wake event detected
[ 176.098962] OOM killer enabled.
[ 176.102112] Restarting tasks ...
[ 176.103364] r8152-cfgselector 2-1: USB disconnect, device number 2
[ 176.113370] [dhd] sdioh_remove: Enter
[ 176.117116] done.
[ 176.119087] random: crng reseeded on system resumption
[ 176.124860] [dhd] dhdsdio_disconnect : no mutex held
[ 176.129858] [dhd] dhdsdio_disconnect : set mutex lock
[ 176.134950] PM: suspend exit
What happened
Evaluating suspend mode on CanMV K230. Starting by rebuilding image with PMU support. Boot starts but hangs after output lines:
No errors related to the PMU are reported here. Upstream DTSI with commented-out PMU section boots successfully.
Reproduction steps
status
fromdisabled
tookay
make CONF=k230_canmv_defconfig build-image
Hardware board
CanMV K230
Software version
bee8707
Bug frequency
Every boot
Anything else
Boot log: