mbox series

[v2,0/6] add support of RSOC command

Message ID 20220906103421.22348-1-d.bogdanov@yadro.com
Headers show
Series add support of RSOC command | expand

Message

Dmitry Bogdanov Sept. 6, 2022, 10:34 a.m. UTC
This patchset is based on 6.1/scsi-queue.

Resending with a current datetime. Sorry for the experiment with a date
of the patch creation.

The patchset adds support of REPORT SUPPORTED OPERATION CODES command
according to SPC4. Including CDB USAGE DATA and timeout descriptors.
Timeout descriptors are zeroed currently, meaning that no time is
indicated, but an encoding of it there is.
Opcode support and Usage Data are dynamically generated - reflects
the backstore configuration.
libiscsi tests for RSOC and tests that uses RSOC command are all PASSED.

v2:
  fix sparse warnings
  remove extra space
  remove XDWRITEREAD_*
  fix tcm_is_ws_enabled

Dmitry Bogdanov (6):
  scsi: target: core: add support of RSOC command
  scsi: target: core: add list of opcodes for RSOC
  scsi: target: core: dynamic opcode support in RSOC
  scsi: target: core: add emulate_rsoc attribute
  scsi: target: check emulate_3pc for RECEIVE COPY
  scsi: target: core: dynamicaly set dpofua in usage_bits

 drivers/target/target_core_configfs.c |  20 +
 drivers/target/target_core_device.c   |   1 +
 drivers/target/target_core_spc.c      | 920 ++++++++++++++++++++++++++
 drivers/target/target_core_xcopy.c    |   6 +
 include/scsi/scsi_proto.h             |  10 +
 include/target/target_core_base.h     |  18 +
 6 files changed, 975 insertions(+)

Comments

Mike Christie Sept. 29, 2022, 8:34 p.m. UTC | #1
On 9/6/22 5:34 AM, Dmitry Bogdanov wrote:
> This patchset is based on 6.1/scsi-queue.
> 
> Resending with a current datetime. Sorry for the experiment with a date
> of the patch creation.
> 
> The patchset adds support of REPORT SUPPORTED OPERATION CODES command
> according to SPC4. Including CDB USAGE DATA and timeout descriptors.
> Timeout descriptors are zeroed currently, meaning that no time is
> indicated, but an encoding of it there is.
> Opcode support and Usage Data are dynamically generated - reflects
> the backstore configuration.
> libiscsi tests for RSOC and tests that uses RSOC command are all PASSED.
> 
> v2:
>   fix sparse warnings
>   remove extra space
>   remove XDWRITEREAD_*
>   fix tcm_is_ws_enabled
> 

Reviewed-by: Mike Christie <michael.christie@oracle.com>
Martin K. Petersen Oct. 27, 2022, 2:14 a.m. UTC | #2
Dmitry,

> The patchset adds support of REPORT SUPPORTED OPERATION CODES command
> according to SPC4. Including CDB USAGE DATA and timeout descriptors.
> Timeout descriptors are zeroed currently, meaning that no time is
> indicated, but an encoding of it there is.  Opcode support and Usage
> Data are dynamically generated - reflects the backstore configuration.
> libiscsi tests for RSOC and tests that uses RSOC command are all
> PASSED.

Applied to 6.2/scsi-staging, thanks!
Martin K. Petersen Nov. 8, 2022, 4:01 a.m. UTC | #3
On Tue, 6 Sep 2022 13:34:15 +0300, Dmitry Bogdanov wrote:

> This patchset is based on 6.1/scsi-queue.
> 
> Resending with a current datetime. Sorry for the experiment with a date
> of the patch creation.
> 
> The patchset adds support of REPORT SUPPORTED OPERATION CODES command
> according to SPC4. Including CDB USAGE DATA and timeout descriptors.
> Timeout descriptors are zeroed currently, meaning that no time is
> indicated, but an encoding of it there is.
> Opcode support and Usage Data are dynamically generated - reflects
> the backstore configuration.
> libiscsi tests for RSOC and tests that uses RSOC command are all PASSED.
> 
> [...]

Applied to 6.2/scsi-queue, thanks!

[1/6] scsi: target: core: add support of RSOC command
      https://git.kernel.org/mkp/scsi/c/b9b8782f8966
[2/6] scsi: target: core: add list of opcodes for RSOC
      https://git.kernel.org/mkp/scsi/c/0016e820716f
[3/6] scsi: target: core: dynamic opcode support in RSOC
      https://git.kernel.org/mkp/scsi/c/553b08d9b3a7
[4/6] scsi: target: core: add emulate_rsoc attribute
      https://git.kernel.org/mkp/scsi/c/bd217b8c3a1f
[5/6] scsi: target: check emulate_3pc for RECEIVE COPY
      https://git.kernel.org/mkp/scsi/c/b8908e5e1d1d
[6/6] scsi: target: core: dynamicaly set dpofua in usage_bits
      https://git.kernel.org/mkp/scsi/c/415d82b44011