From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgw.gov.kz (mgw.gov.kz [89.218.88.242]) by dpdk.org (Postfix) with ESMTP id CAEE068CB for ; Wed, 23 Jul 2014 05:37:42 +0200 (CEST) Received: from mgw.gov.kz (mx.ctsat.kz [178.89.4.95]) by mgw.gov.kz with ESMTP id s6N3d3hI025511-s6N3d3hJ025511 for ; Wed, 23 Jul 2014 09:39:03 +0600 Received: from EXCASHUB1.rgp.local (192.168.40.51) by EdgeForefront.rgp.local (192.168.40.59) with Microsoft SMTP Server (TLS) id 14.2.247.3; Wed, 23 Jul 2014 09:38:40 +0600 Received: from deb-dpdk.rgp.local (192.168.35.15) by excashub1.rgp.local (192.168.40.48) with Microsoft SMTP Server (TLS) id 14.2.247.3; Wed, 23 Jul 2014 09:41:57 +0600 From: Yerden Zhumabekov To: Date: Wed, 23 Jul 2014 09:38:46 +0600 Message-ID: <1406086726-54032-2-git-send-email-e_zhumabekov@sts.kz> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1406086726-54032-1-git-send-email-e_zhumabekov@sts.kz> References: <1406086726-54032-1-git-send-email-e_zhumabekov@sts.kz> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.35.15] X-FEAS-SYSTEM-WL: e_zhumabekov@sts.kz Subject: [dpdk-dev] [PATCH] igb_uio: fall back to enable/disable irq mode 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, 23 Jul 2014 03:37:43 -0000 Rewritten IRQ mode handling code introduced in commit 399a3f0d (igb_uio: fix IRQ mode handling) renders some faulty NICs (VMware e1000, for example) unusable if INTX mode is not supported. This patch gets these NICs up and running, but throwing a kernel warning. Signed-off-by: Yerden Zhumabekov --- lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c index f220a12..c4ab01a 100644 --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c @@ -620,9 +620,9 @@ igbuio_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) udev->info.irq_flags = IRQF_SHARED; udev->mode = RTE_INTR_MODE_LEGACY; } else { - dev_err(&dev->dev, "PCI INTX mask not supported\n"); - err = -EIO; - goto fail_release_iomem; + dev_warn(&dev->dev, "PCI INTX mask not supported\n"); + udev->info.irq_flags = IRQF_SHARED; + udev->mode = RTE_INTR_MODE_LEGACY; } break; default: -- 1.7.10.4