Skip to content

fix PF reset causes VF memory request failure

Haiyue Wang dpdk-dev 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest3 patches 3 repliesIn review
  2. v63 patches 0 repliesSuperseded
  3. v53 patches 0 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v43 patches8 repliesSuperseded
v33 patches4 repliesSuperseded
v23 patches2 repliesSuperseded
v13 patches1 replySuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bus/pci: set PCI master in command registerdrivers/bus/pci/pci_common.c drivers/bus/pci/rte_bus_pci.h drivers/bus/pci/version.map +1 more+49 -00 replies
2/3net/iavf: enable PCI bus master after resetdrivers/net/iavf/iavf_ethdev.c+9 -11 reply
3/3net/i40e: enable PCI bus master after resetdrivers/net/i40e/i40e_ethdev_vf.c+12 -11 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchRay KinsellaBeilei Xing
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [dpdk-dev] [PATCH v7 0/3] fix PF reset causes VF memory request failure

Trigger 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.

v7: fix the commit message typo, and update some description.
v6: update the annotate symbol version, and add some comments in source code
v5: error handling if bus master enable failed
v4: change the API to set type, so can enable or disable
v3: added the missed annotate symbol add time
v2: rebase to new librte directory path

Haiyue Wang (3):
bus/pci: set 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      | 28 ++++++++++++++++++++++++++++
 drivers/bus/pci/rte_bus_pci.h     | 14 ++++++++++++++
 drivers/bus/pci/version.map       |  3 +++
 drivers/net/i40e/i40e_ethdev_vf.c | 13 ++++++++++++-
 drivers/net/iavf/iavf_ethdev.c    | 10 +++++++++-
 lib/pci/rte_pci.h                 |  4 ++++
 6 files changed, 70 insertions(+), 2 deletions(-)
Signature · 1 line
2.31.1