iwlwifi: mvm: Decrease size of the paging download buffer
authorMatti Gottlieb <matti.gottlieb@intel.com>
Wed, 9 Mar 2016 08:54:10 +0000 (10:54 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 20 Mar 2016 10:34:31 +0000 (12:34 +0200)
commitc94d7996db64582770103b178ea4060516d7e646
treebe03a0456e2ef70bb0cd44bb3af0825345e0448a
parent01d11cd12d85e88518eb884891e115cb4bf696a2
iwlwifi: mvm: Decrease size of the paging download buffer

Currently the driver has 2 buffers for paging:
1. paging db - this contains all of the pages that were in the FW
image, that the driver stores for the FW. This is allocated for each
block separately (not contiguous).
2. download buffer - we need to provide this empty buffer for the
iwl_sdio_load_fw_chunk function to copy the requested pages to the shared
memory. This is one big buffer of contiguous memory whose size is the
size of all the blocks that the fw paging section can contain.

This download buffer size is too big, and causes the allocation to fail
sometimes. Since the driver allocates memory for each block separately,
it is not possible for the FW to request all of the pages in one request
(the FW gives an address and size, so blocks need to be contiguous for
this to happen), therefore the FW is limited to request only one block.

Decrease the size of the paging download buffer to be the size of a
paging block.

Signed-off-by: Matti Gottlieb <matti.gottlieb@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw.c
This page took 0.032864 seconds and 5 git commands to generate.