Refresh patch to remove fuzz from 16.11.9
[deb_dpdk.git] / debian / patches / nicvf-0009-config-set-cache-line-as-128B-for-generic-arm64.patch
1 From 852572d5db26d1d7d9021648740d9f2e0c4503c1 Mon Sep 17 00:00:00 2001
2 From: Jerin Jacob <jerin.jacob@caviumnetworks.com>
3 Date: Wed, 26 Apr 2017 21:59:19 +0530
4 Subject: [PATCH] config: set cache line as 128B for generic arm64
5
6 armv8 implementations may have 64B or 128B cache line.
7 Setting to the maximum available cache line size in generic config to
8 address minimum DMA alignment across all arm64 implementations.
9
10 Increasing the cacheline size has no negative impact to cache invalidation
11 on systems with a smaller cache line.
12
13 The need for the minimum DMA alignment has impact on functional aspects
14 of the platform so default config should cater the functional aspects.
15
16 There is an impact on memory usage with this scheme, but that's not too
17 important for the single image arm64 distribution use case.
18
19 The arm64 linux kernel followed the similar approach for single
20 arm64 image use case.
21 http://lxr.free-electrons.com/source/arch/arm64/include/asm/cache.h
22
23 Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
24 Acked-by: Jianbo Liu <jianbo.liu@linaro.org>
25 Acked-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
26 ---
27  config/defconfig_arm64-armv8a-linuxapp-gcc | 5 +++++
28  config/defconfig_arm64-dpaa2-linuxapp-gcc  | 1 +
29  config/defconfig_arm64-xgene1-linuxapp-gcc | 1 +
30  3 files changed, 7 insertions(+)
31
32 Origin: http://dpdk.org/browse/dpdk/commit/?id=852572d5db26d1d7d9021648740d9f2e0c4503c1
33 Original-Author: Jerin Jacob <jerin.jacob@caviumnetworks.com>
34 Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/dpdk/+bug/1691659
35 Author: Christian Ehrhardt <christian.ehrhardt@canonical.com>
36 Last-Update: 2017-05-18
37
38 --- a/config/defconfig_arm64-armv8a-linuxapp-gcc
39 +++ b/config/defconfig_arm64-armv8a-linuxapp-gcc
40 @@ -43,6 +43,11 @@
41  CONFIG_RTE_TOOLCHAIN_GCC=y
42  CONFIG_RTE_MAX_LCORE=256
43  
44 +# Maximum available cache line size in arm64 implementations.
45 +# Setting to maximum available cache line size in generic config
46 +# to address minimum DMA alignment across all arm64 implementations.
47 +CONFIG_RTE_CACHE_LINE_SIZE=128
48 +
49  CONFIG_RTE_EAL_IGB_UIO=n
50  
51  CONFIG_RTE_LIBRTE_FM10K_PMD=n
52 --- a/config/defconfig_arm64-dpaa2-linuxapp-gcc
53 +++ b/config/defconfig_arm64-dpaa2-linuxapp-gcc
54 @@ -40,3 +40,4 @@
55  #
56  CONFIG_RTE_MAX_LCORE=8
57  CONFIG_RTE_MAX_NUMA_NODES=1
58 +CONFIG_RTE_CACHE_LINE_SIZE=64
59 --- a/config/defconfig_arm64-xgene1-linuxapp-gcc
60 +++ b/config/defconfig_arm64-xgene1-linuxapp-gcc
61 @@ -32,3 +32,4 @@
62  #include "defconfig_arm64-armv8a-linuxapp-gcc"
63  
64  CONFIG_RTE_MACHINE="xgene1"
65 +CONFIG_RTE_CACHE_LINE_SIZE=64