From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] bus/pci: fix wrong intr_handle.type with uio_pci_generic Date: Fri, 29 Dec 2017 12:07:08 +0100 Message-ID: <2110508.9oViqIghhz@xps> References: <20171228061210.64767-1-zhiyong.yang@intel.com> <20171229075511.33180-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: <20171229075511.33180-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" 29/12/2017 08:55, Zhiyong Yang: > For virtio legacy device, testpmd startup fails when using > uio_pci_generic. The issue is caused by invoking the function > pci_ioport_map. The right intr_handle.type is already set before > calling it, we should avoid overwriting the default value "RTE_ > INTR_HANDLE_UNKNOWN" in it. Besides, the removal has no harm to > other cases since it already is set to this value (0) at init. To be more precise, it is set to 0 by a memset on the whole struct during allocation in the scan function (pci_scan_one). > --- a/drivers/bus/pci/linux/pci.c > +++ b/drivers/bus/pci/linux/pci.c > @@ -723,7 +723,6 @@ pci_ioport_map(struct rte_pci_device *dev, int bar __rte_unused, > if (!found) > return -1; > > - dev->intr_handle.type = RTE_INTR_HANDLE_UNKNOWN; There is the same assignment in pci_vfio_map_resource_primary(), pci_vfio_map_resource_secondary() and pci_uio_map_resource(). Please could you check why there is such assignments?