All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takahiro Yasui <tyasui@redhat.com>
To: James.Bottomley@suse.de
Cc: linux-scsi@vger.kernel.org
Subject: [PATCH] scsi_devinfo: update Hitachi entries (v2)
Date: Tue, 29 Sep 2009 11:53:49 -0400	[thread overview]
Message-ID: <4AC22D8D.8070801@redhat.com> (raw)

Hi James,

On 06/26/09 20:18, Takahiro Yasui wrote:
> I will evaluate BLIST_ATTACH_PQ3 flags on our storages, and post
> the result here. Please give me some time.

On the test with the BLIST_ATTACH_PQ3 flag on Hitachi storages,
existing disks were detected as expected, However, LU#0 is also
recognized like a existing disk and it is displayed as follows in
/proc/scsi/scsi.

Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: HITACHI  Model: DISK-SUBSYSTEM   Rev: 6006
  Type:   Unknown                          ANSI SCSI revision: 02

In addition, LU#0 is detected as sg0 and the real devices are assigned
to sg1, sg2...

<with the BLIST_ATTACH_PQ3 flag>
kernel: scsi 1:0:0:0: Attached scsi generic sg0 type 31
kernel: sd 1:0:0:1: Attached scsi generic sg1 type 0
...

<without the BLIST_ATTACH_PQ3 flag>
kernel: sd 1:0:0:1: Attached scsi generic sg0 type 0
kernel: sd 1:0:0:2: Attached scsi generic sg1 type 0
...

This behavior is not consistent with other disks, and it is better that
noexistent disk, LU#0, is not detected. Once again, I appreciate your
comments on the necessity of the BLIST_ATTACH_PQ3 flag.

In addition, I added one more flag change about the DISK-SUBSYSTEM model
in my patch. The DISK-SUBSYSTEM is a special model name returned when LUs
are not installed. For example, when LU#0 is not installed in "OPEN-"
models, LU#0 is detected as the DISK-SUBSYSTEM model. The DISK-SUBSYSTEM
model also requires the BLIST_REPORTLUN2 flag.

Thanks,
-- 
Takahiro Yasui
Hitachi Computer Products (America), Inc.


This is scsi_devinfo flag updates for the Hitachi storages.

Four models, OPEN-/DF400/DF500/DISK-SUBSYSTEM, can handle REPORT_LUN,
and the BLIST_REPORTLUN2 flag needs to be set. And DF600 doesn't require
any flags because it returns ANSI 03h (SPC).


Signed-off-by: Takahiro Yasui <tyasui@redhat.com>
---
 drivers/scsi/scsi_devinfo.c |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

Index: linux-2.6.31.1/drivers/scsi/scsi_devinfo.c
===================================================================
--- linux-2.6.31.1.orig/drivers/scsi/scsi_devinfo.c
+++ linux-2.6.31.1/drivers/scsi/scsi_devinfo.c
@@ -168,11 +168,10 @@ static struct {
 	{"Generic", "USB SD Reader", "1.00", BLIST_FORCELUN | BLIST_INQUIRY_36},
 	{"Generic", "USB Storage-SMC", "0180", BLIST_FORCELUN | BLIST_INQUIRY_36},
 	{"Generic", "USB Storage-SMC", "0207", BLIST_FORCELUN | BLIST_INQUIRY_36},
-	{"HITACHI", "DF400", "*", BLIST_SPARSELUN},
-	{"HITACHI", "DF500", "*", BLIST_SPARSELUN},
-	{"HITACHI", "DF600", "*", BLIST_SPARSELUN},
-	{"HITACHI", "DISK-SUBSYSTEM", "*", BLIST_ATTACH_PQ3 | BLIST_SPARSELUN | BLIST_LARGELUN},
-	{"HITACHI", "OPEN-E", "*", BLIST_ATTACH_PQ3 | BLIST_SPARSELUN | BLIST_LARGELUN},
+	{"HITACHI", "DF400", "*", BLIST_REPORTLUN2},
+	{"HITACHI", "DF500", "*", BLIST_REPORTLUN2},
+	{"HITACHI", "DISK-SUBSYSTEM", "*", BLIST_REPORTLUN2},
+	{"HITACHI", "OPEN-", "*", BLIST_REPORTLUN2},
 	{"HITACHI", "OP-C-", "*", BLIST_SPARSELUN | BLIST_LARGELUN},
 	{"HITACHI", "3380-", "*", BLIST_SPARSELUN | BLIST_LARGELUN},
 	{"HITACHI", "3390-", "*", BLIST_SPARSELUN | BLIST_LARGELUN},

                 reply	other threads:[~2009-09-29 16:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4AC22D8D.8070801@redhat.com \
    --to=tyasui@redhat.com \
    --cc=James.Bottomley@suse.de \
    --cc=linux-scsi@vger.kernel.org \
    /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.