Linux ATA/IDE development
 help / color / mirror / Atom feed
* hdb: irq timeout: status=0xd0 { Busy }
@ 2007-02-23 13:19 Thue Janus Kristensen
  2007-02-23 14:28 ` Alan
  0 siblings, 1 reply; 6+ messages in thread
From: Thue Janus Kristensen @ 2007-02-23 13:19 UTC (permalink / raw)
  To: linux-ide

(Please tell me if I have sent this bug report to the wrong list)

I am getting this very annoying error regularly, several times a week.
Linux seems to get into an infinite loop. While programs still seem to
run, and I am able to sort of normally reboot the computer from the
console, it is totally unusably slow.

I can see no system in when the bug occurs. I am not using the DVD
drive (hdb) when the bug occurs. I know it has happened when I have
not used hdb after the last reboot, and I *think* it has also happened
when I have not used the DVD since the last time the computer was cold
booted. I *think* it tends to happen when hda is being used for
program loading/swapping.

I get the following error messages written to kern.log, starting from
the first error message:

Feb 20 23:15:17 localhost kernel: hdb: irq timeout: status=0xd0 { Busy }
Feb 20 23:15:27 localhost kernel: ide: failed opcode was: unknown
Feb 20 23:15:27 localhost kernel: hdb: status timeout: status=0xd0 { Busy }
Feb 20 23:15:27 localhost kernel: ide: failed opcode was: unknown
Feb 20 23:15:27 localhost kernel: hdb: drive not ready for command
Feb 20 23:15:27 localhost kernel: hdb: status timeout: status=0xd0 { Busy }
Feb 20 23:15:27 localhost kernel: ide: failed opcode was: unknown
Feb 20 23:15:27 localhost kernel: hdb: drive not ready for command
Feb 20 23:15:33 localhost kernel: hdb: status timeout: status=0xd0 { Busy }

The lines
Feb 20 23:17:30 localhost kernel: ide: failed opcode was: unknown
Feb 20 23:17:30 localhost kernel: hdb: drive not ready for command
Feb 20 23:17:36 localhost kernel: hdb: status timeout: status=0xd0 { Busy }
repeats infinitely.

My computer is a laptop with the hard disk (hda) and DVD-RW drive
(hdb) on the same IDE channel, so I am guessing that the traffic of
hdb errors is choking off access over the shared channel to hda,
causing the slowness.

I got the error in 2.6.19 and 2.6.20. I am not sure which older
kernels gave me the error, but I think it is a relatively new thing. I
am currently running 2.6.16.41 to see if I get the error there, but so
far after 3 days I have not encountered the error again (not long
enough to be certain).

The computer is an ACER Aspire 3613WLMi laptop.

lspci says I have the following ide controller:
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6
Family) IDE Controller (rev 03)

The laptop has a hard disk and a DVD-rw on a single IDE controller.
R@h /proc/ide/ide0> cat hda/model
HTS424040M9AT00
R@h /proc/ide/ide0> cat hdb/model
Slimtype DVDRW SOSW-833S

R@h ~> hdparm /dev/hda

/dev/hda:
 multcount    =  0 (off)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 16383/255/63, sectors = 78140160, start = 0
R@h ~> hdparm /dev/hdb

/dev/hdb:
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 HDIO_GETGEO failed: Inappropriate ioctl for device
R@h ~>

Please say if you need any further information, or if I can do
anything to track the problem down.

Regards, Thue

Pleace CC me, I am not on this list.

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

* Re: hdb: irq timeout: status=0xd0 { Busy }
  2007-02-23 14:28 ` Alan
@ 2007-02-23 13:30   ` Thue Janus Kristensen
  2007-02-23 15:17     ` Alan
  0 siblings, 1 reply; 6+ messages in thread
From: Thue Janus Kristensen @ 2007-02-23 13:30 UTC (permalink / raw)
  To: Alan; +Cc: linux-ide

On 2/23/07, Alan <alan@lxorguk.ukuu.org.uk> wrote:
> > Feb 20 23:15:17 localhost kernel: hdb: irq timeout: status=0xd0 { Busy }
> > Feb 20 23:15:27 localhost kernel: ide: failed opcode was: unknown
> > Feb 20 23:15:27 localhost kernel: hdb: status timeout: status=0xd0 { Busy }
> > Feb 20 23:15:27 localhost kernel: ide: failed opcode was: unknown
>
> Your CD-ROM drive stopped responding
>
> > Feb 20 23:17:30 localhost kernel: ide: failed opcode was: unknown
> > Feb 20 23:17:30 localhost kernel: hdb: drive not ready for command
> > Feb 20 23:17:36 localhost kernel: hdb: status timeout: status=0xd0 { Busy }
> > repeats infinitely.
>
> and never came back.
>
> It would be very interesting to know if an older kernel doesn't trigger
> this.

