summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/fw.c
diff options
context:
space:
mode:
authorShaul Triebitz2018-06-06 16:20:58 +0200
committerLuca Coelho2018-10-06 09:25:49 +0200
commit868a1e863f95183f00809363fefba6d4f5bcd116 (patch)
treee9aa9e58965c01af3a7056b62f8a1419921fffa1 /drivers/net/wireless/intel/iwlwifi/mvm/fw.c
parentiwlwifi: mvm: set max TX/RX A-MPDU subframes to HE limit (diff)
downloadkernel-qcow2-linux-868a1e863f95183f00809363fefba6d4f5bcd116.tar.gz
kernel-qcow2-linux-868a1e863f95183f00809363fefba6d4f5bcd116.tar.xz
kernel-qcow2-linux-868a1e863f95183f00809363fefba6d4f5bcd116.zip
iwlwifi: pcie: avoid empty free RB queue
If all free RB queues are empty, the driver will never restock the free RB queue. That's because the restocking happens in the Rx flow, and if the free queue is empty there will be no Rx. Although there's a background worker (a.k.a. allocator) allocating memory for RBs so that the Rx handler can restock them, the worker may run only after the free queue has become empty (and then it is too late for restocking as explained above). There is a solution for that called 'emergency': If the number of used RB's reaches half the amount of all RB's, the Rx handler will not wait for the allocator but immediately allocate memory for the used RB's and restock the free queue. But, since the used RB's is per queue, it may happen that the used RB's are spread between the queues such that the emergency check will fail for each of the queues (and still run out of RBs, causing the above symptom). To fix it, move to emergency mode if the sum of *all* used RBs (for all Rx queues) reaches half the amount of all RB's Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/fw.c')
0 files changed, 0 insertions, 0 deletions