imx95 low power mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx95 low power mode

Jump to solution
1,612 Views
kannappan
Contributor II

I am working on a custom i.MX95 board running Linux 6.12 (Yocto-based). I am facing a suspend-to-RAM (deep sleep) failure related to the USB3 host controller. When executing echo mem > /sys/power/state, the system aborts suspend with xhci-hcd: WARN: xHC CMD_RUN timeout followed by PM: failed to suspend async: error -110. The issue occurs consistently when USB host mode is enabled, even with no active USB traffic. I am using a fixed 5V VBUS regulator controlled by a GPIO, and the USB3 controller, PHY, clocks, and power-domains are defined in the DTS (attached). My requirement is to fully power off USB VBUS during low power mode while allowing the system to enter deep sleep successfully. I have attached the full suspend/resume dmesg logs and the relevant USB-related DTS nodes for reference. I would like guidance on the correct DTS and/or driver-side handling required to avoid the xHCI suspend timeout on i.MX95.

0 Kudos
Reply
1 Solution
1,128 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi @kannappan ,

OK, we are going to have the New Year's Day holiday. when I back to office I will try it on our board and then give your reply.

Wish you have a nice day

Best Regards

Rita

View solution in original post

0 Kudos
Reply
5 Replies
1,442 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Could you share us the details steps, that we can reporcuce it on our EVK Board? Thanks

0 Kudos
Reply
1,433 Views
kannappan
Contributor II

In custom board iam using fusb302 but not enabled as usb3.0 , we are using it as usb2.0 .
but when entering into deep sleep ( echo mem > /sys/power/state ) The error is occuring in xhci-hcd driver.

Test Setup:
• SoC: i.MX95
• OS: Yocto Linux (kernel 6.x, NXP BSP)
• USB Mode: Host (xHCI, USB3)
• Connected Device: USB flash drive (Mass Storage)

  • Boot the board normally.

  • Connect a USB storage device to the USB3 host port.

  • Verify enumeration using lsusb and confirm device is accessible.

  • Enter low power mode using:

    echo mem > /sys/power/state

    After this step itself it is showing error.

  • Resume the system using the configured wake-up source (power button/ GPIO).

  • After resume, observe that the USB device either:

    • is not detected, or

    • shows xHCI / DWC3 related errors in dmesg, or

    • requires USB re-plug to work again.

ERROR LOGS :

echo mem > /sys/power/state
[ 117.057281] PM: suspend entry (deep)
[ 117.066009] Filesystems sync: 0.005 seconds
[ 117.071209] Freezing user space processes
[ 117.076800] Freezing user space processes completed (elapsed 0.001 seconds)
[ 117.083781] OOM killer disabled.
[ 117.087011] Freezing remaining freezable tasks
[ 117.132725] Freezing remaining freezable tasks completed (elapsed 0.041 seconds)
[ 117.140164] printk: Suspending console(s) (use no_console_suspend to debug)
[ 117.156868] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 117.267552] xhci-hcd xhci-hcd.2.auto: WARN: xHC CMD_RUN timeout
[ 117.267611] xhci-hcd xhci-hcd.2.auto: PM: dpm_run_callback(): platform_pm_suspend returns -110
[ 117.267631] xhci-hcd xhci-hcd.2.auto: PM: failed to suspend async: error -110
[ 117.267702] PM: Some devices failed to suspend, or early wake event detected
[ 117.268017] hub 1-0:1.0: hub_ext_port_status failed (err = -108)
[ 117.268044] usb usb1-port1: cannot disable (err = -108)
[ 117.516365] PM: resume devices took 0.248 seconds
[ 117.570639] OOM killer enabled.
[ 117.573777] Restarting tasks ... done.
[ 117.575261] sd 0:0:0:0: [sda] Test Unit Ready failed: Result: hostbyte=0x01 driverbyte=DRIVER_OK
[ 117.578423] random: crng reseeded on system resumption
[ 117.587117] sda: detected capacity change from 120164352 to 0
[ 117.598136] PM: suspend exit
-sh: echo: write error: Connection timed out

 

0 Kudos
Reply
1,129 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi @kannappan ,

OK, we are going to have the New Year's Day holiday. when I back to office I will try it on our board and then give your reply.

Wish you have a nice day

Best Regards

Rita

0 Kudos
Reply
658 Views
kannappan
Contributor II

HI @Rita_Wang ,
Is there any reply for the above issue.

Best Regards
Kannappan

0 Kudos
Reply
640 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi @kannappan ,

Sorry for too busy this week, I will test it for you next week and share the result to you.

Wish you have a nice day

Best Regards

Rita

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2269225%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Eimx95%20low%20power%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269225%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CBLOCKQUOTE%3E%3CP%3EI%20am%20working%20on%20a%20custom%20i.MX95%20board%20running%20Linux%206.12%20(Yocto-based).%20I%20am%20facing%20a%20suspend-to-RAM%20(deep%20sleep)%20failure%20related%20to%20the%20USB3%20host%20controller.%20When%20executing%20echo%20mem%20%26gt%3B%20%2Fsys%2Fpower%2Fstate%2C%20the%20system%20aborts%20suspend%20with%20xhci-hcd%3A%20WARN%3A%20xHC%20CMD_RUN%20timeout%20followed%20by%20PM%3A%20failed%20to%20suspend%20async%3A%20error%20-110.%20The%20issue%20occurs%20consistently%20when%20USB%20host%20mode%20is%20enabled%2C%20even%20with%20no%20active%20USB%20traffic.%20I%20am%20using%20a%20fixed%205V%20VBUS%20regulator%20controlled%20by%20a%20GPIO%2C%20and%20the%20USB3%20controller%2C%20PHY%2C%20clocks%2C%20and%20power-domains%20are%20defined%20in%20the%20DTS%20(attached).%20My%20requirement%20is%20to%20fully%20power%20off%20USB%20VBUS%20during%20low%20power%20mode%20while%20allowing%20the%20system%20to%20enter%20deep%20sleep%20successfully.%20I%20have%20attached%20the%20full%20suspend%2Fresume%20dmesg%20logs%20and%20the%20relevant%20USB-related%20DTS%20nodes%20for%20reference.%20I%20would%20like%20guidance%20on%20the%20correct%20DTS%20and%2For%20driver-side%20handling%20required%20to%20avoid%20the%20xHCI%20suspend%20timeout%20on%20i.MX95.%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2269604%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx95%20low%20power%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269604%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIn%20custom%20board%20iam%20using%20fusb302%20but%20not%20enabled%20as%20usb3.0%20%2C%20we%20are%20using%20it%20as%20usb2.0%20.%3CBR%20%2F%3Ebut%20when%20entering%20into%20deep%20sleep%20(%20echo%20mem%20%26gt%3B%20%2Fsys%2Fpower%2Fstate%20)%20The%20error%20is%20occuring%20in%20xhci-hcd%20driver.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3ETest%20Setup%3A%3C%2FSTRONG%3E%3CBR%20%2F%3E%E2%80%A2%20SoC%3A%20i.MX95%3CBR%20%2F%3E%E2%80%A2%20OS%3A%20Yocto%20Linux%20(kernel%206.x%2C%20NXP%20BSP)%3CBR%20%2F%3E%E2%80%A2%20USB%20Mode%3A%20Host%20(xHCI%2C%20USB3)%3CBR%20%2F%3E%E2%80%A2%20Connected%20Device%3A%20USB%20flash%20drive%20(Mass%20Storage)%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3EBoot%20the%20board%20normally.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EConnect%20a%20USB%20storage%20device%20to%20the%20USB3%20host%20port.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EVerify%20enumeration%20using%20lsusb%20and%20confirm%20device%20is%20accessible.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EEnter%20low%20power%20mode%20using%3A%3CBR%20%2F%3E%3CBR%20%2F%3Eecho%20mem%20%26gt%3B%20%2Fsys%2Fpower%2Fstate%3CBR%20%2F%3E%3CBR%20%2F%3EAfter%20this%20step%20itself%20it%20is%20showing%20error.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EResume%20the%20system%20using%20the%20configured%20wake-up%20source%20(power%20button%2F%20GPIO).%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EAfter%20resume%2C%20observe%20that%20the%20USB%20device%20either%3A%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3Eis%20not%20detected%2C%20or%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3Eshows%20xHCI%20%2F%20DWC3%20related%20errors%20in%20dmesg%2C%20or%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3Erequires%20USB%20re-plug%20to%20work%20again.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3EERROR%20LOGS%20%3A%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3Eecho%20mem%20%26gt%3B%20%2Fsys%2Fpower%2Fstate%3CBR%20%2F%3E%5B%20117.057281%5D%20PM%3A%20suspend%20entry%20(deep)%3CBR%20%2F%3E%5B%20117.066009%5D%20Filesystems%20sync%3A%200.005%20seconds%3CBR%20%2F%3E%5B%20117.071209%5D%20Freezing%20user%20space%20processes%3CBR%20%2F%3E%5B%20117.076800%5D%20Freezing%20user%20space%20processes%20completed%20(elapsed%200.001%20seconds)%3CBR%20%2F%3E%5B%20117.083781%5D%20OOM%20killer%20disabled.%3CBR%20%2F%3E%5B%20117.087011%5D%20Freezing%20remaining%20freezable%20tasks%3CBR%20%2F%3E%5B%20117.132725%5D%20Freezing%20remaining%20freezable%20tasks%20completed%20(elapsed%200.041%20seconds)%3CBR%20%2F%3E%5B%20117.140164%5D%20printk%3A%20Suspending%20console(s)%20(use%20no_console_suspend%20to%20debug)%3CBR%20%2F%3E%5B%20117.156868%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20Synchronizing%20SCSI%20cache%3CBR%20%2F%3E%5B%20117.267552%5D%20xhci-hcd%20xhci-hcd.2.auto%3A%20WARN%3A%20xHC%20CMD_RUN%20timeout%3CBR%20%2F%3E%5B%20117.267611%5D%20xhci-hcd%20xhci-hcd.2.auto%3A%20PM%3A%20dpm_run_callback()%3A%20platform_pm_suspend%20returns%20-110%3CBR%20%2F%3E%5B%20117.267631%5D%20xhci-hcd%20xhci-hcd.2.auto%3A%20PM%3A%20failed%20to%20suspend%20async%3A%20error%20-110%3CBR%20%2F%3E%5B%20117.267702%5D%20PM%3A%20Some%20devices%20failed%20to%20suspend%2C%20or%20early%20wake%20event%20detected%3CBR%20%2F%3E%5B%20117.268017%5D%20hub%201-0%3A1.0%3A%20hub_ext_port_status%20failed%20(err%20%3D%20-108)%3CBR%20%2F%3E%5B%20117.268044%5D%20usb%20usb1-port1%3A%20cannot%20disable%20(err%20%3D%20-108)%3CBR%20%2F%3E%5B%20117.516365%5D%20PM%3A%20resume%20devices%20took%200.248%20seconds%3CBR%20%2F%3E%5B%20117.570639%5D%20OOM%20killer%20enabled.%3CBR%20%2F%3E%5B%20117.573777%5D%20Restarting%20tasks%20...%20done.%3CBR%20%2F%3E%5B%20117.575261%5D%20sd%200%3A0%3A0%3A0%3A%20%5Bsda%5D%20Test%20Unit%20Ready%20failed%3A%20Result%3A%20hostbyte%3D0x01%20driverbyte%3DDRIVER_OK%3CBR%20%2F%3E%5B%20117.578423%5D%20random%3A%20crng%20reseeded%20on%20system%20resumption%3CBR%20%2F%3E%5B%20117.587117%5D%20sda%3A%20detected%20capacity%20change%20from%20120164352%20to%200%3CBR%20%2F%3E%5B%20117.598136%5D%20PM%3A%20suspend%20exit%3CBR%20%2F%3E-sh%3A%20echo%3A%20write%20error%3A%20Connection%20timed%20out%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2269574%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx95%20low%20power%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269574%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ECould%20you%20share%20us%20the%20details%20steps%2C%20that%20we%20can%20reporcuce%20it%20on%20our%20EVK%20Board%3F%20Thanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2270310%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx95%20low%20power%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270310%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F257117%22%20target%3D%22_blank%22%3E%40kannappan%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EOK%2C%20we%20are%20going%20to%20have%20the%26nbsp%3BNew%20Year's%20Day%20holiday.%20when%20I%20back%20to%20office%20I%20will%20try%20it%20on%20our%20board%20and%20then%20give%20your%20reply.%3C%2FP%3E%0A%3CP%3EWish%20you%20have%20a%20nice%20day%3C%2FP%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%0A%3CP%3ERita%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2290911%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx95%20low%20power%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290911%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F257117%22%20target%3D%22_blank%22%3E%40kannappan%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3ESorry%20for%20too%20busy%20this%20week%2C%20I%20will%20test%20it%20for%20you%20next%20week%20and%20share%20the%20result%20to%20you.%3C%2FP%3E%0A%3CP%3EWish%20you%20have%20a%20nice%20day%3C%2FP%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%0A%3CP%3ERita%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2290750%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20imx95%20low%20power%20mode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290750%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHI%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F57740%22%20target%3D%22_blank%22%3E%40Rita_Wang%3C%2FA%3E%26nbsp%3B%2C%3CBR%20%2F%3EIs%20there%20any%20reply%20for%20the%20above%20issue.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%3CBR%20%2F%3EKannappan%3C%2FP%3E%3C%2FLINGO-BODY%3E