Bug 15653

Summary: iwlwifi fails on high order allocations
Product: Drivers Reporter: maximilian attems (max)
Component: network-wirelessAssignee: Reinette Chatre (reinette.chatre)
Status: CLOSED CODE_FIX    
Severity: normal CC: linville, reinette.chatre
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.33.1 Subsystem:
Regression: No Bisected commit-id:

Description maximilian attems 2010-03-30 03:41:13 UTC
example:

[155099.276880] NetworkManager: page allocation failure. order:4, mode:0x40d0
[155099.276888] Pid: 21182, comm: NetworkManager Not tainted 2.6.33-2-amd64 #1
[155099.276890] Call Trace:
[155099.276902]  [<ffffffff810b54af>] ? __alloc_pages_nodemask+0x56d/0x5e2
[155099.276908]  [<ffffffff810b4409>] ? __get_free_pages+0x9/0x46
[155099.276928]  [<ffffffffa0378452>] ? iwl_tx_queue_init+0xf1/0x2dd [iwlcore]
[155099.276936]  [<ffffffffa03771d9>] ? _iwl_grab_nic_access+0x3e/0xc3 [iwlcore]
[155099.276945]  [<ffffffffa03787b4>] ? iwl_txq_ctx_reset+0x176/0x1fa [iwlcore]
[155099.276971]  [<ffffffffa0372437>] ? iwl_hw_nic_init+0x123/0x143 [iwlcore]
[155099.276979]  [<ffffffffa0474cb6>] ? __iwl_up+0x179/0x323 [iwlagn]
[155099.276985]  [<ffffffffa0475528>] ? iwl_mac_start+0x6c8/0x842 [iwlagn]
[155099.276991]  [<ffffffff810f7adc>] ? pollwake+0x53/0x5b
[155099.276996]  [<ffffffff81042cb5>] ? default_wake_function+0x0/0x9
[155099.277002]  [<ffffffff81038803>] ? __wake_up+0x30/0x44
[155099.277007]  [<ffffffff8125ca50>] ? netlink_broadcast+0x266/0x29d
[155099.277020]  [<ffffffffa0314aa6>] ? ieee80211_open+0x27b/0x66e [mac80211]
[155099.277031]  [<ffffffffa02514da>] ? cfg80211_netdev_notifier_call+0x3c7/0x3dd [cfg80211]
[155099.277038]  [<ffffffff812438ad>] ? dev_open+0xa4/0xe6
[155099.277042]  [<ffffffff81242e88>] ? dev_change_flags+0xaf/0x16d
[155099.277047]  [<ffffffff8124b783>] ? do_setlink+0x289/0x356
[155099.277053]  [<ffffffff8124bea5>] ? rtnetlink_rcv_msg+0x0/0x1f5
[155099.277057]  [<ffffffff8124b961>] ? rtnl_setlink+0x111/0x122
[155099.277061]  [<ffffffff8124bf09>] ? rtnetlink_rcv_msg+0x64/0x1f5
[155099.277066]  [<ffffffff8125ceb5>] ? netlink_rcv_skb+0x34/0x7c
[155099.277070]  [<ffffffff8124be9f>] ? rtnetlink_rcv+0x1f/0x25
[155099.277074]  [<ffffffff8125cca9>] ? netlink_unicast+0xe2/0x148
[155099.277078]  [<ffffffff8125d3dd>] ? netlink_sendmsg+0x23f/0x252
[155099.277083]  [<ffffffff81232de3>] ? sock_sendmsg+0x83/0x9b
[155099.277087]  [<ffffffff81232de3>] ? sock_sendmsg+0x83/0x9b
[155099.277097]  [<ffffffff8123bc2f>] ? copy_from_user+0x13/0x25
[155099.277101]  [<ffffffff8123bfe5>] ? verify_iovec+0x49/0x84
[155099.277105]  [<ffffffff812330b8>] ? sys_sendmsg+0x225/0x2af
[155099.277110]  [<ffffffff81232e5d>] ? sockfd_lookup_light+0x1a/0x50
[155099.277114]  [<ffffffff8123487f>] ? sys_sendto+0xe8/0x117
[155099.277118]  [<ffffffff81234307>] ? sys_recvmsg+0x48/0x56
[155099.277124]  [<ffffffff81008ac2>] ? system_call_fastpath+0x16/0x1b
[155099.277127] Mem-Info:
[155099.277129] Node 0 DMA per-cpu:
[155099.277133] CPU    0: hi:    0, btch:   1 usd:   0
155099.277136] CPU    1: hi:    0, btch:   1 usd:   0
[155099.277138] Node 0 DMA32 per-cpu:
[155099.277142] CPU    0: hi:  186, btch:  31 usd:   0
[155099.277145] CPU    1: hi:  186, btch:  31 usd:  49
[155099.277152] active_anon:79636 inactive_anon:88961 isolated_anon:30
[155099.277153]  active_file:20475 inactive_file:26822 isolated_file:12
[155099.277155]  unevictable:1 dirty:44 writeback:172 unstable:0
[155099.277156]  free:4680 slab_reclaimable:7245 slab_unreclaimable:9425
[155099.277158]  mapped:12535 shmem:12821 pagetables:5971 bounce:0
[155099.277161] Node 0 DMA free:3904kB min:60kB low:72kB high:88kB active_anon:808kB inactive_anon:2548kB active_file:1420kB inactive_file:2916kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15344kB mlocked:0kB dirty:0kB writeback:0kB mapped:520kB shmem:28kB slab_reclaimable:1812kB slab_unreclaimable:1012kB kernel_stack:32kB pagetables:28kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
[155099.277176] lowmem_reserve[]: 0 969 969 969
[155099.277181] Node 0 DMA32 free:14816kB min:3948kB low:4932kB high:5920kB active_anon:317736kB inactive_anon:353296kB active_file:80480kB inactive_file:104372kB unevictable:4kB isolated(anon):120kB isolated(file):48kB present:992512kB mlocked:4kB dirty:176kB writeback:688kB mapped:49620kB shmem:51256kB slab_reclaimable:27168kB slab_unreclaimable:36688kB kernel_stack:2640kB pagetables:23856kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:42 all_unreclaimable? no
[155099.277197] lowmem_reserve[]: 0 0 0 0
[155099.277201] Node 0 DMA: 270*4kB 201*8kB 40*16kB 0*32kB 1*64kB 0*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 3904kB
[155099.277215] Node 0 DMA32: 1184*4kB 1164*8kB 48*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 14816kB
[155099.277228] 86645 total pagecache pages
[155099.277230] 26506 pages in swap cache
[155099.277233] Swap cache stats: add 503800, delete 477294, find 151025/207691
[155099.277235] Free swap  = 1963664kB
[155099.277238] Total swap = 2285824kB
[155099.282535] 255664 pages RAM
[155099.282538] 5326 pages reserved
[155099.282540] 88132 pages shared
[155099.282542] 196334 pages non-shared
[155099.282546] iwlagn 0000:03:00.0: kmalloc for auxiliary BD structures failed
[155099.282600] iwlagn 0000:03:00.0: Tx 14 queue init failed
[155099.283207] iwlagn 0000:03:00.0: Unable to init nic


 lspci -vv -s 03:00.0
03:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61)
        Subsystem: Intel Corporation Device 1111
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 29
        Region 0: Memory at f7f00000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: <access denied>
        Kernel driver in use: iwlagn

can f36d04abe684f9e2b07c6ebe9f77ae20eb5c1e84 and friends please be pushed out to stable@kernel.org.

easily reproducible on any kernel on this x61s since 2.6.26, just need a small couple of suspend cycles, kill firefox from time to time and maybe running some funky physics code.
Comment 1 Reinette Chatre 2010-03-30 23:19:53 UTC
(In reply to comment #0)
> 
> can f36d04abe684f9e2b07c6ebe9f77ae20eb5c1e84 and friends please be pushed out
> to stable@kernel.org.

It is already queued for 2.6.33 and should be in next stable release. See http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git;a=blob;f=queue-2.6.33/iwlwifi-use-dma_alloc_coherent.patch;h=1e90f1a5503d428bcbbd17fab5d415a8b3ac295b;hb=c2cde1eaaa4733154b664f1a0f0905fadcb4cb06
Comment 2 maximilian attems 2010-04-06 21:13:36 UTC
indeed fixed with iwlwifi-use-dma_alloc_coherent.patch in 2.6.32.11

will open new separate bug if allocations would still fail.
It don't seem to be so easily triggable now.

thank you