I believe I hit that bug also with .39-pm and usb-ether adapters.
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

dtran11 <dtran11@gmail.com> wrote:

Here are the differences in kernel configurations:

when suspend works but g_ether doesn't work:

# CONFIG_USB_OTG is not set
# CONFIG_USB_MUSB_HDRC is not set


when suspend doesn't work but g_ether works:

CONFIG_USB_OTG=y
CONFIG_USB_MUSB_HDRC=y
# CONFIG_USB_MUSB_TUSB6010 is not set
CONFIG_USB_MUSB_OMAP2PLUS=y
# CONFIG_USB_MUSB_AM35X is not set
# CONFIG_USB_MUSB_HOST is not set
# CONFIG_USB_MUSB_PERIPHERAL is not set
CONFIG_USB_MUSB_OTG=y
CONFIG_USB_GADGET_MUSB_HDRC=y
CONFIG_USB_MUSB_HDRC_HCD=y
# CONFIG_MUSB_PIO_ONLY is not set
CONFIG_USB_INVENTRA_DMA=y
# CONFIG_USB_TI_CPPI_DMA is not set
CONFIG_USB_MUSB_DEBUG=y

Does this mean there is a bug in the MUSB code not able to suspend properly?

thanks.


dtran11 wrote:
>
> I am able to make suspend work if I modify the defconfig to not support
> "g_ether". I "g_ether" works then suspend does not work. How do I get both
> to work together?
>
> Thanks.
>
>
> dtran11 wrote:
>>
>> I am trying to get a pm kernel working with suspend. I am able to change
>> the frequency with "cpufreq-set" and "cpuidle" seems to be working. The
>> last thing I need to get working is suspend by doing "echo mem >
>> /sys/power/state" For some reason I am seeing the errors below when I try
>> to suspend. After the error the gumstix dies and I cannot get back with a
>> keystroke from the console port. I have attached my defconfig and recipe.
>>
>> Thank you.
>>
>> http://old.nabble.com/file/p32380800/linux-omap-pm_3.0.0.bb
>> linux-omap-pm_3.0.0.bb
>> http://old.nabble.com/file/p32380800/defconfig defconfig
>>
>> root@overo:~# echo mem > /sys/power/state
>> [ 24.711303] PM: Syncing filesystems ... done.
>> [ 25.927093] Freezing user space processes ... (elapsed 0.01 seconds)
>> done.
>> [ 25.951843] Freezing remaining freezable tasks ... (elapsed 0.02
>> seconds) done.
>> [ 26.106201] Unhandled fault: external abort on non-linefetch (0x1028)
>> at 0xfa0ab001
>> [ 26.114257] Internal error: : 1028 [#1]
>> [ 26.118316] Modules linked in: gpio_event_drv user_gpio_drv
>> [ 26.124176] CPU: 0 Not tainted (3.0.0 #1)
>> [ 26.128784] PC is at musb_save_context+0xc/0xc8
>> [ 26.133544] LR is at musb_suspend+0x20/0x38
>> [ 26.137939] pc : [<c0254cf4>] lr : [<c0254f04>] psr: 20000093
>> [ 26.137939] sp : cf21be48 ip : c0618294 fp : 00000006
>> [ 26.150024] r10: 0cdbcaf4 r9 : 00000000 r8 : 00000000
>> [ 26.155517] r7 : c0a5be58 r6 : cf8a8408 r5 : a0000013 r4 : cf825000
>> [ 26.162384] r3 : 00000000 r2 : fa0ab000 r1 : cf825000 r0 : cf825000
>> [ 26.169219] Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM
>> Segment user
>> [ 26.176818] Control: 10c5387d Table: 8faf4019 DAC: 00000015
>> [ 26.182861] Process sh (pid: 653, stack limit = 0xcf21a2f0)
>> [ 26.188720] Stack: (0xcf21be48 to 0xcf21c000)
>> [ 26.193328] be40: cf825000 a0000013 cf8a8408
>> c0a5be58 00000000 c0254f04
>> [ 26.201934] be60: cf19a1c0 c038ad0c 00000002 c022b0b0 c038ad0c
>> c022e8ec 00000002 c04e3d1c
>> [ 26.210510] be80: 00000000 00000000 00000000 cf8a8408 00000002
>> cf8a843c 00000000 c022f128
>> [ 26.219116] bea0: 60000013 004e3cf0 cf8a8408 cf8a84b8 00000002
>> c04e3cbc c04e3cb4 c022f2a8
>> [ 26.227722] bec0: 0cdbcaf4 00000006 c0430c45 00000000 00000000
>> 00000003 c04ef32c cfb54000
>> [ 26.236328] bee0: cfbd2358 00000004 0189a008 c00a169c c04339ed
>> 00000000 c0430c45 00000003
>> [ 26.244934] bf00: c036f59c c00a1970 c0430c45 00000003 00000003
>> c00a0f00 0189a008 00000004
>> [ 26.253540] bf20: cf817788 cfbd2340 cf8018c0 c0385900 cf21bf80
>> c01e7754 cf817788 c0146570
>> [ 26.262145] bf40: cf187a80 00000004 4014e000 cf21bf80 00000004
>> cf21a000 00000000 c00f6e80
>> [ 26.270751] bf60: 00090b68 00000001 00000000 00000000 cf187a80
>> 4014e000 00000004 c00f6fc4
>> [ 26.279357] bf80: 00000000 00000000 0189a008 00000000 00000004
>> 4014e000 403145d0 00000004
>> [ 26.287963] bfa0: c003a5a4 c003a400 00000004 4014e000 00000001
>> 4014e000 00000004 00000000
>> [ 26.296569] bfc0: 00000004 4014e000 403145d0 00000004 00000004
>> 0189a3f0 00000001 0189a008
>> [ 26.305175] bfe0: 00000000 bee775f0 40252028 402a532c 60000010
>> 00000001 00000000 00000000
>> [ 26.313781] [<c0254cf4>] (musb_save_context+0xc/0xc8) from
>> [<c0254f04>] (musb_suspend+0x20/0x38)
>> [ 26.323028] [<c0254f04>] (musb_suspend+0x20/0x38) from [<c022b0b0>]
>> (platform_pm_suspend+0x30/0x5c)
>> [ 26.332550] [<c022b0b0>] (platform_pm_suspend+0x30/0x5c) from
>> [<c022e8ec>] (pm_op+0x50/0xb8)
>> [ 26.341430] [<c022e8ec>] (pm_op+0x50/0xb8) from [<c022f128>]
>> (__device_suspend+0xc8/0x13c)
>> [ 26.350128] [<c022f128>] (__device_suspend+0xc8/0x13c) from
>> [<c022f2a8>] (dpm_suspend+0xbc/0x1b0)
>> [ 26.359497] [<c022f2a8>] (dpm_suspend+0xbc/0x1b0) from [<c00a169c>]
>> (suspend_devices_and_enter+0x88/0x278)
>> [ 26.369628] [<c00a169c>] (suspend_devices_and_enter+0x88/0x278) from
>> [<c00a1970>] (enter_state+0xe4/0x140)
>> [ 26.379791] [<c00a1970>] (enter_state+0xe4/0x140) from [<c00a0f00>]
>> (state_store+0x94/0xc8)
>> [ 26.388610] [<c00a0f00>] (state_store+0x94/0xc8) from [<c01e7754>]
>> (kobj_attr_store+0x1c/0x24)
>> [ 26.397674] [<c01e7754>] (kobj_attr_store+0x1c/0x24) from [<c0146570>]
>> (sysfs_write_file+0x108/0x13c)
>> [ 26.407379] [<c0146570>] (sysfs_write_file+0x108/0x13c) from
>> [<c00f6e80>] (vfs_write+0xac/0x138)
>> [ 26.416625] [<c00f6e80>] (vfs_write+0xac/0x138) from [<c00f6fc4>]
>> (sys_write+0x40/0x6c)
>> [ 26.425048] [<c00f6fc4>] (sys_write+0x40/0x6c) from [<c003a400>]
>> (ret_fast_syscall+0x0/0x3c)
>> [ 26.433929] Code: e8bd8010 e59021f8 e92d41f0 e1a01000 (e5d23001)
>> [ 26.440368] ------------[ cut here ]------------
>> [ 26.445220] WARNING: at arch/arm/mach-omap2/omap_l3_smx.c:162
>> omap3_l3_app_irq+0x23c/0x2cc()
>> [ 26.454101] In-band Error seen by MPU at address 0
>> [ 26.459228] Modules linked in: gpio_event_drv user_gpio_drv
>> [ 26.465118] [<c003f054>] (unwind_backtrace+0x0/0xec) from [<c00641cc>]
>> (warn_slowpath_common+0x4c/0x64)
>> [ 26.475006] [<c00641cc>] (warn_slowpath_common+0x4c/0x64) from
>> [<c0064278>] (warn_slowpath_fmt+0x30/0x40)
>> [ 26.485076] [<c0064278>] (warn_slowpath_fmt+0x30/0x40) from
>> [<c0051640>] (omap3_l3_app_irq+0x23c/0x2cc)
>> [ 26.494995] [<c0051640>] (omap3_l3_app_irq+0x23c/0x2cc) from
>> [<c00a44dc>] (handle_irq_event_percpu+0x74/0x21c)
>> [ 26.505523] [<c00a44dc>] (handle_irq_event_percpu+0x74/0x21c) from
>> [<c00a46c0>] (handle_irq_event+0x3c/0x5c)
>> [ 26.515869] [<c00a46c0>] (handle_irq_event+0x3c/0x5c) from
>> [<c00a6778>] (handle_level_irq+0xc8/0xfc)
>> [ 26.525482] [<c00a6778>] (handle_level_irq+0xc8/0xfc) from
>> [<c00a4158>] (generic_handle_irq+0x30/0x48)
>> [ 26.535278] [<c00a4158>] (generic_handle_irq+0x30/0x48) from
>> [<c0035064>] (asm_do_IRQ+0x64/0x8c)
>> [ 26.544525] [<c0035064>] (asm_do_IRQ+0x64/0x8c) from [<c0365ff8>]
>> (__irq_svc+0x38/0xa0)
>> [ 26.552947] Exception stack(0xcf21bca0 to 0xcf21bce8)
>> [ 26.558258] bca0: c0365d1c c04ef28c 00000000 cf21a000 c04b040c
>> c0254cf6 cf21bd32 cf21be00
>> [ 26.566864] bcc0: c0254cf8 cf21a000 00000000 00000008 cf21a000
>> cf21bce8 c0365d1c c0365d20
>> [ 26.575469] bce0: 60000113 ffffffff
>> [ 26.579132] [<c0365ff8>] (__irq_svc+0x38/0xa0) from [<c0365d20>]
>> (_raw_spin_unlock_irq+0x28/0x2c)
>> [ 26.588470] [<c0365d20>] (_raw_spin_unlock_irq+0x28/0x2c) from
>> [<c003dae4>] (die+0x238/0x2cc)
>> [ 26.597442] [<c003dae4>] (die+0x238/0x2cc) from [<c00352d0>]
>> (do_DataAbort+0x84/0x98)
>> [ 26.605682] [<c00352d0>] (do_DataAbort+0x84/0x98) from [<c0365fac>]
>> (__dabt_svc+0x4c/0x60)
>> [ 26.614379] Exception stack(0xcf21be00 to 0xcf21be48)
>> [ 26.619689] be00: cf825000 cf825000 fa0ab000 00000000 cf825000
>> a0000013 cf8a8408 c0a5be58
>> [ 26.628295] be20: 00000000 00000000 0cdbcaf4 00000006 c0618294
>> cf21be48 c0254f04 c0254cf4
>> [ 26.636901] be40: 20000093 ffffffff
>> [ 26.640563] [<c0365fac>] (__dabt_svc+0x4c/0x60) from [<c0254cf4>]
>> (musb_save_context+0xc/0xc8)
>> [ 26.649627] [<c0254cf4>] (musb_save_context+0xc/0xc8) from
>> [<c0254f04>] (musb_suspend+0x20/0x38)
>> [ 26.658874] [<c0254f04>] (musb_suspend+0x20/0x38) from [<c022b0b0>]
>> (platform_pm_suspend+0x30/0x5c)
>> [ 26.668395] [<c022b0b0>] (platform_pm_suspend+0x30/0x5c) from
>> [<c022e8ec>] (pm_op+0x50/0xb8)
>> [ 26.677307] [<c022e8ec>] (pm_op+0x50/0xb8) from [<c022f128>]
>> (__device_suspend+0xc8/0x13c)
>> [ 26.686004] [<c022f128>] (__device_suspend+0xc8/0x13c) from
>> [<c022f2a8>] (dpm_suspend+0xbc/0x1b0)
>> [ 26.695343] [<c022f2a8>] (dpm_suspend+0xbc/0x1b0) from [<c00a169c>]
>> (suspend_devices_and_enter+0x88/0x278)
>> [ 26.705474] [<c00a169c>] (suspend_devices_and_enter+0x88/0x278) from
>> [<c00a1970>] (enter_state+0xe4/0x140)
>> [ 26.715637] [<c00a1970>] (enter_state+0xe4/0x140) from [<c00a0f00>]
>> (state_store+0x94/0xc8)
>> [ 26.724426] [<c00a0f00>] (state_store+0x94/0xc8) from [<c01e7754>]
>> (kobj_attr_store+0x1c/0x24)
>> [ 26.733489] [<c01e7754>] (kobj_attr_store+0x1c/0x24) from [<c0146570>]
>> (sysfs_write_file+0x108/0x13c)
>> [ 26.743194] [<c0146570>] (sysfs_write_file+0x108/0x13c) from
>> [<c00f6e80>] (vfs_write+0xac/0x138)
>> [ 26.752471] [<c00f6e80>] (vfs_write+0xac/0x138) from [<c00f6fc4>]
>> (sys_write+0x40/0x6c)
>> [ 26.760894] [<c00f6fc4>] (sys_write+0x40/0x6c) from [<c003a400>]
>> (ret_fast_syscall+0x0/0x3c)
>> [ 26.769744] ---[ end trace 8485516d11606e01 ]---
>> [ 26.774688] ---[ end trace 8485516d11606e02 ]---
>>
>>
>
>

--
View this message in context: http://old.nabble.com/Error-when-trying-to-suspend-in-2.6.39-pm-and-3.0-pm-tp32380800p32389743.html
Sent from the Gumstix mailing list archive at Nabble.com.




Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev


gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users