From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0089.outbound.protection.outlook.com [157.56.110.89]) by dpdk.org (Postfix) with ESMTP id A9DDA1DB1 for ; Mon, 30 Nov 2015 11:22:53 +0100 (CET) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@caviumnetworks.com; Received: from localhost.localdomain (122.167.201.210) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (TLS) id 15.1.331.20; Mon, 30 Nov 2015 10:22:50 +0000 Date: Mon, 30 Nov 2015 15:52:31 +0530 From: Jerin Jacob To: Jianbo Liu Message-ID: <20151130102228.GA16187@localhost.localdomain> References: <1448631268-10692-1-git-send-email-jerin.jacob@caviumnetworks.com> <1448631268-10692-3-git-send-email-jerin.jacob@caviumnetworks.com> <20151129234829.GA2913@qq.com> <20151130054749.GA11512@localhost.localdomain> <20151130170038.GA3472@qq.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20151130170038.GA3472@qq.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [122.167.201.210] X-ClientProxiedBy: MA1PR01CA0012.INDPRD01.PROD.OUTLOOK.COM (25.164.117.19) To BLUPR0701MB1714.namprd07.prod.outlook.com (25.163.85.140) X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 2:p59jLSTG5A7+BKmx+7DrsE2KLJGpPterKca4coOPjbvEYjEcIdn/I8BclyQDgwGU+eBU7+k7kNgnSX5bTCrLAGweD+O3gqCIQK7hHw9/jAUyL0pgmNJYjE6lWPyrHfWnzrcXoeIAArm+u7QmoBw9/w==; 3:EbcQURT5Yo5n+IQ7tfBhp3kxYaNDGnU7JXKcNAOZup7U/a4Zt+dEBIVqAuVeFna9CnViofaozMhOXsva74JRn/UFzGRBnSqeMtwtgi5HFX4DkYhWA4pMMt33iVdCf2V2; 25:ePg51VkZfhLIF4wa/ULxjFI2/Lp8cg+d3ZN99U6vkoVdNSVjheI9zbSRTY/Gcyh+PU4NtH995i7n/1V7D8WuJf8PxaJnmgjZwddjdGTuKfrDR8c16XAUKPak7E3gStINM+pRwI1ZXLIlR8s8p/6assJJOCYJjYQfudVj/GAci7gXgkw9uE91+R4P0OWdQcc6EwTQ4MZ9NLA+ZqsMcBxCbpI/3nqUvY248ur0FYCbErFj7d3eg8xciAKyI/ei/2w1gLvPq9a66ObUWi1SIEBA8A== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 20:+KA4M8MGd9vcPEl83ld31mwQL4aJVCVyUAIMbzKUMxxq3PqFlNRY7k/er549Y7khCtMxKc7rfzs6bD2o285anjtE5OULE6SgXEtM3I/Pk3K9E0AA8y7yOuAe8qQWiMhkLYUz1eZx0+s/fIleatYyguV6sJNa3zOYtjJGLJSgAjqy5opvphXCKBpDjtaYtnDysl82z+J1xazAwvByANLv/WtoCP3aBuh9UIm9LhCwI2TXR285ePuW06UMz3FFyqqAgt3I9nHyRb45nxVWImjnquLIt8fy95XnDc1yA/TQxjtKrVGeUGeEznMqyXcvsGJs2Oi1WhL2h1iXZb1dHF0QrH9q7yHbUGdKehvvZcaD2oPX6YsKClUXlQagHVj4jExDL7pKJ9F8jwm5TyYquvoAG+qkO+K6fhXmC2ogF0ncLEosNn5sBiUGwZBVkeFiOW7nwE68DuK5gnjb6HUkeEy47olr2HEj/c5x15fNVZIe7vjc7NiatM/Zet+QjBeTonH7Dud/uExCr1p1NRAK/UrN1kQWjdOaFgnWXhwwUAA36uMGrRhWz/z26NuQmOTsz1rg8DoMnow+KzrwZEYLmi0mv2GFW7DDckefsHf1uAK/kc0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(10201501046)(3002001); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 4:MYKkf+dv6iF4NSXSqZcgOhvdujVIt6GIWsV9Iqz5Q3ImHa3fFMddk6uHmIPvJ64MlKpZRqo34JRUL595Hwz/C2XjJrwPzp09h3clSGID29eh2ucTTvkSDwDk5CnahzwirJsZfIDxYG2C4vIzqo14Te/S/wDhV5F8ttPWExUNUFPfdZ9MXRjlW8w5xBhDnD4EA6Pz0WP81yFuWhtmkICstizuRN3GmHVcdaiy0Phuiw38W8G07xZyN1FWdx+t+zzALe4t9eWLWPTjRy7X5Y0X/jB/vpdKZGrJQWoMaoKPy6ZUD/mg5xvKOc+It9BIYJsxlz1/sbGYjN66bg3blE8euAphSQtnVyfEPfrUCUavW2EH8HmKUO75qs1ieMMpVct2jbfz84XdCOr+hxFZK65m0HGodeRE+jM0+Hy8zV2wlsheHlHOyShhqodMSkOI3XWR X-Forefront-PRVS: 0776C39A48 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(6009001)(6069001)(24454002)(51914003)(189002)(199003)(52044002)(42186005)(93886004)(110136002)(54356999)(5004730100002)(47776003)(5008740100001)(76176999)(66066001)(19580405001)(97736004)(4001350100001)(50466002)(92566002)(101416001)(106356001)(81156007)(105586002)(19580395003)(46406003)(5001960100002)(97756001)(83506001)(77096005)(189998001)(50986999)(2950100001)(87976001)(86362001)(61506002)(23726003)(6116002)(33656002)(1076002)(3846002)(1096002)(40100003)(122386002)(586003)(7099028)(21314002)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?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0a6qmuhqXmYvo5ZMHuztBAZ?= =?us-ascii?Q?pZGsISRjAPX4TphyXY4OEKsmAx3MmfxDpi55HBsLwmIvsx9uz7LrdZ7l/EOf?= =?us-ascii?Q?78plgTfsGU6PoBz4taHnQGIsywB72e6yy3BW2/F8aSOgbHhnJO+wcD8sXAD8?= =?us-ascii?Q?SYy2epsqeT3bA8+/sN7D0pNoHb+YHErekXzfRpLjNYY/fOCVlyxvkFguqAQi?= =?us-ascii?Q?wZ5ikE+JhVBe7lWTfVNI9zXzFBHifCYSkj1Kkn0r6iz8yJXvhgHt8AZN1JeT?= =?us-ascii?Q?toTIrKMyOsXGJOdp2d6UjEx1zRJZ1jDxPdO7ITrowCnZlrE9XfVt6j7Osktu?= =?us-ascii?Q?ffCzVcYGsVmekPljwaiWqOP378d3yeYRR+uVFn9xVIcxd+w3gl5B5NWUrExU?= =?us-ascii?Q?4vLYUlIMyq3Hh2e0HRy9W1vkCmDWvh89PrdQlNkGneb2hFTJmAfar2BOctKW?= =?us-ascii?Q?dCvrS7HTtuvciHiamtIa7ow2tSZYrEQx5+8tso27K3Bu8?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 5:ixBWzFiN+JWcDVy/NZNuzcykRm7Jc6Xq/PLa0OiQx5krr3mXQ3v7XyF78bPi1NFcYVZR3pSbh2Yk/IhDPjGAWHfXrNAafFaHd3yncOf0ftUkvOeRJy2QoYdjkRDeHzjF2atBK08Rlf7OE+1huo1soA==; 24:IxsMKMmo+qqaf0Zry6OotxcRiE6pS9MKwoNVr2A6hcn2b+6ye1fTkUpwxfCZqx3CtncLZiDJXpgAtpbIqQiEasQP8Blt5W8DXyU4rBvfaZc= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2015 10:22:50.1364 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3 2/2] config: disable CONFIG_RTE_SCHED_VECTOR for arm X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2015 10:22:54 -0000 On Mon, Nov 30, 2015 at 12:03:21PM -0500, Jianbo Liu wrote: > On Mon, Nov 30, 2015 at 11:17:52AM +0530, Jerin Jacob wrote: > > On Sun, Nov 29, 2015 at 06:48:29PM -0500, Jianbo Liu wrote: > > > On Fri, Nov 27, 2015 at 07:04:28PM +0530, Jerin Jacob wrote: > > > > Commit 42ec27a0178a causes compiling error on arm, as RTE_SCHED_VECTOR > > > > does support only SSE intrinsic, so disable it till we have neon support. > > > > > > > > Fixes: 42ec27a0178a ("sched: enable SSE optimizations in config") > > > > > > > > Signed-off-by: Jerin Jacob > > > > --- > > > > config/common_arm64 | 1 + > > > > config/defconfig_arm-armv7a-linuxapp-gcc | 1 + > > > > 2 files changed, 2 insertions(+) > > > > > > > > diff --git a/config/common_arm64 b/config/common_arm64 > > > > index 5e5e303..d6a9cb9 100644 > > > > --- a/config/common_arm64 > > > > +++ b/config/common_arm64 > > > > @@ -46,3 +46,4 @@ CONFIG_RTE_LIBRTE_I40E_PMD=n > > > > CONFIG_RTE_LIBRTE_LPM=n > > > > CONFIG_RTE_LIBRTE_TABLE=n > > > > CONFIG_RTE_LIBRTE_PIPELINE=n > > > > +CONFIG_RTE_SCHED_VECTOR=n > > > > diff --git a/config/defconfig_arm-armv7a-linuxapp-gcc b/config/defconfig_arm-armv7a-linuxapp-gcc > > > > index 82143af..9924ff9 100644 > > > > --- a/config/defconfig_arm-armv7a-linuxapp-gcc > > > > +++ b/config/defconfig_arm-armv7a-linuxapp-gcc > > > > @@ -57,6 +57,7 @@ CONFIG_RTE_LIBRTE_ACL=n > > > > CONFIG_RTE_LIBRTE_LPM=n > > > > CONFIG_RTE_LIBRTE_TABLE=n > > > > CONFIG_RTE_LIBRTE_PIPELINE=n > > > > +CONFIG_RTE_SCHED_VECTOR=n > > > > > > > > # cannot use those on ARM > > > > CONFIG_RTE_KNI_KMOD=n > > > > -- > > > > 2.1.0 > > > > > > > > > > Hi Jerin, > > > > Hi Jianbo, Thanks for the review. > > Looking forward to seeing contributions to DPDK-ARM. > > We definitely need more hands to make best DPDK-ARM port. > > > > > In this way, we still have to modify two files each time a new feature > > > is added but not verified on ARM architectures. > > > Since disabling those drivers and libs are common for both armv7 and > > > armv8, can you put them in one config file, for example: common_arm? > > > > I initially thought of making it a single common_arm file, Then > > later I realized that it may not be worth as, > > > > 1) If a new feature added to DPDK which has the dependency on SSE then > > implementer has to disable on "n" platforms(tile, powerpc..).By unifying > > single arm config will make it "n-1" so it's like "n" vs "n-1" not "n" > > vs "2n" > > I'm talking about your patch, which is for ARM platform only. And the > two files we need to modify are armv7 and armv8 configs. > If you want to include other platforms, your patch is still incomplete :) > That was the reply for the concern you have raised for the new feature. Not specific to my patch. My patch is complete, as I have checked other platforms before sending the patch they have already disabled the sched library :-) > > > > 2) AFAIK, PCI NIC PMD's are not yet supported in ARMv7 platform yet > > unlike ARMv8. > > Till we have PCI NIC PMD support, armv7 config needs to be updated > > for each and every new PMD inclusion. > > > > 3) neon capabilities are bit different in ARMv7 and ARMv8. > > For instance, "vqtbl1q_u8" neon intrinsics is not defined in ARMv7 which used > > in implementing ACL-NEON. i.e Need additional efforts to extend > > the armv8 neon code to armv7(or vice versa).So it's better to > > have fine control on the config file to enable selective features > > > > The differences between ARMv7 and ARMv8 can't justify we only add new > config for ARMv8. And this file is trying to disable drivers and libs > which is not supported on ARM platforms for now. > I thought difference and point 3 should justify the need for different config. No? > > 3) anyway we may need common_armv8 file to address the "IMPLEMENTATION > > DEFINED" parts of the armv8 specific in future, like frequency at cntvct_el0 > > runs ? optional features like armv8 crypto instruction support or not? > > It's armv8 v1 or v2 ? atomic instruction support for not? its a long > > list > > > > I think these "IMPLEMENTATION DEFINED" features should be configured > in the different platform (machine) config files. Can this > common_arm64 solve your concern? Yes, "IMPLEMENTATION DEFINED" features of armv8(default behavior in common_arm64). I think it makes sense not mix with armv7. > > > 4)I would like to see ARM configs as different config like i686, X86_64 > > in DPDK > > > > Basically, we need to use the default common_linux/bsd to enable the > new-added features in DPDK. > > > > > > It is not like common_arm64, which is solely for armv8 platform. > > > Actually, the arm64 common config is defconfig_arm64-armv8a-linuxapp-gcc > > > > I thought so, Then I realized that we may have > > FreeBSD, arm compiler, clang, llvm support in future. > > > > > you can include it in the thunderx or xgene1 config files respectively, > > > and overriding some special config if needed. > > > > Agree. existing patch addresses this > > > > If there exists a defconfig_arm64-armv8a-linuxapp-gcc, why needs to > add a new file(common_arm64) in your patch? > The defconfig_arm64-armv8a-xxx-xxx can be treated as a config for a > common ARMv8 platform, and one which other specific ARMv8 platforms > can base on. > I was thinking to have the common_arm64 file so that "FreeBSD, arm compiler, clang, llvm" future version can include it directly. But I agree with you. defconfig_arm64-armv8a-linuxapp-gcc can be treated as a config for a common file for defconfig_arm64-*-linuxapp-gcc(anyway its same, just the toolchain added in defconfig_arm64-*-linuxapp-gcc) I will send out new version with defconfig_arm64-armv8a-linuxapp-gcc as the base instead of common_arm64 file. > > > > > > On the other hand, If we support the features in the future by > > > replacing SSE intrinsic with NEON, we just need to remove the lines in one place. > > > > See point 3 above, > > > > I feel rather than coming with the framework to fix the exceptions it's > > better to fix the exceptions its self. > > I am planning to send out next patch by today for supporting > > CONFIG_RTE_LIBRTE_LPM,CONFIG_RTE_LIBRTE_TABLE,CONFIG_RTE_LIBRTE_PIPELINE. > > > > i.e only a few entries will be common. Please find below the list, > > the reason for setting as "n" for armv7 and armv8 is different. > > lack of PCI PMD supports vs SIMD support. > > > > CONFIG_RTE_IXGBE_INC_VECTOR=n > > CONFIG_RTE_LIBRTE_VIRTIO_PMD=n > > CONFIG_RTE_LIBRTE_IVSHMEM=n > > CONFIG_RTE_LIBRTE_FM10K_PMD=n > > CONFIG_RTE_LIBRTE_I40E_PMD=n > > > > Yes, but what if new SSE enhancement is added on x86, we need to add > it to the list. CONFIG_RTE_IXGBE_INC_VECTOR=n CONFIG_RTE_LIBRTE_VIRTIO_PMD=n CONFIG_RTE_LIBRTE_IVSHMEM=n CONFIG_RTE_LIBRTE_FM10K_PMD=n CONFIG_RTE_LIBRTE_I40E_PMD=n IMO, creating a config file with above as "common_arm" file doesn't make sense to me. It looks odd and we are not there because functional difference in current ARMv7 and ARMv8 port. Feel free to submit the RFC patch if you think it makes sense. Let me know your plan. I can hold off my v4 for "updating defconfig_arm64-armv8a-linuxapp-gcc as base instead of common_arm64 file" > > > - Jerin > > > > > > > > Regards, > > > Jianbo