Redesign SR-IOV on PowerNV
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v7 Latest6 patches 2 repliesIn review
- v66 patches 2 repliesSuperseded
- v5 posting 2/26 patches 21 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 posting 1/2 | 6 patches | 1 reply | Superseded | |
| v4 | 6 patches | 16 replies | Superseded | |
| v3 | 6 patches | 15 replies | Superseded | |
| v2 | 6 patches | 44 replies | Superseded |
Changes in v7 from the cover letter
* clear res->flags when truncating the IOV BAR
Patches in v7 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | powerpc/powernv: don't enable SRIOV when VF BAR has non 64bit-prefetchable BARarch/ | +19 | 1 reply | |
| 2/6 | powerpc/powernv: simplify the calculation of iov resource alignmentarch/ | +12 | 0 replies | |
| 3/6 | powerpc/powernv: use one M64 BAR in Single PE mode for one VF BARarch/ arch/ | +75 | 0 replies | |
| 4/6 | powerpc/powernv: replace the hard coded boundary with gatearch/ | +19 | 0 replies | |
| 5/6 | powerpc/powernv: boundary the total VF BAR size instead of the individual onearch/ | +8 | 0 replies | |
| 6/6 | powerpc/powernv: allocate sparse PE# when using M64 BAR in Single PE modearch/ arch/ | +63 | 0 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Gavin Shan | Alexey Kardashevskiy |
|---|---|---|
| Series | A-b | |
| 1/6 | R-b | A-b |
| 2/6 | R-b | A-b |
| 3/6 | R-b | A-b |
| 4/6 | R-b | A-b |
| 5/6 | R-b | A-b |
| 6/6 | R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V7 0/6] Redesign SR-IOV on PowerNV
In original design, it tries to group VFs to enable more number of VFs in the system, when VF BAR is bigger than 64MB. This design has a flaw in which one error on a VF will interfere other VFs in the same group.
This patch series change this design by using M64 BAR in Single PE mode to cover only one VF BAR. By doing so, it gives absolute isolation between VFs.
v7:
* clear res->flags when truncating the IOV BAR
v6:
* add the minimum size check when M64 BAR is in Single PE mode
* truncate IOV BAR when powernv can't handle it
v5:
* rebase on top of v4.2, with commit 68230242cdb "net/mlx4_core: Add port attribute when tracking counters" reverted
* add some reason in change log of Patch 1
* make the pnv_pci_iov_resource_alignment() more easy to read
* initialize pe_num_map[] just after it is allocated
* test ssh from guest to host via VF passed and then shutdown the guest
* no code change
v4:
* rebase the code on top of v4.2-rc7
* switch back to use the dynamic version of pe_num_map and m64_map
* split the memory allocation and PE assignment of pe_num_map to make it more easy to read
* check pe_num_map value before free PE.
* add the rename reason for pe_num_map and m64_map in change log
v3:
* return -ENOSPC when a VF has non-64bit prefetchable BAR
* rename offset to pe_num_map and define it staticly
* change commit log based on comments
* define m64_map staticly
v2:
* clean up iov bar alignment calculation
* change m64s to m64_bars
* add a field to represent M64 Single PE mode will be used
* change m64_wins to m64_map
* calculate the gate instead of hard coded
* dynamically allocate m64_map
* dynamically allocate PE#
* add a case to calculate iov bar alignment when M64 Single PE is used
* when M64 Single PE is used, compare num_vfs with M64 BAR available number in system at first
Wei Yang (6):
powerpc/powernv: don't enable SRIOV when VF BAR has non
64bit-prefetchable BAR
powerpc/powernv: simplify the calculation of iov resource alignment powerpc/powernv: use one M64 BAR in Single PE mode for one VF BAR powerpc/powernv: replace the hard coded boundary with gate powerpc/powernv: boundary the total VF BAR size instead of the
individual one
powerpc/powernv: allocate sparse PE# when using M64 BAR in Single PE
mode
arch/powerpc/include/asm/pci-bridge.h | 7 +- arch/powerpc/platforms/powernv/pci-ioda.c | 347 ++++++++++++++++-------------- 2 files changed, 192 insertions(+), 162 deletions(-)
Signature · 1 line
2.5.0