* [PATCH] scsi_proto.h: ATA_32 added for ata pass-thru(32).
@ 2017-06-15 11:29 Minwoo Im
2017-06-16 15:27 ` Bart Van Assche
0 siblings, 1 reply; 3+ messages in thread
From: Minwoo Im @ 2017-06-15 11:29 UTC (permalink / raw)
To: James E.J. Bottomley, Martin K. Petersen; +Cc: linux-scsi, Minwoo Im
SAT-4(SCSI/ATA Translation Standard) supports a ATA PASS-THROUGH(32)
SCSI command. It uses 7Fh as a operation code which means
variable-length CDB.
It would be great if kernel supports an ata pass-thru(32) command.
Prior to development of ata pass-through in libata level,
the definition of it should be added first.
Signed-off-by: Minwoo Im <dn3108@gmail.com>
---
include/scsi/scsi_proto.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/scsi/scsi_proto.h b/include/scsi/scsi_proto.h
index ce78ec8..1eb4efd 100644
--- a/include/scsi/scsi_proto.h
+++ b/include/scsi/scsi_proto.h
@@ -164,6 +164,7 @@
#define WRITE_SAME_32 0x0d
/* Values for T10/04-262r7 */
+#define ATA_32 0x7F /* 32-byte pass-thru */
#define ATA_16 0x85 /* 16-byte pass-thru */
#define ATA_12 0xa1 /* 12-byte pass-thru */
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi_proto.h: ATA_32 added for ata pass-thru(32).
2017-06-15 11:29 [PATCH] scsi_proto.h: ATA_32 added for ata pass-thru(32) Minwoo Im
@ 2017-06-16 15:27 ` Bart Van Assche
2017-06-17 6:48 ` Minwoo Im
0 siblings, 1 reply; 3+ messages in thread
From: Bart Van Assche @ 2017-06-16 15:27 UTC (permalink / raw)
To: jejb@linux.vnet.ibm.com, dn3108@gmail.com,
martin.petersen@oracle.com
Cc: linux-scsi@vger.kernel.org
On Thu, 2017-06-15 at 20:29 +0900, Minwoo Im wrote:
> SAT-4(SCSI/ATA Translation Standard) supports a ATA PASS-THROUGH(32)
> SCSI command. It uses 7Fh as a operation code which means
> variable-length CDB.
> It would be great if kernel supports an ata pass-thru(32) command.
> Prior to development of ata pass-through in libata level,
> the definition of it should be added first.
>
> Signed-off-by: Minwoo Im <dn3108@gmail.com>
> ---
> include/scsi/scsi_proto.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/scsi/scsi_proto.h b/include/scsi/scsi_proto.h
> index ce78ec8..1eb4efd 100644
> --- a/include/scsi/scsi_proto.h
> +++ b/include/scsi/scsi_proto.h
> @@ -164,6 +164,7 @@
> #define WRITE_SAME_32 0x0d
>
> /* Values for T10/04-262r7 */
> +#define ATA_32 0x7F /* 32-byte pass-thru */
> #define ATA_16 0x85 /* 16-byte pass-thru */
> #define ATA_12 0xa1 /* 12-byte pass-thru */
Hello Minwoo,
In the Linux kernel we do not add such definitions separately but we
only add such definitions together with the code that uses the newly
introduced symbolic name.
Regarding the above patch, to keep the definitions consistent, please
use VARIABLE_LENGTH_CMD as a symbolic name for 0x7F and also add the
following definition below "/* values for variable length command */":
#define ATA_32 0x1ff0
Thanks,
Bart.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi_proto.h: ATA_32 added for ata pass-thru(32).
2017-06-16 15:27 ` Bart Van Assche
@ 2017-06-17 6:48 ` Minwoo Im
0 siblings, 0 replies; 3+ messages in thread
From: Minwoo Im @ 2017-06-17 6:48 UTC (permalink / raw)
To: Bart Van Assche, jejb@linux.vnet.ibm.com,
martin.petersen@oracle.com
Cc: linux-scsi@vger.kernel.org
On Sat, Jun 17, 2017 at 12:27 AM, Bart Van Assche
<Bart.VanAssche@wdc.com> wrote:
> On Thu, 2017-06-15 at 20:29 +0900, Minwoo Im wrote:
>> SAT-4(SCSI/ATA Translation Standard) supports a ATA PASS-THROUGH(32)
>> SCSI command. It uses 7Fh as a operation code which means
>> variable-length CDB.
>> It would be great if kernel supports an ata pass-thru(32) command.
>> Prior to development of ata pass-through in libata level,
>> the definition of it should be added first.
>>
>> Signed-off-by: Minwoo Im <dn3108@gmail.com>
>> ---
>> include/scsi/scsi_proto.h | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/include/scsi/scsi_proto.h b/include/scsi/scsi_proto.h
>> index ce78ec8..1eb4efd 100644
>> --- a/include/scsi/scsi_proto.h
>> +++ b/include/scsi/scsi_proto.h
>> @@ -164,6 +164,7 @@
>> #define WRITE_SAME_32 0x0d
>>
>> /* Values for T10/04-262r7 */
>> +#define ATA_32 0x7F /* 32-byte pass-thru */
>> #define ATA_16 0x85 /* 16-byte pass-thru */
>> #define ATA_12 0xa1 /* 12-byte pass-thru */
>
> Hello Minwoo,
>
> In the Linux kernel we do not add such definitions separately but we
> only add such definitions together with the code that uses the newly
> introduced symbolic name.
>
> Regarding the above patch, to keep the definitions consistent, please
> use VARIABLE_LENGTH_CMD as a symbolic name for 0x7F and also add the
> following definition below "/* values for variable length command */":
>
> #define ATA_32 0x1ff0
>
> Thanks,
>
> Bart.
(retry to reply in plain text mode)
Dear Bart,
First of all, I really appreciate letting me know the part of process
of kernel development. I completely agree with you about the
VARIABLE_LENGTH_CMD symbolic name because it's not only for
ATA PASS-THROUGH(32) command.
I'll try to send a patch the ATA_32 with codes that use those
symbolic names soon.
Thanks, again
Minwoo.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-17 6:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-15 11:29 [PATCH] scsi_proto.h: ATA_32 added for ata pass-thru(32) Minwoo Im
2017-06-16 15:27 ` Bart Van Assche
2017-06-17 6:48 ` Minwoo Im
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).