From: Douglas Gilbert <dougg@torque.net>
To: "Randy.Dunlap" <rddunlap@osdl.org>
Cc: linux-scsi@vger.kernel.org, alan@lxorguk.ukuu.org.uk
Subject: Re: [PATCH] instrument ide-scsi in 2.5.68
Date: Tue, 06 May 2003 18:38:39 +1000 [thread overview]
Message-ID: <3EB7748F.2030702@torque.net> (raw)
In-Reply-To: <20030505095715.6d96e703.rddunlap@osdl.org>
Randy.Dunlap wrote:
> On Sat, 03 May 2003 19:03:47 +1000 Douglas Gilbert <dougg@torque.net> wrote:
>
> | > | As Randy has found the setting of kernel boot time parameters
> | > | doesn't work. The problem seems to be that the ide subsystem
> | > | asserts ownership over all parameters that start with "ide".
> | > | I was unable to bend moduleparam.h to accept a leading underscore
> | > | so I went back to the old "__setup" method: the kernel boot time
> | > | parameters are now:
> | > | - _ide_scsi_debug + _ide_scsi_suppress_reset
> | >
> | > I'll confirm that those work. I.e., I saw values 3 and 1 in
> | > /sys/bus/ide/drivers/ide-scsi/*.
> | >
> | > | Module load time and sysfs parameters remain the same.
> | > |
> | > | A new patch against lk 2.5.68 is attached.
> | >
> | > Used that patch instead of v1 of it. Got an oops in ide-scsi.
> |
> | Randy,
> | Thanks for testing this. At this stage I have no
> | solution but can offer some analysis.
> |
> | Firstly, it seems like Mandrake 9.0 has some
> | program like RedHat's "magicdev" that polls
> | cd/dvds every second or so. Nuke it please!
> | It won't fix the problem but will make it easier
> | to see the wood for the trees.
>
> I'll happily do that if I can find it, since I don't use it anyway.
> However, I don't see it. I also don't see any periodic activity
> after enabling scsi logging as Mike A. mentioned.
>
> I did 'cdrecord -scanbus' and then
> cdrecord -v speed=4 dev=2,0,0 -data lca2003.iso
> and got the same oops as before (invalid ptr = 6b6b6bxx, into
> bad memory area).
>
>
> New kernel log file is now at
> http://www.xenotime.net/linux/capture2.txt
>
> Are there any docs on SCSI logging?
Randy,
The failure looks very similar. This time it timed
out and corrupted on a Mode Sense (10) for page 5
(alloc length=2) while last time its failed on a
Mode Sense (10) for page 0x2a (alloc length=2).
The Mode Sense is not translated (i.e. the app sent a
10 byte Mode Sense). Perhaps there is a weakness
when the allocation length is that short.
This time 141 commands where sent (last time 91)
with lots of Test Unit Readys. Without timestamps
it is hard to say whether a "magicdev" type program
is at work or libscg (cdrecord transport layer) is
solely responsible for that sequence of SCSI commands.
[cdrecord may be accessing the cdwriter via the cdrom
driver and the sg driver.]
Here is the point of failure from Randy's log:
ide-scsi: hdd: que 141, cmd = [ 5a 0 5 0 0 0 0 0 2 0 ]
hdd: lost interrupt
ide-scsi: Reached idescsi_pc_intr interrupt handler
ide-scsi: hdd: DMA complete
ide-scsi: CoD != 0 in idescsi_pc_intr
hdd: DMA disabled
Error handler scsi_eh_2 waking up
scsi_eh_<pr4>t_hfdadi: lA_TstAaPIts r: e2se:t0: 0co:m0 plcmetdse
failiedde:- sc0s,i :c anRecaeclh: ed1
idTeosctsali_ pofc_ 1in ctro mminantdersr oupnt 1 hdanedvliceres
rePaqcuikrete ceho mmwoanrdk
....
Ouch, after the error handler starts the dump looks like it
is in Klingon :-) Lots of data but no information. It could
be a result of the corruption or another problem.
BTW I ran Kurt Garloff's rescan-scsi-bus.sh script and
got this:
# lsscsi
[0:0:1:0] disk FUJITSU MAM3184MP 0106 /dev/sda
[2:0:0:0] cd CREATIVE CD5233E 1.00 /dev/sr0
[2:0:1:0] cd CREATIVE CD5233E 1.00 /dev/sr1
[2:0:2:0] cd CREATIVE CD5233E 1.00 /dev/sr2
[2:0:3:0] cd CREATIVE CD5233E 1.00 /dev/sr3
[2:0:4:0] cd CREATIVE CD5233E 1.00 /dev/sr4
[2:0:5:0] cd CREATIVE CD5233E 1.00 /dev/sr5
[2:0:6:0] cd CREATIVE CD5233E 1.00 /dev/sr6
[2:0:7:0] cd CREATIVE CD5233E 1.00 /dev/sr7
[3:0:6:0] tape SONY SDT-7000 0192 /dev/st0
Another problem ...
Doug Gilbert
next prev parent reply other threads:[~2003-05-06 8:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-01 13:02 [PATCH] instrument ide-scsi in 2.5.68 Douglas Gilbert
2003-05-01 22:52 ` Randy.Dunlap
2003-05-01 22:57 ` Randy.Dunlap
2003-05-01 23:29 ` Douglas Gilbert
2003-05-01 23:44 ` Willem Riede
2003-05-02 0:38 ` Randy.Dunlap
2003-05-02 1:10 ` Douglas Gilbert
2003-05-02 8:40 ` Douglas Gilbert
2003-05-02 16:55 ` Randy.Dunlap
2003-05-03 9:03 ` Douglas Gilbert
2003-05-05 8:46 ` Mike Anderson
2003-05-05 16:57 ` Randy.Dunlap
2003-05-06 8:38 ` Douglas Gilbert [this message]
2003-05-06 14:39 ` Randy.Dunlap
2003-05-07 13:21 ` Douglas Gilbert
2003-05-07 18:16 ` Randy.Dunlap
2003-05-07 21:20 ` Randy.Dunlap
2003-05-08 0:00 ` Douglas Gilbert
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=3EB7748F.2030702@torque.net \
--to=dougg@torque.net \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-scsi@vger.kernel.org \
--cc=rddunlap@osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox