From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0091.outbound.protection.outlook.com [65.55.169.91]) by dpdk.org (Postfix) with ESMTP id D1D1C8D9F for ; Mon, 2 Nov 2015 14:17:38 +0100 (CET) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@caviumnetworks.com; Received: from localhost.localdomain (122.167.52.198) by SN1PR0701MB1982.namprd07.prod.outlook.com (10.163.131.21) with Microsoft SMTP Server (TLS) id 15.1.312.18; Mon, 2 Nov 2015 13:17:35 +0000 Date: Mon, 2 Nov 2015 18:47:13 +0530 From: Jerin Jacob To: "Hunt, David" Message-ID: <20151102131710.GA10385@localhost.localdomain> References: <1446212826-19425-7-git-send-email-david.hunt@intel.com> <5633798B.2050708@intel.com> <20151030161106.4657232.16920.465@rehivetech.com> <56339AA9.1060505@intel.com> <20151102063209.GC17659@localhost.localdomain> <56373F59.6080602@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <56373F59.6080602@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [122.167.52.198] X-ClientProxiedBy: BM1PR01CA0067.INDPRD01.PROD.OUTLOOK.COM (25.163.199.39) To SN1PR0701MB1982.namprd07.prod.outlook.com (25.163.131.21) X-Microsoft-Exchange-Diagnostics: 1; SN1PR0701MB1982; 2:ea5UwM66p/CXkBvvpTpQJ2zOqoTRXpHVA/tkQlmVU6H1lyc9YlveJMm0L9vrjE5t8homewFJh2qvxE4R6Y07k8EAJzecA1BK50FxsudGxdIgIJ0+Qi8MEyAOdLyKq97wbm6xHT5Yfv0vKZex/n5cHDCS7Q2/e8DilgFncR1S0hQ=; 3:SD37yTc+p3LTZZMn7JVTdIByNYR/Wcuc9W1ID9+6tO45XpHTMZGN7pKqisHcXIX8hRWgzofgqz7UhF+lbq319iUrTrwk+IzyobqO448tXnqDbCGmEstNAThFhUUThmpNVaZXFdiYpFEdQtPJ9QnuNg==; 25:jAK6WW5I3UTm8gpr41j+/Kt1TOlU0pyEMIVmeyarVMSjyKq2hy6qadbyNiTz2144DoqiWFAlxjIQT02IPXi213F+JuA9Sr59b2qt3uNBhkzKvyhJ6uI6qQirSVfmGLvebEhMgZIXjxB3udQvxA7JqbHQIS5XGnua9V2sCHt4wEcZNXzXvJmgfA/Xz6FK3OkWy/1rewdEro60oYSzqhCp0yv2bgow0h29MlM6ZCI/YR97HfxKAFa7Nd1Fq3p6GkfA2vwFfmP6mzfBailcn8qFwQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0701MB1982; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0701MB1982; 20:yPRq6Ih5iQhT1c1Kil+eP+997rwPphVIvYKelFCl/7I10jQE2u1sV2917zITXuRGufN0zDz3ouJ7/5MsPvJ53zxxaT/Cr8F38EUjwP4RZGQoIQe4k0AtZmNzgJhMvd490+GDrAuXnv2T6yRssd+FTP/8/h5L+h/cZaFmwzNKVN2atrNF2YIu1IutDkgbmxKQv6qHhwsxZApN/Qd+qy52iCt6ryqfuCZOOM6Et9yVEaHRZC1rUKWLfvoweDvR3v39B3RcK4x3cyigcoUOVS5Z0TDgmqxayWjLNMXWjSDtQj2Doh0zQWuRx4571Rw/5JFFOTq9q4z/iJmMStdOPxpjVGDsNidbxLwNBbG/YBaE6j2FTCZL9V+6f3AKic4jxk2BrYezNKEHFCSerdgPZY9DDS10HwDA75Vvl6pDYLlrmOXRqhz5E4vVBt5bcvaFBnpT+5ampeJV+B77wKjrRCzF04kDilyixyV0xgP7OMxMyEm3C7JH5CKRWQeFTHSs/zRAbbIM2uC5b57lkjnNKvfXo4AVpy1o5r6owvzd9V8ekZ7//UB27iGOEDqnLO5gTSJdjY12ei9XZrE/ZmcHSFeqHA1kEoFu7o/MnE86P00Atmg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(10201501046)(3002001); SRVR:SN1PR0701MB1982; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0701MB1982; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0701MB1982; 4:LwCE03bUC12v4zJ6QsOa3WYkaFpu7Bd3Bnqi6ulJI1uc+ZRpttsaoymo5eqZeSsXNYtucL4Y213DvsEyo0A+gFnCRY+zne982/1414QwZMwp2P/oL/3vvJBjTABFCvgN01FyuIpplYQxs2IwI41+wE0j7lo3R7k7DYx2I3CZEGNH3j/Cbn/cC0BQCdhBaJOljr1HME95SXKvKkMaSP19ZmJ/VXy1kVaz1bDqID5W3hRbiQeQSyfMUWannzVDkvvB02UvmXZlGOzyUs5ZP3l44NTMgMgwhn+0r5l6CBo/TdxaDajAhdBQ/Tm6LtIOBZzG1aE0shjYdbyo8Nj9oyphOgraQITIB88KCSq0YiE9+sSOYcVXbZSAYP6oLxK0BJdH X-Forefront-PRVS: 0748FF9A04 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6069001)(199003)(24454002)(129404003)(189002)(479174004)(33656002)(106356001)(93886004)(83506001)(87976001)(86362001)(575784001)(105586002)(15380165006)(46406003)(5004730100002)(189998001)(19580395003)(61506002)(50466002)(42186005)(5007970100001)(54356999)(47776003)(97736004)(97756001)(2950100001)(50986999)(76176999)(92566002)(66066001)(101416001)(19580405001)(4001350100001)(5001920100001)(81156007)(122386002)(110136002)(5001960100002)(5008740100001)(77096005)(23726002)(15975445007)(40100003)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0701MB1982; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0701MB1982; 23:SBqt3vHf9q6zX3CbNX4CXYjW0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m7+gPTWh5pDxoGOUVA1UoF8RLaXWeol50VaoE1thZ2?= =?us-ascii?Q?0iE9mX5VlvkakeUcSwt+Jz2bzk+IKwJU5tSRbPMo7SP8K9+PEAezeG2zRP3Y?= =?us-ascii?Q?tDMGoevEiTT0x8jCoEIiHPtl8asPLDdsPEBX151l2qwwYhHKKPyR5uwB8pnR?= =?us-ascii?Q?K3pX5wmhvvFCtgSwBdZKbtQVYirJFYGE0tH7UXAT9eFo92YXukW8AaC0SNFG?= =?us-ascii?Q?dvT2YgUZsgMtRljXD7dCo85qaeeKoRHX2TWf49q4LFonbN6HnsD3NunVwm/u?= =?us-ascii?Q?WwEDkCBHEpIrUGAAt7sCDAc82x+0d346Exb1badTRSC/JuHM77yen0dsVuJR?= =?us-ascii?Q?l/Yru+9c+0kvj8rAHrWy/4xQEQ287iKJAFsWUKyRu?= X-Microsoft-Exchange-Diagnostics: 1; SN1PR0701MB1982; 5:EHjGtLqLbWYPSO6c+boCJXQPBIsEms1HrbBkjtQdzoRy0q8l0G6sT1++ljhUbw31TeTcG47t6d27HKtFpbSMWlHTQoXib/dH1WIba24bhX0qaVwW+2msli+nCWi5Jg2GLBLcfPv7Zx8kqFs3MHJLpg==; 24:05qbfM84VTrhJyfrKB2rVtY87BZAssIpQa0ZjJrIZERtihzhZdMEq4eu/qw46Ra1X0PL9OHupEFC8ZdE23lzrYzsCrTZR6+RY/AhcKi7eIY=; 20:puML2h2/Hd3vm1jLKuWlubpbyeTlLuFM9Ld3qxrzuncDB5ySXZCfOxjfrNGx5UjKMVEuKkM7b+jxgUrHQfyBlg== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2015 13:17:35.3821 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0701MB1982 Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3 6/6] test: add checks for cpu flags on armv8 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, 02 Nov 2015 13:17:39 -0000 On Mon, Nov 02, 2015 at 10:47:53AM +0000, Hunt, David wrote: > On 02/11/2015 06:32, Jerin Jacob wrote: > >On Fri, Oct 30, 2015 at 04:28:25PM +0000, Hunt, David wrote: > > --snip-- > > > > >Hi Jan and Dave, > > > >I have reviewed your patches for arm[64] support. Please check the > >review comments. > > Hi Jerin, > > I'm looking at the comments now, and working on getting the suggested > changes merged into the patch-set. > > >Cavium would like to contribute on armv8 port and remaining libraries > >(ACL, LPM, HASH) implementation for armv8. Currently i am re-basing > >our ACL,HASH libraries implementation based on existing patches. > >Happy to work with you guys to have full fledged armv8 support for DPDK. > > > >Jerin > > Thanks for that, it's good news indeed. > > >other query on rte_cpu_get_flag_enabled for armv8, > >I have tried to run the existing patches on armv8-thunderX platform. > >But there application start failure due to mismatch in > >rte_cpu_get_flag_enabled() encoding. > > > >In my platform rte_cpu_get_flag_enabled() works based on > >AT_HWCAP with following values[1] which different from > >existing lib/librte_eal/common/include/arch/arm/rte_cpuflags.h > > > >[1]http://lxr.free-electrons.com/source/arch/arm64/include/uapi/asm/hwcap.h > > > >In order to debug this, Could provide the following > >values in tested armv8 platform. Look like its running 32bit compatible > >mode in your environment > > I'm using a Gigabyte MP30AR0 motherboard with an 8-core X-Gene, Running a > 4.3.0-rc6 kernel. > Here's the information on the cpu_flags issue you requested: > > >AT_SYSINFO_EHDR: 0x3ff859f0000 > >AT_??? (0x26): 0x430f0a10 > >AT_HWCAP: fb > >AT_PAGESZ: 65536 > >AT_CLKTCK: 100 > >AT_PHDR: 0x400040 > >AT_PHENT: 56 > >AT_PHNUM: 7 > >AT_BASE: 0x3ff85a00000 > >AT_FLAGS: 0x0 > >AT_ENTRY: 0x401900 > >AT_UID: 0 > >AT_EUID: 0 > >AT_GID: 0 > >AT_EGID: 0 > >AT_SECURE: 0 > >AT_RANDOM: 0x3ffef1c7988 > >AT_EXECFN: /bin/sleep > >AT_PLATFORM: aarch64 > > root@mp30ar0:~# LD_SHOW_AUXV=1 sleep 1000 > AT_SYSINFO_EHDR: 0x7f7956d000 > AT_HWCAP: 7 > AT_PAGESZ: 4096 > AT_CLKTCK: 100 > AT_PHDR: 0x400040 > AT_PHENT: 56 > AT_PHNUM: 7 > AT_BASE: 0x7f79543000 > AT_FLAGS: 0x0 > AT_ENTRY: 0x401900 > AT_UID: 0 > AT_EUID: 0 > AT_GID: 0 > AT_EGID: 0 > AT_SECURE: 0 > AT_RANDOM: 0x7ffcaf2e48 > AT_EXECFN: /bin/sleep > AT_PLATFORM: aarch64 > If am not wrong existing rte_cpu_get_flag_enabled() implementation should be broken in your platform also for arm64. as I could see only AT_HWCAP not AT_HWCAP2 and AT_HWCAP is 0x7 that means your platform also follows http://lxr.free-electrons.com/source/arch/arm64/include/uapi/asm/hwcap.h and the implmentation is FEAT_DEF(SWP, 0x00000001, 0, REG_HWCAP, 0) // not correct for arm64 FEAT_DEF(HALF, 0x00000001, 0, REG_HWCAP, 1) // not correct for arm64 FEAT_DEF(THUMB, 0x00000001, 0, REG_HWCAP, 2) // not correct for arm64 FEAT_DEF(A26BIT, 0x00000001, 0, REG_HWCAP, 3) FEAT_DEF(FAST_MULT, 0x00000001, 0, REG_HWCAP, 4) FEAT_DEF(FPA, 0x00000001, 0, REG_HWCAP, 5) FEAT_DEF(VFP, 0x00000001, 0, REG_HWCAP, 6) FEAT_DEF(EDSP, 0x00000001, 0, REG_HWCAP, 7) FEAT_DEF(JAVA, 0x00000001, 0, REG_HWCAP, 8) FEAT_DEF(IWMMXT, 0x00000001, 0, REG_HWCAP, 9) FEAT_DEF(CRUNCH, 0x00000001, 0, REG_HWCAP, 10) FEAT_DEF(THUMBEE, 0x00000001, 0, REG_HWCAP, 11) FEAT_DEF(NEON, 0x00000001, 0, REG_HWCAP, 12) FEAT_DEF(VFPv3, 0x00000001, 0, REG_HWCAP, 13) FEAT_DEF(VFPv3D16, 0x00000001, 0, REG_HWCAP, 14) FEAT_DEF(TLS, 0x00000001, 0, REG_HWCAP, 15) FEAT_DEF(VFPv4, 0x00000001, 0, REG_HWCAP, 16) FEAT_DEF(IDIVA, 0x00000001, 0, REG_HWCAP, 17) FEAT_DEF(IDIVT, 0x00000001, 0, REG_HWCAP, 18) FEAT_DEF(VFPD32, 0x00000001, 0, REG_HWCAP, 19) FEAT_DEF(LPAE, 0x00000001, 0, REG_HWCAP, 20) FEAT_DEF(EVTSTRM, 0x00000001, 0, REG_HWCAP, 21) FEAT_DEF(AES, 0x00000001, 0, REG_HWCAP2, 0) FEAT_DEF(PMULL, 0x00000001, 0, REG_HWCAP2, 1) FEAT_DEF(SHA1, 0x00000001, 0, REG_HWCAP2, 2) FEAT_DEF(SHA2, 0x00000001, 0, REG_HWCAP2, 3) FEAT_DEF(CRC32, 0x00000001, 0, REG_HWCAP2, 4) FEAT_DEF(AARCH32, 0x00000001, 0, REG_PLATFORM, 0) FEAT_DEF(AARCH64, 0x00000001, 0, REG_PLATFORM, 1) Am I missing something ? > >root@arm64:/export/dpdk-arm64# zcat /proc/config.gz | grep CONFIG_COMPAT > ># CONFIG_COMPAT_BRK is not set > >CONFIG_COMPAT_BINFMT_ELF=y > >CONFIG_COMPAT=y > >CONFIG_COMPAT_NETLINK_MESSAGES=y > > root@mp30ar0:~# zcat /proc/config.gz | grep CONFIG_COMPAT > # CONFIG_COMPAT_BRK is not set > CONFIG_COMPAT_OLD_SIGACTION=y > CONFIG_COMPAT_BINFMT_ELF=y > CONFIG_COMPAT=y > > > >root@arm64:/export/dpdk-arm64# cat /proc/cpuinfo > >Processor : AArch64 Processor rev 0 (aarch64) > >processor : 0 > >processor : 1 > --snip-- > >processor : 46 > >processor : 47 > >Features : fp asimd aes pmull sha1 sha2 crc32 > >CPU implementer : 0x43 > >CPU architecture: AArch64 > >CPU variant : 0x0 > >CPU part : 0x0a1 > >CPU revision : 0 > > root@mp30ar0:~# cat /proc/cpuinfo > processor : 0 > Features : fp asimd evtstrm > CPU implementer : 0x50 > CPU architecture: 8 > CPU variant : 0x0 > CPU part : 0x000 > CPU revision : 1 > > processor : 1 > Features : fp asimd evtstrm > CPU implementer : 0x50 > CPU architecture: 8 > CPU variant : 0x0 > CPU part : 0x000 > CPU revision : 1 > > processor : 2 > Features : fp asimd evtstrm > CPU implementer : 0x50 > CPU architecture: 8 > CPU variant : 0x0 > CPU part : 0x000 > CPU revision : 1 > > processor : 3 > Features : fp asimd evtstrm > CPU implementer : 0x50 > CPU architecture: 8 > CPU variant : 0x0 > CPU part : 0x000 > CPU revision : 1 > > processor : 4 > Features : fp asimd evtstrm > CPU implementer : 0x50 > CPU architecture: 8 > CPU variant : 0x0 > CPU part : 0x000 > CPU revision : 1 > > processor : 5 > Features : fp asimd evtstrm > CPU implementer : 0x50 > CPU architecture: 8 > CPU variant : 0x0 > CPU part : 0x000 > CPU revision : 1 > > processor : 6 > Features : fp asimd evtstrm > CPU implementer : 0x50 > CPU architecture: 8 > CPU variant : 0x0 > CPU part : 0x000 > CPU revision : 1 > > processor : 7 > Features : fp asimd evtstrm > CPU implementer : 0x50 > CPU architecture: 8 > CPU variant : 0x0 > CPU part : 0x000 > CPU revision : 1 > > root@mp30ar0:~# > > Hope this helps. > > Regards, > Dave. >