Supoort shared irq for virtqueues
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 15 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | vDPA/ifcvf: implement IO read/write helpers in the header filedrivers/ drivers/ | +37 | 0 replies | |
| 2/7 | vDPA/ifcvf: introduce new helpers to set config vector and vq vectorsdrivers/ drivers/ | +32 | 1 reply | |
| 3/7 | vDPA/ifcvf: implement device MSIX vector allocation helperdrivers/ | +24 | 1 reply | |
| 4/7 | vDPA/ifcvf: implement shared irq handlers for vqsdrivers/ | +15 | 1 reply | |
| 5/7 | vDPA/ifcvf: irq request helpers for both shared and per_vq irqdrivers/ drivers/ | +66 | 1 reply | |
| 6/7 | vDPA/ifcvf: implement config interrupt request helperdrivers/ drivers/ | +26 | 1 reply | |
| 7/7 | vDPA/ifcvf: improve irq requester, to handle per_vq/shared/config irqdrivers/ drivers/ | +38 | 8 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7] Supoort shared irq for virtqueues
On some platforms, it has been observed that a device may fail to allocate enough MSI-X vectors, under such circumstances, the vqs have to share a irq/vector.
This series extends irq requester/handlers abilities to deal with:
(granted nvectors, and max_intr = total vq number + 1(config interrupt) )
1)nvectors = max_intr: each vq has its own vector/irq,
config interrupt is enabled, normal case
2)max_intr > nvectors >= 2: vqs share one irq/vector, config interrupt is enabled
3)nvectors = 1, vqs share one irq/vector, config interrupt is disabled. Otherwise it fails.
This series also made necessary changes to irq cleaners and related helpers.
Pleaase help reivew.
Thanks!
Zhu Lingshan
Zhu Lingshan (7):
vDPA/ifcvf: implement IO read/write helpers in the header file vDPA/ifcvf: introduce new helpers to set config vector and vq vectors vDPA/ifcvf: implement device MSIX vector allocation helper vDPA/ifcvf: implement shared irq handlers for vqs vDPA/ifcvf: irq request helpers for both shared and per_vq irq vDPA/ifcvf: implement config interrupt request helper vDPA/ifcvf: improve irq requester, to handle per_vq/shared/config irq
drivers/vdpa/ifcvf/ifcvf_base.c | 65 ++++-------- drivers/vdpa/ifcvf/ifcvf_base.h | 45 +++++++- drivers/vdpa/ifcvf/ifcvf_main.c | 179 +++++++++++++++++++++++++++----- 3 files changed, 215 insertions(+), 74 deletions(-)
Signature · 1 line
2.27.0