Bug? 2.6.29-rc1 on cat /proc/net/wireless

Dan Williams dcbw at redhat.com
Mon Jan 12 10:19:22 EST 2009


On Sun, 2009-01-11 at 19:50 +0000, Jonathan Cameron wrote:
> Sorry all if this has already been fixed, but with 2.6.29-rc1 +
> Colin McCabe's alignment fix of the other day (can't see the
> relevance but that's what I'm running) just got the following
> with an sdio connected 8686. I'll try tracking this one down
> tomorrow if I don't hear anything.

It looks like the 'proc' handling has changed recently, which causes
'cat /proc/net/wireless' to exhibit this bug because Libertas may sleep
while asking the hardware for the dropped packet and retry statistics
(CMD_802_11_GET_LOG) in get_wireless_stats().  Apparently sleeping in
get_wireless_stats() was never really allowed (it just didn't complain),
so we'll have to use cached stats, or just not return discard/retry
stats at all (like mac80211).

Dan

> cat /proc/net/wireless
> BUG: scheduling while atomic: cat/1272/0x00000002
> Modules linked in: max1363 ring_sw iio_trig_periodic_rtc industrialio rtc_pxa27x rtc_core libertas_sdio libertas lib80211 pxamci mmc_core
> [<c00227c8>] (dump_stack+0x0/0x14) from [<c00318f4>] (__schedule_bug+0x4c/0x58)
> [<c00318a8>] (__schedule_bug+0x0/0x58) from [<c020c61c>] (__sched_text_start+0x64/0x308)
>  r4:c1116000
> [<c020c5b8>] (__sched_text_start+0x0/0x308) from [<bf025b3c>] (__lbs_cmd+0xd8/0x154 [libertas])
> [<bf025a64>] (__lbs_cmd+0x0/0x154 [libertas]) from [<bf021eec>] (lbs_get_wireless_stats+0xec/0x26c [libertas])
> [<bf021e00>] (lbs_get_wireless_stats+0x0/0x26c [libertas]) from [<c020a0b4>] (get_wireless_stats+0x30/0x3c)
> [<c020a084>] (get_wireless_stats+0x0/0x3c) from [<c020a24c>] (wireless_seq_show+0x38/0x110)
> [<c020a214>] (wireless_seq_show+0x0/0x110) from [<c00a668c>] (seq_read+0x2ac/0x404)
>  r5:c1117ee8 r4:c1194000
> [<c00a63e0>] (seq_read+0x0/0x404) from [<c00c6ec4>] (proc_reg_read+0xac/0xc0)
> [<c00c6e18>] (proc_reg_read+0x0/0xc0) from [<c008d2f0>] (vfs_read+0xc8/0x14c)
> [<c008d228>] (vfs_read+0x0/0x14c) from [<c008d620>] (sys_read+0x4c/0x74)
>  r7:00000000 r6:c1117f78 r5:c1387c80 r4:c1387ca0
> [<c008d5d4>] (sys_read+0x0/0x74) from [<c001ef00>] (ret_fast_syscall+0x0/0x2c)
>  r8:c001f0a4 r7:00000003 r6:00000003 r5:bea33c64 r4:00001000
> Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
>  face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
>   eth0: 0002   95.  -36.  -81.       0    363      0   1179 236246        0
> 
> 
> _______________________________________________
> libertas-dev mailing list
> libertas-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/libertas-dev




More information about the libertas-dev mailing list