Skip to contentSkip to conversation

Oops on suspend with libertas SDIO (Linux 3.2-rc2)

DISCUSSION Sven Neumann 4 participants 6 messages Nov 17, 2011 – Nov 23, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I've given 3.2-rc2 a try today and the kernel oopsed when going into suspend:

[   20.387912] Freezing user space processes ... (elapsed 0.01 seconds) done.
[   20.408759] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[   20.432966] libertas_sdio mmc0:0001:1: mmc0:0001:1: suspend: PM flags = 0x0
[   20.439978] libertas_sdio mmc0:0001:1: Suspend without wake params -- powering down card
[   23.456061] libertas_sdio mmc0:0001:1: wlan0: command 0x0010 timed out
[   23.462626] libertas_sdio mmc0:0001:1: wlan0: Timeout submitting command 0x0010
[   23.470026] libertas_sdio: Resetting card...
[   23.474140] ------------[ cut here ]------------
[   23.479002] WARNING: at fs/sysfs/group.c:138 sysfs_remove_group+0x50/0x11c()
[   23.486045] sysfs group c05cb5c8 not found for kobject 'mmc0:0001:1'
[   23.492358] Modules linked in: libertas_sdio libertas pxamci
[   23.498091] [<c000dbb4>] (unwind_backtrace+0x0/0xec) from [<c001ca10>] (warn_slowpath_common+0x4c/0x64)
[   23.507467] [<c001ca10>] (warn_slowpath_common+0x4c/0x64) from [<c001cabc>] (warn_slowpath_fmt+0x30/0x40)
[   23.517021] [<c001cabc>] (warn_slowpath_fmt+0x30/0x40) from [<c00d369c>] (sysfs_remove_group+0x50/0x11c)
[   23.526504] [<c00d369c>] (sysfs_remove_group+0x50/0x11c) from [<c0202ec4>] (device_del+0x3c/0x1a4)
[   23.535437] [<c0202ec4>] (device_del+0x3c/0x1a4) from [<c0295dfc>] (sdio_remove_func+0x1c/0x2c)
[   23.544127] [<c0295dfc>] (sdio_remove_func+0x1c/0x2c) from [<c0295110>] (mmc_sdio_remove+0x44/0x78)
[   23.553161] [<c0295110>] (mmc_sdio_remove+0x44/0x78) from [<c028f0e4>] (mmc_stop_host+0xd0/0x22c)
[   23.562016] [<c028f0e4>] (mmc_stop_host+0xd0/0x22c) from [<c0290578>] (mmc_remove_host+0x18/0x2c)
[   23.570898] [<c0290578>] (mmc_remove_host+0x18/0x2c) from [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio])
[   23.582138] [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio]) from [<c00302fc>] (process_one_work+0x260/0x3c8)
[   23.593594] [<c00302fc>] (process_one_work+0x260/0x3c8) from [<c0030ac8>] (worker_thread+0x224/0x458)
[   23.602816] [<c0030ac8>] (worker_thread+0x224/0x458) from [<c0036a00>] (kthread+0x80/0x88)
[   23.611078] [<c0036a00>] (kthread+0x80/0x88) from [<c0009ca8>] (kernel_thread_exit+0x0/0x8)
[   23.619409] ---[ end trace 78598ef84f325bdd ]---
[   23.624011] Unable to handle kernel NULL pointer dereference at virtual address 0000000c
[   23.632079] pgd = c0004000
[   23.634762] [0000000c] *pgd=00000000
[   23.638351] Internal error: Oops: 17 [#1] PREEMPT
[   23.643016] Modules linked in: libertas_sdio libertas pxamci
[   23.648666] CPU: 0    Tainted: G        W     (3.2.0-rc2 #2)
[   23.654316] PC is at klist_put+0x18/0x9c
[   23.658213] LR is at device_del+0x50/0x1a4
[   23.662287] pc : [<c03ca8fc>]    lr : [<c0202ed8>]    psr: a0000013
[   23.662298] sp : c6569f18  ip : 40000013  fp : c602e605
[   23.673688] r10: 00000000  r9 : bf019458  r8 : c602e600
[   23.678876] r7 : 00000000  r6 : c6447408  r5 : c64bbe50  r4 : 00000001
[   23.685363] r3 : 00000000  r2 : 00000200  r1 : 00000001  r0 : 00000001
[   23.691844] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[   23.699106] Control: 0000397f  Table: a65a0018  DAC: 00000035
[   23.704817] Process kworker/0:2 (pid: 1204, stack limit = 0xc6568278)
[   23.711218] Stack: (0xc6569f18 to 0xc656a000)
[   23.715547] 9f00:                                                       c65fe008 c6447000
[   23.723677] 9f20: c6447408 c0202ed8 c65fe008 c6447000 00000084 c0295dfc 00000001 c0295110
[   23.731810] 9f40: c63e8f00 c6447000 60000013 00000000 00000009 c028f0e4 c6447000 c6447000
[   23.739944] 9f60: c63e8f00 c0290578 bf019c9c bf019470 bf019af0 c00302fc c05c1b38 c63e8f00
[   23.748076] 9f80: c05c1b38 c05c1b38 00000009 c6568000 c63e8f10 c05c1b38 c63e8f10 c0030ac8
[   23.756208] 9fa0: c6083f14 c6569fd4 c6083f14 c63e8f00 c00308a4 00000000 00000000 00000000
[   23.764341] 9fc0: 00000000 c0036a00 c0009ca8 00000000 c63e8f00 00000000 c6569fd8 c6569fd8
[   23.772475] 9fe0: 00000000 c6083f14 c0036980 c0009ca8 00000013 c0009ca8 0340f30e 153b5900
[   23.780618] [<c03ca8fc>] (klist_put+0x18/0x9c) from [<c0202ed8>] (device_del+0x50/0x1a4)
[   23.788675] [<c0202ed8>] (device_del+0x50/0x1a4) from [<c0295dfc>] (sdio_remove_func+0x1c/0x2c)
[   23.797327] [<c0295dfc>] (sdio_remove_func+0x1c/0x2c) from [<c0295110>] (mmc_sdio_remove+0x44/0x78)
[   23.806328] [<c0295110>] (mmc_sdio_remove+0x44/0x78) from [<c028f0e4>] (mmc_stop_host+0xd0/0x22c)
[   23.815148] [<c028f0e4>] (mmc_stop_host+0xd0/0x22c) from [<c0290578>] (mmc_remove_host+0x18/0x2c)
[   23.823987] [<c0290578>] (mmc_remove_host+0x18/0x2c) from [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio])
[   23.835164] [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio]) from [<c00302fc>] (process_one_work+0x260/0x3c8)
[   23.846584] [<c00302fc>] (process_one_work+0x260/0x3c8) from [<c0030ac8>] (worker_thread+0x224/0x458)
[   23.855760] [<c0030ac8>] (worker_thread+0x224/0x458) from [<c0036a00>] (kthread+0x80/0x88)
[   23.863984] [<c0036a00>] (kthread+0x80/0x88) from [<c0009ca8>] (kernel_thread_exit+0x0/0x8)
[   23.872292] Code: e1a05000 e3a00001 e3c33001 e1a04001 (e593600c) 
[   23.878402] ---[ end trace 78598ef84f325bde ]---
[   23.883135] Unable to handle kernel paging request at virtual address fffffffc
[   23.890313] pgd = c0004000
[   23.893000] [fffffffc] *pgd=a7ffe821, *pte=00000000, *ppte=00000000
[   23.899244] Internal error: Oops: 17 [#2] PREEMPT
[   23.903915] Modules linked in: libertas_sdio libertas pxamci
[   23.909564] CPU: 0    Tainted: G      D W     (3.2.0-rc2 #2)
[   23.915199] PC is at kthread_data+0x4/0xc
[   23.919186] LR is at wq_worker_sleeping+0xc/0xb4
[   23.923772] pc : [<c003648c>]    lr : [<c0032ee0>]    psr: 20000093
[   23.923783] sp : c6569d60  ip : c05bff98  fp : c6569d94
[   23.935174] r10: c60336ec  r9 : c05bff98  r8 : c6568000
[   23.940361] r7 : c6032000  r6 : c6033768  r5 : c6033600  r4 : 00000000
[   23.946848] r3 : 00000000  r2 : c05bff98  r1 : 00000000  r0 : c6033600
[   23.953329] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   23.960504] Control: 0000397f  Table: a65a0018  DAC: 00000015
[   23.966207] Process kworker/0:2 (pid: 1204, stack limit = 0xc6568278)
[   23.972600] Stack: (0xc6569d60 to 0xc656a000)
[   23.976936] 9d60: 00000000 c03d275c 00000000 00000001 c6569d9c c6033600 c6032000 c60336ec
[   23.985068] 9d80: c60335f8 c60336ec 00000001 c6569d98 c0020acc c03d265c 00000000 c6569d9c
[   23.993201] 9da0: c6569d9c c6033734 c602e605 c6569ed0 c6033600 c6568000 00000000 c04ef7d8
[   24.001334] 9dc0: 00000017 c6569ed0 c602e605 c000c51c c6568278 0000000b 0000000c c6569ed0
[   24.009466] 9de0: 00000000 00000017 00000000 c000ee00 c05bbbcc c6033600 00000000 0000000c
[   24.017600] 9e00: 0000000c c000effc c003b1ac c0015e8c c05bbbcc a0000013 00000017 c6569ed0
[   24.025732] 9e20: 0000000c bf019458 00000000 c000849c 00000025 c6569e65 c05fffaf c6569e48
[   24.033866] 9e40: c001dc78 c0015e8c 00000000 80000013 c0036980 205b6a00 33322020 3931362e
[   24.041998] 9e60: 5d393034 00000020 00000000 00000000 c6569ff8 c0009ca8 00000000 c000c2dc
[   24.050131] 9e80: c04eee5e c0036a00 00000004 00569ea8 c00d369c 0000008a c04f71e0 c00d369c
[   24.058264] 9ea0: c6569ef0 00000009 bf019458 00000000 c602e605 c03d24ac c03ca8fc a0000013
[   24.066396] 9ec0: ffffffff c6569f04 c602e600 c0008e98 00000001 00000001 00000200 00000000
[   24.074530] 9ee0: 00000001 c64bbe50 c6447408 00000000 c602e600 bf019458 00000000 c602e605
[   24.082664] 9f00: 40000013 c6569f18 c0202ed8 c03ca8fc a0000013 ffffffff c65fe008 c6447000
[   24.090796] 9f20: c6447408 c0202ed8 c65fe008 c6447000 00000084 c0295dfc 00000001 c0295110
[   24.098929] 9f40: c63e8f00 c6447000 60000013 00000000 00000009 c028f0e4 c6447000 c6447000
[   24.107063] 9f60: c63e8f00 c0290578 bf019c9c bf019470 bf019af0 c00302fc c05c1b38 c63e8f00
[   24.115195] 9f80: c05c1b38 c05c1b38 00000009 c6568000 c63e8f10 c05c1b38 c63e8f10 c0030ac8
[   24.123327] 9fa0: c6083f14 c6569fd4 c6083f14 c63e8f00 c00308a4 00000000 00000000 00000000
[   24.131460] 9fc0: 00000000 c0036a00 c0009ca8 00000000 c63e8f00 00000001 c6569fd8 c6569fd8
[   24.139594] 9fe0: 00000000 c6083f14 c0036980 c0009ca8 00000013 c0009ca8 0340f30e 153b5900
[   24.147738] [<c003648c>] (kthread_data+0x4/0xc) from [<c0032ee0>] (wq_worker_sleeping+0xc/0xb4)
[   24.156399] [<c0032ee0>] (wq_worker_sleeping+0xc/0xb4) from [<c03d275c>] (__schedule+0x10c/0x3a8)
[   24.165242] [<c03d275c>] (__schedule+0x10c/0x3a8) from [<c0020acc>] (do_exit+0x668/0x694)
[   24.173385] [<c0020acc>] (do_exit+0x668/0x694) from [<c000c51c>] (die+0x1f0/0x220)
[   24.180924] [<c000c51c>] (die+0x1f0/0x220) from [<c000ee00>] (__do_kernel_fault+0x64/0x88)
[   24.189147] [<c000ee00>] (__do_kernel_fault+0x64/0x88) from [<c000effc>] (do_page_fault+0x1d8/0x1f0)
[   24.198234] [<c000effc>] (do_page_fault+0x1d8/0x1f0) from [<c000849c>] (do_DataAbort+0x34/0x94)
[   24.206888] [<c000849c>] (do_DataAbort+0x34/0x94) from [<c0008e98>] (__dabt_svc+0x38/0x60)
[   24.215096] Exception stack(0xc6569ed0 to 0xc6569f18)
[   24.220114] 9ec0:                                     00000001 00000001 00000200 00000000
[   24.228245] 9ee0: 00000001 c64bbe50 c6447408 00000000 c602e600 bf019458 00000000 c602e605
[   24.236376] 9f00: 40000013 c6569f18 c0202ed8 c03ca8fc a0000013 ffffffff
[   24.242969] [<c0008e98>] (__dabt_svc+0x38/0x60) from [<c03ca8fc>] (klist_put+0x18/0x9c)
[   24.250946] [<c03ca8fc>] (klist_put+0x18/0x9c) from [<c0202ed8>] (device_del+0x50/0x1a4)
[   24.259012] [<c0202ed8>] (device_del+0x50/0x1a4) from [<c0295dfc>] (sdio_remove_func+0x1c/0x2c)
[   24.267666] [<c0295dfc>] (sdio_remove_func+0x1c/0x2c) from [<c0295110>] (mmc_sdio_remove+0x44/0x78)
[   24.276667] [<c0295110>] (mmc_sdio_remove+0x44/0x78) from [<c028f0e4>] (mmc_stop_host+0xd0/0x22c)
[   24.285488] [<c028f0e4>] (mmc_stop_host+0xd0/0x22c) from [<c0290578>] (mmc_remove_host+0x18/0x2c)
[   24.294330] [<c0290578>] (mmc_remove_host+0x18/0x2c) from [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio])
[   24.305514] [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio]) from [<c00302fc>] (process_one_work+0x260/0x3c8)
[   24.316932] [<c00302fc>] (process_one_work+0x260/0x3c8) from [<c0030ac8>] (worker_thread+0x224/0x458)
[   24.326107] [<c0030ac8>] (worker_thread+0x224/0x458) from [<c0036a00>] (kthread+0x80/0x88)
[   24.334331] [<c0036a00>] (kthread+0x80/0x88) from [<c0009ca8>] (kernel_thread_exit+0x0/0x8)
[   24.342632] Code: e593313c e5130008 e12fff1e e590313c (e5130004) 
[   24.348836] ---[ end trace 78598ef84f325bdf ]---
[   24.353429] Fixing recursive fault but reboot is needed!

