From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] bus/pci: fix wrong intr_handle.type with uio_pci_generic Date: Thu, 28 Dec 2017 10:05:06 +0100 Message-ID: <3562024.UbNHMEjv39@xps> References: <20171228061210.64767-1-zhiyong.yang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, ferruh.yigit@intel.com, stable@dpdk.org To: Zhiyong Yang Return-path: In-Reply-To: <20171228061210.64767-1-zhiyong.yang@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 28/12/2017 07:12, Zhiyong Yang: > In the function rte_pci_ioport_map, if uio_pci_generic is used on X86 > platform, pci_ioport_map() is invoked, the operation > ev->intr_handle.type = RTE_INTR_HANDLE_UNKNOWN; is execused directly, > it causes the wrong assignment for uio_pci_generic, the patch fixes it. [...] > --- a/drivers/bus/pci/linux/pci.c > +++ b/drivers/bus/pci/linux/pci.c > @@ -723,7 +723,9 @@ pci_ioport_map(struct rte_pci_device *dev, int bar __rte_unused, > if (!found) > return -1; > > - dev->intr_handle.type = RTE_INTR_HANDLE_UNKNOWN; > + if (dev->kdrv == RTE_KDRV_NONE) > + dev->intr_handle.type = RTE_INTR_HANDLE_UNKNOWN; I don't understand the logic. NONE is different of UNKNOWN. Your are talking about uio_pci_generic. In this case, it should be RTE_KDRV_UIO_GENERIC.