On 01/03/2017 18:45, Roman Kagan wrote: > A number of SCSI drivers currently only see luns #0 in their targets. > > This may be a problem when drives have to be assigned bigger lun > numbers, e.g. because the storage controllers don't provide enough > target numbers to accomodate all drives. > (In particular, I'm about to submit a driver for Hyper-V VMBus SCSI > controller which is limited to 2 targets only). > > This series adds generic SCSI lun enumeration (either via REPORT LUNS > command or sequentially trying every lun), and makes the respective > drivers use it. > > Note that the series has only been minimally tested against a recent QEMU.
Hi Roman, are you going to send v2 of this? Thanks, Paolo > Roman Kagan (9): > blockcmd: accept only disks and CD-ROMs > blockcmd: generic SCSI luns enumeration > virtio-scsi: enumerate luns with REPORT LUNS > esp-scsi: enumerate luns with REPORT LUNS > usb-uas: enumerate luns with REPORT LUNS > pvscsi: fix the comment about lun enumeration > mpt-scsi: try to enumerate luns with REPORT LUNS > lsi-scsi: reset in case of a serious problem > lsi-scsi: try to enumerate luns with REPORT LUNS > > src/hw/blockcmd.h | 4 +++ > src/hw/blockcmd.c | 96 > ++++++++++++++++++++++++++++++++++++++++++++++++++++ > src/hw/esp-scsi.c | 35 +++++++++++++------ > src/hw/lsi-scsi.c | 39 +++++++++++++++------ > src/hw/mpt-scsi.c | 40 ++++++++++++++-------- > src/hw/pvscsi.c | 2 +- > src/hw/usb-uas.c | 45 +++++++++++++++--------- > src/hw/virtio-scsi.c | 38 ++++++++++++++------- > 8 files changed, 235 insertions(+), 64 deletions(-) > _______________________________________________ SeaBIOS mailing list SeaBIOS@seabios.org https://mail.coreboot.org/mailman/listinfo/seabios