iwlwifi: mvm: attempt to allocate smaller queues
authorJohannes Berg <johannes.berg@intel.com>
Sat, 25 Apr 2020 10:04:50 +0000 (13:04 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 8 May 2020 06:52:44 +0000 (09:52 +0300)
commit92f78d4b15a40f6b055be73bbecc2e79b10638f0
tree7ac152eea6f7083795fe800cbf45d95e16548323
parent752d95a2bf6fe207d612fc1febd621df714f5dde
iwlwifi: mvm: attempt to allocate smaller queues

We currently attempt to allocate queues that are 512 entries long,
but that requires 32 KiB memory, which may not be available, at
least not contiguously. If we fail to allocate, attempt to use a
smaller queue all the way down to 16 entries (which fit into a
single page).

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20200425130140.c8548d7cc08a.I5059c410e628726cbce98d6311b690c632d00f97@changeid
drivers/net/wireless/intel/iwlwifi/mvm/sta.c