I can keep running 2.6.16.41 for a few weeks. If the problem does not
occur by then it is reasonably probably that it is newly introduced.
As I said, I am not able to trigger the problem intentionally :(.

Would it be possible for the kernel to realize that the drive stopped
responding? And make sure that it doesn't make the whole computer
unresponsive...

Regards, Thue

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

* Re: hdb: irq timeout: status=0xd0 { Busy }
  2007-02-23 13:19 hdb: irq timeout: status=0xd0 { Busy } Thue Janus Kristensen
@ 2007-02-23 14:28 ` Alan
  2007-02-23 13:30   ` Thue Janus Kristensen
  0 siblings, 1 reply; 6+ messages in thread
From: Alan @ 2007-02-23 14:28 UTC (permalink / raw)
  To: Thue Janus Kristensen; +Cc: linux-ide

> Feb 20 23:15:17 localhost kernel: hdb: irq timeout: status=0xd0 { Busy }
> Feb 20 23:15:27 localhost kernel: ide: failed opcode was: unknown
> Feb 20 23:15:27 localhost kernel: hdb: status timeout: status=0xd0 { Busy }
> Feb 20 23:15:27 localhost kernel: ide: failed opcode was: unknown

Your CD-ROM drive stopped responding

> Feb 20 23:17:30 localhost kernel: ide: failed opcode was: unknown
> Feb 20 23:17:30 localhost kernel: hdb: drive not ready for command
> Feb 20 23:17:36 localhost kernel: hdb: status timeout: status=0xd0 { Busy }
> repeats infinitely.

and never came back.

It would be very interesting to know if an older kernel doesn't trigger
this.

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

* Re: hdb: irq timeout: status=0xd0 { Busy }
  2007-02-23 13:30   ` Thue Janus Kristensen
@ 2007-02-23 15:17     ` Alan
  2007-02-24 15:36       ` Andreas Arens
  2007-02-24 15:43       ` Andreas Arens
  0 siblings, 2 replies; 6+ messages in thread
From: Alan @ 2007-02-23 15:17 UTC (permalink / raw)
  To: Thue Janus Kristensen; +Cc: linux-ide

> Would it be possible for the kernel to realize that the drive stopped
> responding? And make sure that it doesn't make the whole computer
> unresponsive...

libata should eventually get rid of the drive. The old ide isn't quite so
smart.


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

* Re: hdb: irq timeout: status=0xd0 { Busy }
  2007-02-23 15:17     ` Alan
@ 2007-02-24 15:36       ` Andreas Arens
  2007-02-24 15:43       ` Andreas Arens
  1 sibling, 0 replies; 6+ messages in thread
From: Andreas Arens @ 2007-02-24 15:36 UTC (permalink / raw)
  To: linux-ide

Alan wrote:

>> Would it be possible for the kernel to realize that the drive stopped
>> responding? And make sure that it doesn't make the whole computer
>> unresponsive...
> 
> libata should eventually get rid of the drive. The old ide isn't quite so
> smart.
> 

I see the same happening with a non-udma capable cdrw drive since
2.6.19-rc1. 2.6.18.x was ok.

Unfortunately libata was not a solution (at least in 2.6.19). It took
the hard drive sharing the bus with the mwdma cdrw down from UDMA100
to PIO0 the entire chain and finally offline in steps each time
it detected trouble on the bus.
I suspect the genirq changes (I'm on x86_64) which went in at that
point to be the cause. The ide irq's are edge triggered, and changes to
the fragile timing there might have made it miss.
I solved this by replacing the drive against an UDMA capable on
(but still have the old one around for testing, if need be).
In 2.6.19 (after trying libata on it) I saw errors of command time
outs etc. 2.6.20 was even worse as it failed silently.

Andy



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

* Re: hdb: irq timeout: status=0xd0 { Busy }
  2007-02-23 15:17     ` Alan
  2007-02-24 15:36       ` Andreas Arens
@ 2007-02-24 15:43       ` Andreas Arens
  1 sibling, 0 replies; 6+ messages in thread
From: Andreas Arens @ 2007-02-24 15:43 UTC (permalink / raw)
  To: linux-ide

Alan wrote:

>> Would it be possible for the kernel to realize that the drive stopped
>> responding? And make sure that it doesn't make the whole computer
>> unresponsive...
> 
> libata should eventually get rid of the drive. The old ide isn't quite so
> smart.
> 
I see the same happening with a non-udma capable cdrw drive since
2.6.19-rc1.  2.6.18.x was ok.

Unfortunately libata was not a solution (at least in 2.6.19). It took
the hard drive sharing the bus with the mwdma cdrw down from UDMA100
to PIO0 the entire chain and finally offline in steps each time
it detected trouble on the bus.
I suspect the genirq changes (I'm on x86_64) which went in at that
point to be the cause. The ide irq's are edge triggered, and changes to
the fragile timing there might have made it miss.
I solved this by replacing the drive against an UDMA capable on
(but still have the old one around for testing, if need be).
In 2.6.19 (after trying libata on it) I saw errors of command time
outs etc. 2.6.20 was even worse as it failed silently.

Andy


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

end of thread, other threads:[~2007-02-24 16:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-23 13:19 hdb: irq timeout: status=0xd0 { Busy } Thue Janus Kristensen
2007-02-23 14:28 ` Alan
2007-02-23 13:30   ` Thue Janus Kristensen
2007-02-23 15:17     ` Alan
2007-02-24 15:36       ` Andreas Arens
2007-02-24 15:43       ` Andreas Arens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox