i.MX25 suspend issue

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

i.MX25 suspend issue

823 Views
madisonbams
Contributor I

Hello all,

We have an issue with one of our system based on an i.mx25 processor.

The system is running under a Linux 2.6.31.

Sometimes the system enter in sleep mode for only 2 seconds and wakeup immediately.

It seems to be a problem with the USB.

We can see a stack in the kernel log :

ehci_fsl_drv_resume('Host 2'): suspend=1 already_suspended=0

ehci_fsl_drv_resume resuming...

USB Host resumed

ehci_fsl_drv_resume('DR'): suspend=1 already_suspended=0

ehci_fsl_drv_resume resuming...

irq 79: nobody cared (try booting with the "irqpoll" option)

[<c002d5b0>] (unwind_backtrace+0x0/0xdc) from [<c0076620>] (__report_bad_irq+0x30/0x88)

[<c0076620>] (__report_bad_irq+0x30/0x88) from [<c00767c4>] (note_interrupt+0x14c/0x1dc)

[<c00767c4>] (note_interrupt+0x14c/0x1dc) from [<c00771cc>] (handle_level_irq+0xdc/0x138)

[<c00771cc>] (handle_level_irq+0xdc/0x138) from [<c002806c>] (asm_do_IRQ+0x6c/0x8c)

[<c002806c>] (asm_do_IRQ+0x6c/0x8c) from [<c0028a88>] (__irq_svc+0x48/0x88)

Exception stack(0xc2a8ddb8 to 0xc2a8de00)

dda0:                                                       0000000a c386a8e0

ddc0: c2a8c000 40000013 c386a8e0 c04903a8 c386a8e0 00000001 0000000a c2a8c000

dde0: c3905d1c c2a8dec8 c2a8de28 c2a8de00 c00771ac c0075250 40000013 ffffffff

[<c0028a88>] (__irq_svc+0x48/0x88) from [<c0075250>] (handle_IRQ_event+0x28/0x204)

[<c0075250>] (handle_IRQ_event+0x28/0x204) from [<c00771ac>] (handle_level_irq+0xbc/0x138)

[<c00771ac>] (handle_level_irq+0xbc/0x138) from [<c002806c>] (asm_do_IRQ+0x6c/0x8c)

[<c002806c>] (asm_do_IRQ+0x6c/0x8c) from [<c0028a88>] (__irq_svc+0x48/0x88)

Exception stack(0xc2a8de48 to 0xc2a8de90)

de40:                   00000026 00000002 18601a85 c4d90140 c3909de0 c28398c8

de60: c2839800 c3905ce0 c2839890 00000003 c3905d1c c2a8dec8 c2a8ddf0 c2a8de90

de80: bf0f248c bf0f24e4 60000013 ffffffff                                    

[<c0028a88>] (__irq_svc+0x48/0x88) from [<bf0f24e4>] (ehci_fsl_drv_resume+0x114/0x21c [ehci_hcd])

[<bf0f24e4>] (ehci_fsl_drv_resume+0x114/0x21c [ehci_hcd]) from [<c01da2c8>] (platform_pm_resume+0x44/0x54)

[<c01da2c8>] (platform_pm_resume+0x44/0x54) from [<c01dc6dc>] (pm_op+0x50/0x88)

[<c01dc6dc>] (pm_op+0x50/0x88) from [<c01dcd6c>] (dpm_resume_end+0x90/0x334)

[<c01dcd6c>] (dpm_resume_end+0x90/0x334) from [<c0074854>] (suspend_devices_and_enter+0x144/0x17c)

[<c0074854>] (suspend_devices_and_enter+0x144/0x17c) from [<c007493c>] (enter_state+0xb0/0xf4)

[<c007493c>] (enter_state+0xb0/0xf4) from [<c0073fe4>] (state_store+0x94/0xc8)

[<c0073fe4>] (state_store+0x94/0xc8) from [<c01a03c8>] (kobj_attr_store+0x1c/0x24)

[<c01a03c8>] (kobj_attr_store+0x1c/0x24) from [<c01007d0>] (sysfs_write_file+0x104/0x13c)

[<c01007d0>] (sysfs_write_file+0x104/0x13c) from [<c00b9084>] (vfs_write+0xac/0x158)

[<c00b9084>] (vfs_write+0xac/0x158) from [<c00b91e8>] (sys_write+0x40/0x6c)

[<c00b91e8>] (sys_write+0x40/0x6c) from [<c0028e20>] (ret_fast_syscall+0x0/0x2c)

handlers:

[<c021fcd0>] (usb_hcd_irq+0x0/0xf8)

Disabling IRQ #79

USB Host resumed

usb usb1: usb resume

fsl-ehci fsl-ehci.0: resume root hub

hub 1-0:1.0: hub_resume

usb usb2: usb resume

fsl-ehci fsl-ehci.1: resume root hub

sgtl5000 driver resumed.

hub 2-0:1.0: hub_resume

Before we see this stack, the system enters in suspend mode, and wakes up normaly.

As soon as we see this error in the log, the system enter in sleep mode, and wake up immediately (1 or 2s after).

Someone have an idea ?

Is there a patch available for this ?

Thanks.

Labels (1)
0 Kudos
Reply
2 Replies

563 Views
igorpadykov
NXP Employee
NXP Employee

Hi Madison

Community thread below recommends several patches,

is it possible to try them :

  "i.MX25 3stack usb issue and fix"

i.MX25 3stack usb issue and fix

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

563 Views
madisonbams
Contributor I

Hello Igor,

Thank you for your response.

I applied this patches, and when i compiled the linux again, only the file usb_common.c was recompiled.

The other files patched are not used in our configuration.

I will install the linux patched and see if there is changes or not.

Is there other patches available ?

Regards.

0 Kudos
Reply