* Re: cd/dvd inaccessible in 2.6.24-rc2
[not found] <1194668831.3436.14.camel@Athas>
@ 2007-11-10 22:49 ` Andrew Morton
2007-11-10 23:05 ` Alan Cox
2007-11-10 23:35 ` Jeff Garzik
1 sibling, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2007-11-10 22:49 UTC (permalink / raw)
To: Will Trives; +Cc: linux-kernel, linux-ide, Rafael J. Wysocki
On Sat, 10 Nov 2007 15:27:11 +1100 Will Trives <will@trivescon.com.au> wrote:
>
> Hello,
>
> Motherboard: Gigabyte GA-P35-DS4 (rev. 1.1)
> Chipset: Intel P35 + ICH9R
> PATA port runs off JMicron controller
> CD/DVD Device: BENQ DW1640 16X
>
> I cannot access my dvd burner under 2.6.24-rc2, I have no problems under
> 2.6.23. Basically the drive is detected OK, everything looks ok but as
> soon as I go to use it errors like this occur:
>
>
> ata9.00: qc timeout (cmd 0xa0)
> ata9.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
> ata9.00: cmd a0/00:00:00:02:00/00:00:00:00:00/a0 tag 0 cdb 0x5a data 2
> in
> res 51/54:03:00:02:00/00:00:00:00:00/a0 Emask 0x5 (timeout)
> ata9.00: status: { DRDY ERR }
> ata9: soft resetting link
> ata9.00: revalidation failed (errno=-2)
> ata9: failed to recover some devices, retrying in 5 secs
> ata9: soft resetting link
> ata9.00: qc timeout (cmd 0xa1)
> ata9.00: failed to IDENTIFY (I/O error, err_mask=0x4)
> ata9.00: revalidation failed (errno=-5)
> ata9: failed to recover some devices, retrying in 5 secs
> ata9: soft resetting link
> ata9.00: qc timeout (cmd 0xa1)
> ata9.00: failed to IDENTIFY (I/O error, err_mask=0x4)
> ata9.00: revalidation failed (errno=-5)
> ata9.00: disabled
> ata9: soft resetting link
> ata9: EH complete
>
> The drive is locked up after the first attempt to access it occurs, the
> tray cannot be ejected.
>
>
> dmesg output
>
> http://paste.ubuntu-nl.org/43948/
>
> kernel .config
>
> http://paste.ubuntu-nl.org/43944/
>
> lspci -vvvxxxx
>
> http://paste.ubuntu-nl.org/43950/
>
Thanks for letting us know.
Added linux-ide Cc.
Rafael, it looks like another regression.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: cd/dvd inaccessible in 2.6.24-rc2
2007-11-10 22:49 ` cd/dvd inaccessible in 2.6.24-rc2 Andrew Morton
@ 2007-11-10 23:05 ` Alan Cox
2007-11-10 23:28 ` Jeff Garzik
2007-11-11 0:13 ` Andrew Morton
0 siblings, 2 replies; 5+ messages in thread
From: Alan Cox @ 2007-11-10 23:05 UTC (permalink / raw)
To: Andrew Morton; +Cc: Will Trives, linux-kernel, linux-ide, Rafael J. Wysocki
On Sat, 10 Nov 2007 14:49:23 -0800
Andrew Morton <akpm@linux-foundation.org> wrote:
> On Sat, 10 Nov 2007 15:27:11 +1100 Will Trives <will@trivescon.com.au> wrote:
>
> >
> > Hello,
> >
> > Motherboard: Gigabyte GA-P35-DS4 (rev. 1.1)
> > Chipset: Intel P35 + ICH9R
> > PATA port runs off JMicron controller
> > CD/DVD Device: BENQ DW1640 16X
> >
> > I cannot access my dvd burner under 2.6.24-rc2, I have no problems under
> > 2.6.23. Basically the drive is detected OK, everything looks ok but as
> > soon as I go to use it errors like this occur:
Guess what - jmicron hasn't changed in this tree for ages 8(
> > ata9.00: qc timeout (cmd 0xa0)
> > ata9.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
> > ata9.00: cmd a0/00:00:00:02:00/00:00:00:00:00/a0 tag 0 cdb 0x5a data 2
> > in
> > res 51/54:03:00:02:00/00:00:00:00:00/a0 Emask 0x5 (timeout)
> > ata9.00: status: { DRDY ERR }
Could be an IRQ/ACPI regression, and in fact to me it looks more like
that, than an IDE one. Probably worth trying the various IRQ routing
options and seeing if they help.
Alan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: cd/dvd inaccessible in 2.6.24-rc2
2007-11-10 23:05 ` Alan Cox
@ 2007-11-10 23:28 ` Jeff Garzik
2007-11-11 0:13 ` Andrew Morton
1 sibling, 0 replies; 5+ messages in thread
From: Jeff Garzik @ 2007-11-10 23:28 UTC (permalink / raw)
To: Alan Cox, Tejun Heo
Cc: Andrew Morton, Will Trives, linux-kernel, linux-ide,
Rafael J. Wysocki
Alan Cox wrote:
>>> ata9.00: qc timeout (cmd 0xa0)
>>> ata9.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
>>> ata9.00: cmd a0/00:00:00:02:00/00:00:00:00:00/a0 tag 0 cdb 0x5a data 2
>>> in
>>> res 51/54:03:00:02:00/00:00:00:00:00/a0 Emask 0x5 (timeout)
>>> ata9.00: status: { DRDY ERR }
>
> Could be an IRQ/ACPI regression, and in fact to me it looks more like
> that, than an IDE one. Probably worth trying the various IRQ routing
> options and seeing if they help.
Agreed, though the output is indeed signalling an error... IMO the EH
should handle the error if the device is signalling an error, upon
timeout, rather than just going ahead and resetting the device.
Its similar to where ATA devices on PCI SFF controllers signal DMA error
via timeout, where EH must inspect BMDMA Status register to determine if
it's a DMA error signalled by hardware, or something that requires
additional autopsy.
EH for ATAPI is quite different from EH for ATA, so there may be some
areas where we don't handle things the right way for ATAPI.
Decoding the error message we have:
cdb 0x5a ==
MODE SENSE(10)
status 0x51 ==
DRDY
command-specific flag (aka SERV, in !overlap case)
CHK (check condition, aka error)
error 0x54 ==
ABRT (command aborted or command parameter invalid)
sense key 0x5 (illegal request)
ireason 0x3 ==
the hardcoded values (bits 0 and 1) remain hardcoded, all good
Since BSY is not set in the Status register, and given the other
information derived from the decoded values, it looks like the device is
otherwise happy and ready to accept additional commands.
It appears to have chewed on an ATAPI command, spit it out, but failed
to send a completion interrupt.
So its an open question whether it's a device not completing this
errored-out command, or whether its IRQ/ACPI stuff infecting libata.
Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: cd/dvd inaccessible in 2.6.24-rc2
[not found] <1194668831.3436.14.camel@Athas>
2007-11-10 22:49 ` cd/dvd inaccessible in 2.6.24-rc2 Andrew Morton
@ 2007-11-10 23:35 ` Jeff Garzik
1 sibling, 0 replies; 5+ messages in thread
From: Jeff Garzik @ 2007-11-10 23:35 UTC (permalink / raw)
To: Will Trives; +Cc: linux-kernel, IDE/ATA development list
Will Trives wrote:
> Hello,
>
> Motherboard: Gigabyte GA-P35-DS4 (rev. 1.1)
> Chipset: Intel P35 + ICH9R
> PATA port runs off JMicron controller
> CD/DVD Device: BENQ DW1640 16X
>
> I cannot access my dvd burner under 2.6.24-rc2, I have no problems under
> 2.6.23. Basically the drive is detected OK, everything looks ok but as
> soon as I go to use it errors like this occur:
Is 2.6.24-rc1 also broken?
Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: cd/dvd inaccessible in 2.6.24-rc2
2007-11-10 23:05 ` Alan Cox
2007-11-10 23:28 ` Jeff Garzik
@ 2007-11-11 0:13 ` Andrew Morton
1 sibling, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2007-11-11 0:13 UTC (permalink / raw)
To: Alan Cox
Cc: Will Trives, linux-kernel, linux-ide, Rafael J. Wysocki,
linux-acpi
On Sat, 10 Nov 2007 23:05:53 +0000 Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> > > ata9.00: qc timeout (cmd 0xa0)
> > > ata9.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
> > > ata9.00: cmd a0/00:00:00:02:00/00:00:00:00:00/a0 tag 0 cdb 0x5a data 2
> > > in
> > > res 51/54:03:00:02:00/00:00:00:00:00/a0 Emask 0x5 (timeout)
> > > ata9.00: status: { DRDY ERR }
>
> Could be an IRQ/ACPI regression, and in fact to me it looks more like
> that, than an IDE one.
Drat. Seems that once we break that sort of thing we never fix it again.
> Probably worth trying the various IRQ routing
> options and seeing if they help.
Yup.
Please, if you have time, bisect it down to the offending commit?
There's info at http://www.kernel.org/doc/local/git-quick.html which should
help.
Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-11-11 0:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1194668831.3436.14.camel@Athas>
2007-11-10 22:49 ` cd/dvd inaccessible in 2.6.24-rc2 Andrew Morton
2007-11-10 23:05 ` Alan Cox
2007-11-10 23:28 ` Jeff Garzik
2007-11-11 0:13 ` Andrew Morton
2007-11-10 23:35 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).