From patchwork Fri Oct 24 03:22:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masaru OKI X-Patchwork-Id: 945 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id E522E7E7E; Fri, 24 Oct 2014 05:13:54 +0200 (CEST) Received: from mail-yh0-f47.google.com (mail-yh0-f47.google.com [209.85.213.47]) by dpdk.org (Postfix) with ESMTP id 46C675955 for ; Fri, 24 Oct 2014 05:13:53 +0200 (CEST) Received: by mail-yh0-f47.google.com with SMTP id c41so2313460yho.6 for ; Thu, 23 Oct 2014 20:22:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=7ZJ1Z3q3sqkR7ROhAzoY6glOsIfo5a/4poqSK4YsNKE=; b=IU7xt/F4xGYjEpo/9IwAl6F9WPOjBBxrlzEfXIgINrz9+V6sT0bB2mk6CUmEMvpEVL r7VniHNjXQrx5Y6JnHWL6u7EmLedl34lI4XqHn/jVeC0ICDhTKYoPbPLa8tCa95Lig3R CMbpvOyLO+FS/ju0BtqbDeDBpy9cpm5ZW7ez8g9kO+vIZ0JoauqjrgR6bSIhCasBVz84 Ckvs7KWRGye4Uo7XF2n4X/hvS6rcCRem+kgoKOubx4ZaVlwSRNefz8flwhdYsJAm+wp/ lb6mUo33HxJLd/0vM0fn6bDqSGVORG0t4OJL3uQOxBfuNcp34gm14MZRTOPyRvXQ9xKT rZBA== X-Gm-Message-State: ALoCoQmtXNJVpEjkDl5jXHVETTh6ts7ZF9qdozZ+rxeePJgB+bL0/I+AH7l+bXtyUIUqM3qKfnJJ MIME-Version: 1.0 X-Received: by 10.170.188.7 with SMTP id f7mr872265yke.33.1414120940066; Thu, 23 Oct 2014 20:22:20 -0700 (PDT) Received: by 10.182.31.111 with HTTP; Thu, 23 Oct 2014 20:22:19 -0700 (PDT) In-Reply-To: References: Date: Fri, 24 Oct 2014 12:22:19 +0900 Message-ID: From: Masaru Oki To: Raghav K Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] EAL : Input/output error on DPDK 1.7.1 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, I got same result in VMware Workstation environment. At least in my environment, INTX toggle check is not work with VMware E1000 Ethernet. Please try attached patch. 2014-10-17 3:04 GMT+09:00 Raghav K : > Hey, > I observe continuous burst of I/O Errors, as indicated below, with the testpmd application with DPDK 1.7.1.This seems to originate from eal_intr_process_interrupts() function. I seemed to have setup the DPDK prerequisites alright. > Another recent post seemed to suggest moving back to 1.7.0, however I would like to persist with 1.7.1. > Any help/pointers in resolving this would be greatly appreciated. > Much thanks,Raghav > root@sys6-vm6:/home/rghv/dpdk/dpdk-1.7.1/x86_64-native-linuxapp-gcc/app# ./testpmd -c 0xf -n3 -- -i --nb-cores=3 --nb-ports=2 > EAL: Error reading from file descriptor 21: Input/output errorEAL: Error reading from file descriptor 21: Input/output errorEAL: Error reading from file descriptor 21: Input/output errorEAL: Error reading from file descriptor 21: Input/output errorEAL: Error reading from file descriptor 21: Input/output errorEAL: Error reading from file descriptor 21: Input/output errorEAL: Error reading from file descriptor 21: Input/output errorEAL: Error reading from file descriptor 21: Input/output errorEAL: Error reading from file descriptor 21: Input/output errorEAL: Error reading from file descriptor 21: Input/output errorEAL: Error reading from file descriptor 21: Input/output errorEAL: Error reading from file descriptor 21: Input/output errorEAL: Error reading from file descriptor 21: Input/output errorEAL: Error reading from file descriptor 21: Input/output errorEAL: Error reading from file descriptor 21: Input/output errorEAL: Error reading from file descriptor 21: Input/output error > ---- > root@sys6-vm6:/home/rghv/dpdk/dpdk-1.7.1# ./tools/dpdk_nic_bind.py --status > Network devices using DPDK-compatible driver============================================0000:02:01.0 '82545EM Gigabit Ethernet Controller (Copper)' drv=igb_uio unused=e10000000:02:02.0 '82545EM Gigabit Ethernet Controller (Copper)' drv=igb_uio unused=e1000 > Network devices using kernel driver===================================0000:02:00.0 '82545EM Gigabit Ethernet Controller (Copper)' if=eth0 drv=e1000 unused=igb_uio *Active*0000:02:03.0 '82545EM Gigabit Ethernet Controller (Copper)' if=eth3 drv=e1000 unused=igb_uio 0000:02:05.0 '82545EM Gigabit Ethernet Controller (Copper)' if=eth4 drv=e1000 unused=igb_uio 0000:02:06.0 '82545EM Gigabit Ethernet Controller (Copper)' if=eth5 drv=e1000 unused=igb_uio > Other network devices===================== diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c index d1ca26e..c46a00f 100644 --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c @@ -505,14 +505,11 @@ igbuio_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) } /* fall back to INTX */ case RTE_INTR_MODE_LEGACY: - if (pci_intx_mask_supported(dev)) { - dev_dbg(&dev->dev, "using INTX"); - udev->info.irq_flags = IRQF_SHARED; - udev->info.irq = dev->irq; - udev->mode = RTE_INTR_MODE_LEGACY; - break; - } - dev_notice(&dev->dev, "PCI INTX mask not supported\n"); + dev_dbg(&dev->dev, "using INTX"); + udev->info.irq_flags = IRQF_SHARED; + udev->info.irq = dev->irq; + udev->mode = RTE_INTR_MODE_LEGACY; + break; /* fall back to no IRQ */ case RTE_INTR_MODE_NONE: udev->mode = RTE_INTR_MODE_NONE;