All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Matthew Dharm <mdharm-scsi@one-eyed-alien.net>
Cc: linux-scsi@vger.kernel.org
Subject: Re: use_10_for_ms revisited?
Date: Sun, 29 Jun 2003 02:47:23 -0400	[thread overview]
Message-ID: <3EFE8B7B.2000109@pobox.com> (raw)
In-Reply-To: <20030628233824.H26995@one-eyed-alien.net>

Matthew Dharm wrote:
> On Sun, Jun 29, 2003 at 02:30:28AM -0400, Jeff Garzik wrote:
> 
>>I was reading the specs just now, and I see that the inquiry page 
>>defines how ATAPI and USB devices indicate they are compliant with MMC-4.
> 
> 
> It does?  I guess I've missed that.

I'm looking at MMC-4 revision 2a (whatever was on t10.org tonight).

Immediately after table 286 (standard inquiry data format), it describes 
the information I believe we can use to determine that 10-byte commands 
(only) need to be sent.  peripheral qualifier, peripheral device type, 
version, and interface dependent field #1.

These fields can be used to differentiate atapi/usb devices from older 
scsi devices.  One concrete example is that atapi reports zero in the 
version field, even though it's mmc-4 compliant.  But the Linux scsi 
stack treats that instead as the most ancient of ancient scsi devices :) 
  So, to counteract this, the ide-scsi module and other places will 
patch the inquiry page data to indicate a higher scsi revision.

Other examples are several places where 6-byte commands are converted 
into 10-byte commands.  The right answer is to simply know when to send 
10-byte commands in the first place, thus eliminating the need for any 
translation.


> If you're talking about the INQUIRY command, the data better be within the
> first 36 bytes, or it's likely to not actually be there.

Certainly.

	Jeff





  reply	other threads:[~2003-06-29  6:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-29  6:30 use_10_for_ms revisited? Jeff Garzik
2003-06-29  6:38 ` Matthew Dharm
2003-06-29  6:47   ` Jeff Garzik [this message]
2003-06-29  6:54     ` Matthew Dharm
2003-06-29  7:27       ` Jeff Garzik
2003-06-29 10:31         ` Alan Cox
2003-06-29 10:22 ` Andries Brouwer
2003-06-29 16:33   ` Jeff Garzik
2003-06-29 17:36     ` Andries Brouwer
2003-06-29 17:58       ` Jeff Garzik
2003-06-29 18:02         ` Matthew Dharm
2003-06-29 18:17           ` Jeff Garzik
2003-06-29 18:35             ` Matthew Dharm
2003-06-29 18:36             ` James Bottomley
2003-06-29 19:07               ` Jeff Garzik
2003-06-30  0:23                 ` Matthew Dharm
2003-06-30  3:24                   ` Jeff Garzik
2003-06-29 18:25         ` Andries Brouwer
2003-06-29 18:32           ` Jeff Garzik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EFE8B7B.2000109@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mdharm-scsi@one-eyed-alien.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.