From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0086.outbound.protection.outlook.com [104.47.34.86]) by dpdk.org (Postfix) with ESMTP id E5C332935 for ; Fri, 28 Apr 2017 06:00:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RAokKf/K5xVouLj5oyYOSfuV0DAIa59JhUMtLqMhlY8=; b=hkReO45VmUubkA2K06WirTXPEuCwWE+wbKtOt7DSx1GzzckYxkeVbK3EVOrdWhdkx/lnB52PNsdasI1vlLgXPAJgZpinYy/BsSYd6IXYLPgkgCyObmVSEsOyBJIEw9xHQhsU329UB61AbPAw8zeBADJujh8me39eTa6GXiAdjiE= Authentication-Results: canonical.com; dkim=none (message not signed) header.d=none;canonical.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from [10.167.104.233] (111.93.218.67) by BY1PR0701MB1722.namprd07.prod.outlook.com (10.162.111.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.13; Fri, 28 Apr 2017 04:00:12 +0000 To: Jerin Jacob , dev@dpdk.org References: <20170426162919.15397-1-jerin.jacob@caviumnetworks.com> Cc: thomas@monjalon.net, jianbo.liu@linaro.org, hemant.agrawal@nxp.com, christian.ehrhardt@canonical.com From: santosh Message-ID: <23be3769-8dca-4528-5d57-eaa5da06cd72@caviumnetworks.com> Date: Fri, 28 Apr 2017 09:29:59 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20170426162919.15397-1-jerin.jacob@caviumnetworks.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BMXPR01CA0043.INDPRD01.PROD.OUTLOOK.COM (10.174.214.29) To BY1PR0701MB1722.namprd07.prod.outlook.com (10.162.111.141) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 669728e8-c7e6-414b-c44b-08d48deb1360 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY1PR0701MB1722; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 3:6uzI24Rdf1JdtNG8WDp919qfeN3HCJTUaQ6RrwfR7N1ZsLVpDzKwXh6J5PGcHYOgsXujjvgot2eutsycAk9IJDU1ogcgLgUxYBe9GMULjsiGmWWjhjcU1oRWf8rUbdy3Zwxn+a3OUOqssVFJ+ymlPoKUh9IzmD2lmXe9doZ4vUGaDA7lXVy6I+6TqZd+BEjri97b2NOaqGib1pOSEp7VJOVGRkH6QJ5NYXq6GkY6waurDmTiXOAcT6YZriCqPFiD8b+nZJ+vwArTYey0oxC8HEwqeZ5b46YKTucE11z6mVm9syWMP79mpBtTsNXZkqUlzGkhS19ErSIOZ7d78TwzGA==; 25:FVDqcoouKBLi3F46qmYIGnkDhkLxYF2uZ3RwrkQi6ktislRhKdQAu/RrzIMFnQe68NfUG4t1rSOAtfvhLYIxl/Kkvn54T10KcrTnTUlMvLlggrT6hRRk+f3W3W//K3s5mUdymVU/h1VET8XYDe4XeHUl8cVADJ6ck9XeiWWcIkWLaxAxOPeSOZ3F2S/tkdzSJJ8RhrnG8pk4byPRNBH8hKQiaKGPptdCfqo4iwRVelQ3S8Nmkn1dZcVmZ+VdoZfcjrCn/lIZp1UI94Zs08oa532mzzUkeepakVhMau/G6rLsj2ASm36CVDOxucA9vqzLf5uYGPVrZxy1I2YycEBdm5xbZM88wSs95e3BOJRwgUvMgN8SaRJRH30pDVnw9F8FSuo6iTc6DFNBMqOWU0w3eHJWvRSv+76zy4qqaBt/N/VCJSliUAtTMZMXRJAajvDAQqDpqDSPCgxyItUxYYFjWA== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 31:grZbQQLyvgXzu/AWZSle47+v4malzBJVG9/vGxpXK2EEhFULpOqSgNTzAMtMr+qrhIFNvpCqmSS3FX1VveoeTzx2ZY1x+qsQ+sT78THjt34wPAA0X+vZUvjgAinNWL9h3qRjjrpx8FSpqbnOmL4YW3h6CTE1D/e8MXEBkJ3cptD9WpHhkOWVveFeEPdfF7o3VnTT+gd4LMWIJp4k1FnqJe1VY1GHW4/q+5TFuFhc6RsbOMbZ5XeTMq220wtVg1cJ; 20:U/rwjT5EghG8EwlcYKjU1cjifR9WmY4LIG9JUGc0JaScLExLwbF3Mr5AYp41P+tQLyZttKGLXE4R9bWoD8+Doi00tPFPOjFNa667hB/yhbFe73qW39AT/8IkmJRDf7iAu8KyXwqexOJINKdK9sq5QhRTCgKU8Ngvld854vBpKAr5NQd25vhSv1VCIRGdsla/B6gOaA6fyuCY+LbwXtUb2mB3RY4QykdzEO9y0mWNqsd0fJpCbzgJnzqxbdd6VdpffnFVll1KG5gcqDMDQYmGldEykPKOOtEmUsND2NfcO473KK6omIE0ErZMqzKQBnIJaVBTdbEYgsSuN95ZcdFNTWLmFxp+vCcNDbiwo7/2Gvih2MSQv3CXQzDDhpjNtVZ11bIUEWGe1FHFRk7BAjb1TbgLQZCRVl8ZvgucP+9VA4QUVQ+cgyQk1yejPMvuNi5VShn3j4vxI13ztc628u+FDPIY1izfgPWy1LWGWHLGvoydFP91STqm5ubDywCXPH6nmPNHWulh1Ouvj9UIFty9kXkrd9gzHVmZ8g7vQrE2Qwtm91YP2+MTlMpS/+CtWzYGP0r7PHaNCcecT87ELYFufvpPELq+22EpR/NZzi3Aa7Q= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(58145275503218); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(3002001)(10201501046)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(20161123560025)(20161123555025)(20161123564025)(6072148); SRVR:BY1PR0701MB1722; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1722; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 4:uVUL2rTVPmYoLH5Ch4tkLJfg0N4vbn8UiK4KGBQmRuKNASp7rPLIhMPE7FuezElkiyCDzGDKgumJJyzPmqgGZZbDX9MDJ9rW/6WfaNpBLpAyqG189NWHR/m5/iFQEW4mlw4NXw3W+gVWX7HOfTV1Dyh1fQwGuf+6h7L6qamkQPc06+nNzHiy+IFlEGVzotyCemg1sbQDvFBh9YWfZRkqc2EemsZUygKd0yLrNztz/bp8u8KZNf1OwbReWenpI6gxStomG9rxzNqUkzkgY4Jgj7AbAUROoaKZH0fDrDKJCVh6J5hdMbQMuPKY+aTMCL1dYD1dILcDi0vOoa5niWj9yKZ/aSXN5jAwzbPFqtg7gPZ5bQtDL+TxlJABkx8Ep7tD+NtouPArIG8sn3Wlvyj6YnjQ7cAarRONFsv3vQOWcAJ3kstX6QfUWus8cUS6yhv7N1bCejCNGHBnSQ5VwNs7ZxFOqh0xDqYsuHFUO0N9wMIuRo2AVCoXgzieTeZtMJDptH4eoOgdWYnRWkHNcb7JgoVT0rDhNw0qg4w3e1de1tmqgyFKvXpGw2u+thKvtXhXjZ9W4wyex2G6FV8f2tv74w9WzD6jsWMX3MkQgJE4z07K+9AuXAvTH/lDrQfOUWY13gybY8EI4eMQnKCbus1ghe7i4Y8l8QwOFhU105dZL68yZN//0/44jdOD6WE301i3jOaFjOt0BfVNKafO34a/TH1RLl0gFjI/dm5osp2siJq4HkpCyhxNT7/tsHLX672R X-Forefront-PRVS: 029174C036 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(39450400003)(39840400002)(39410400002)(39400400002)(39850400002)(24454002)(377454003)(189998001)(31696002)(3846002)(6116002)(33646002)(15380165006)(47776003)(65956001)(31686004)(54356999)(76176999)(2906002)(4001350100001)(65806001)(575784001)(66066001)(42186005)(50986999)(5660300001)(36756003)(38730400002)(229853002)(77096006)(25786009)(6486002)(305945005)(7736002)(42882006)(65826007)(2950100002)(6666003)(83506001)(110136004)(966004)(53936002)(6246003)(8676002)(81166006)(8656002)(50466002)(230700001)(5009440100003)(6306002)(4326008)(86152003)(23746002)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1722; H:[10.167.104.233]; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BY1PR0701MB1722; 23:08/yTC0ogYerTqd/uFcsRQHe+WHEV+VVUsp?= =?Windows-1252?Q?QtoBlZbmYfcW+mO+4IPq3jJ/HIMRWWz6bz3Of5/ctWZ68p6QbSsxdR//?= =?Windows-1252?Q?vEDxWP2y5DQeKulog+cfNy3m63xanWxzysjJ+vSbxaVUwpgtfXWYXVZ3?= =?Windows-1252?Q?jD8vGi8q5Cm2wXppWbWWeykDYukM+wRLVCABUoe9cPj8p5yjmPKVWrsX?= =?Windows-1252?Q?KveJ55q0l5n+Fth2ZAHkgUPsXLqYSp0jQjUbfFFvxw30URmiYvsYw/Ps?= =?Windows-1252?Q?t36oXmL0fd8cHs+qxAnXQqkuTWcejfaBDJhSI2eyAAeJAADv0s1ZkebY?= =?Windows-1252?Q?2iUoPHgBtdCWb+fn7sjIilS7kTCn6rJb49FoPoiDn0EvR8lx1C1seGQJ?= =?Windows-1252?Q?qht5yzbBHIrYA+rgVqne1/KHXWgneh7AQCqUMJMAHsTCVhDiXyfLjAfi?= =?Windows-1252?Q?rmilUKKhItnMXtXbEUW2HYgOZxITV8oV5ty2WEiyTFJseoZIDbVa65Pq?= =?Windows-1252?Q?J3Umku5Ib7p+EuYx1/1VZxKKlOyZ4DGKAsL5vhdQQQ9H7dKLZXQ9Exto?= =?Windows-1252?Q?HW/gJtoMgdogRQ7gT0qGrCMVbRc5VEWk8MVruFlnRL2Txw9p/BKHArEK?= =?Windows-1252?Q?JD2Uo//139H/rlE59Xw15gacI1wLorMG7jg/pOHZJSEfpUAmhZb22gEC?= =?Windows-1252?Q?j/OFH3jv4ZYVsDl5T/7c/bNKNYxgXkI71JTiIb6sxKtdTn04xXYqEuFT?= =?Windows-1252?Q?MjbIu9mGA5dlHJPcX1YBEb7ETgXzz64xl8qi94iN6JAYzggC6U4co825?= =?Windows-1252?Q?+cJjyhyjbAm0IcoE/C2WdIapw6XoHzhmxTX7aa4FmS4SFUOmFVEmKBeS?= =?Windows-1252?Q?O9Sc6CDOrx0c3Rez20AZlc8MQLpi5BUgLAZYoEn7BA0oRGT6GdlL0td4?= =?Windows-1252?Q?MaZ6ZSL3O+D/V4qXIDVpwSJGIV3U/vT4+ZlUIEkHQdQVsEdCGP9MF297?= =?Windows-1252?Q?fbxKwUjxLBOMpCkqDzm9v1zHXPMFCGNEGDRDtn1OHoeVlcQeuO7rJxYh?= =?Windows-1252?Q?9vAIO3mwMTWGRlN4adBIKz0ttLJtsKbJyEPKpbm0Q8UN8BsojofoP44P?= =?Windows-1252?Q?/F4z1L+P6vBP08SE0+c1pVYYzGi2bCwnL/BwT5HxlfZDeCcLBrW7PnmN?= =?Windows-1252?Q?jzkCJchxr2Vc5r9anLdmjsmpmWL1qpY/+ojbmbDFrLas7LrhCVmfwBix?= =?Windows-1252?Q?PbfipszA3FNhascj+23nUQR6MYvczQYH9Kodznq5zxcnqiEVc5DTiOU2?= =?Windows-1252?Q?+iazoJy0CnvKL25SPYIc1ZrmBYWvfaWQ0pPZIp+3aw9OJwZ6o/PyrYgD?= =?Windows-1252?Q?Fl3MMp6WFqkoAGvR/iThguSlU+dssf7l1ZeEB+45DBBSpLF7TNYKQXBz?= =?Windows-1252?Q?v3y2d6Re7fjSuMZtijM5B+ySOqFpWnMiWSsb0TzBlRDK/jjstnHkXXc1?= =?Windows-1252?Q?W7yxqH4XnmSK7urtGm5zwjIrvJ8C4?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 6:ZQEu5De41BXaV3CsIetOc9a1UUKa1N1leJ60bhWoF3gGFMM1O0hJc9CcOz+cDq+vpUBhqb/+n61La5toZVeTjDy12qhoQbVB7YjugwAdJ2hWn/jBSiohQkYMNcaxbqh31Qq3AUxrk15s7nm0aUQZWIWbuQ/hKH7AiRd6zYGel8tlfCysAOWvI4uhqpNf6WIX2GKLJQcYG+e8pQuz42KcJwNmAeUcUuxDwNc8aCC97DD1tzXaxlj11CRmbb+o1D5eSv1HataVnxDNtD6wwadcg8hX4e/ZOb68sAE0bQ7LBVyotNNY063pJUKH6qh4W0erFdUxBU6h0A5P+s8zL/LRRuBdijbenTtRd4cxWDRCMHAh9r5TvzpqbacOBHxijSvCZc+aW0PvRrG6edYC+s3tqi9RBFv7EXnmzn8GMSskFS3hQGR7VIq3xWj6SY3Oikm9VdEHBIb1cW3vWbDCrgOI+s1H0h0Z8/Ajg9LOVw7ol3PP/X6vUyzkgiErFd8jvH8HRwtxL+ESKX4B3GSnUlblpg==; 5:qbfVoGpdPp0BIdv3pOG4PmeC4JY66OnmfvVseFj/JOoSp43gvbNyPTb+dxDptatNKcR3judNplfF01XPMuuc66iLTLWbmBOjrjiStAGpoetrGp55Y7Km+vbuzEHYF/XWRor/oSxYbdGu8NjPMC8Bp/6tlIjWvJc1wfDce+PjSas=; 24:wrp27iPrApTMYPGbVzQUjeLO+u2nT6awG/rTLKgQjF5jvjlOnbZhf05HUgbeV6XGyPSybYUH41sO/rSEVx7OwFvBWbM+S8CFWBxkqg6uuuw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 7:YZPoBAU31rd06nyiWJmn8odyIGW+P865MSRqkfyTpMnYmbXl1q6ZupYOYbJ95S9BfdSWjlcSiI/FYykQvby2mohGkD271bokPChpPD8l36/hKtI9RyEHp55Zv/7lThYMVuUBhl+FKrzAuaiJphe/b5VXp3pm1EyD1AN6Smqd5luzQI3IN9uh24/9XTgX0GxezDpIvwSRFmdvVceDcVKgcyjhyR71AWLBAFLLxbXJNxhadSzC4k6jrEUrVH7rFNiqqu2ynwHlEJIFGYRq6gnju+nR+uHxYKU11AR2N7OLjlkqHijZCtBhHzTatNYlZMTbVmAyvucouqIO4gRsruT+IA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Apr 2017 04:00:12.7966 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1722 Subject: Re: [dpdk-dev] [PATCH] config: set cache line as 128B in the generic arm64 config X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2017 04:00:17 -0000 Hi Jerin, On Wednesday 26 April 2017 09:59 PM, Jerin Jacob wrote: > armv8 implementations may have 64B or 128B cache line. > Setting to the maximum available cache line size in generic config to > address minimum DMA alignment across all arm64 implementations. > > Increasing the cacheline size has no negative impact to cache invalidation > on systems with a smaller cache line. > > The need for the minimum DMA alignment has impact on functional aspects > of the platform so default config should cater the functional aspects. > > There is an impact on memory usage with this scheme, but that's not too > important for the single image arm64 distribution use case. > > The arm64 linux kernel followed the similar approach for single > arm64 image use case. > http://lxr.free-electrons.com/source/arch/arm64/include/asm/cache.h > > Signed-off-by: Jerin Jacob > --- > config/defconfig_arm64-armv8a-linuxapp-gcc | 5 +++++ > config/defconfig_arm64-dpaa2-linuxapp-gcc | 1 + > config/defconfig_arm64-xgene1-linuxapp-gcc | 1 + > 3 files changed, 7 insertions(+) > > diff --git a/config/defconfig_arm64-armv8a-linuxapp-gcc b/config/defconfig_arm64-armv8a-linuxapp-gcc > index 65888cef1..0faa2d3a3 100644 > --- a/config/defconfig_arm64-armv8a-linuxapp-gcc > +++ b/config/defconfig_arm64-armv8a-linuxapp-gcc > @@ -42,6 +42,11 @@ CONFIG_RTE_FORCE_INTRINSICS=y > CONFIG_RTE_TOOLCHAIN="gcc" > CONFIG_RTE_TOOLCHAIN_GCC=y > > +#Maximum available cache line size in arm64 implementations. Setting to maximum > +#available cache line size in generic config to address minimum DMA alignment > +#across all arm64 implementations. > +CONFIG_RTE_CACHE_LINE_SIZE=128 > + > CONFIG_RTE_EAL_IGB_UIO=n > > CONFIG_RTE_LIBRTE_FM10K_PMD=n > diff --git a/config/defconfig_arm64-dpaa2-linuxapp-gcc b/config/defconfig_arm64-dpaa2-linuxapp-gcc > index 010cb8092..314a0eceb 100644 > --- a/config/defconfig_arm64-dpaa2-linuxapp-gcc > +++ b/config/defconfig_arm64-dpaa2-linuxapp-gcc > @@ -41,6 +41,7 @@ CONFIG_RTE_ARCH_ARM_TUNE="cortex-a57+fp+simd" > # > CONFIG_RTE_MAX_LCORE=8 > CONFIG_RTE_MAX_NUMA_NODES=1 > +CONFIG_RTE_CACHE_LINE_SIZE=64 > > CONFIG_RTE_PKTMBUF_HEADROOM=256 > > diff --git a/config/defconfig_arm64-xgene1-linuxapp-gcc b/config/defconfig_arm64-xgene1-linuxapp-gcc > index f096166b7..d8e544728 100644 > --- a/config/defconfig_arm64-xgene1-linuxapp-gcc > +++ b/config/defconfig_arm64-xgene1-linuxapp-gcc > @@ -32,3 +32,4 @@ > #include "defconfig_arm64-armv8a-linuxapp-gcc" > > CONFIG_RTE_MACHINE="xgene1" > +CONFIG_RTE_CACHE_LINE_SIZE=64 Acked-by : Santosh Shukla Thanks,!