Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Oct 2004 10:27:28 -0600
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        Bruce M Simpson <bms@spc.org>
Cc:        freebsd-scsi@FreeBSD.org
Subject:   Re: [PATCH] Add UFI related mode pages to scsi_modes
Message-ID:  <20041008162728.GA55158@nargothrond.kdm.org>
In-Reply-To: <20041008072854.GC718@empiric.icir.org>
References:  <20041008072854.GC718@empiric.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 08, 2004 at 00:28:54 -0700, Bruce M Simpson wrote:
> [Please Cc: me as I am not subscribed to -scsi]
> 
> Any objections to my committing this patch to HEAD?
> 
> Most of the details herein come from the USB Mass Storage UFI Spec.

Well, for page 0x1b, that'll probably be okay.  I hope at some point to put
device type information in the mode page database so that we can
distinguish between pages with identical numbers that are different for
different device types.

As for page 0x1c, though, we have a problem.

If you look at SPC-3, it is not a per device type page, but rather a
general SCSI page (Informational Exceptions Control mode page).

My guess is that the USB folks stole a reserved mode page number, and now
it is used for something else.

In order to make that work, we'll have to come up with a way to have
different mode pages with the same number, and then automatically figure
out which page format goes with the device we're talking to.

The pieces of information we'll need to do that are likely:

 - device type (direct access, sequential access, CD, etc.)
 - transport/protocol information (I wouldn't have put this in the list
   before now, but we'll have to use this or some other similar method to
   distinguish between UFI devices and everything else.)
 - inquiry information for vendor-specific mode pages

> --- /usr/src/share/misc/scsi_modes	Sun Feb 24 05:27:57 2002
> +++ scsi_modes	Fri Oct  8 00:26:13 2004
> @@ -291,6 +291,28 @@
>  	{Reserved} *i4
>  }
>  
> +# Removable devices
> +0x1b "Removable Block Access Capacities Page" {
> +	{System Floppy Type Device} t1
> +	{Supports Reporting Format Progress} t1
> +	{Reserved} *t6
> +	{Non CD Optical Device} t1
> +	{Single or Multiple LUN Supported} t1
> +	{Reserved} *t3
> +	{Total Logical Units Supported} t3
> +	{Reserved} *i8
> +}
> +
> +0x1c "Timer and Protect Page" {
> +	{Reserved} *i1
> +	{Reserved} *t4
> +	{Inactivity Time Multiplier} t4
> +	{Reserved} *t6
> +	{Disable Media Access until Power Cycle} t1
> +	{Software Write Protect until Power Cycle} t1
> +	{Reserved} *i3
> +}
> +
>  # CD-ROM (and CD-R[W]) devices
>  0x2a "CD capabilities and mechanical status page" {
>  	{Reserved} *t4

Ken
-- 
Kenneth Merry
ken@kdm.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041008162728.GA55158>