mbox series

[v1,0/3] Fix PF reset causes VF memory request failure

Message ID 20210421050243.130585-1-haiyue.wang@intel.com (mailing list archive)
Headers
Series Fix PF reset causes VF memory request failure |

Message

Wang, Haiyue April 21, 2021, 5:02 a.m. UTC
  By triggerring the VF reset from PF reset,
	echo 1 > /sys/bus/pci/devices/PF-BDF/reset

the PCI bus master bit will cleared on VF, so the VF needs to enable
this bit before restart.

This patch set adds the API to enable PCI bus master.

Haiyue Wang (3):
  bus/pci: enable PCI master in command register
  net/iavf: enable PCI bus master after reset
  net/i40e: enable PCI bus master after reset

 drivers/bus/pci/pci_common.c      | 20 ++++++++++++++++++++
 drivers/bus/pci/rte_bus_pci.h     | 12 ++++++++++++
 drivers/bus/pci/version.map       |  1 +
 drivers/net/i40e/i40e_ethdev_vf.c |  7 ++++++-
 drivers/net/iavf/iavf_ethdev.c    |  3 +++
 lib/librte_pci/rte_pci.h          |  4 ++++
 6 files changed, 46 insertions(+), 1 deletion(-)
  

Comments

Qi Zhang April 21, 2021, 11:59 a.m. UTC | #1
> -----Original Message-----
> From: Wang, Haiyue <haiyue.wang@intel.com>
> Sent: Wednesday, April 21, 2021 1:03 PM
> To: dev@dpdk.org
> Cc: Zhang, Qi Z <qi.z.zhang@intel.com>; Wang, Liang-min
> <liang-min.wang@intel.com>; Wang, Haiyue <haiyue.wang@intel.com>
> Subject: [PATCH v1 0/3] Fix PF reset causes VF memory request failure
> 
> By triggerring the VF reset from PF reset,
> 	echo 1 > /sys/bus/pci/devices/PF-BDF/reset
> 
> the PCI bus master bit will cleared on VF, so the VF needs to enable this bit
> before restart.
> 
> This patch set adds the API to enable PCI bus master.
> 
> Haiyue Wang (3):
>   bus/pci: enable PCI master in command register
>   net/iavf: enable PCI bus master after reset
>   net/i40e: enable PCI bus master after reset
> 
>  drivers/bus/pci/pci_common.c      | 20 ++++++++++++++++++++
>  drivers/bus/pci/rte_bus_pci.h     | 12 ++++++++++++
>  drivers/bus/pci/version.map       |  1 +
>  drivers/net/i40e/i40e_ethdev_vf.c |  7 ++++++-
>  drivers/net/iavf/iavf_ethdev.c    |  3 +++
>  lib/librte_pci/rte_pci.h          |  4 ++++
>  6 files changed, 46 insertions(+), 1 deletion(-)
> 
> --
> 2.31.1

Tested-by: Qi Zhang <qi.z.zhang@intel.com> on iavf with ice kernel PF.

Thanks
Qi