From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0076.outbound.protection.outlook.com [65.55.169.76]) by dpdk.org (Postfix) with ESMTP id 047A258F7 for ; Fri, 6 Nov 2015 10:41:22 +0100 (CET) Received: from BLUPR0701MB1969.namprd07.prod.outlook.com (10.163.121.20) by BLUPR0701MB1956.namprd07.prod.outlook.com (10.163.121.19) with Microsoft SMTP Server (TLS) id 15.1.318.15; Fri, 6 Nov 2015 09:41:20 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@caviumnetworks.com; Received: from jerin.caveonetworks.com (111.93.218.67) by BLUPR0701MB1969.namprd07.prod.outlook.com (10.163.121.20) with Microsoft SMTP Server (TLS) id 15.1.318.15; Fri, 6 Nov 2015 09:41:16 +0000 From: Jerin Jacob To: Date: Fri, 6 Nov 2015 15:10:19 +0530 Message-ID: <1446802833-22265-1-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 1.9.3 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MA1PR01CA0066.INDPRD01.PROD.OUTLOOK.COM (25.164.116.166) To BLUPR0701MB1969.namprd07.prod.outlook.com (25.163.121.20) X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1969; 2:n+YsNBFfu9kSNPvrv+KKGU7a4ckflrX2yGlWSRiXeH2T3sZjbF0DAkz+pTjlihec2+VuquAoA3XmjJLNXVAzFzI4eJ2LXTkNp2A6XUy5GRZXIfYDwhwOc57zzbwVydON1p0Lv+aZgmDhXoGxBxPmgUFJ419cNKt8OKBJAxDWsBc=; 3:yT3SbHw7nSIQtoc4djwuX104q6rQOA7t7jWZMqgbzlA43Ok7lE1OQn5jon8JfnBPpSFNxAbLRupKLXAX4z5SV9cpiZAxSSFcj9D/bGOg+qTtNbgeLnl0KiyHgzE3w7Ls+LXqvH5C6SxaG4Q/OplrgA==; 25:SIXRJQAyLkumvgtUcWYI7OCqRjUQu2+tF1/jWH5iBr/gsmjhcBaiVZZhEBD4gSn8f5Z3V2yCDdmURKci5DmuF5AYG8AVHzsuNsu6h/K9Tr5dwpJfM2bKTeo+ZFBn9UNWyJBvtdk/tq/T5Padovk86c6DbVKS3UByPdqlh90MkGM+VF3npWvgmQWLisxaZO3/aw69/YgAMkXIAQ5hSQxdCS4Z0IZ3FDvL7VuLlNf8dtg02w0SBv7yZzWrAwA9ejXj X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0701MB1969; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1969; 20:Acmxfa22yXAPOwnaV6AC7KyHAesXdd00BEvqxsYl2SNq0pkPr+Rsn4tzsXoXnU3Tb2y52bP4paVIQKiAGGgFI3gBHtNClJFBeRK1YG86oFntZjM+fY9Ni76Xu6bdkert3PIxZ5e30nVATExJqemwxNw/R9VrEQXH5Lb1sABuOboly0koApFtz2auWALfmNX+4Dt2NROkz+7025TTN6fp7v45763nvdFuTY6JS04g/N5E50Cmf5xDtbfAprNL+4PLIq1tw7oF1EW5CzEEGOrEQ9cSoDJiqAuoHtxebG7+EmsIWlzTW3NL8GA22Vjn82VIDNPym+UlnGhpt3VM6k3abBdWPEhPqDVgF/6KNowFxb0OIDKu9avAkF17ABQxaTIsDT4FJEsdfCxBcBieS9wyDNsI1xIUNLPtElHRm+EbgRCpetnF+Q9Ynu+Ty/K+4JhaZqkg3ePD2IwAdDhyypsVERmjaEVJZz723y70oE5Xn7EMT05Rl6ULmMpts+CYabytaQXNh3CLXUnqQNJYITsedzGYOvZfNy+27D+Wux5+++y5imxRv/iRG/AbXtXsCA5zLo5g8M+ghRUa56BIq3uCdPgFDwe4sitQhABfK9WNkdY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046); SRVR:BLUPR0701MB1969; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1969; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1969; 4:FB1Z2bti7CkA0CRiiVDE+e6t7wKOSPQyr/FkT7Ov4k1Irba/5GXVI37tVtlngIYmsyA7FckxQYlVx4sMBuuPQ1y5XaV4E0fNsu1EcN0JUyDoqkb9+6ziftXJy0qWPUVJWFDU/5Akjs9rY/c/GyVjOta5tC2REkS8sujs5F3InsAGozODcIN1DpTOomR0NRaYuws5i/IQzmlfB3l0zlEWuL9uVLE0pSmVUl9fhahwnVMQwYEBC+oGc7MZ00LxW6ojgegwP3Rq7Y3SpCygdqFo52qF1yiwMGehYcOmPz+OyJZ/TAbOS7ZNvt9HPw3DGf7LF1pycRlRm02d1Xsh4RvM5/BB8eFNNcwLQ+HKGJf0tNWudXSTdzx2Kf+z0BXUlxFL X-Forefront-PRVS: 07521929C1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(189002)(199003)(50226001)(122386002)(48376002)(50986999)(50466002)(106356001)(229853001)(110136002)(15975445007)(40100003)(87976001)(105586002)(5004730100002)(77096005)(19580395003)(2351001)(5003940100001)(92566002)(107886002)(189998001)(5007970100001)(33646002)(5001960100002)(66066001)(5009440100003)(42186005)(4001430100002)(97736004)(101416001)(69596002)(47776003)(36756003)(5008740100001)(53416004)(81156007)(86362001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1969; H:jerin.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; BLUPR0701MB1969; 23:jOP+2gEvcv84Glf31Sjlmc2Sb5i6mHpKSlGGTvp?= =?us-ascii?Q?ojj8LVuQm8WbW4GwS345OhVGb+v2WvZEfXpyPQPwiLmDjuGRytXG3U8n7QIj?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fmsxe1S3XvHl9/0MYrShgHPN+oggg?= =?us-ascii?Q?GocScPFdrPknHesG+hGu/7VlivicmJbazgpDDL51E6IccIu2meAt9wW2XTHu?= =?us-ascii?Q?YGoXl2uIBLu7QDAqfjvNRK20OyhHQOpVUvlYVIFjDbxseR7hnzg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1969; 5:rUuN8y5J+loMU2U2yk3N8eVb0fY17g73Aqculo9jROVVTBm0sVt2QBWBzjkn/8brPW2QXl1J7hbJOnT9vIGwILrdo6SV2lZsAc79L1n0HXJuLEbMyq2BV+bPcFXslsmMwfB2NfknQFGFCeIpGQQ2hA==; 24:U/nxj7p/ucpSOHHzoyZhJ8gV0CxHJQCXjMLj3iA4IrAcBCgrXYveu+IY6ek+ng1SER7hcLLTYl7PA3zgAY7OviXWwfKinWU1ePgXLc1osyU=; 20:D5W6smQ1nF4myTHOymcX8HO936YLjsM2+yuIM35nf5kOpxiSZNuK77bmTDh1QMldXPir4AvDJ7P9EVyefUQskw== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2015 09:41:16.6156 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1969 X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1956; 2:h9W+ZKscqNz5nq+vanRGy1N9UtnIP61EqtDLFcjxfncI337SV0VIDd5/5RswD5q0JNSHjtdlq3MexxmSr/37hHxkVCWInaG1ZrjlxvH2ZpVt7U9JpA6kDtvTZ0/NGWmyvtGGsGQyl0wk2O39IjRX2unBKLnrNzrhHZyNoOrZeVM=; 23:B5h0kXE19FiKzDH0cmX5R0pKNv4+X9OkgRsaF2O88fWT9uVdOoyWyHcRguJQv5ywIH8Szufaf7LZ3pp9GddLzKXolwk/68nib8PSVNCEN554PTUl98Vh5h3A+SDb1fk3ZeHDeqbWJKuUGyrX7eKmTCF6kZur1NDlCcjUkW/WE+jz81dI7eNdsEyFPT915wkj X-OriginatorOrg: caviumnetworks.com Subject: [dpdk-dev] [PATCH v3 00/14] 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: Fri, 06 Nov 2015 09:41:22 -0000 This is the v3 patchset for ARMv8 that now sits on top of the v6 patch (based on upstream 82fb702077f67585d64a07de0080e5cb6a924a72) 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 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. v1..v2 1) included "Introduce rte_smp_*mb() for memory barriers to use between lcores" patch ACK by Konstantin in v2 as "eal: introduce rte_smp_*mb() for memory barriers to use between lcores" please superseded the original one 2) defined rte_smp_mb(), rte_smp_wmb(), rte_smp_rmb() for arm (1) and (2) fixes "Mbuf autotest" stress failure found in version 1 3) fixed white space issues with patch 8,9,10 4) disabled CONFIG_RTE_LIBRTE_FM10K_PMD, CONFIG_RTE_LIBRTE_I40E_PMD due to tmmintrin.h depenency or ARM v2..v3 1) moved disabled CONFIG_RTE_LIBRTE_FM10K_PMD, CONFIG_RTE_LIBRTE_I40E_PMD to "mk: add support for armv8 on top of armv7" and "mk: add support for thunderx machine target based on armv8-a" to fix compilation issue per patch 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 (14): 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 on libc memcpy eal: arm: ret_vector.h improvements app: test_cpuflags: test the new cpu flags added for arm64 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 on armv8-a updated release note for armv8 support for DPDK 2.2 maintainers: claim responsibility for ARMv8 eal: introduce rte_smp_*mb() for memory barriers to use between lcores eal: arm: define rte_smp_mb(), rte_smp_wmb(), rte_smp_rmb() for arm 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 +- drivers/net/virtio/virtqueue.h | 8 +- drivers/net/xenvirt/rte_eth_xenvirt.c | 4 +- drivers/net/xenvirt/virtqueue.h | 2 +- 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 | 289 +++++++++++++++++++++ lib/librte_acl/rte_acl.c | 25 ++ lib/librte_acl/rte_acl.h | 1 + .../common/include/arch/arm/rte_atomic.h | 10 + .../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 | 54 ++-- .../common/include/arch/ppc_64/rte_atomic.h | 6 + .../common/include/arch/tile/rte_atomic.h | 6 + .../common/include/arch/x86/rte_atomic.h | 6 + lib/librte_eal/common/include/generic/rte_atomic.h | 27 ++ lib/librte_ring/rte_ring.h | 8 +- mk/arch/arm64/rte.vars.mk | 58 +++++ mk/machine/armv8a/rte.vars.mk | 58 +++++ mk/machine/thunderx/rte.vars.mk | 58 +++++ 34 files changed, 1256 insertions(+), 54 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 -- 1.9.3