From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3] bus/pci: fix wrong intr_handle.type with uio_pci_generic Date: Fri, 12 Jan 2018 01:04:18 +0100 Message-ID: <2541614.81fTKLe5WG@xps> References: <20171229075511.33180-1-zhiyong.yang@intel.com> <20180110023226.37133-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: <20180110023226.37133-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" 10/01/2018 03:32, 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 correct > value of intr_handle.type is already set before calling it, we should avoid > overwriting the default value "RTE_INTR_HANDLE_UNKNOWN" in this function. > Besides, the removal has no harm to other cases because it is set to 0 by a > memset on the whole struct during allocation in the function pci_scan_one. > > Such assignments are removed in the meanwhile in pci_uio_map_resource(), > pci_vfio_map_resource_primary() and pci_vfio_map_resource_secondary() in > order to keep consistencies and avoid future questions. > > Fixes: 756ce64b1ecd ("eal: introduce PCI ioport API") > Cc: stable@dpdk.org > Signed-off-by: Zhiyong Yang Reviewed-by: Thomas Monjalon Applied, thanks