]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
Revert "net: xilinx: axiethernet: Increase TX and RX BD count"
authorRadhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Wed, 17 Apr 2019 15:16:58 +0000 (20:46 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 25 Apr 2019 18:45:05 +0000 (11:45 -0700)
This reverts commit ce37bfc2d48a94c5938838f5befbb48336f556e6.

In 10G + mcdma(32-bit) zcu102 design we are seeing swiotlb buffer full
error when MTU is set to 9000. The reason is default software IO TLB
64MB size is not sufficient. Hence in order to make all configurations
work with the default kernel parameters, reverting BD count increase.

Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/ethernet/xilinx/xilinx_axienet.h

index 0652bab6af1577b90803b12bdeaf854e3452d4f5..de3f1f3097faa97f275c22bb380896581477042b 100644 (file)
@@ -28,8 +28,8 @@
 #define XAE_MAX_JUMBO_FRAME_SIZE (XAE_JUMBO_MTU + XAE_HDR_SIZE + XAE_TRL_SIZE)
 
 /* Descriptors defines for Tx and Rx DMA - 2^n for the best performance */
-#define TX_BD_NUM              512
-#define RX_BD_NUM              512
+#define TX_BD_NUM              64
+#define RX_BD_NUM              128
 
 /* DMA address width min and max range */
 #define XAE_DMA_MASK_MIN       32
 #define XXV_TX_PTP_LEN         12
 
 /* Macros used when AXI DMA h/w is configured without DRE */
-#define XAE_TX_BUFFERS         TX_BD_NUM
+#define XAE_TX_BUFFERS         64
 #define XAE_MAX_PKT_LEN                8192
 
 /**