mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-16 07:27:35 +00:00
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:
parent
e27737a0a5
commit
118fff0472
13
repos/dde_linux/patches/iwlwifi_limit_rx_bufs.patch
Normal file
13
repos/dde_linux/patches/iwlwifi_limit_rx_bufs.patch
Normal 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;
|
@ -1 +1 @@
|
||||
f1d1430a9c52da43e837a5d788f312a17100311e
|
||||
0c5bbb2cab108531df25b2c92610ce92c57abc87
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user