mbox series

[0/7] scsi_debug: Add ZBC support

Message ID 20200422104221.378203-1-damien.lemoal@wdc.com (mailing list archive)
Headers show
Series scsi_debug: Add ZBC support | expand

Message

Damien Le Moal April 22, 2020, 10:42 a.m. UTC
This is the second part of the scsi_debug updates implementing ZBC
support on top of Doug "per_host_store+random parameters, compare" patch
series.

The ZBC emulation implemented allows to emulate both host-managed and
host-aware disks with configurable zone size, number of conventional
zones znd maximum number of open zones. One feature missing is the
emulation of ZBC RC_BASIS which changes the behavior of the READ
CAPACITY command. This is however not a critical point for testing as,
to my knowledge, there are no disks using RC_BASIS on the market today.
RC_BASIS emulation can thus be added as a later patch.

The emulated devices, both host-aware and host-managed, pass libzbc ZBC
conformance tests (SG interface) as well as zonefs tests (block layer
interface).

Damien Le Moal (4):
  scsi_debug: add zone_max_open module parameter
  scsi_debug: add zone_nr_conv module parameter
  scsi_debug: add zone_size_mb module parameter
  scsi_debug: implement zbc host-aware emulation

Douglas Gilbert (3):
  scsi_debug: add zbc mode and VPD pages
  scsi_debug: add zbc zone commands
  scsi_debug: add zbc module parameter

 drivers/scsi/scsi_debug.c | 1016 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 993 insertions(+), 23 deletions(-)

Comments

Martin K. Petersen May 5, 2020, 4:41 a.m. UTC | #1
On Wed, 22 Apr 2020 19:42:14 +0900, Damien Le Moal wrote:

> This is the second part of the scsi_debug updates implementing ZBC
> support on top of Doug "per_host_store+random parameters, compare" patch
> series.
> 
> The ZBC emulation implemented allows to emulate both host-managed and
> host-aware disks with configurable zone size, number of conventional
> zones znd maximum number of open zones. One feature missing is the
> emulation of ZBC RC_BASIS which changes the behavior of the READ
> CAPACITY command. This is however not a critical point for testing as,
> to my knowledge, there are no disks using RC_BASIS on the market today.
> RC_BASIS emulation can thus be added as a later patch.
> 
> [...]

Applied to 5.8/scsi-queue, thanks!

[1/7] scsi: scsi_debug: Add ZBC mode and VPD pages
      https://git.kernel.org/mkp/scsi/c/d36da3058ced
[2/7] scsi: scsi_debug: Add ZBC zone commands
      https://git.kernel.org/mkp/scsi/c/f0d1cf9378bd
[3/7] scsi: scsi_debug: Add ZBC module parameter
      https://git.kernel.org/mkp/scsi/c/9267e0eb41fe
[4/7] scsi: scsi_debug: Add zone_max_open module parameter
      https://git.kernel.org/mkp/scsi/c/380603a5bb83
[5/7] scsi: scsi_debug: Add zone_nr_conv module parameter
      https://git.kernel.org/mkp/scsi/c/aa8fecf96b70
[6/7] scsi: scsi_debug: Add zone_size_mb module parameter
      https://git.kernel.org/mkp/scsi/c/98e0a689868c
[7/7] scsi: scsi_debug: Implement ZBC host-aware emulation
      https://git.kernel.org/mkp/scsi/c/64e14ece0700