lantiq: copy Linux 5.10 files in preparation for Linux 5.15 support
[openwrt/openwrt.git] / target / linux / lantiq / patches-5.15 / 0713-v5.17-MIPS-lantiq-dma-increase-descritor-count.patch
1 From 5112e9234bbb89f8dd15c983206bd9107b8436d5 Mon Sep 17 00:00:00 2001
2 From: Aleksander Jan Bajkowski <olek2@wp.pl>
3 Date: Tue, 4 Jan 2022 16:11:42 +0100
4 Subject: [PATCH 713/715] MIPS: lantiq: dma: increase descritor count
5
6 NAT Performance results on BT Home Hub 5A (kernel 5.10.89, mtu 1500):
7
8 Down Up
9 Before 539 Mbps 599 Mbps
10 After 545 Mbps 625 Mbps
11
12 Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
13 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
14 ---
15 arch/mips/include/asm/mach-lantiq/xway/xway_dma.h | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/arch/mips/include/asm/mach-lantiq/xway/xway_dma.h
19 +++ b/arch/mips/include/asm/mach-lantiq/xway/xway_dma.h
20 @@ -8,7 +8,7 @@
21 #define LTQ_DMA_H__
22
23 #define LTQ_DESC_SIZE 0x08 /* each descriptor is 64bit */
24 -#define LTQ_DESC_NUM 0x40 /* 64 descriptors / channel */
25 +#define LTQ_DESC_NUM 0xC0 /* 192 descriptors / channel */
26
27 #define LTQ_DMA_OWN BIT(31) /* owner bit */
28 #define LTQ_DMA_C BIT(30) /* complete bit */