Hardware is a PXA300 with a Marvell 8868 Wifi module attached over SDIO.

Regards,
Sven

Signature · 5 lines
Sven Neumann
Head of RAUMFELD Software Development

Lautsprecher Teufel GmbH | Bülowstr. 66 | 10783 Berlin | Germany
Tel: +49 (0)30-300 930 153 | [email protected]
#1 lore raw

Hi,

Quoted 117 lines · Sven Neumann

I've given 3.2-rc2 a try today and the kernel oopsed when going into suspend:

[   20.387912] Freezing user space processes ... (elapsed 0.01 seconds) done.
[ 20.408759] Freezing remaining freezable tasks ... (elapsed 0.01
seconds) done.
[   20.432966] libertas_sdio mmc0:0001:1: mmc0:0001:1: suspend: PM flags = 0x0
[ 20.439978] libertas_sdio mmc0:0001:1: Suspend without wake params --
powering down card
[   23.456061] libertas_sdio mmc0:0001:1: wlan0: command 0x0010 timed out
[ 23.462626] libertas_sdio mmc0:0001:1: wlan0: Timeout submitting
command 0x0010
[   23.470026] libertas_sdio: Resetting card...
[   23.474140] ------------[ cut here ]------------
[   23.479002] WARNING: at fs/sysfs/group.c:138 sysfs_remove_group+0x50/0x11c()
[   23.486045] sysfs group c05cb5c8 not found for kobject 'mmc0:0001:1'
[   23.492358] Modules linked in: libertas_sdio libertas pxamci
[ 23.498091] [<c000dbb4>] (unwind_backtrace+0x0/0xec) from
[<c001ca10>] (warn_slowpath_common+0x4c/0x64)
[ 23.507467] [<c001ca10>] (warn_slowpath_common+0x4c/0x64) from
[<c001cabc>] (warn_slowpath_fmt+0x30/0x40)
[ 23.517021] [<c001cabc>] (warn_slowpath_fmt+0x30/0x40) from
[<c00d369c>] (sysfs_remove_group+0x50/0x11c)
[ 23.526504] [<c00d369c>] (sysfs_remove_group+0x50/0x11c) from
[<c0202ec4>] (device_del+0x3c/0x1a4)
[ 23.535437] [<c0202ec4>] (device_del+0x3c/0x1a4) from [<c0295dfc>]
(sdio_remove_func+0x1c/0x2c)
[ 23.544127] [<c0295dfc>] (sdio_remove_func+0x1c/0x2c) from
[<c0295110>] (mmc_sdio_remove+0x44/0x78)
[ 23.553161] [<c0295110>] (mmc_sdio_remove+0x44/0x78) from
[<c028f0e4>] (mmc_stop_host+0xd0/0x22c)
[ 23.562016] [<c028f0e4>] (mmc_stop_host+0xd0/0x22c) from [<c0290578>]
(mmc_remove_host+0x18/0x2c)
[ 23.570898] [<c0290578>] (mmc_remove_host+0x18/0x2c) from
[<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio])
[ 23.582138] [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c
[libertas_sdio]) from [<c00302fc>] (process_one_work+0x260/0x3c8)
[ 23.593594] [<c00302fc>] (process_one_work+0x260/0x3c8) from
[<c0030ac8>] (worker_thread+0x224/0x458)
[ 23.602816] [<c0030ac8>] (worker_thread+0x224/0x458) from
[<c0036a00>] (kthread+0x80/0x88)
[ 23.611078] [<c0036a00>] (kthread+0x80/0x88) from [<c0009ca8>]
(kernel_thread_exit+0x0/0x8)
[   23.619409] ---[ end trace 78598ef84f325bdd ]---
[ 23.624011] Unable to handle kernel NULL pointer dereference at
virtual address 0000000c
[   23.632079] pgd = c0004000
[   23.634762] [0000000c] *pgd=00000000
[   23.638351] Internal error: Oops: 17 [#1] PREEMPT
[   23.643016] Modules linked in: libertas_sdio libertas pxamci
[   23.648666] CPU: 0    Tainted: G        W     (3.2.0-rc2 #2)
[   23.654316] PC is at klist_put+0x18/0x9c
[   23.658213] LR is at device_del+0x50/0x1a4
[   23.662287] pc : [<c03ca8fc>]    lr : [<c0202ed8>]    psr: a0000013
[   23.662298] sp : c6569f18  ip : 40000013  fp : c602e605
[   23.673688] r10: 00000000  r9 : bf019458  r8 : c602e600
[   23.678876] r7 : 00000000  r6 : c6447408  r5 : c64bbe50  r4 : 00000001
[   23.685363] r3 : 00000000  r2 : 00000200  r1 : 00000001  r0 : 00000001
[ 23.691844] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment
kernel
[   23.699106] Control: 0000397f  Table: a65a0018  DAC: 00000035
[   23.704817] Process kworker/0:2 (pid: 1204, stack limit = 0xc6568278)
[   23.711218] Stack: (0xc6569f18 to 0xc656a000)
[ 23.715547] 9f00: c65fe008 c6447000
[ 23.723677] 9f20: c6447408 c0202ed8 c65fe008 c6447000 00000084
c0295dfc 00000001 c0295110
[ 23.731810] 9f40: c63e8f00 c6447000 60000013 00000000 00000009
c028f0e4 c6447000 c6447000
[ 23.739944] 9f60: c63e8f00 c0290578 bf019c9c bf019470 bf019af0
c00302fc c05c1b38 c63e8f00
[ 23.748076] 9f80: c05c1b38 c05c1b38 00000009 c6568000 c63e8f10
c05c1b38 c63e8f10 c0030ac8
[ 23.756208] 9fa0: c6083f14 c6569fd4 c6083f14 c63e8f00 c00308a4
00000000 00000000 00000000
[ 23.764341] 9fc0: 00000000 c0036a00 c0009ca8 00000000 c63e8f00
00000000 c6569fd8 c6569fd8
[ 23.772475] 9fe0: 00000000 c6083f14 c0036980 c0009ca8 00000013
c0009ca8 0340f30e 153b5900
[ 23.780618] [<c03ca8fc>] (klist_put+0x18/0x9c) from [<c0202ed8>]
(device_del+0x50/0x1a4)
[ 23.788675] [<c0202ed8>] (device_del+0x50/0x1a4) from [<c0295dfc>]
(sdio_remove_func+0x1c/0x2c)
[ 23.797327] [<c0295dfc>] (sdio_remove_func+0x1c/0x2c) from
[<c0295110>] (mmc_sdio_remove+0x44/0x78)
[ 23.806328] [<c0295110>] (mmc_sdio_remove+0x44/0x78) from
[<c028f0e4>] (mmc_stop_host+0xd0/0x22c)
[ 23.815148] [<c028f0e4>] (mmc_stop_host+0xd0/0x22c) from [<c0290578>]
(mmc_remove_host+0x18/0x2c)
[ 23.823987] [<c0290578>] (mmc_remove_host+0x18/0x2c) from
[<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio])
[ 23.835164] [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c
[libertas_sdio]) from [<c00302fc>] (process_one_work+0x260/0x3c8)
[ 23.846584] [<c00302fc>] (process_one_work+0x260/0x3c8) from
[<c0030ac8>] (worker_thread+0x224/0x458)
[ 23.855760] [<c0030ac8>] (worker_thread+0x224/0x458) from
[<c0036a00>] (kthread+0x80/0x88)
[ 23.863984] [<c0036a00>] (kthread+0x80/0x88) from [<c0009ca8>]
(kernel_thread_exit+0x0/0x8)
[   23.872292] Code: e1a05000 e3a00001 e3c33001 e1a04001 (e593600c) 
[   23.878402] ---[ end trace 78598ef84f325bde ]---
[ 23.883135] Unable to handle kernel paging request at virtual address
fffffffc
[   23.890313] pgd = c0004000
[   23.893000] [fffffffc] *pgd=a7ffe821, *pte=00000000, *ppte=00000000
[   23.899244] Internal error: Oops: 17 [#2] PREEMPT
[   23.903915] Modules linked in: libertas_sdio libertas pxamci
[   23.909564] CPU: 0    Tainted: G      D W     (3.2.0-rc2 #2)
[   23.915199] PC is at kthread_data+0x4/0xc
[   23.919186] LR is at wq_worker_sleeping+0xc/0xb4
[   23.923772] pc : [<c003648c>]    lr : [<c0032ee0>]    psr: 20000093
[   23.923783] sp : c6569d60  ip : c05bff98  fp : c6569d94
[   23.935174] r10: c60336ec  r9 : c05bff98  r8 : c6568000
[   23.940361] r7 : c6032000  r6 : c6033768  r5 : c6033600  r4 : 00000000
[   23.946848] r3 : 00000000  r2 : c05bff98  r1 : 00000000  r0 : c6033600
[ 23.953329] Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment
user
[   23.960504] Control: 0000397f  Table: a65a0018  DAC: 00000015
[   23.966207] Process kworker/0:2 (pid: 1204, stack limit = 0xc6568278)
Quoted 3 lines

[...]

Hardware is a PXA300 with a Marvell 8868 Wifi module attached over SDIO.

Adding Daniel Drake to CC, for 9a821f5d0fc ("libertas: add sd8686 reset_card support").

Looks like mmc_sdio_remove() calls mmc_remove_card() after the reset_card function has called mmc_remove_host() already. Maybe if_sdio_reset_card_worker() should call mmc_free_host() as well?

Thanks,

- Chris.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child
#2 lore raw

[ Adding linux-pm mailing list to CC as well ]

Thanks,
Srivatsa S. Bhat

Quoted 134 lines · Chris Ball

Hi,

Quoted 117 lines · Sven Neumann

I've given 3.2-rc2 a try today and the kernel oopsed when going into suspend:

[   20.387912] Freezing user space processes ... (elapsed 0.01 seconds) done.
[ 20.408759] Freezing remaining freezable tasks ... (elapsed 0.01
seconds) done.
[   20.432966] libertas_sdio mmc0:0001:1: mmc0:0001:1: suspend: PM flags = 0x0
[ 20.439978] libertas_sdio mmc0:0001:1: Suspend without wake params --
powering down card
[   23.456061] libertas_sdio mmc0:0001:1: wlan0: command 0x0010 timed out
[ 23.462626] libertas_sdio mmc0:0001:1: wlan0: Timeout submitting
command 0x0010
[   23.470026] libertas_sdio: Resetting card...
[   23.474140] ------------[ cut here ]------------
[   23.479002] WARNING: at fs/sysfs/group.c:138 sysfs_remove_group+0x50/0x11c()
[   23.486045] sysfs group c05cb5c8 not found for kobject 'mmc0:0001:1'
[   23.492358] Modules linked in: libertas_sdio libertas pxamci
[ 23.498091] [<c000dbb4>] (unwind_backtrace+0x0/0xec) from
[<c001ca10>] (warn_slowpath_common+0x4c/0x64)
[ 23.507467] [<c001ca10>] (warn_slowpath_common+0x4c/0x64) from
[<c001cabc>] (warn_slowpath_fmt+0x30/0x40)
[ 23.517021] [<c001cabc>] (warn_slowpath_fmt+0x30/0x40) from
[<c00d369c>] (sysfs_remove_group+0x50/0x11c)
[ 23.526504] [<c00d369c>] (sysfs_remove_group+0x50/0x11c) from
[<c0202ec4>] (device_del+0x3c/0x1a4)
[ 23.535437] [<c0202ec4>] (device_del+0x3c/0x1a4) from [<c0295dfc>]
(sdio_remove_func+0x1c/0x2c)
[ 23.544127] [<c0295dfc>] (sdio_remove_func+0x1c/0x2c) from
[<c0295110>] (mmc_sdio_remove+0x44/0x78)
[ 23.553161] [<c0295110>] (mmc_sdio_remove+0x44/0x78) from
[<c028f0e4>] (mmc_stop_host+0xd0/0x22c)
[ 23.562016] [<c028f0e4>] (mmc_stop_host+0xd0/0x22c) from [<c0290578>]
(mmc_remove_host+0x18/0x2c)
[ 23.570898] [<c0290578>] (mmc_remove_host+0x18/0x2c) from
[<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio])
[ 23.582138] [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c
[libertas_sdio]) from [<c00302fc>] (process_one_work+0x260/0x3c8)
[ 23.593594] [<c00302fc>] (process_one_work+0x260/0x3c8) from
[<c0030ac8>] (worker_thread+0x224/0x458)
[ 23.602816] [<c0030ac8>] (worker_thread+0x224/0x458) from
[<c0036a00>] (kthread+0x80/0x88)
[ 23.611078] [<c0036a00>] (kthread+0x80/0x88) from [<c0009ca8>]
(kernel_thread_exit+0x0/0x8)
[   23.619409] ---[ end trace 78598ef84f325bdd ]---
[ 23.624011] Unable to handle kernel NULL pointer dereference at
virtual address 0000000c
[   23.632079] pgd = c0004000
[   23.634762] [0000000c] *pgd=00000000
[   23.638351] Internal error: Oops: 17 [#1] PREEMPT
[   23.643016] Modules linked in: libertas_sdio libertas pxamci
[   23.648666] CPU: 0    Tainted: G        W     (3.2.0-rc2 #2)
[   23.654316] PC is at klist_put+0x18/0x9c
[   23.658213] LR is at device_del+0x50/0x1a4
[   23.662287] pc : [<c03ca8fc>]    lr : [<c0202ed8>]    psr: a0000013
[   23.662298] sp : c6569f18  ip : 40000013  fp : c602e605
[   23.673688] r10: 00000000  r9 : bf019458  r8 : c602e600
[   23.678876] r7 : 00000000  r6 : c6447408  r5 : c64bbe50  r4 : 00000001
[   23.685363] r3 : 00000000  r2 : 00000200  r1 : 00000001  r0 : 00000001
[ 23.691844] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment
kernel
[   23.699106] Control: 0000397f  Table: a65a0018  DAC: 00000035
[   23.704817] Process kworker/0:2 (pid: 1204, stack limit = 0xc6568278)
[   23.711218] Stack: (0xc6569f18 to 0xc656a000)
[ 23.715547] 9f00: c65fe008 c6447000
[ 23.723677] 9f20: c6447408 c0202ed8 c65fe008 c6447000 00000084
c0295dfc 00000001 c0295110
[ 23.731810] 9f40: c63e8f00 c6447000 60000013 00000000 00000009
c028f0e4 c6447000 c6447000
[ 23.739944] 9f60: c63e8f00 c0290578 bf019c9c bf019470 bf019af0
c00302fc c05c1b38 c63e8f00
[ 23.748076] 9f80: c05c1b38 c05c1b38 00000009 c6568000 c63e8f10
c05c1b38 c63e8f10 c0030ac8
[ 23.756208] 9fa0: c6083f14 c6569fd4 c6083f14 c63e8f00 c00308a4
00000000 00000000 00000000
[ 23.764341] 9fc0: 00000000 c0036a00 c0009ca8 00000000 c63e8f00
00000000 c6569fd8 c6569fd8
[ 23.772475] 9fe0: 00000000 c6083f14 c0036980 c0009ca8 00000013
c0009ca8 0340f30e 153b5900
[ 23.780618] [<c03ca8fc>] (klist_put+0x18/0x9c) from [<c0202ed8>]
(device_del+0x50/0x1a4)
[ 23.788675] [<c0202ed8>] (device_del+0x50/0x1a4) from [<c0295dfc>]
(sdio_remove_func+0x1c/0x2c)
[ 23.797327] [<c0295dfc>] (sdio_remove_func+0x1c/0x2c) from
[<c0295110>] (mmc_sdio_remove+0x44/0x78)
[ 23.806328] [<c0295110>] (mmc_sdio_remove+0x44/0x78) from
[<c028f0e4>] (mmc_stop_host+0xd0/0x22c)
[ 23.815148] [<c028f0e4>] (mmc_stop_host+0xd0/0x22c) from [<c0290578>]
(mmc_remove_host+0x18/0x2c)
[ 23.823987] [<c0290578>] (mmc_remove_host+0x18/0x2c) from
[<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio])
[ 23.835164] [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c
[libertas_sdio]) from [<c00302fc>] (process_one_work+0x260/0x3c8)
[ 23.846584] [<c00302fc>] (process_one_work+0x260/0x3c8) from
[<c0030ac8>] (worker_thread+0x224/0x458)
[ 23.855760] [<c0030ac8>] (worker_thread+0x224/0x458) from
[<c0036a00>] (kthread+0x80/0x88)
[ 23.863984] [<c0036a00>] (kthread+0x80/0x88) from [<c0009ca8>]
(kernel_thread_exit+0x0/0x8)
[   23.872292] Code: e1a05000 e3a00001 e3c33001 e1a04001 (e593600c) 
[   23.878402] ---[ end trace 78598ef84f325bde ]---
[ 23.883135] Unable to handle kernel paging request at virtual address
fffffffc
[   23.890313] pgd = c0004000
[   23.893000] [fffffffc] *pgd=a7ffe821, *pte=00000000, *ppte=00000000
[   23.899244] Internal error: Oops: 17 [#2] PREEMPT
[   23.903915] Modules linked in: libertas_sdio libertas pxamci
[   23.909564] CPU: 0    Tainted: G      D W     (3.2.0-rc2 #2)
[   23.915199] PC is at kthread_data+0x4/0xc
[   23.919186] LR is at wq_worker_sleeping+0xc/0xb4
[   23.923772] pc : [<c003648c>]    lr : [<c0032ee0>]    psr: 20000093
[   23.923783] sp : c6569d60  ip : c05bff98  fp : c6569d94
[   23.935174] r10: c60336ec  r9 : c05bff98  r8 : c6568000
[   23.940361] r7 : c6032000  r6 : c6033768  r5 : c6033600  r4 : 00000000
[   23.946848] r3 : 00000000  r2 : c05bff98  r1 : 00000000  r0 : c6033600
[ 23.953329] Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment
user
[   23.960504] Control: 0000397f  Table: a65a0018  DAC: 00000015
[   23.966207] Process kworker/0:2 (pid: 1204, stack limit = 0xc6568278)
Quoted 3 lines

[...]

Hardware is a PXA300 with a Marvell 8868 Wifi module attached over SDIO.

Adding Daniel Drake to CC, for 9a821f5d0fc ("libertas: add sd8686 reset_card support").

Looks like mmc_sdio_remove() calls mmc_remove_card() after the reset_card function has called mmc_remove_host() already. Maybe if_sdio_reset_card_worker() should call mmc_free_host() as well?

Thanks,

- Chris.

#3 lore raw
Quoted 130 lines · Srivatsa S. Bhat

[ Adding linux-pm mailing list to CC as well ]

Thanks,
Srivatsa S. Bhat

Quoted 124 lines · Chris Ball

Hi,

Quoted 120 lines · Sven Neumann

I've given 3.2-rc2 a try today and the kernel oopsed when going into suspend:

[   20.387912] Freezing user space processes ... (elapsed 0.01 seconds) done.

[ 20.408759] Freezing remaining freezable tasks ... (elapsed 0.01
seconds) done.
[   20.432966] libertas_sdio mmc0:0001:1: mmc0:0001:1: suspend: PM flags = 0x0
[ 20.439978] libertas_sdio mmc0:0001:1: Suspend without wake params --
powering down card
[   23.456061] libertas_sdio mmc0:0001:1: wlan0: command 0x0010 timed out
[ 23.462626] libertas_sdio mmc0:0001:1: wlan0: Timeout submitting

command 0x0010
[   23.470026] libertas_sdio: Resetting card...
[   23.474140] ------------[ cut here ]------------
[   23.479002] WARNING: at fs/sysfs/group.c:138 sysfs_remove_group+0x50/0x11c() [   23.486045] sysfs group c05cb5c8 not found for kobject 'mmc0:0001:1' [   23.492358] Modules linked in: libertas_sdio libertas pxamci

[ 23.498091] [<c000dbb4>] (unwind_backtrace+0x0/0xec) from
[<c001ca10>] (warn_slowpath_common+0x4c/0x64)
[ 23.507467] [<c001ca10>] (warn_slowpath_common+0x4c/0x64) from
[<c001cabc>] (warn_slowpath_fmt+0x30/0x40)
[ 23.517021] [<c001cabc>] (warn_slowpath_fmt+0x30/0x40) from
[<c00d369c>] (sysfs_remove_group+0x50/0x11c)
[ 23.526504] [<c00d369c>] (sysfs_remove_group+0x50/0x11c) from
[<c0202ec4>] (device_del+0x3c/0x1a4)
[ 23.535437] [<c0202ec4>] (device_del+0x3c/0x1a4) from [<c0295dfc>]
(sdio_remove_func+0x1c/0x2c)
[ 23.544127] [<c0295dfc>] (sdio_remove_func+0x1c/0x2c) from
[<c0295110>] (mmc_sdio_remove+0x44/0x78)
[ 23.553161] [<c0295110>] (mmc_sdio_remove+0x44/0x78) from
[<c028f0e4>] (mmc_stop_host+0xd0/0x22c)
[ 23.562016] [<c028f0e4>] (mmc_stop_host+0xd0/0x22c) from [<c0290578>]
(mmc_remove_host+0x18/0x2c)
[ 23.570898] [<c0290578>] (mmc_remove_host+0x18/0x2c) from
[<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio])
[ 23.582138] [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c
[libertas_sdio]) from [<c00302fc>] (process_one_work+0x260/0x3c8)
[ 23.593594] [<c00302fc>] (process_one_work+0x260/0x3c8) from
[<c0030ac8>] (worker_thread+0x224/0x458)
[ 23.602816] [<c0030ac8>] (worker_thread+0x224/0x458) from
[<c0036a00>] (kthread+0x80/0x88)
[ 23.611078] [<c0036a00>] (kthread+0x80/0x88) from [<c0009ca8>]
(kernel_thread_exit+0x0/0x8)
[   23.619409] ---[ end trace 78598ef84f325bdd ]---
[ 23.624011] Unable to handle kernel NULL pointer dereference at

virtual address 0000000c
[   23.632079] pgd = c0004000
[   23.634762] [0000000c] *pgd=00000000
[   23.638351] Internal error: Oops: 17 [#1] PREEMPT
[   23.643016] Modules linked in: libertas_sdio libertas pxamci [   23.648666] CPU: 0    Tainted: G        W     (3.2.0-rc2 #2) [   23.654316] PC is at klist_put+0x18/0x9c
[   23.658213] LR is at device_del+0x50/0x1a4
[   23.662287] pc : [<c03ca8fc>]    lr : [<c0202ed8>]    psr: a0000013 [   23.662298] sp : c6569f18  ip : 40000013  fp : c602e605
[   23.673688] r10: 00000000  r9 : bf019458  r8 : c602e600
[   23.678876] r7 : 00000000  r6 : c6447408  r5 : c64bbe50  r4 : 00000001 [   23.685363] r3 : 00000000  r2 : 00000200  r1 : 00000001  r0 : 00000001

[ 23.691844] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment

kernel
[   23.699106] Control: 0000397f  Table: a65a0018  DAC: 00000035 [   23.704817] Process kworker/0:2 (pid: 1204, stack limit = 0xc6568278) [   23.711218] Stack: (0xc6569f18 to 0xc656a000)

[ 23.715547] 9f00: c65fe008 c6447000
[ 23.723677] 9f20: c6447408 c0202ed8 c65fe008 c6447000 00000084
c0295dfc 00000001 c0295110
[ 23.731810] 9f40: c63e8f00 c6447000 60000013 00000000 00000009
c028f0e4 c6447000 c6447000
[ 23.739944] 9f60: c63e8f00 c0290578 bf019c9c bf019470 bf019af0
c00302fc c05c1b38 c63e8f00
[ 23.748076] 9f80: c05c1b38 c05c1b38 00000009 c6568000 c63e8f10
c05c1b38 c63e8f10 c0030ac8
[ 23.756208] 9fa0: c6083f14 c6569fd4 c6083f14 c63e8f00 c00308a4
00000000 00000000 00000000
[ 23.764341] 9fc0: 00000000 c0036a00 c0009ca8 00000000 c63e8f00
00000000 c6569fd8 c6569fd8
[ 23.772475] 9fe0: 00000000 c6083f14 c0036980 c0009ca8 00000013
c0009ca8 0340f30e 153b5900
[ 23.780618] [<c03ca8fc>] (klist_put+0x18/0x9c) from [<c0202ed8>]
(device_del+0x50/0x1a4)
[ 23.788675] [<c0202ed8>] (device_del+0x50/0x1a4) from [<c0295dfc>]
(sdio_remove_func+0x1c/0x2c)
[ 23.797327] [<c0295dfc>] (sdio_remove_func+0x1c/0x2c) from
[<c0295110>] (mmc_sdio_remove+0x44/0x78)
[ 23.806328] [<c0295110>] (mmc_sdio_remove+0x44/0x78) from
[<c028f0e4>] (mmc_stop_host+0xd0/0x22c)
[ 23.815148] [<c028f0e4>] (mmc_stop_host+0xd0/0x22c) from [<c0290578>]
(mmc_remove_host+0x18/0x2c)
[ 23.823987] [<c0290578>] (mmc_remove_host+0x18/0x2c) from
[<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio])
[ 23.835164] [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c
[libertas_sdio]) from [<c00302fc>] (process_one_work+0x260/0x3c8)
[ 23.846584] [<c00302fc>] (process_one_work+0x260/0x3c8) from
[<c0030ac8>] (worker_thread+0x224/0x458)
[ 23.855760] [<c0030ac8>] (worker_thread+0x224/0x458) from
[<c0036a00>] (kthread+0x80/0x88)
[ 23.863984] [<c0036a00>] (kthread+0x80/0x88) from [<c0009ca8>]
(kernel_thread_exit+0x0/0x8)
[   23.872292] Code: e1a05000 e3a00001 e3c33001 e1a04001 (e593600c)
[   23.878402] ---[ end trace 78598ef84f325bde ]---
[ 23.883135] Unable to handle kernel paging request at virtual address

fffffffc
[   23.890313] pgd = c0004000
[   23.893000] [fffffffc] *pgd=a7ffe821, *pte=00000000, *ppte=00000000 [   23.899244] Internal error: Oops: 17 [#2] PREEMPT
[   23.903915] Modules linked in: libertas_sdio libertas pxamci [   23.909564] CPU: 0    Tainted: G      D W     (3.2.0-rc2 #2) [   23.915199] PC is at kthread_data+0x4/0xc
[   23.919186] LR is at wq_worker_sleeping+0xc/0xb4
[   23.923772] pc : [<c003648c>]    lr : [<c0032ee0>]    psr: 20000093 [   23.923783] sp : c6569d60  ip : c05bff98  fp : c6569d94
[   23.935174] r10: c60336ec  r9 : c05bff98  r8 : c6568000
[   23.940361] r7 : c6032000  r6 : c6033768  r5 : c6033600  r4 : 00000000 [   23.946848] r3 : 00000000  r2 : c05bff98  r1 : 00000000  r0 : c6033600

[ 23.953329] Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment

user
[   23.960504] Control: 0000397f  Table: a65a0018  DAC: 00000015 [   23.966207] Process kworker/0:2 (pid: 1204, stack limit = 0xc6568278) [...]

Hardware is a PXA300 with a Marvell 8868 Wifi module attached over SDIO.

Quoted 8 lines
Quoted 6 lines

Adding Daniel Drake to CC, for 9a821f5d0fc ("libertas: add sd8686 reset_card support").

Looks like mmc_sdio_remove() calls mmc_remove_card() after the reset_card function has called mmc_remove_host() already.  Maybe if_sdio_reset_card_worker() should call mmc_free_host() as well?

From a quick look is seems we need better housekeeping of the

reset_host variable.

Does this (untested) patch help?

Daniel

drivers/net/wireless/libertas/if_sdio.c +5 -1
index 9804ebc..abd3c9d 100644
@@ -1039,9 +1039,13 @@ static void if_sdio_reset_card_worker(struct work_struct *work)
 	 * instance for that reason.
 	 */
 
+	if (!reset_host)
+		return;
+
 	pr_info("Resetting card...");
 	mmc_remove_host(reset_host);
 	mmc_add_host(reset_host);
+	reset_host = NULL;
 }
 static DECLARE_WORK(card_reset_work, if_sdio_reset_card_worker);
 
@@ -1281,7 +1285,7 @@ static void if_sdio_remove(struct sdio_func *func)
 			pr_alert("CMD_FUNC_SHUTDOWN cmd failed\n");
 	}
 
-
+	reset_host = NULL;
 	lbs_deb_sdio("call remove card\n");
 	lbs_stop_card(card->priv);
 	lbs_remove_card(card->priv);
#4 lore raw

Hi,

Quoted 8 lines · Daniel Mack
Quoted 5 lines
Quoted 3 lines

Looks like mmc_sdio_remove() calls mmc_remove_card() after the reset_card function has called mmc_remove_host() already. Maybe if_sdio_reset_card_worker() should call mmc_free_host() as well?

From a quick look is seems we need better housekeeping of the

reset_host variable.

Does this (untested) patch help?

No, it still oopses with this patch applied:

[  102.965924] PM: Syncing filesystems ... done.
[  103.016139] Freezing user space processes ... (elapsed 0.02 seconds) done.
[  103.045535] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[  103.069910] libertas_sdio mmc0:0001:1: mmc0:0001:1: suspend: PM flags = 0x0
[  103.076923] libertas_sdio mmc0:0001:1: Suspend without wake params -- powering down card
[  106.092767] libertas_sdio mmc0:0001:1: wlan0: command 0x0010 timed out
[  106.099330] libertas_sdio mmc0:0001:1: wlan0: Timeout submitting command 0x0010
[  106.106725] libertas_sdio: Resetting card...
[  106.110837] ------------[ cut here ]------------
[  106.115702] WARNING: at fs/sysfs/group.c:138 sysfs_remove_group+0x50/0x11c()
[  106.122748] sysfs group c05cb5c8 not found for kobject 'mmc0:0001:1'
[  106.129057] Modules linked in: libertas_sdio libertas pxamci
[  106.134783] [<c000dbb4>] (unwind_backtrace+0x0/0xec) from [<c001ca10>] (warn_slowpath_common+0x4c/0x64)
[  106.144158] [<c001ca10>] (warn_slowpath_common+0x4c/0x64) from [<c001cabc>] (warn_slowpath_fmt+0x30/0x40)
[  106.153711] [<c001cabc>] (warn_slowpath_fmt+0x30/0x40) from [<c00d36d4>] (sysfs_remove_group+0x50/0x11c)
[  106.163193] [<c00d36d4>] (sysfs_remove_group+0x50/0x11c) from [<c0202f04>] (device_del+0x3c/0x1a4)
[  106.172128] [<c0202f04>] (device_del+0x3c/0x1a4) from [<c0295e3c>] (sdio_remove_func+0x1c/0x2c)
[  106.180816] [<c0295e3c>] (sdio_remove_func+0x1c/0x2c) from [<c0295150>] (mmc_sdio_remove+0x44/0x78)
[  106.189852] [<c0295150>] (mmc_sdio_remove+0x44/0x78) from [<c028f124>] (mmc_stop_host+0xd0/0x22c)
[  106.198707] [<c028f124>] (mmc_stop_host+0xd0/0x22c) from [<c02905b8>] (mmc_remove_host+0x18/0x2c)
[  106.207587] [<c02905b8>] (mmc_remove_host+0x18/0x2c) from [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio])
[  106.218820] [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio]) from [<c00302fc>] (process_one_work+0x260/0x3c8)
[  106.230280] [<c00302fc>] (process_one_work+0x260/0x3c8) from [<c0030ac8>] (worker_thread+0x224/0x458)
[  106.239498] [<c0030ac8>] (worker_thread+0x224/0x458) from [<c0036a00>] (kthread+0x80/0x88)
[  106.247758] [<c0036a00>] (kthread+0x80/0x88) from [<c0009ca8>] (kernel_thread_exit+0x0/0x8)
[  106.256091] ---[ end trace ba085a5f8ea6593c ]---
[  106.260692] Unable to handle kernel NULL pointer dereference at virtual address 0000000c
[  106.268759] pgd = c0004000
[  106.271445] [0000000c] *pgd=00000000
[  106.275032] Internal error: Oops: 17 [#1] PREEMPT
[  106.279698] Modules linked in: libertas_sdio libertas pxamci
[  106.285348] CPU: 0    Tainted: G        W     (3.2.0-rc2 #1)
[  106.290999] PC is at klist_put+0x18/0x9c
[  106.294905] LR is at device_del+0x50/0x1a4
[  106.298978] pc : [<c03ca92c>]    lr : [<c0202f18>]    psr: a0000013
[  106.298989] sp : c656ff18  ip : 40000013  fp : c602e605
[  106.310379] r10: 00000000  r9 : bf019458  r8 : c602e600
[  106.315566] r7 : 00000000  r6 : c63ff408  r5 : c6461f70  r4 : 00000001
[  106.322054] r3 : 00000000  r2 : 00000200  r1 : 00000001  r0 : 00000001
[  106.328543] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[  106.335805] Control: 0000397f  Table: a665c018  DAC: 00000035
[  106.341507] Process kworker/0:2 (pid: 1196, stack limit = 0xc656e278)
[  106.347909] Stack: (0xc656ff18 to 0xc6570000)
[  106.352236] ff00:                                                       c64cef08 c63ff000
[  106.360368] ff20: c63ff408 c0202f18 c64cef08 c63ff000 00000084 c0295e3c 00000001 c0295150
[  106.368501] ff40: c64f1c00 c63ff000 60000013 00000000 00000009 c028f124 c63ff000 c63ff000
[  106.376635] ff60: c64f1c00 c02905b8 bf019c9c bf019470 bf019af0 c00302fc c05c1b38 c64f1c00
[  106.384767] ff80: c05c1b38 c05c1b38 00000009 c656e000 c64f1c10 c05c1b38 c64f1c10 c0030ac8
[  106.392899] ffa0: c607df14 c656ffd4 c607df14 c64f1c00 c00308a4 00000000 00000000 00000000
[  106.401032] ffc0: 00000000 c0036a00 c0009ca8 00000000 c64f1c00 00000000 c656ffd8 c656ffd8
[  106.409165] ffe0: 00000000 c607df14 c0036980 c0009ca8 00000013 c0009ca8 0340f30e 153b5900
[  106.417309] [<c03ca92c>] (klist_put+0x18/0x9c) from [<c0202f18>] (device_del+0x50/0x1a4)
[  106.425368] [<c0202f18>] (device_del+0x50/0x1a4) from [<c0295e3c>] (sdio_remove_func+0x1c/0x2c)
[  106.434025] [<c0295e3c>] (sdio_remove_func+0x1c/0x2c) from [<c0295150>] (mmc_sdio_remove+0x44/0x78)
[  106.443027] [<c0295150>] (mmc_sdio_remove+0x44/0x78) from [<c028f124>] (mmc_stop_host+0xd0/0x22c)
[  106.451847] [<c028f124>] (mmc_stop_host+0xd0/0x22c) from [<c02905b8>] (mmc_remove_host+0x18/0x2c)
[  106.460687] [<c02905b8>] (mmc_remove_host+0x18/0x2c) from [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio])
[  106.471864] [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio]) from [<c00302fc>] (process_one_work+0x260/0x3c8)
[  106.483283] [<c00302fc>] (process_one_work+0x260/0x3c8) from [<c0030ac8>] (worker_thread+0x224/0x458)
[  106.492456] [<c0030ac8>] (worker_thread+0x224/0x458) from [<c0036a00>] (kthread+0x80/0x88)
[  106.500684] [<c0036a00>] (kthread+0x80/0x88) from [<c0009ca8>] (kernel_thread_exit+0x0/0x8)
[  106.508991] Code: e1a05000 e3a00001 e3c33001 e1a04001 (e593600c) 
[  106.515109] ---[ end trace ba085a5f8ea6593d ]---
[  106.519881] Unable to handle kernel paging request at virtual address fffffffc
[  106.527056] pgd = c0004000
[  106.529742] [fffffffc] *pgd=a7ffe821, *pte=00000000, *ppte=00000000
[  106.535986] Internal error: Oops: 17 [#2] PREEMPT
[  106.540657] Modules linked in: libertas_sdio libertas pxamci
[  106.546306] CPU: 0    Tainted: G      D W     (3.2.0-rc2 #1)
[  106.551941] PC is at kthread_data+0x4/0xc
[  106.555928] LR is at wq_worker_sleeping+0xc/0xb4
[  106.560514] pc : [<c003648c>]    lr : [<c0032ee0>]    psr: 20000093
[  106.560525] sp : c656fd60  ip : c05bff98  fp : c656fd94
[  106.571916] r10: c659b6ec  r9 : c05bff98  r8 : c656e000
[  106.577104] r7 : c6032000  r6 : c659b768  r5 : c659b600  r4 : 00000000
[  106.583582] r3 : 00000000  r2 : c05bff98  r1 : 00000000  r0 : c659b600
[  106.590064] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  106.597239] Control: 0000397f  Table: a665c018  DAC: 00000015
[  106.602940] Process kworker/0:2 (pid: 1196, stack limit = 0xc656e278)
[  106.609333] Stack: (0xc656fd60 to 0xc6570000)
[  106.613670] fd60: 00000000 c03d278c 00000000 00000001 c656fd9c c659b600 c6032000 c659b6ec
[  106.621801] fd80: c659b5f8 c659b6ec 00000001 c656fd98 c0020acc c03d268c 00000000 c656fd9c
[  106.629935] fda0: c656fd9c c659b734 c602e605 c656fed0 c659b600 c656e000 00000000 c04ef7d8
[  106.638068] fdc0: 00000017 c656fed0 c602e605 c000c51c c656e278 0000000b 0000000c c656fed0
[  106.646200] fde0: 00000000 00000017 00000000 c000ee00 c05bbbcc c659b600 00000000 0000000c
[  106.654333] fe00: 0000000c c000effc c003b1ac c0015e8c c05bbbcc a0000013 00000017 c656fed0
[  106.662466] fe20: 0000000c bf019458 00000000 c000849c 00000025 c656fe65 c05fffaf c656fe48
[  106.670600] fe40: c001dc78 c0015e8c 00000000 80000013 c0036980 205b6a00 36303120 3635322e
[  106.678732] fe60: 5d313930 00000020 00000000 00000000 c656fff8 c0009ca8 00000000 c000c2dc
[  106.686865] fe80: c04eee5e c0036a00 00000004 0056fea8 c00d36d4 0000008a c04f71e0 c00d36d4
[  106.694998] fea0: c656fef0 00000009 bf019458 00000000 c602e605 c03d24dc c03ca92c a0000013
[  106.703130] fec0: ffffffff c656ff04 c602e600 c0008e98 00000001 00000001 00000200 00000000
[  106.711264] fee0: 00000001 c6461f70 c63ff408 00000000 c602e600 bf019458 00000000 c602e605
[  106.719397] ff00: 40000013 c656ff18 c0202f18 c03ca92c a0000013 ffffffff c64cef08 c63ff000
[  106.727530] ff20: c63ff408 c0202f18 c64cef08 c63ff000 00000084 c0295e3c 00000001 c0295150
[  106.735662] ff40: c64f1c00 c63ff000 60000013 00000000 00000009 c028f124 c63ff000 c63ff000
[  106.743796] ff60: c64f1c00 c02905b8 bf019c9c bf019470 bf019af0 c00302fc c05c1b38 c64f1c00
[  106.751929] ff80: c05c1b38 c05c1b38 00000009 c656e000 c64f1c10 c05c1b38 c64f1c10 c0030ac8
[  106.760060] ffa0: c607df14 c656ffd4 c607df14 c64f1c00 c00308a4 00000000 00000000 00000000
[  106.768194] ffc0: 00000000 c0036a00 c0009ca8 00000000 c64f1c00 00000001 c656ffd8 c656ffd8
[  106.776328] ffe0: 00000000 c607df14 c0036980 c0009ca8 00000013 c0009ca8 0340f30e 153b5900
[  106.784471] [<c003648c>] (kthread_data+0x4/0xc) from [<c0032ee0>] (wq_worker_sleeping+0xc/0xb4)
[  106.793132] [<c0032ee0>] (wq_worker_sleeping+0xc/0xb4) from [<c03d278c>] (__schedule+0x10c/0x3a8)
[  106.801975] [<c03d278c>] (__schedule+0x10c/0x3a8) from [<c0020acc>] (do_exit+0x668/0x694)
[  106.810120] [<c0020acc>] (do_exit+0x668/0x694) from [<c000c51c>] (die+0x1f0/0x220)
[  106.817658] [<c000c51c>] (die+0x1f0/0x220) from [<c000ee00>] (__do_kernel_fault+0x64/0x88)
[  106.825880] [<c000ee00>] (__do_kernel_fault+0x64/0x88) from [<c000effc>] (do_page_fault+0x1d8/0x1f0)
[  106.834968] [<c000effc>] (do_page_fault+0x1d8/0x1f0) from [<c000849c>] (do_DataAbort+0x34/0x94)
[  106.843621] [<c000849c>] (do_DataAbort+0x34/0x94) from [<c0008e98>] (__dabt_svc+0x38/0x60)
[  106.851830] Exception stack(0xc656fed0 to 0xc656ff18)
[  106.856848] fec0:                                     00000001 00000001 00000200 00000000
[  106.864979] fee0: 00000001 c6461f70 c63ff408 00000000 c602e600 bf019458 00000000 c602e605
[  106.873110] ff00: 40000013 c656ff18 c0202f18 c03ca92c a0000013 ffffffff
[  106.879705] [<c0008e98>] (__dabt_svc+0x38/0x60) from [<c03ca92c>] (klist_put+0x18/0x9c)
[  106.887679] [<c03ca92c>] (klist_put+0x18/0x9c) from [<c0202f18>] (device_del+0x50/0x1a4)
[  106.895743] [<c0202f18>] (device_del+0x50/0x1a4) from [<c0295e3c>] (sdio_remove_func+0x1c/0x2c)
[  106.904400] [<c0295e3c>] (sdio_remove_func+0x1c/0x2c) from [<c0295150>] (mmc_sdio_remove+0x44/0x78)
[  106.913400] [<c0295150>] (mmc_sdio_remove+0x44/0x78) from [<c028f124>] (mmc_stop_host+0xd0/0x22c)
[  106.922221] [<c028f124>] (mmc_stop_host+0xd0/0x22c) from [<c02905b8>] (mmc_remove_host+0x18/0x2c)
[  106.931063] [<c02905b8>] (mmc_remove_host+0x18/0x2c) from [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio])
[  106.942250] [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio]) from [<c00302fc>] (process_one_work+0x260/0x3c8)
[  106.953665] [<c00302fc>] (process_one_work+0x260/0x3c8) from [<c0030ac8>] (worker_thread+0x224/0x458)
[  106.962840] [<c0030ac8>] (worker_thread+0x224/0x458) from [<c0036a00>] (kthread+0x80/0x88)
[  106.971065] [<c0036a00>] (kthread+0x80/0x88) from [<c0009ca8>] (kernel_thread_exit+0x0/0x8)
[  106.979365] Code: e593313c e5130008 e12fff1e e590313c (e5130004) 
[  106.985555] ---[ end trace ba085a5f8ea6593e ]---
[  106.990144] Fixing recursive fault but reboot is needed!
[  106.995474] Unable to handle kernel paging request at virtual address fffffffc

Sven

#5 lore raw
In reply to Chris Ball
Quoted 122 lines · Chris Ball

Hi,

Quoted 119 lines · Sven Neumann

I've given 3.2-rc2 a try today and the kernel oopsed when going into suspend:

[   20.387912] Freezing user space processes ... (elapsed 0.01 seconds) done.

[ 20.408759] Freezing remaining freezable tasks ... (elapsed 0.01
seconds) done.
[   20.432966] libertas_sdio mmc0:0001:1: mmc0:0001:1: suspend: PM flags = 0x0
[ 20.439978] libertas_sdio mmc0:0001:1: Suspend without wake params --
powering down card
[   23.456061] libertas_sdio mmc0:0001:1: wlan0: command 0x0010 timed out
[ 23.462626] libertas_sdio mmc0:0001:1: wlan0: Timeout submitting

command 0x0010
[   23.470026] libertas_sdio: Resetting card...
[   23.474140] ------------[ cut here ]------------
[   23.479002] WARNING: at fs/sysfs/group.c:138 sysfs_remove_group+0x50/0x11c() [   23.486045] sysfs group c05cb5c8 not found for kobject 'mmc0:0001:1' [   23.492358] Modules linked in: libertas_sdio libertas pxamci

[ 23.498091] [<c000dbb4>] (unwind_backtrace+0x0/0xec) from
[<c001ca10>] (warn_slowpath_common+0x4c/0x64)
[ 23.507467] [<c001ca10>] (warn_slowpath_common+0x4c/0x64) from
[<c001cabc>] (warn_slowpath_fmt+0x30/0x40)
[ 23.517021] [<c001cabc>] (warn_slowpath_fmt+0x30/0x40) from
[<c00d369c>] (sysfs_remove_group+0x50/0x11c)
[ 23.526504] [<c00d369c>] (sysfs_remove_group+0x50/0x11c) from
[<c0202ec4>] (device_del+0x3c/0x1a4)
[ 23.535437] [<c0202ec4>] (device_del+0x3c/0x1a4) from [<c0295dfc>]
(sdio_remove_func+0x1c/0x2c)
[ 23.544127] [<c0295dfc>] (sdio_remove_func+0x1c/0x2c) from
[<c0295110>] (mmc_sdio_remove+0x44/0x78)
[ 23.553161] [<c0295110>] (mmc_sdio_remove+0x44/0x78) from
[<c028f0e4>] (mmc_stop_host+0xd0/0x22c)
[ 23.562016] [<c028f0e4>] (mmc_stop_host+0xd0/0x22c) from [<c0290578>]
(mmc_remove_host+0x18/0x2c)
[ 23.570898] [<c0290578>] (mmc_remove_host+0x18/0x2c) from
[<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio])
[ 23.582138] [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c
[libertas_sdio]) from [<c00302fc>] (process_one_work+0x260/0x3c8)
[ 23.593594] [<c00302fc>] (process_one_work+0x260/0x3c8) from
[<c0030ac8>] (worker_thread+0x224/0x458)
[ 23.602816] [<c0030ac8>] (worker_thread+0x224/0x458) from
[<c0036a00>] (kthread+0x80/0x88)
[ 23.611078] [<c0036a00>] (kthread+0x80/0x88) from [<c0009ca8>]
(kernel_thread_exit+0x0/0x8)
[   23.619409] ---[ end trace 78598ef84f325bdd ]---
[ 23.624011] Unable to handle kernel NULL pointer dereference at

virtual address 0000000c
[   23.632079] pgd = c0004000
[   23.634762] [0000000c] *pgd=00000000
[   23.638351] Internal error: Oops: 17 [#1] PREEMPT
[   23.643016] Modules linked in: libertas_sdio libertas pxamci [   23.648666] CPU: 0    Tainted: G        W     (3.2.0-rc2 #2) [   23.654316] PC is at klist_put+0x18/0x9c
[   23.658213] LR is at device_del+0x50/0x1a4
[   23.662287] pc : [<c03ca8fc>]    lr : [<c0202ed8>]    psr: a0000013 [   23.662298] sp : c6569f18  ip : 40000013  fp : c602e605
[   23.673688] r10: 00000000  r9 : bf019458  r8 : c602e600
[   23.678876] r7 : 00000000  r6 : c6447408  r5 : c64bbe50  r4 : 00000001 [   23.685363] r3 : 00000000  r2 : 00000200  r1 : 00000001  r0 : 00000001

[ 23.691844] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment

kernel
[   23.699106] Control: 0000397f  Table: a65a0018  DAC: 00000035 [   23.704817] Process kworker/0:2 (pid: 1204, stack limit = 0xc6568278) [   23.711218] Stack: (0xc6569f18 to 0xc656a000)

[ 23.715547] 9f00: c65fe008 c6447000
[ 23.723677] 9f20: c6447408 c0202ed8 c65fe008 c6447000 00000084
c0295dfc 00000001 c0295110
[ 23.731810] 9f40: c63e8f00 c6447000 60000013 00000000 00000009
c028f0e4 c6447000 c6447000
[ 23.739944] 9f60: c63e8f00 c0290578 bf019c9c bf019470 bf019af0
c00302fc c05c1b38 c63e8f00
[ 23.748076] 9f80: c05c1b38 c05c1b38 00000009 c6568000 c63e8f10
c05c1b38 c63e8f10 c0030ac8
[ 23.756208] 9fa0: c6083f14 c6569fd4 c6083f14 c63e8f00 c00308a4
00000000 00000000 00000000
[ 23.764341] 9fc0: 00000000 c0036a00 c0009ca8 00000000 c63e8f00
00000000 c6569fd8 c6569fd8
[ 23.772475] 9fe0: 00000000 c6083f14 c0036980 c0009ca8 00000013
c0009ca8 0340f30e 153b5900
[ 23.780618] [<c03ca8fc>] (klist_put+0x18/0x9c) from [<c0202ed8>]
(device_del+0x50/0x1a4)
[ 23.788675] [<c0202ed8>] (device_del+0x50/0x1a4) from [<c0295dfc>]
(sdio_remove_func+0x1c/0x2c)
[ 23.797327] [<c0295dfc>] (sdio_remove_func+0x1c/0x2c) from
[<c0295110>] (mmc_sdio_remove+0x44/0x78)
[ 23.806328] [<c0295110>] (mmc_sdio_remove+0x44/0x78) from
[<c028f0e4>] (mmc_stop_host+0xd0/0x22c)
[ 23.815148] [<c028f0e4>] (mmc_stop_host+0xd0/0x22c) from [<c0290578>]
(mmc_remove_host+0x18/0x2c)
[ 23.823987] [<c0290578>] (mmc_remove_host+0x18/0x2c) from
[<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c [libertas_sdio])
[ 23.835164] [<bf019470>] (if_sdio_reset_card_worker+0x18/0x2c
[libertas_sdio]) from [<c00302fc>] (process_one_work+0x260/0x3c8)
[ 23.846584] [<c00302fc>] (process_one_work+0x260/0x3c8) from
[<c0030ac8>] (worker_thread+0x224/0x458)
[ 23.855760] [<c0030ac8>] (worker_thread+0x224/0x458) from
[<c0036a00>] (kthread+0x80/0x88)
[ 23.863984] [<c0036a00>] (kthread+0x80/0x88) from [<c0009ca8>]
(kernel_thread_exit+0x0/0x8)
[   23.872292] Code: e1a05000 e3a00001 e3c33001 e1a04001 (e593600c)
[   23.878402] ---[ end trace 78598ef84f325bde ]---
[ 23.883135] Unable to handle kernel paging request at virtual address

fffffffc
[   23.890313] pgd = c0004000
[   23.893000] [fffffffc] *pgd=a7ffe821, *pte=00000000, *ppte=00000000 [   23.899244] Internal error: Oops: 17 [#2] PREEMPT
[   23.903915] Modules linked in: libertas_sdio libertas pxamci [   23.909564] CPU: 0    Tainted: G      D W     (3.2.0-rc2 #2) [   23.915199] PC is at kthread_data+0x4/0xc
[   23.919186] LR is at wq_worker_sleeping+0xc/0xb4
[   23.923772] pc : [<c003648c>]    lr : [<c0032ee0>]    psr: 20000093 [   23.923783] sp : c6569d60  ip : c05bff98  fp : c6569d94
[   23.935174] r10: c60336ec  r9 : c05bff98  r8 : c6568000
[   23.940361] r7 : c6032000  r6 : c6033768  r5 : c6033600  r4 : 00000000 [   23.946848] r3 : 00000000  r2 : c05bff98  r1 : 00000000  r0 : c6033600

[ 23.953329] Flags: nzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment

user
[   23.960504] Control: 0000397f  Table: a65a0018  DAC: 00000015 [   23.966207] Process kworker/0:2 (pid: 1204, stack limit = 0xc6568278) [...]

Quoted 8 lines
Quoted 1 line

Hardware is a PXA300 with a Marvell 8868 Wifi module attached over SDIO.

Adding Daniel Drake to CC, for 9a821f5d0fc ("libertas: add sd8686 reset_card support").

Looks like mmc_sdio_remove() calls mmc_remove_card() after the reset_card function has called mmc_remove_host() already.  Maybe if_sdio_reset_card_worker() should call mmc_free_host() as well?

Or simply mmc_hw_reset()?