Various of SR-IOV fixes and cleanup
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 14 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | iov: Update virtfn_max_buses to validate offset and stridedrivers/ | +24 | 5 replies | |
| 2/5 | iov: Reset resources to 0 if totalVFs increases after enabling ARIdrivers/ | +10 | 4 replies | |
| 3/5 | iov: Fix sriov_enable exception handling pathdrivers/ | +17 | 3 replies | |
| 4/5 | iov: Variable and loop cleanup for sriov_disable and sriov_enabledrivers/ | +4 | 2 replies | |
| 5/5 | iov: Update sriov_enable to correctly handle offset and stridedrivers/ | +11 | 0 replies |
Reviews trailers per patch
1 of 5 patches has a Reviewed-by or Acked-by.
| Patch | Ethan Zhao | Alexander Duyck |
|---|---|---|
| 1/5 | Based-on-patch-by | A-b |
| 2/5 | ||
| 3/5 | ||
| 4/5 | ||
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/5] Various of SR-IOV fixes and cleanup
This patch set is meant to address several issues found in recent patches currently in the pci/virtualization branch.
The first two patches address possible issues in initialization. Specifically the fact that offset and stride cannot be read while numvfs is 0, and that the BARs need to be reset if totalVFs has increased because the BIOS likely allocated the given resources under the assumption of a smaller number of VFs being available.
The last 3 address a number of issues in sriov_enable. They started as just a patch to address the offset and stride issues, however there were some other issues found related to pcibios_enable_sriov that I decided to address as well, and then there was some minor cleanup in addition to all of that.
---
Alexander Duyck (5):
iov: Update virtfn_max_buses to validate offset and stride
iov: Reset resources to 0 if totalVFs increases after enabling ARI
iov: Fix sriov_enable exception handling path
iov: Variable and loop cleanup for sriov_disable and sriov_enable
iov: Update sriov_enable to correctly handle offset and stride
drivers/pci/iov.c | 123 ++++++++++++++++++++++++++++------------------------- 1 file changed, 65 insertions(+), 58 deletions(-)
--