From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0087.outbound.protection.outlook.com [65.55.169.87]) by dpdk.org (Postfix) with ESMTP id B18AE8E94 for ; Tue, 3 Nov 2015 14:09:58 +0100 (CET) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@caviumnetworks.com; Received: from localhost.caveonetworks.com (111.93.218.67) by BY2PR0701MB1974.namprd07.prod.outlook.com (10.163.155.20) with Microsoft SMTP Server (TLS) id 15.1.312.18; Tue, 3 Nov 2015 13:09:55 +0000 From: Jerin Jacob To: Date: Tue, 3 Nov 2015 18:39:01 +0530 Message-ID: <1446556153-18845-1-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MAXPR01CA0048.INDPRD01.PROD.OUTLOOK.COM (25.164.146.148) To BY2PR0701MB1974.namprd07.prod.outlook.com (25.163.155.20) X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1974; 2:cbKAUYid4NUNXyaNo0SaLKa2lzlXxdzlLRlN1YX+WX3ima789QremkPGt0dMjfLz0kltzSXdDU6ifVHIIpuRLQ+3q+bpuDTRAUMHbr2C18PklXnPlNXSihjKcqQfFIAlGvw8GO8buotf90lbTmN6XgG9XJoFfXA4kswdUSrXk+c=; 3:BouvftVukvio2MhEw6Am2IGhUE5tY1WasvEOPvaqzMnxeDGEBUvc7NqGb3ggT6v0ttFko72dAokeIt5mGCRw9Mz6KxS2J56Fl/7YD/wGy78XbbOMMNQ4B6WNtYVE65sj8K5PTt6wZbnEQcu3OH7p3w==; 25:KQa94yobSrRTvuH7CF0+n7GD+FHvRBGH+fvQpOnDJlS8sBaOJpyZ5vNZRr+Cdd4GT0BK7e3i6QGZm60qU97WoUjYTTHRY3FpeHAIA24CUA2u9BMNZ+PiA1wHWXW5zAx478WxvQ4XFK/FLGVvw7loFAWIrtRonyfpa30gurmb2mLJ2ADWJsz/aD+lxk6F3j/d6wE5oLnqSdjgpP1qQ1E0XAYUOnVWOSILt+Vxel9W9srNFdDEDA80PEZgD6oKkxIdKLNErawq2c9doCniXLCqwQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0701MB1974; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1974; 20:c72z5kWY6SCNFm/aOohTUu653R2trQdFmZ0XqiiqOVIxkN0yW59C1eQ3Xha1PS2/mCQG20pEvEQrWYb5y8uAO8j9lsOxPe7T8kdWtT7zwZ8QGRk5WduTZkKo9BY+140PSQ/BDRGoHcgV8OeUcwUB9Cys6bQCCe8prYy8FxtWot7l7hWHnmWcjRoQF5hGKrIFqlb1ok4VROVP/AY8/GiupugApqdF9X0tliKA5uVvqCzcseIDQ2hDxtg0LgOtrO579ySQLAiEKURsv6mIhTDhId0MYCmC230WJF6bB4HM9cow+4CswQ7fFOzYz6/L7I4RNdK4NHuDdsiFyXHpjEvdPbyhg8GoBNwxsX6z9puPDVfNG8ZSnpyAY3Y/DhqaM8PeAAyqd9GKdC0AHLedMlx8AApZ4H+5tQH/cn3N/coeWaGoSHAV7goePpJe1zbfDTw+CsiKRpMgGtY76iV87fpp5tu5hMNUcydi2Hc4bPTbdNLqfRmIBvyqoJcb1NwYWm5XfqV8byvuv8250LChxrZUSjKtcX7GPoXVwwMSDBjLm36nDW1LBoKl90V0JS0FNxcmiUB5AjWsQ4OnEQvP4qMC2kUXWbnIz8vW1m4Fuda5bq8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(10201501046)(3002001); SRVR:BY2PR0701MB1974; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0701MB1974; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1974; 4:TP0adtRIt84BT6LX3+Q8+Iqh9staS0i397hQiLAhnifAnTyO1DgcXSAvnVfa15xym6Qy8InMfWzxJ0b2JQPYxXFmJfdufwFenm5oR10GCgxFa6/d3Mx76jXXc1dkO/WrcaLUeNJi+pOdvqrnslEGQXQmb3Wzo7r1zqGeuQC6+9/JaO4hd838K6zH6LCSfwzKj5v9olT71pMNRxGXLfb1/vV+VT8Nsur0e42yqkRe+r9QQWK59dxSHRrs4aPXKMOBWGhGzBJ6L+wRR7dJHEzzSkXVWQs5HcWRS78FqTkPSI0G/cfNiyRlgEQ9xrnLumFueIwjunGQXbJaGPw/gOzAhUNfWesrckCxUY4ph/B8HBSLZNyY78qlr/2hYtG9bHWG X-Forefront-PRVS: 0749DC2CE6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(6009001)(6069001)(189002)(199003)(81156007)(5001960100002)(50226001)(50986999)(5004730100002)(110136002)(77096005)(107886002)(66066001)(47776003)(15975445007)(189998001)(5007970100001)(42186005)(19580395003)(86362001)(76506005)(87976001)(69596002)(97736004)(50466002)(101416001)(53416004)(48376002)(106356001)(105586002)(36756003)(5008740100001)(40100003)(92566002)(4001430100002)(5009440100003)(33646002)(122386002)(5003940100001)(229853001)(2351001)(7099028)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0701MB1974; H:localhost.caveonetworks.com; 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?Q?1; BY2PR0701MB1974; 23:wmKwC0geWSXljy5S7Gq6A/TKlUjml9JCnaCgwRc?= =?us-ascii?Q?XuOVxD/AhxrOoBWQncIFXPNpmVIrNZnwKHSqOWyncIMKJb9N8i+HghdLipkl?= =?us-ascii?Q?6tJocWSs8wRlj5/ggH3A4VX0nDufN+IbDgfOH4Z+xpJCgAF6HmPj/Y9+KBJu?=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9yHA8h4yd0KNO615rb2?= =?us-ascii?Q?Vnc+Slzn46PhZwqxGLDaYmvj/gaUR+bfyDX45/jnr4CrazsJf8CETmTMs4M3?= =?us-ascii?Q?vC/+ZZ5jM2QSTMdSadu6ABINQMJ3mtBLkExZQKRfIep/9Hr9Ztcs4G8pEFU3?= =?us-ascii?Q?6ZP7yPUWbCWHZdNKrVA4kzIbasQ3Ud8EJZxCNKHvRPCtpiPdpUhi1LDN45fc?= =?us-ascii?Q?ohWc7x02/jCmG6zj5H5w=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0701MB1974; 5:1agn0C3ReLbh1hd9R2aNcSeDTUsHjHliTutIecKu/3r70ZyTRk7S6IS9uKTwFXmvGV6mK7fFf3d9H/00ad6PQ4TwbUEGLtf+6q7MwikEnX/BiHFeGq6kAn+K33PWzxILFVk9udaBb2PW1FXKNItoeQ==; 24:b4mdLWQ0Z4A3i1LhaZJdabrfi5xZKYoHXoZNWsVXnpBashG1Thgy21XrmUk5/1nfyMjqZorPJNjCBwOl8SVz1IpGFNNYhXAg2ZUQNJzRBmk=; 20:E6Az/ls0DjfKpNMlj9UW0kvHTAuOb8Y7G9RkzGtcPApUrCpOHzM2nfFUVcCcxxUEh1nBgGL7AeeshXBErJ6YcA== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2015 13:09:55.5636 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0701MB1974 Subject: [dpdk-dev] [PATCH 00/12] DPDK armv8-a support 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: Tue, 03 Nov 2015 13:09:59 -0000 This is the v1 patchset for ARMv8 that now sits on top of the v6 patch of the ARMv7 code by RehiveTech. It adds code into the same arm include directory, reducing code duplication. Tested on an ThunderX arm 64-bit arm server board, with PCI slots. Passes traffic between two physical ports on an Intel 82599 dual-port 10Gig NIC. Should work with many other NICS as long as long as there is no unaligned access to device memory but not yet untested. Compiles igb_uio, kni and all the physical device PMDs. An entry has been added to the Release notes. NOTE: Part of the work has been taken from David Hunt's v3 patch who was initiated the armv8 port. Notes on arm64 kernel configuration: Tested on using Ubuntu 14.04 LTS with a 3.18 kernel and igb_uio. ARM64 kernels does not have functional resource mapping of PCI memory (PCI_MMAP), so the pci driver needs to be patched to enable this. The symptom of this is when /sys/bus/pci/devices/0000:0X:00.Y directory is missing the resource0...N files for mmapping the device memory. Following patch fixes the PCI resource mapping issue om armv8. Its not yet up streamed.We are in the process of up streaming it. http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/358906.html Jerin Jacob (12): eal: arm64: add armv8-a version of rte_atomic_64.h eal: arm64: add armv8-a version of rte_cpuflags_64.h eal: arm64: add armv8-a version of rte_prefetch_64.h eal: arm64: add armv8-a version of rte_cycles_64.h eal: arm64: rte_memcpy_64.h version based libc memcpy eal: arm: ret_vector.h improvements app: test: added the new cpu flags of arm64 in test_cpuflags test case acl: arm64: acl implementation using NEON gcc intrinsic mk: add support for armv8 on top of armv7 mk: add support for thunderx machine target based armv8-a updated release note for armv8 support for DPDK 2.2 maintainers: claim responsibility for ARMv8 MAINTAINERS | 5 + app/test-acl/main.c | 4 + app/test/test_cpuflags.c | 26 ++ config/defconfig_arm64-armv8a-linuxapp-gcc | 56 ++++ config/defconfig_arm64-thunderx-linuxapp-gcc | 56 ++++ doc/guides/rel_notes/release_2_2.rst | 7 +- lib/librte_acl/Makefile | 5 + lib/librte_acl/acl.h | 4 + lib/librte_acl/acl_run_neon.c | 46 ++++ lib/librte_acl/acl_run_neon.h | 290 +++++++++++++++++++++ lib/librte_acl/rte_acl.c | 25 ++ lib/librte_acl/rte_acl.h | 1 + .../common/include/arch/arm/rte_atomic.h | 4 + .../common/include/arch/arm/rte_atomic_64.h | 88 +++++++ .../common/include/arch/arm/rte_cpuflags.h | 4 + .../common/include/arch/arm/rte_cpuflags_64.h | 152 +++++++++++ .../common/include/arch/arm/rte_cycles.h | 4 + .../common/include/arch/arm/rte_cycles_64.h | 71 +++++ .../common/include/arch/arm/rte_memcpy.h | 4 + .../common/include/arch/arm/rte_memcpy_64.h | 93 +++++++ .../common/include/arch/arm/rte_prefetch.h | 4 + .../common/include/arch/arm/rte_prefetch_64.h | 61 +++++ lib/librte_eal/common/include/arch/arm/rte_vect.h | 58 ++--- mk/arch/arm64/rte.vars.mk | 58 +++++ mk/machine/armv8a/rte.vars.mk | 58 +++++ mk/machine/thunderx/rte.vars.mk | 58 +++++ 26 files changed, 1198 insertions(+), 44 deletions(-) create mode 100644 config/defconfig_arm64-armv8a-linuxapp-gcc create mode 100644 config/defconfig_arm64-thunderx-linuxapp-gcc create mode 100644 lib/librte_acl/acl_run_neon.c create mode 100644 lib/librte_acl/acl_run_neon.h create mode 100644 lib/librte_eal/common/include/arch/arm/rte_atomic_64.h create mode 100644 lib/librte_eal/common/include/arch/arm/rte_cpuflags_64.h create mode 100644 lib/librte_eal/common/include/arch/arm/rte_cycles_64.h create mode 100644 lib/librte_eal/common/include/arch/arm/rte_memcpy_64.h create mode 100644 lib/librte_eal/common/include/arch/arm/rte_prefetch_64.h create mode 100644 mk/arch/arm64/rte.vars.mk create mode 100644 mk/machine/armv8a/rte.vars.mk create mode 100644 mk/machine/thunderx/rte.vars.mk -- 2.1.0