realtek: Increase zone size for Ethernet driver DMA
authorBirger Koblitz <git@birger-koblitz.de>
Fri, 31 Dec 2021 16:53:40 +0000 (17:53 +0100)
committerPaul Spooren <mail@aparcar.org>
Wed, 2 Feb 2022 09:32:57 +0000 (10:32 +0100)
Set CONFIG_FORCE_MAX_ZONEORDER setting to 13 to allow larger
contiguous memory allocation for the DMA of the Ethernet
driver. Increase the number of entries in the RX ring
to 300.

Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
target/linux/realtek/files-5.10/drivers/net/ethernet/rtl838x_eth.c
target/linux/realtek/rtl838x/config-5.10
target/linux/realtek/rtl838x/config-5.4
target/linux/realtek/rtl839x/config-5.10

index dd3d3b66f970d6008b4affa55f71d4a07c187010..2021e53c39ab6b6e2cd18fda1d3fe22a5946740c 100644 (file)
@@ -35,8 +35,8 @@ extern struct rtl83xx_soc_info soc_info;
  * available in total for all queues.
  */
 #define MAX_RXRINGS    32
-#define MAX_RXLEN      200
-#define MAX_ENTRIES    (200 * 8)
+#define MAX_RXLEN      300
+#define MAX_ENTRIES    (300 * 8)
 #define TXRINGS                2
 #define TXRINGLEN      160
 #define NOTIFY_EVENTS  10
index 539abb9f1268ca7acf64e2f476bad172af4bd383..7d009e095fa7a1fd53f8d1fb8cbec5922c27b55f 100644 (file)
@@ -41,6 +41,7 @@ CONFIG_EARLY_PRINTK_8250=y
 CONFIG_EXTRA_FIRMWARE="rtl838x_phy/rtl838x_8214fc.fw rtl838x_phy/rtl838x_8218b.fw rtl838x_phy/rtl838x_8380.fw"
 CONFIG_EXTRA_FIRMWARE_DIR="firmware"
 CONFIG_FIXED_PHY=y
+CONFIG_FORCE_MAX_ZONEORDER=13
 CONFIG_FW_LOADER_PAGED_BUF=y
 CONFIG_GENERIC_ATOMIC64=y
 CONFIG_GENERIC_CLOCKEVENTS=y
index 5e298797986befa5cfcf20173894233ed5b994f1..7ca59ebcaeae55e000297f269938edc123136120 100644 (file)
@@ -48,6 +48,7 @@ CONFIG_FIXED_PHY=y
 CONFIG_FONT_8x16=y
 CONFIG_FONT_AUTOSELECT=y
 CONFIG_FONT_SUPPORT=y
+CONFIG_FORCE_MAX_ZONEORDER=13
 CONFIG_FW_LOADER_PAGED_BUF=y
 CONFIG_GENERIC_ATOMIC64=y
 CONFIG_GENERIC_CLOCKEVENTS=y
index 92e7b361f89337ffcd973af77f0091d03d653c75..e0707f48e49e996b554f23450c43af3cbe099e52 100644 (file)
@@ -43,6 +43,7 @@ CONFIG_EARLY_PRINTK_8250=y
 CONFIG_EXTRA_FIRMWARE="rtl838x_phy/rtl838x_8214fc.fw rtl838x_phy/rtl838x_8218b.fw rtl838x_phy/rtl838x_8380.fw"
 CONFIG_EXTRA_FIRMWARE_DIR="firmware"
 CONFIG_FIXED_PHY=y
+CONFIG_FORCE_MAX_ZONEORDER=13
 CONFIG_FW_LOADER_PAGED_BUF=y
 CONFIG_GENERIC_ATOMIC64=y
 CONFIG_GENERIC_CLOCKEVENTS=y