public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: SCSI Mailing List <linux-scsi@vger.kernel.org>,
	linux1394-devel@lists.sourceforge.net
Cc: James Bottomley <James.Bottomley@SteelEye.com>,
	Ben Collins <bcollins@debian.org>,
	Jeff Garzik <jgarzik@pobox.com>
Subject: Re: changes to ieee1394/sbp2 outside of linux1394.org
Date: Sun, 10 Jul 2005 22:13:37 +0200	[thread overview]
Message-ID: <42D18171.8050207@s5r6.in-berlin.de> (raw)
In-Reply-To: <1121019274.5078.22.camel@mulgrave>

James Bottomley wrote:
> On Sun, 2005-07-10 at 19:34 +0200, Stefan Richter wrote:
>>Jul 10 18:30:17 shuttle kernel:   Type:   Unknown                            ANSI SCSI revision: 02
> 
> Sorry, that's expected: I had a patch that would identify it as RBC, but
> there was another different one from someone else, and neither got
> applied.  Can you try this:
> 
> http://sourceforge.net/mailarchive/message.php?msg_id=11828307

Yes, the type is logged as Direct-Access-RBC with that addition.

>>Then silence.
> 
> Hmm, it sounds like the driver's not binding.  If you do a
> 
> ls -l /sys/class/scsi_device/<device>/device/driver
> 
> On this, do you see anything (it should be a link to the bound driver).

"driver" does not exist. But the solution is too simple to be obvious:
# modprobe sd_mod
is followed by
Jul 10 21:45:14 shuttle kernel: SCSI device sda: 585940320 512-byte hdwr sectors (300001 MB)
Jul 10 21:45:14 shuttle kernel: SCSI device sda: drive cache: write back
Jul 10 21:45:14 shuttle kernel: SCSI device sda: 585940320 512-byte hdwr sectors (300001 MB)
Jul 10 21:45:14 shuttle kernel: SCSI device sda: drive cache: write back
Jul 10 21:45:14 shuttle kernel:  sda: sda1
Jul 10 21:45:14 shuttle kernel: Attached scsi disk sda at scsi1, channel 0, id 0, lun 0

So I added a mapping from type # 14 to TYPE_RBC and sd_mod to
/etc/hotplug/scsi.agent and it's back to normal. fdisk -l and hdparm -tT
play well.

And while they access the disk, no log notices come from sbp2 from the
points where conversions occured in the former code. (Only the initial
inquiry before sd_mod's attachment is logged as a former case for
conversion.)

> If there's nothing there, it sounds like sd.c is missing the RBC
> attachment code, which was this hunk of the patch:
> 
>   @@ -1533,7 +1551,7 @@
>   	int error;
>   
>   	error = -ENODEV;
>  -	if ((sdp->type != TYPE_DISK) && (sdp->type != TYPE_MOD))
>  +	if (sdp->type != TYPE_DISK && sdp->type != TYPE_MOD && sdp->type != TYPE_RBC)
>   		goto out;
>   
>   	SCSI_LOG_HLQUEUE(3, printk("sd_attach: scsi device: <%d,%d,%d,%d>\n", 
> 
> Could you check that that's in sd.c

sd.c contains the line with TYPE_RBC.

Alas, at least two problems remain:

  - Suddenly, the other problem reappeared. When I disconnect the disk,
    scsi_eh_0 stays there even though I am running the scsi_device_put
    modification in sbp2 (which helped before). This is accompanied by
    ieee1394's knodemgrd falling into D state.

  - As written in the other post, one of my 2.5" disks lets the system
    reboot shortly after the disk was attached. I have to find a way to
    identify the point of failure.
-- 
Stefan Richter
-=====-=-=-= -=== -=-=-
http://arcgraph.de/sr/



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar

  reply	other threads:[~2005-07-10 20:13 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-09 12:37 changes to ieee1394/sbp2 outside of linux1394.org Stefan Richter
2005-07-09 15:18 ` James Bottomley
2005-07-09 16:27   ` Ben Collins
2005-07-09 16:35     ` James Bottomley
2005-07-09 16:56       ` Stefan Richter
2005-07-09 17:24         ` James Bottomley
2005-07-15  0:53         ` Rogério Brito
2005-07-15  1:43           ` Ben Collins
2005-07-15  6:36             ` Stefan Richter
2005-07-15 15:30               ` Rogério Brito
2005-07-15 15:15             ` Rogério Brito
2005-07-15 15:53             ` Rogério Brito
2005-07-15 17:28               ` Ben Collins
2005-07-15 18:50                 ` Rogério Brito
2005-07-15 20:57                   ` Ben Collins
2005-07-15 21:44                     ` Stefan Richter
2005-07-16  2:10                       ` Rogério Brito
2005-07-16  1:42                     ` Rogério Brito
2005-07-16 15:56                       ` Ben Collins
2005-07-16 16:42                         ` Rogério Brito
2005-07-16 18:10                           ` Stefan Richter
2005-07-16 19:34                             ` Rogério Brito
2005-07-17 16:57                           ` Ben Collins
2005-07-17 19:18                             ` Rogério Brito
2005-07-17 19:46                               ` Stefan Richter
2005-07-18  0:14                                 ` Rogério Brito
2005-07-17 23:27                                   ` Stefan Richter
2005-07-18  4:50                                     ` Philipp Slusallek
2005-07-18  7:13                                       ` Stefan Richter
2005-07-18  8:18                                       ` Rogério Brito
2005-07-20  0:20                                         ` Rogério Brito
2005-07-09 17:49       ` Ben Collins
2005-07-09 18:41         ` James Bottomley
2005-07-09 19:22           ` Ben Collins
2005-07-09 16:37     ` Arjan van de Ven
2005-07-09 17:53       ` Ben Collins
2005-07-09 17:00     ` Stefan Richter
2005-07-09 17:51       ` Ben Collins
2005-07-09 17:57         ` Arjan van de Ven
2005-07-09 18:12           ` Ben Collins
2005-07-09 18:38     ` James Bottomley
2005-07-09 23:06   ` Ben Collins
2005-07-10  3:34     ` Jeff Garzik
2005-07-10  4:36       ` Ben Collins
2005-07-10 15:25         ` James Bottomley
2005-07-10 15:58           ` Ben Collins
2005-07-10 17:05             ` James Bottomley
2005-07-10 17:33               ` Ben Collins
2005-07-10 17:34           ` Stefan Richter
2005-07-10 18:14             ` James Bottomley
2005-07-10 20:13               ` Stefan Richter [this message]
2005-07-10 20:27                 ` Ben Collins
2005-07-10 21:24                   ` Stefan Richter
2005-07-10 22:06                     ` Stefan Richter
2005-07-10 22:16                       ` (summary) " Stefan Richter
2005-07-10 22:32                       ` Stefan Richter
2005-07-11 13:57                         ` James Bottomley
2005-07-13 19:56                           ` Stefan Richter
2005-07-13 20:12                             ` James Bottomley
2005-07-13 21:09                               ` Stefan Richter
2005-07-13 22:39                                 ` Stefan Richter
2005-07-10 19:26             ` Stefan Richter
2005-07-10  4:21     ` James Bottomley
2005-07-09 23:31   ` Ben Collins
2005-07-10  3:29     ` Jeff Garzik
2005-07-10  4:38       ` Ben Collins

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=42D18171.8050207@s5r6.in-berlin.de \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=James.Bottomley@SteelEye.com \
    --cc=bcollins@debian.org \
    --cc=jgarzik@pobox.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux1394-devel@lists.sourceforge.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox