vdpa/mlx5: Add support for resumable vqs
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest8 patches 0 repliesNew
- v415 patches 34 repliesSuperseded
- v36 patches 1 replySuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 8 patches | 22 replies | Superseded | |
| v1 | 7 patches | 14 replies | Applied |
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | vdpa/mlx5: Expose resumable vq capabilityinclude/ | +2 | 0 replies | |
| 2/8 | vdpa/mlx5: Allow modifying multiple vq fields in one modify commanddrivers/ | +40 | 0 replies | |
| 3/8 | vdpa/mlx5: Introduce per vq and device resumedrivers/ | +62 | 0 replies | |
| 4/8 | vdpa/mlx5: Mark vq addrs for modification in hw vqdrivers/ include/ | +10 | 0 replies | |
| 5/8 | vdpa/mlx5: Mark vq state for modification in hw vqdrivers/ include/ | +10 | 0 replies | |
| 6/8 | vdpa/mlx5: Use vq suspend/resume during .set_mapdrivers/ include/ | +39 | 0 replies | |
| 7/8 | vdpa/mlx5: Introduce reference counting to mrsdrivers/ drivers/ drivers/ | +78 | 0 replies | |
| 8/8 | vdpa/mlx5: Add mkey leak detectiondrivers/ drivers/ drivers/ | +27 | 0 replies |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by.
| Patch | Gal Pressman | Eugenio Pérez | Jason Wang |
|---|---|---|---|
| 1/8 | R-b | A-b | |
| 2/8 | R-b | A-b | A-b |
| 3/8 | R-b | A-b | A-b |
| 4/8 | R-b | ||
| 5/8 | R-b | A-b | |
| 6/8 | R-b | A-b | A-b |
| 7/8 | R-b | A-b | A-b |
| 8/8 | R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH vhost v5 0/8] vdpa/mlx5: Add support for resumable vqs
Add support for resumable vqs in the mlx5_vdpa driver. This is a firmware feature that can be used for the following benefits:
- Full device .suspend/.resume.
- .set_map doesn't need to destroy and create new vqs anymore just to update the map. When resumable vqs are supported it is enough to suspend the vqs, set the new maps, and then resume the vqs.
The first patch exposes relevant bits for the feature in mlx5_ifc.h. That means it needs to be applied to the mlx5-vhost tree [0] first. Once applied there, the change has to be pulled from mlx5-vhost into the vhost tree and only then the remaining patches can be applied. Same flow as the vq descriptor mappings patchset [1].
The second part adds support for selectively modifying vq parameters. This is needed to be able to use resumable vqs.
The third part adds the actual support for resumable vqs.
The last part of the series introduces reference counting for mrs which is necessary to avoid freeing mkeys too early or leaking them.
* Changes in v5:
- Same as v2 with additional Acked-by tags. Based on review discussion in this thread [0].
* Changes in v4:
- Added vdpa backend feature support for changing vq properties in DRIVER_OK when device is suspended. Added support in the driver as well.
- Dropped Acked-by for the patches that had the tag mistakenly added.
* Changes in v3:
- Faulty version. Please ignore.
* Changes in v2:
- Added mr refcounting patches.
- Deleted unnecessary patch: "vdpa/mlx5: Split function into locked and unlocked variants"
- Small print improvement in "Introduce per vq and device resume" patch.
- Patch 1/7 has been applied to mlx5-vhost branch.
Dragos Tatulea (8):
vdpa/mlx5: Expose resumable vq capability
vdpa/mlx5: Allow modifying multiple vq fields in one modify command vdpa/mlx5: Introduce per vq and device resume
vdpa/mlx5: Mark vq addrs for modification in hw vq vdpa/mlx5: Mark vq state for modification in hw vq vdpa/mlx5: Use vq suspend/resume during .set_map vdpa/mlx5: Introduce reference counting to mrs vdpa/mlx5: Add mkey leak detection
drivers/vdpa/mlx5/core/mlx5_vdpa.h | 10 +- drivers/vdpa/mlx5/core/mr.c | 69 ++++++++-- drivers/vdpa/mlx5/net/mlx5_vnet.c | 209 ++++++++++++++++++++++++++--- include/linux/mlx5/mlx5_ifc.h | 3 +- include/linux/mlx5/mlx5_ifc_vdpa.h | 4 + 5 files changed, 257 insertions(+), 38 deletions(-)
Signature · 1 line
2.43.0