From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by dpdk.org (Postfix) with ESMTP id 2CE978E9D for ; Fri, 4 Dec 2015 18:35:31 +0100 (CET) Received: by pacdm15 with SMTP id dm15so89795004pac.3 for ; Fri, 04 Dec 2015 09:35:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mvista-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=xvbrtBVK5S0FMo48JL3dZURvizOr9QT/WoL1nJEz/bo=; b=zi5juN1ptG6b2pwRT7p8PvRRoC14yFFN9oiYfMejfshhHz0EjPvAPPVr5sn3VbXrk/ bkvYNuRi0kZveuzfTgiVfJp11GjlAV/xyMlXSABlV8dyZeMCLB6GU/xyZ74XKMc8rcTF MDA8cKjpfao2f42K7hRbih3rTBwPkHiyh7YYH+fkF3r/qjpYn/wFM26JmcMJ/2XH15Lr 2048tuZpD5npIybW00Xftim7cQ3pBVUt0KaEIygL4fyGk7jGz8wPhDoalp3DuJ7Z0eIj 16KUBTig5JpIfo5cXzfoEf4COIBBrUNANV473kZTjw8hXtb/J4vSRruuNy+or8Gfao8m 1Ozw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xvbrtBVK5S0FMo48JL3dZURvizOr9QT/WoL1nJEz/bo=; b=GD/6QxpoMOxDPs2Ej9so3nweOo9zNOoXjXnypYLb0Qp3rnh9RfS5PyDXOmNStgc3f7 U2Sh5jv8wRKNppMpD86jAaJ+zBrGMSWg+CSTRJHTlVRQaP0amII16JXY4vUNWJId8rqH Yoxxh9h6YSQeyMOjGtXO1j1JwZGUrHY94pXKhHY69Zck3RS53HcMOhiTkRk80T+pj4cw pXx9Ei9Bij/msYILt83ofQaN5o3N6qt8sBfCglMq7siVkt1eMAWITsmoyy7+eP/CI1Er r/+mBUtxOBGFSv9bFM7vJU+VF3ipVThbMUW391nV/WqEcEXXhKyKj4L/nYKqt+O1wNRN QfsA== X-Gm-Message-State: ALoCoQnLGZATbvsPG5WS3eGUWHv0sj0T92+z8KD18fER+m2Bv0nebBeYZVoVc45JQb4foKWFa0Gm X-Received: by 10.66.153.198 with SMTP id vi6mr23301617pab.37.1449250530534; Fri, 04 Dec 2015 09:35:30 -0800 (PST) Received: from rakeshk-OptiPlex-9020.mvista.com ([111.93.218.67]) by smtp.gmail.com with ESMTPSA id 134sm18365609pfa.30.2015.12.04.09.35.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Dec 2015 09:35:29 -0800 (PST) From: Santosh Shukla To: dev@dpdk.org Date: Fri, 4 Dec 2015 23:05:13 +0530 Message-Id: <1449250519-28372-1-git-send-email-sshukla@mvista.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH 0/6] Add virtio support in arm/arm64 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, 04 Dec 2015 17:35:31 -0000 This patch set add basic infrastrucure to run virtio-net-pci pmd driver for arm64/arm. Tested on ThunderX platfrom. Verified for existing dpdk(s) test applications like: - ovs-dpdk-vhost-user: across the VM's, for the use-cases like guest2guest and Host2Guest - testpmd application: Tested for max virtio-net-pci interface currently supported in kernel i.e. 31 interface. Builds successfully for armv7/v8/thunderX and x86_64/i686 platforms. Made sure that patch changes donot break for x86_64 case. Done similar tests for x86_64 too. Patch summary: - First patch adds RTE_VIRTIO_INC_VECTOR config, much needed for archs like arm/arm64 as they don't support vectored implementation, also wont able to build. - Second patch is in-general fix for i686. - Third patch is to emulate x86-style of {in,out}[b,w,l] api support for armv7/v8. As virtio-net-pci pmd driver uses those apis for port rd/wr {b,w,l} - Fourth patch to enable VIRTIO_PMD feature in armv7/v8/thunderX config. - Fifth patch to disable iopl syscall, As arm/arm64 linux kernel doesn't support them. - Sixth patch introduces ioport memdevice called /dev/igb_ioport by which virtio pmd driver could able to rd/wr PCI_IOBAR. {applicable for arm/arm64 only, tested for arm64 as of now} On Sixth patch: There is other way to achieve desired by adding support in linux kernel character memory driver such that user could do file rd/wr for half-word/word size data. Currently character memory driver support byte rd/wr via interface `/dev/port`. Such proposal already discussed long back at lkml thread [2] but couldn;t got much atttaction though! I am going to send out similar implementation as an RFC to dpdk-dev thread and to linux-kernel community{todo}. However like to listen to current approach review/comment/feedback. Thanks in advance. patchset developed on upstream dpdk commit 538020a then pulled jerin's dependancy patches [1] on top. [1] http://permalink.gmane.org/gmane.comp.networking.dpdk.devel/29068 [2] https://lkml.org/lkml/2014/5/10/189 Santosh Shukla (6): virtio: Introduce config RTE_VIRTIO_INC_VECTOR config: i686: set RTE_VIRTIO_INC_VECTOR=n virtio: armv7/v8: Introdice api to emulate x86-style of PCI/ISA ioport access config: armv7/v8: Enable RTE_LIBRTE_VIRTIO_PMD linuxapp: eal: arm: Always return 0 for rte_eal_iopl_init() virtio: arm/arm64: memory mapped IO support in pmd driver config/common_linuxapp | 1 + config/defconfig_arm-armv7a-linuxapp-gcc | 6 +- config/defconfig_arm64-armv8a-linuxapp-gcc | 6 +- config/defconfig_i686-native-linuxapp-gcc | 1 + config/defconfig_i686-native-linuxapp-icc | 1 + drivers/net/virtio/Makefile | 2 +- drivers/net/virtio/virtio_ethdev.c | 138 ++++++++++++- drivers/net/virtio/virtio_pci.h | 15 ++ drivers/net/virtio/virtio_rxtx.c | 7 + .../common/include/arch/arm/rte_isa_io.h | 212 ++++++++++++++++++++ lib/librte_eal/linuxapp/eal/eal.c | 3 + lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 80 +++++++- 12 files changed, 465 insertions(+), 7 deletions(-) create mode 100644 lib/librte_eal/common/include/arch/arm/rte_isa_io.h -- 1.7.9.5