Skip to content

megasas: gen2 emulation and MSI-X fixes

Hannes Reinecke qemu-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 7 repliesIn review
  2. v117 patches 20 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13scsi: Rename scsi_cdb_length() to scsi_xfer_length()hw/scsi/scsi-bus.c hw/scsi/scsi-disk.c include/hw/scsi/scsi.h+22 -140 replies
2/13megasas: fixup MFI_DCMD_LD_LIST_QUERYhw/scsi/megasas.c hw/scsi/mfi.h+41 -30 replies
3/13megasas: simplify trace event messagestrace-events+19 -190 replies
4/13megasas: fixup device mappinghw/scsi/megasas.c hw/scsi/mfi.h+61 -360 replies
5/13megasas: add MegaRAID SAS 2108 emulationhw/scsi/megasas.c hw/scsi/mfi.h include/hw/pci/pci_ids.h+201 -254 replies
6/13megasas: Fix typo in megasas_dcmd_ld_get_list()hw/scsi/megasas.c+1 -10 replies
7/13megasas: Decode register nameshw/scsi/megasas.c trace-events+22 -50 replies
8/13megasas: Clear unit attention on initial resethw/scsi/megasas.c hw/scsi/scsi-bus.c include/hw/scsi/scsi.h +1 more+20 -30 replies
9/13megasas: Ignore duplicate init_firmware commandshw/scsi/megasas.c trace-events+7 -30 replies
10/13megasas: Implement DCMD_CLUSTER_RESET_LDhw/scsi/megasas.c+15 -13 replies
11/13megasas: Update queue logginghw/scsi/megasas.c trace-events+21 -120 replies
12/13megasas: Rework frame queueing algorithmhw/scsi/megasas.c trace-events+48 -540 replies
13/13megasas: Fixup MSI-X handlinghw/scsi/megasas.c trace-events+25 -250 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCHv2 00/13] megasas: gen2 emulation and MSI-X fixes

Hi all,

here is an update to the megasas emulation. It adds a new emulation type (called 'megasas-gen2'), which emulates a newer (PCIe-based) version of the MegaRAID HBA. As this hardware does MSI-X I've also fixed up MSI-X support for the megasas emulation.
With these patches Win7 and Linux boot happily with MSI-X.

Upon request from Paolo I've pulled the unrelated fixes which were present in the original submission. Those fixes will be send separately.

Hannes Reinecke (13):
scsi: Rename scsi_cdb_length() to scsi_xfer_length()
megasas: fixup MFI_DCMD_LD_LIST_QUERY
megasas: simplify trace event messages
megasas: fixup device mapping
megasas: add MegaRAID SAS 2108 emulation
megasas: Fix typo in megasas_dcmd_ld_get_list()
megasas: Decode register names
megasas: Clear unit attention on initial reset
megasas: Ignore duplicate init_firmware commands
megasas: Implement DCMD_CLUSTER_RESET_LD
megasas: Update queue logging
megasas: Rework frame queueing algorithm
megasas: Fixup MSI-X handling

 hw/scsi/megasas.c        | 574 +++++++++++++++++++++++++++++++++++------------
 hw/scsi/mfi.h            |  16 +-
 hw/scsi/scsi-bus.c       |  33 +--
 hw/scsi/scsi-disk.c      |   2 +-
 include/hw/pci/pci_ids.h |   1 +
 include/hw/scsi/scsi.h   |   4 +-
 trace-events             |  54 ++---
 7 files changed, 493 insertions(+), 191 deletions(-)
Signature · 1 line
1.8.4.5