On Sat, Feb 6, 2021 at 3:57 PM Adam Ford <aford173@xxxxxxxxx> wrote: > > I am having issues with suspend on a DM3730 running 5.11-rc6, and it > seems like core_pwrdm may be the issue. > > # echo mem > /sys/power/state > [ 82.024963] PM: suspend entry (deep) > [ 82.053283] Filesystems sync: 0.024 seconds > [ 82.059600] Freezing user space processes ... (elapsed 0.001 seconds) done. > [ 82.068511] OOM killer disabled. > [ 82.071777] Freezing remaining freezable tasks ... (elapsed 0.001 > seconds) done. > [ 82.647033] Disabling non-boot CPUs ... > [ 82.651000] Powerdomain (core_pwrdm) didn't enter target state 0 > [ 82.651000] Could not enter target state in pm_suspend > [ 82.896881] omap-iommu 480bd400.mmu: 480bd400.mmu: version 1.1 > [ 83.049072] musb-hdrc musb-hdrc.2.auto: musb_set_peripheral: > already in peripheral mode: 80 > [ 83.519439] OOM killer enabled. > [ 83.522674] Restarting tasks ... done. > [ 83.589050] PM: suspend exit > sh: write error: Operation not permitted > # > > I am not that versed with the power management stuff and the > references on elinux.org are outdated, and I was hoping someone might > have some suggestions. > > Does anyone else have any issues? I forgot to include some debug stuff # cat /sys/kernel/debug/pm_debug/count usbhost_pwrdm (ON),OFF:293,RET:1,INA:0,ON:295,RET-LOGIC-OFF:0,RET-MEMBANK1-OFF:0 sgx_pwrdm (OFF),OFF:1,RET:0,INA:1,ON:2,RET-LOGIC-OFF:0,RET-MEMBANK1-OFF:0 core_pwrdm (ON),OFF:0,RET:0,INA:0,ON:1,RET-LOGIC-OFF:0,RET-MEMBANK1-OFF:0,RET-MEMBANK2-OFF:0 per_pwrdm (ON),OFF:2,RET:1,INA:0,ON:4,RET-LOGIC-OFF:0,RET-MEMBANK1-OFF:0 dss_pwrdm (ON),OFF:293,RET:1,INA:0,ON:295,RET-LOGIC-OFF:0,RET-MEMBANK1-OFF:0 cam_pwrdm (ON),OFF:5,RET:1,INA:0,ON:7,RET-LOGIC-OFF:0,RET-MEMBANK1-OFF:0 neon_pwrdm (ON),OFF:13,RET:173,INA:109,ON:296,RET-LOGIC-OFF:0 mpu_pwrdm (ON),OFF:12,RET:173,INA:109,ON:295,RET-LOGIC-OFF:0,RET-MEMBANK1-OFF:0 iva2_pwrdm (OFF),OFF:3,RET:2,INA:0,ON:5,RET-LOGIC-OFF:0,RET-MEMBANK1-OFF:0,RET-MEMBANK2-OFF:0,RET-MEMBANK3-OFF:0,RET-MEMBANK4-OFF:0 usbhost_clkdm->usbhost_pwrdm (1) sgx_clkdm->sgx_pwrdm (0) per_clkdm->per_pwrdm (18) cam_clkdm->cam_pwrdm (1) dss_clkdm->dss_pwrdm (2) d2d_clkdm->core_pwrdm (0) iva2_clkdm->iva2_pwrdm (0) mpu_clkdm->mpu_pwrdm (0) core_l4_clkdm->core_pwrdm (22) core_l3_clkdm->core_pwrdm (1) neon_clkdm->neon_pwrdm (0) > > adam