scsi_eh: BUG in __schedule (was Re: Trouble installing 1394...)
Mark Knecht wrote to linux1394-user:
Quoted 2 lines
Hi Stefan,
You may have spotted this on the LKML or possibly not.
I am not subscribed there.
Quoted 9 lines
The messages
showed up a few minutes later. There were not there when I sent this message, but a few minutes later I got a bug trace and then got the messages. Looked like a bug to me but I wouldn't know if it was in the kernel or the 1394 drivers.Note that I have since rebuilt the kernel and didn't get this the next time I booted. Here's what I saw:
Quoted 8 lines
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[66] MMIO=[da014000-da0147ff] Max Packet=[4096]
sbp2: $Rev: 1306 $ Ben Collins <[email protected]>
ieee1394: Host added: ID:BUS[0-00:1023] GUID[0800286410000f43]
eth0: no IPv6 routers present
ieee1394: Error parsing configrom for node 0-00:1023
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
ieee1394: Node added: ID:BUS[0-00:1023] GUID[0050c504e0006463]
(Remark: One FireWire node is present at this point, plus the local node.)
Quoted 12 lines
scsi4 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Error logging into SBP-2 device - login timed-outprev->state: 2 !=TASK_RUNNING??
scsi_eh_4/7835[CPU#0]: BUG in__scheduleatkernel/sched.c:3326Call Trace:<ffffffff80132221>{__WARN_ON+97} <ffffffff803e79f0>{__schedule+608} <ffffffff801342bf>{do_exit+1007} <ffffffff801467c0>{keventd_create_kthread+0} <ffffffff8010e5ed>{child_rip+15} <ffffffff801467c0>{keventd_create_kthread+0} <ffffffff801466b0>{kthread+0} <ffffffff8010e5de>{child_rip+0}
Quoted 2 lines
sbp2: probe of 0050c504e0006463-0 failed with error -16
ieee1394: Node added: ID:BUS[0-00:1023] GUID[00303c020010645c]
(Remark: Now there are two external FireWire nodes, plus local node.)
Quoted 20 lines
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
ieee1394: Node changed: 0-01:1023 -> 0-02:1023
scsi5 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-00:1023: Max speed [S800] - Max payload [4096]
Vendor: Maxtor 6 Model: Y160P0 Rev: YAR4
Type: Direct-Access-RBC ANSI SCSI revision: 04
SCSI device sdb: 320173056 512-byte hdwr sectors (163929 MB)
sdb: asking for cache data failed
sdb: assuming drive cache: write through
SCSI device sdb: 320173056 512-byte hdwr sectors (163929 MB)
sdb: asking for cache data failed
sdb: assuming drive cache: write through
sdb: sdb1 sdb2
Attached scsi disk sdb at scsi5, channel 0, id 0, lun 0 scsi6 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: Node 0-01:1023: Max speed [S400] - Max payload [2048]
Vendor: Maxtor 6 Model: Y160P0 Rev: YAR4
Type: Direct-Access-RBC ANSI SCSI revision: 04
Quoted 8 lines
SCSI device sdc: 320173056 512-byte hdwr sectors (163929 MB)
sdc: asking for cache data failed
sdc: assuming drive cache: write through
SCSI device sdc: 320173056 512-byte hdwr sectors (163929 MB)
sdc: asking for cache data failed
sdc: assuming drive cache: write through
sdc: sdc1 sdc2 sdc3
Attached scsi disk sdc at scsi6, channel 0, id 0, lun 0
[...]
I gather from another post of yours that you got this from 2.6.14-rc4, right?
The way how the scsi_eh (error handler daemon of the scsi core) is started and stopped was changed earlier in 2.6.14-rcX and was broken before 2.6.14-rc3. Either there is still a bug in there, or sbp2 uses the scsi core incorrectly again. I will have a closer look at how an sbp2 login time-out situation may affect scsi_eh RSN. (Ideally, sbp2 should cause scsi core to start scsi_eh only after a successful login, but that is another story.)
I cc'd linux-scsi because that is where scsi_eh's authors are.
Signature · 3 lines
Stefan Richter -=====-=-=-= =-=- -==-- http://arcgraph.de/sr/
FYI,
Mark Knecht wrote to linux1394-user:
Quoted 5 lines · Stefan Richter
Quoted 2 lines
I gather from another post of yours that you got this from 2.6.14-rc4, right?
2.6.14-rc4-rt1. That adds Ingo's real time patches.
[...]
Quoted 13 lines
I haven't seen the error again today. I've reooted a couple of times, but with slightly different kernels. (With and without latency tracing enabled.)
Quoted 1 line
I cc'd linux-scsi because that is where scsi_eh's authors are.
I removed it from this response as I'm not subscribed and I don't thinkI'm adding much here.
thanks for looking.
Cheers,
Mark
Signature · 3 lines
Stefan Richter -=====-=-=-= =-=- -==-- http://arcgraph.de/sr/
I wrote on 2005-10-12:
Quoted 14 lines
Mark Knecht wrote to linux1394-user:
Quoted 13 lines
scsi4 : SCSI emulation for IEEE-1394 SBP-2 Devices
ieee1394: sbp2: Error logging into SBP-2 device - login timed-outprev->state: 2 !=TASK_RUNNING??
scsi_eh_4/7835[CPU#0]: BUG in__scheduleatkernel/sched.c:3326Call Trace:<ffffffff80132221>{__WARN_ON+97} <ffffffff803e79f0>{__schedule+608} <ffffffff801342bf>{do_exit+1007} <ffffffff801467c0>{keventd_create_kthread+0} <ffffffff8010e5ed>{child_rip+15} <ffffffff801467c0>{keventd_create_kthread+0} <ffffffff801466b0>{kthread+0} <ffffffff8010e5de>{child_rip+0}sbp2: probe of 0050c504e0006463-0 failed with error -16
In other words, a spinlock is held (in sbp2 or in the scsi core?) while the eh is fired up (or teared down?). As mentioned, this is 2.6.14-rc4-rt1 but I consider it possible to occur in unpatched 2.6.14-rcX too. I will investigate further but it may take me a while.
Signature · 3 lines
Stefan Richter -=====-=-=-= =-=- =--== http://arcgraph.de/sr/