From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx169.postini.com [74.125.245.169]) by kanga.kvack.org (Postfix) with SMTP id F387C6B00A8 for ; Wed, 12 Sep 2012 02:53:50 -0400 (EDT) Message-ID: <1347432846.4293.0.camel@jlt4.sipsolutions.net> Subject: Re: iwl3945: order 5 allocation during ifconfig up; vm problem? From: Johannes Berg Date: Wed, 12 Sep 2012 08:54:06 +0200 In-Reply-To: <20120912055712.GE11613@merlins.org> (sfid-20120912_075811_640589_74AB6505) References: <20120909213228.GA5538@elf.ucw.cz> <20120910111113.GA25159@elf.ucw.cz> <20120911162536.bd5171a1.akpm@linux-foundation.org> <1347426988.13103.684.camel@edumazet-glaptop> <20120912055712.GE11613@merlins.org> (sfid-20120912_075811_640589_74AB6505) Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Marc MERLIN Cc: Eric Dumazet , Andrew Morton , Pavel Machek , David Rientjes , sgruszka@redhat.com, linux-wireless@vger.kernel.org, wey-yi.w.guy@intel.com, ilw@linux.intel.com, Andrew Morton , Mel Gorman , linux-kernel@vger.kernel.org, linux-mm@kvack.org On Tue, 2012-09-11 at 22:57 -0700, Marc MERLIN wrote: > On Wed, Sep 12, 2012 at 07:16:28AM +0200, Eric Dumazet wrote: > > On Tue, 2012-09-11 at 16:25 -0700, Andrew Morton wrote: > > > > > Asking for a 256k allocation is pretty crazy - this is an operating > > > system kernel, not a userspace application. > > > > > > I'm wondering if this is due to a recent change, but I'm having trouble > > > working out where the allocation call site is. > > > -- > > > > (Adding Marc Merlin to CC, since he reported same problem) > > > > Thats the firmware loading in iwlwifi driver. Not sure if it can use SG. > > > > drivers/net/wireless/iwlwifi/iwl-drv.c > > > > iwl_alloc_ucode() -> iwl_alloc_fw_desc() -> dma_alloc_coherent() > > > > It seems some sections of /lib/firmware/iwlwifi*.ucode files are above > > 128 Kbytes, so dma_alloc_coherent() try order-5 allocations > > Thanks for looping me in, yes, this looks very familiar to me :) > > In the other thread, Johannes Berg gave me this patch which is supposed to > help: http://p.sipsolutions.net/11ea33b376a5bac5.txt Yes, but that patch won't apply to iwlegacy as is. However, I'm pretty sure that it should be possible to solve the issue in the same way in iwlegacy. johannes -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org