> -----Original Message-----
> From: Shijith Thotton [mailto:[email protected]]
> Sent: Tuesday, September 19, 2017 6:24 PM
> To: [email protected]
> Cc: Yigit, Ferruh <[email protected]>; Thomas Monjalon
> <[email protected]>; Yang, Qiming <[email protected]>; Patil, Harish
> <[email protected]>; Zhang, Helin <[email protected]>; Gregory
> Etelson <[email protected]>; Tan, Jianfeng <[email protected]>; Hu,
> Xuekun <[email protected]>; Li, Xiaoyun <[email protected]>; Thotton,
> Shijith <[email protected]>; [email protected]
> Subject: [PATCH] igb_uio: remove PCI reset during uio device open
> 
> Issuing reset during uio device open caused PMD init failure for some NIC VFs
> (i40, ixgbe, qede) in host. So this initial reset is removed.
> Bus master enable is kept as part of open since we disable it in uio device 
> release.
> 
> Fixes: b58eedfc7dd5 ("igb_uio: issue FLR during open and release of device 
> file")
> Cc: [email protected]
> 
> Signed-off-by: Shijith Thotton <[email protected]>
> ---
>  lib/librte_eal/linuxapp/igb_uio/igb_uio.c | 4 +---
>  1 file changed, 1 insertion(+), 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 07a19a3..a6c2996 100644
> --- a/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
> +++ b/lib/librte_eal/linuxapp/igb_uio/igb_uio.c
> @@ -179,9 +179,7 @@ struct rte_uio_pci_dev {
>       struct rte_uio_pci_dev *udev = info->priv;
>       struct pci_dev *dev = udev->pdev;
> 
> -     pci_reset_function(dev);
> -
> -     /* set bus master, which was cleared by the reset function */
> +     /* enable bus mastering on the device */
>       pci_set_master(dev);
> 
>       return 0;
> --
> 1.8.3.1

Tested-by: Qiming Yang <[email protected]>

Hi, applied and tested this patch with 17.08 DPDK VF and
2.1.26 kernel PF and it fixes the problem on 10G/25G/40G.

Reply via email to