]> 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)
commit648ac3492c4f2e28380067ed83dd47f7192e6c0d
treeb7e1979d5a54470820779c6ef418857feb3d8626
parent6e5c7be7bb5c0ca5039897230b020f879e0378a1
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