From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E7626A10DA for ; Wed, 31 Jul 2019 21:32:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 32EA01BF17; Wed, 31 Jul 2019 21:32:55 +0200 (CEST) Received: from mail-vk1-f195.google.com (mail-vk1-f195.google.com [209.85.221.195]) by dpdk.org (Postfix) with ESMTP id 42A991BF13 for ; Wed, 31 Jul 2019 21:32:54 +0200 (CEST) Received: by mail-vk1-f195.google.com with SMTP id 9so13928040vkw.4 for ; Wed, 31 Jul 2019 12:32:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vfCT6qxBZ2IX+lbsrEq4y0zUyxJQpn3sxDPno47wsAQ=; b=mGo8DJ6srPfgg6d8YcXJ1P1aZMHnB6qFBZmIKxx56gFRfpqzChcgvg/A07ZCsM26Po D8wOkHfnITfrZzWZv1d0JqnryIB3WAO/zDhwOTlbUOTeZwE+xFFaBtDj1joBGk/Rc7N7 zOfhu/joAT1JAhVkZy+MTKhL3QZf8yT+CaTuYkPrbRtRJhpIUmfzRLblLOb4/CFTAB0o 3a+HI0oiVrTvM2Ie0A4sYxDKo4QhtCuxzwm46AwazbcHRTIhFCaDWNPVYe/wwrv3zIxU yDNpCsgmmWlcfjetTCRNwSz4jiDS13+wi9ehEqvd0qgXswcTtQEJ+IYrLObslIZTeSwL DXTw== X-Gm-Message-State: APjAAAUnENYT4a3oWb7mdC+yvdwML/ffiR6UfbbggomeGZ4yZ4LpoOrD AoNgdRaaXEeo6mxW+MNtMVbX+zVw8kznQQYZrXJ6ew== X-Google-Smtp-Source: APXvYqwaMwM3GMTn30gFJMVebKgZduoEjThM5XtTwNIgZLdMBI/EsG1O8NXSVz0GJamUMr3QEtn0dr/u+xUHduHEWVA= X-Received: by 2002:a1f:c18e:: with SMTP id r136mr5416975vkf.53.1564601573495; Wed, 31 Jul 2019 12:32:53 -0700 (PDT) MIME-Version: 1.0 References: <20190731033523.2482-1-tyos@jp.ibm.com> <5bb4f727-b07e-5f52-de0e-f5552cb6420a@linux.vnet.ibm.com> In-Reply-To: <5bb4f727-b07e-5f52-de0e-f5552cb6420a@linux.vnet.ibm.com> From: David Marchand Date: Wed, 31 Jul 2019 21:32:42 +0200 Message-ID: To: David Christensen Cc: Takeshi T Yoshimura , Maxime Coquelin , dev , "Burakov, Anatoly" Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] eal: forcing IOVA as PA in ppc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Jul 31, 2019 at 9:23 PM David Christensen wrote: > > On 7/31/19 3:58 AM, David Marchand wrote: > > --log-level lib.*:debug > > Here's the output from my Power 9 system running 19.08-RC2 (I'm not > using VFIO since I have an MLX5 adapter). > > sudo -E LD_LIBRARY_PATH=/home/davec/src/dpdk/build/lib > /home/davec/src/dpdk/build/app/testpmd --log-level lib.\*:debug -w > 0000:01:00.0 -w 0000:01:00.1 -l 4,8-79 -n 4 -- --rxq=32 --rxd=1024 > --txq=32 --txd=4096 --nb-cores=64 -i -a --numa --forward-mode=rxonly > EAL: Detected lcore 0 as core 0 on socket 0 > ... > EAL: Detected lcore 159 as core 2140 on socket 8 > EAL: Support maximum 1536 logical core(s) by configuration. > EAL: Detected 160 lcore(s) > EAL: Detected 2 NUMA nodes > EAL: Multi-process socket /var/run/dpdk/rte/mp_socket > EAL: Module /sys/module/vfio_pci not found! error 2 (No such file or > directory) > EAL: VFIO PCI modules not loaded > EAL: DPAA Bus not present. Skipping. > EAL: Bus pci wants IOVA as 'DC' Ok, I think I understand now. Can you try this hunk ? diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c index 9794552..6d3b553 100644 --- a/drivers/bus/pci/pci_common.c +++ b/drivers/bus/pci/pci_common.c @@ -620,9 +620,6 @@ rte_pci_get_iommu_class(void) FOREACH_DEVICE_ON_PCIBUS(dev) { if (pci_ignore_device(dev)) continue; - if (dev->kdrv == RTE_KDRV_UNKNOWN || - dev->kdrv == RTE_KDRV_NONE) - continue; FOREACH_DRIVER_ON_PCIBUS(drv) { enum rte_iova_mode dev_iova_mode; -- David Marchand