Skip to content

vdpa/octeon_ep: fixes and improvements for multi VF

Srujana Challa virtualization 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4vdpa/octeon_ep: Fix PF->VF mailbox data address calculationdrivers/vdpa/octeon_ep/octep_vdpa_main.c+6 -10 replies
2/4vdpa/octeon_ep: Use 4 bytes for mailbox signaturedrivers/vdpa/octeon_ep/octep_vdpa_main.c+3 -30 replies
3/4vdpa/octeon_ep: Add vDPA device event handling for firmware notificationsdrivers/vdpa/octeon_ep/octep_vdpa.h drivers/vdpa/octeon_ep/octep_vdpa_main.c+115 -140 replies
4/4vdpa/octeon_ep: fix IRQ-to-ring mapping in interrupt handlerdrivers/vdpa/octeon_ep/octep_vdpa_main.c+11 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] vdpa/octeon_ep: fixes and improvements for multi VF

This series fixes several issues in the Marvell OCTEON DPU vDPA driver and adds support for firmware-initiated device events.

Patch 1 fixes the PF->VF mailbox address calculation when multiple rings per VF are configured. The driver previously assumed 1 ring per VF; it now reads the actual rings-per-VF from OCTEP_EPF_RINFO.

Patch 2 switches mailbox signature access from 64-bit to 32-bit, since the upper 4 bytes are reserved by firmware for metadata.

Patch 3 adds handling for vDPA device add and remove events from Octeon firmware, using irq 0 for multiplexed event delivery.

Patch 4 fixes the IRQ-to-ring mapping in the interrupt handler. The original logic assumed contiguous IRQs starting at irqs[0]; the driver now looks up the IRQ index in oct_hw->irqs to support non-contiguous IRQ numbers and avoid incorrect ring indexing.

Srujana Challa (2):
vdpa/octeon_ep: Fix PF->VF mailbox data address calculation vdpa/octeon_ep: fix IRQ-to-ring mapping in interrupt handler

Vamsi Attunuru (2):
vdpa/octeon_ep: Use 4 bytes for mailbox signature vdpa/octeon_ep: Add vDPA device event handling for firmware
notifications

 drivers/vdpa/octeon_ep/octep_vdpa.h      |  22 +++-
 drivers/vdpa/octeon_ep/octep_vdpa_main.c | 131 +++++++++++++++++++----
 2 files changed, 134 insertions(+), 19 deletions(-)
Signature · 1 line
2.25.1