linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Compaq Fiber Channel Array RM4000 / 2.6.16 kernel patch VER6
@ 2006-04-18 11:10 Konstantin Khorenko
  0 siblings, 0 replies; 10+ messages in thread
From: Konstantin Khorenko @ 2006-04-18 11:10 UTC (permalink / raw)
  To: James Bottomley; +Cc: linux-scsi, Ingo Flaschberger, Vasily Averin

Hello James,

excuse me, but i have a question concerning following changes, made for support 
of Compaq Fiber Channel Array RM4000.

This patch changes logic for ALL devices which have scsi_level detected as 
SCSI_UNKNOWN,
all such devices now won't store LUN values in scsi commands and ALL of them 
would report their luns.
Do you know if there are such devices (with scsi_level detected as 
SCSI_UNKNOWN) other then Compaq Fiber Channel Array RM4000?
Wouldn't these changes brake their support?

http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=4d7db04a7a69099accd84984a78c64d2178252f1
http://marc.theaimsgroup.com/?l=linux-scsi&m=114391012120176&w=2

Hunks from the patch i'm talking about:

linux-2.6.16/drivers/scsi/scsi.c:
  	 * If SCSI-2 or lower, store the LUN value in cmnd.
  	 */
-	if (cmd->device->scsi_level <= SCSI_2) {
+	if (cmd->device->scsi_level <= SCSI_2 &&
+			cmd->device->scsi_level != SCSI_UNKNOWN) {
  		cmd->cmnd[1] = (cmd->cmnd[1] & 0x1f) |
  			       (cmd->device->lun << 5 & 0xe0);
  	}

linux-2.6.16/drivers/scsi/scsi_scan.c:
  	 * Also allow SCSI-2 and SCSI-UNKNOWN if BLIST_REPORTLUN is set and host
  	 * adapter does support more than 8 LUNs.
  	 */
-	if ((bflags & BLIST_NOREPORTLUN) ||
-	     starget->scsi_level < SCSI_2 ||
-	    (starget->scsi_level < SCSI_3 &&
-	     (!(bflags & BLIST_REPORTLUN) || shost->max_lun <= 8)) )
+	if (bflags & BLIST_NOREPORTLUN)
+		return 1;
+	if (starget->scsi_level < SCSI_2 &&
+			starget->scsi_level != SCSI_UNKNOWN)
+		return 1;
+	if (starget->scsi_level < SCSI_3 &&
+			(!(bflags & BLIST_REPORTLUN) || shost->max_lun <= 8))
  		return 1;

Thank you.
-- 
Konstantin Khorenko,
SWsoft, Inc.


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Compaq Fiber Channel Array RM4000 / 2.6.16 kernel patch
@ 2006-03-29 18:22 James Bottomley
  2006-03-29 18:35 ` Ingo Flaschberger
  0 siblings, 1 reply; 10+ messages in thread
From: James Bottomley @ 2006-03-29 18:22 UTC (permalink / raw)
  To: Ingo Flaschberger; +Cc: Linux-SCSI Mailing List

On Wed, 2006-03-29 at 19:53 +0200, Ingo Flaschberger wrote:
> > Really no to this we're trying to get away from changing actual reported
> > device information.  I assume the device reports SCSI-3
> 
> The device reports "zero" and thats why I need to force SCSI2!
> Its better to force SCSI2 in one position than to deal with "SCSI_UNKNOWN" 
> in severall position?

Why?  We're actually trying to make SCSI_UNKNOWN work for some sbp2 and
USB storage as well.  What specific problems does it cause?

James



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-04-18 11:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-18 11:10 Compaq Fiber Channel Array RM4000 / 2.6.16 kernel patch VER6 Konstantin Khorenko
  -- strict thread matches above, loose matches on Subject: below --
2006-03-29 18:22 Compaq Fiber Channel Array RM4000 / 2.6.16 kernel patch James Bottomley
2006-03-29 18:35 ` Ingo Flaschberger
2006-03-29 18:43   ` James Bottomley
2006-03-29 18:54     ` Ingo Flaschberger
2006-03-29 19:03       ` James Bottomley
2006-03-29 20:23         ` Ingo Flaschberger
2006-03-29 21:11           ` James Bottomley
2006-03-30 10:53             ` Ingo Flaschberger
2006-03-30 12:58               ` Matthew Wilcox
2006-03-30 14:20                 ` Ingo Flaschberger
2006-03-30 16:24                   ` Matthew Wilcox
2006-03-30 16:35                     ` Compaq Fiber Channel Array RM4000 / 2.6.16 kernel patch VER6 Ingo Flaschberger
2006-03-31 17:36                       ` Ingo Flaschberger
2006-03-31 19:45                       ` James Bottomley
2006-03-31 21:13                         ` Ingo Flaschberger
2006-03-31 21:21                           ` James Bottomley
2006-03-31 21:24                             ` Ingo Flaschberger
2006-04-01  1:16                               ` Ingo Flaschberger
2006-04-01  2:07                                 ` James Bottomley
2006-04-01 16:46                                   ` Ingo Flaschberger

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).