]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: pcie: prefer to load the firmware in one shot
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 30 Apr 2013 11:33:04 +0000 (14:33 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 13 May 2013 16:12:01 +0000 (18:12 +0200)
commitfd067e0cc5d61d464e16df8e91424996511a16d2
treeb7e1979d5a54470820779c6ef418857feb3d8626
parent6c8852a170d91865e9b1fabb271613db54580b27
iwlwifi: pcie: prefer to load the firmware in one shot

Users complained about allocation failures, so we loaded
the firmware in small chunks (PAGE_SIZE). This makes the
firmware restart considerably slower.
So, always prefer to load it in one shot allocating a big
chunk of coherent, and use smaller chunks as a fallback
solution.

On my laptop, this reduces the fw loading time from 120ms
to 20ms.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Reviewed-by: Moshe Island <moshe.island@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/pcie/trans.c