iwlwifi: limit rx bufs to 2048

Recent devices are configured with 4096 RX pages that lead to an
increased memory usage. For the moment lower the amount to 2048
and treat in potientially lower throughput for more conservative
memory consumption.

Fixes #4801.
This commit is contained in:
Josef Söntgen 2023-04-03 11:37:45 +02:00 committed by Christian Helmuth
parent e27737a0a5
commit 118fff0472
3 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,13 @@
--- src/linux/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
+++ src/linux/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
@@ -1656,6 +1656,10 @@
trans_pcie->num_rx_bufs = RX_QUEUE_SIZE;
}
+ /* limit some recent cards that use 4096 */
+ if (trans_pcie->num_rx_bufs > 2048)
+ trans_pcie->num_rx_bufs = 2048;
+
ret = iwl_trans_init(iwl_trans);
if (ret)
goto out_free_trans;

View File

@ -1 +1 @@
f1d1430a9c52da43e837a5d788f312a17100311e
0c5bbb2cab108531df25b2c92610ce92c57abc87

View File

@ -11,6 +11,7 @@ DIR(linux) := src/linux
#
PATCH_FILES := i915_irq.patch i915_fb_resize.patch \
iwlwifi_enable_irq_before_pnvm.patch \
iwlwifi_limit_rx_bufs.patch \
usb_message.patch \
workqueue_deadlock.patch
PATCHES += $(addprefix patches/,$(PATCH_FILES))