From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id B16EE558E for ; Wed, 16 Mar 2016 21:28:52 +0100 (CET) Received: by mail-wm0-f49.google.com with SMTP id l68so89124501wml.1 for ; Wed, 16 Mar 2016 13:28:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=HhAxFr68RLwhsUxHUCxKBIr20OvvKKOHsVXvZiRD1QY=; b=SylFPVK/EK2C/7+f+wPTXzcggGqtN7ywnAe3vKvzR7chjveddbaMsoPWwYZa3PdPXe VtAUs7Wu6JJCgcD9Vk4kjHHPJoNkAGBrYwN34fNBbhG8A+BNS+CMmgiUCCX2Dx5Ngq/o m7TihxHnhTyAIUZ7dHMp02+esrIdf5KEh2rJBKnKLNRIoyzy8R3Kyoszieho+UYykHRl mlOxxntII48nVQ0qpZhdPR3i38V/RazaKxFF0N2b4bG/KE+khFjOCtQMk8y+8ru1MY1L rF8TO3GrlnK/v8kw0nn50Ug1Csjp3rsyia6LFpV+IdeFBiWr6O3kMHoYPMGInIWaOahC n2zQ== 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:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=HhAxFr68RLwhsUxHUCxKBIr20OvvKKOHsVXvZiRD1QY=; b=gjcncDmiUqGXubQhekAkfN3nipnZBRgFC1n+jxguMPaBSMaskgHm2zH3zUPxxWgfwi uzPmoUc9H6W4fCkoKw6QGfEJZpAs8h3LyfUT1qwAtcvLCBHZdNU/q+/ppRAJ59EyXO3+ 1iwddYcgCnKGtMBYeRNS7BwzUfPAkFgS6n6hDgnmPbkhJdFOOf4u6yQOQDCq90vla9Sg 9IdBA+vwnE6UDHi/w8yRkncMk16+yYzoBcfDQwFJehJLS8At/fyvzz96GZc/vFD9tTKV QswlTFj3JO+vymZ1uwYLuOTxYa1OQtGomWEJg5BZzjTfi2dXN+nhadWqMX9TwPPU+HM0 p9Zg== X-Gm-Message-State: AD7BkJIcKqErg9E2TKgV9Igms+6XQuhAEmB/1w3MKRPccRLea2g2x+Mj7Wy7A/G6/2t2nS9/ X-Received: by 10.28.9.19 with SMTP id 19mr33080050wmj.87.1458160132555; Wed, 16 Mar 2016 13:28:52 -0700 (PDT) Received: from xps13.localnet (91.111.75.86.rev.sfr.net. [86.75.111.91]) by smtp.gmail.com with ESMTPSA id gb9sm4578299wjb.26.2016.03.16.13.28.51 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Mar 2016 13:28:51 -0700 (PDT) From: Thomas Monjalon To: Mauricio =?ISO-8859-1?Q?V=E1squez?= Cc: dev@dpdk.org, Huawei Xie , Yuanhan Liu , David Marchand Date: Wed, 16 Mar 2016 21:27:24 +0100 Message-ID: <1848791.7V7NsuUKrG@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Subject: Re: [dpdk-dev] virtio PMD is not working with master version 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: Wed, 16 Mar 2016 20:28:52 -0000 2016-02-25 12:30, Mauricio V=E1squez: > Hello, >=20 > I am trying to connect two virtual machines through Open vSwitch usin= g > vhost-user ports, on the host side everything looks fine. > When using the standard virtio drivers both virtual machines are able= to > exchange traffic, but when I load the virtio PMD and run a DPDK appli= cation > it shows the following error message: >=20 > ... > EAL: PCI device 0000:00:04.0 on NUMA socket -1 > EAL: probe driver: 1af4:1000 rte_virtio_pmd > EAL: PCI memory mapped at 0x7f892dc00000 > PMD: virtio_read_caps(): [40] skipping non VNDR cap id: 11 > PMD: virtio_read_caps(): no modern virtio pci device found. > PMD: vtpci_init(): trying with legacy virtio pci. > EAL: eal_parse_sysfs_value(): cannot open sysfs value > /sys/bus/pci/devices/0000:00:04.0/uio/uio0/portio/port0/start > EAL: pci_uio_ioport_map(): cannot parse portio start > EAL: Error - exiting with code: 1 > Cause: Requested device 0000:00:04.0 cannot be used > ... >=20 > I tried it using the master version of DPDK, when I use the 2.2 versi= on it > works without problems: >=20 > ... > PMD: parse_sysfs_value(): parse_sysfs_value(): cannot open sysfs valu= e > /sys/bus/pci/devices/0000:00:04.0/uio/uio0/portio/port0/size > PMD: virtio_resource_init_by_uio(): virtio_resource_init_by_uio(): ca= nnot > parse size > PMD: virtio_resource_init_by_ioports(): PCI Port IO found start=3D0xc= 100 with > size=3D0x20 > PMD: virtio_negotiate_features(): guest_features before negotiate =3D= cf8020 > PMD: virtio_negotiate_features(): host_features before negotiate =3D = 40268020 > PMD: virtio_negotiate_features(): features after negotiate =3D 68020 > PMD: eth_virtio_dev_init(): PORT MAC: 00:00:00:00:00:11 > PMD: eth_virtio_dev_init(): VIRTIO_NET_F_STATUS is not supported > PMD: eth_virtio_dev_init(): VIRTIO_NET_F_MQ is not supported > PMD: virtio_dev_cq_queue_setup(): >> > PMD: virtio_dev_queue_setup(): selecting queue: 2 > PMD: virtio_dev_queue_setup(): vq_size: 64 nb_desc:0 > PMD: virtio_dev_queue_setup(): vring_size: 4612, rounded_vring_size: = 8192 > PMD: virtio_dev_queue_setup(): vq->vq_ring_mem: 0x76d43000 > PMD: virtio_dev_queue_setup(): vq->vq_ring_virt_mem: 0x7fa669743000 > PMD: eth_virtio_dev_init(): config->max_virtqueue_pairs=3D1 > PMD: eth_virtio_dev_init(): config->status=3D0 > PMD: eth_virtio_dev_init(): PORT MAC: 00:00:00:00:00:11 > PMD: eth_virtio_dev_init(): hw->max_rx_queues=3D1 hw->max_tx_queues= =3D1 > PMD: eth_virtio_dev_init(): port 0 vendorID=3D0x1af4 deviceID=3D0x100= 0 > PMD: virtio_dev_vring_start(): >> > ... >=20 > According to git bisect it appears to be that it does not work anymor= e > after the b8f04520ad71 ("virtio: use PCI ioport API") commit. It is now fixed: =09http://dpdk.org/browse/dpdk/commit/?id=3D2b29a7a4c1a Thanks for reporting.