linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.28: Timeout problem with AHCI SATA DVD drive
@ 2008-12-27  9:10 Peter Klotz
  2008-12-27 19:11 ` Robert Hancock
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Klotz @ 2008-12-27  9:10 UTC (permalink / raw)
  To: linux-ide

When inserting a DVD into the drive (HL-DT-ST GSA-T50N) it sometimes 
gets stuck and keeps spinning forever without recognizing the disc. Then 
a reboot is necessary to remove the disc.

I am using a vanilla 2.6.28 x86_64 kernel.

lspci | grep SATA:

00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI 
Controller (rev 03)

The controller is set to AHCI mode ("Enhanced") in BIOS.

The drive works in Windows (also AHCI) so I would rule out a hardware 
problem.

Here is the (maybe relevant) dmesg output from bootup to timeout:

[    1.994977] ahci 0000:00:1f.2: version 3.0
[    1.994992] ahci 0000:00:1f.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[    1.995041] ahci 0000:00:1f.2: irq 2296 for MSI/MSI-X
[    1.995118] ahci 0000:00:1f.2: AHCI 0001.0200 32 slots 4 ports 3 Gbps 
0x23 impl SATA mode
[    1.995121] ahci 0000:00:1f.2: flags: 64bit ncq sntf stag pm led clo 
pio slum part ems
[    1.995126] ahci 0000:00:1f.2: setting latency timer to 64
...
[    1.995391] scsi1 : ahci
...
[    1.995783] ata2: SATA max UDMA/133 abar m2048@0xfd6fb000 port 
0xfd6fb180 irq 2296
...
[    2.652063] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    2.656938] ata2.00: ACPI cmd ef/10:06:00:00:00:a0 succeeded
[    2.656941] ata2.00: ACPI cmd ef/10:03:00:00:00:a0 filtered out
[    2.661914] ata2.00: ATAPI: HL-DT-ST DVDRAM GSA-T50N, RR04, max 
UDMA/133, ATAPI AN
[    2.667430] ata2.00: ACPI cmd ef/10:06:00:00:00:a0 succeeded
[    2.667432] ata2.00: ACPI cmd ef/10:03:00:00:00:a0 filtered out
[    2.672426] ata2.00: configured for UDMA/133
...
[    3.139341] scsi 1:0:0:0: CD-ROM            HL-DT-ST DVDRAM GSA-T50N 
  RR04 PQ: 0 ANSI: 5
...
[    3.145126] scsi 1:0:0:0: Attached scsi generic sg1 type 5
...
[  506.804100] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 
frozen
[  506.804117] ata2.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
[  506.804119]          cdb 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
[  506.804121]          res 40/00:03:00:00:00/00:00:00:00:00/a0 Emask 
0x4 (timeout)
[  506.804128] ata2.00: status: { DRDY }
[  506.804138] ata2: hard resetting link
[  512.164075] ata2: link is slow to respond, please be patient (ready=0)
[  516.812074] ata2: COMRESET failed (errno=-16)
[  516.812085] ata2: hard resetting link
[  522.172121] ata2: link is slow to respond, please be patient (ready=0)
[  526.820075] ata2: COMRESET failed (errno=-16)
[  526.820087] ata2: hard resetting link
[  532.180123] ata2: link is slow to respond, please be patient (ready=0)
[  561.860084] ata2: COMRESET failed (errno=-16)
[  561.860097] ata2: limiting SATA link speed to 1.5 Gbps
[  561.860103] ata2: hard resetting link
[  566.884074] ata2: COMRESET failed (errno=-16)
[  566.884086] ata2: reset failed, giving up
[  566.884091] ata2.00: disabled
[  566.884113] ata2: EH complete

Any help is appreciated.

Regards, Peter.

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

* Re: 2.6.28: Timeout problem with AHCI SATA DVD drive
  2008-12-27  9:10 2.6.28: Timeout problem with AHCI SATA DVD drive Peter Klotz
@ 2008-12-27 19:11 ` Robert Hancock
  2008-12-28  7:00   ` Peter Klotz
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Hancock @ 2008-12-27 19:11 UTC (permalink / raw)
  To: linux-ide

Peter Klotz wrote:
> When inserting a DVD into the drive (HL-DT-ST GSA-T50N) it sometimes 
> gets stuck and keeps spinning forever without recognizing the disc. Then 
> a reboot is necessary to remove the disc.
> 
> I am using a vanilla 2.6.28 x86_64 kernel.
> 
> lspci | grep SATA:
> 
> 00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI 
> Controller (rev 03)
> 
> The controller is set to AHCI mode ("Enhanced") in BIOS.
> 
> The drive works in Windows (also AHCI) so I would rule out a hardware 
> problem.
> 
> Here is the (maybe relevant) dmesg output from bootup to timeout:
> 
> [    1.994977] ahci 0000:00:1f.2: version 3.0
> [    1.994992] ahci 0000:00:1f.2: PCI INT B -> GSI 19 (level, low) -> 
> IRQ 19
> [    1.995041] ahci 0000:00:1f.2: irq 2296 for MSI/MSI-X
> [    1.995118] ahci 0000:00:1f.2: AHCI 0001.0200 32 slots 4 ports 3 Gbps 
> 0x23 impl SATA mode
> [    1.995121] ahci 0000:00:1f.2: flags: 64bit ncq sntf stag pm led clo 
> pio slum part ems
> [    1.995126] ahci 0000:00:1f.2: setting latency timer to 64
> ...
> [    1.995391] scsi1 : ahci
> ...
> [    1.995783] ata2: SATA max UDMA/133 abar m2048@0xfd6fb000 port 
> 0xfd6fb180 irq 2296
> ...
> [    2.652063] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
> [    2.656938] ata2.00: ACPI cmd ef/10:06:00:00:00:a0 succeeded
> [    2.656941] ata2.00: ACPI cmd ef/10:03:00:00:00:a0 filtered out
> [    2.661914] ata2.00: ATAPI: HL-DT-ST DVDRAM GSA-T50N, RR04, max 
> UDMA/133, ATAPI AN
> [    2.667430] ata2.00: ACPI cmd ef/10:06:00:00:00:a0 succeeded
> [    2.667432] ata2.00: ACPI cmd ef/10:03:00:00:00:a0 filtered out
> [    2.672426] ata2.00: configured for UDMA/133
> ...
> [    3.139341] scsi 1:0:0:0: CD-ROM            HL-DT-ST DVDRAM GSA-T50N 
>  RR04 PQ: 0 ANSI: 5
> ...
> [    3.145126] scsi 1:0:0:0: Attached scsi generic sg1 type 5
> ...
> [  506.804100] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 
> frozen
> [  506.804117] ata2.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
> [  506.804119]          cdb 00 00 00 00 00 00 00 00  00 00 00 00 00 00 
> 00 00
> [  506.804121]          res 40/00:03:00:00:00/00:00:00:00:00/a0 Emask 
> 0x4 (timeout)
> [  506.804128] ata2.00: status: { DRDY }
> [  506.804138] ata2: hard resetting link
> [  512.164075] ata2: link is slow to respond, please be patient (ready=0)
> [  516.812074] ata2: COMRESET failed (errno=-16)
> [  516.812085] ata2: hard resetting link
> [  522.172121] ata2: link is slow to respond, please be patient (ready=0)
> [  526.820075] ata2: COMRESET failed (errno=-16)
> [  526.820087] ata2: hard resetting link
> [  532.180123] ata2: link is slow to respond, please be patient (ready=0)
> [  561.860084] ata2: COMRESET failed (errno=-16)
> [  561.860097] ata2: limiting SATA link speed to 1.5 Gbps
> [  561.860103] ata2: hard resetting link
> [  566.884074] ata2: COMRESET failed (errno=-16)
> [  566.884086] ata2: reset failed, giving up
> [  566.884091] ata2.00: disabled
> [  566.884113] ata2: EH complete

OK, so it's a "test unit ready" command that got sent to the drive and 
it timed out, then the resets after that all failed. That's essentially 
the simplest command there is, so it seems likely that the drive went 
off into the weeds and stopped talking to us. Whether or not we can do 
anything to prevent it, I'm not sure.

You're sure the drive always detects that same disc properly in Windows?


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

* Re: 2.6.28: Timeout problem with AHCI SATA DVD drive
  2008-12-27 19:11 ` Robert Hancock
@ 2008-12-28  7:00   ` Peter Klotz
  2008-12-28 22:11     ` Robert Hancock
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Klotz @ 2008-12-28  7:00 UTC (permalink / raw)
  To: linux-ide

Robert Hancock wrote:
> OK, so it's a "test unit ready" command that got sent to the drive and 
> it timed out, then the resets after that all failed. That's essentially 
> the simplest command there is, so it seems likely that the drive went 
> off into the weeds and stopped talking to us. Whether or not we can do 
> anything to prevent it, I'm not sure.
> 
> You're sure the drive always detects that same disc properly in Windows?

You are right. I finally was able to reproduce this behavior in Windows. 
  The event log filled up with errors while the disc kept spinning.

So this may be a drive firmware issue?

Regards, Peter.

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

* Re: 2.6.28: Timeout problem with AHCI SATA DVD drive
  2008-12-28  7:00   ` Peter Klotz
@ 2008-12-28 22:11     ` Robert Hancock
  2008-12-29  8:56       ` Tejun Heo
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Hancock @ 2008-12-28 22:11 UTC (permalink / raw)
  To: linux-ide

Peter Klotz wrote:
> Robert Hancock wrote:
>> OK, so it's a "test unit ready" command that got sent to the drive and 
>> it timed out, then the resets after that all failed. That's 
>> essentially the simplest command there is, so it seems likely that the 
>> drive went off into the weeds and stopped talking to us. Whether or 
>> not we can do anything to prevent it, I'm not sure.
>>
>> You're sure the drive always detects that same disc properly in Windows?
> 
> You are right. I finally was able to reproduce this behavior in Windows. 
>  The event log filled up with errors while the disc kept spinning.
> 
> So this may be a drive firmware issue?

Almost certainly - you could see if there's a firmware update available..


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

* Re: 2.6.28: Timeout problem with AHCI SATA DVD drive
  2008-12-28 22:11     ` Robert Hancock
@ 2008-12-29  8:56       ` Tejun Heo
  0 siblings, 0 replies; 5+ messages in thread
From: Tejun Heo @ 2008-12-29  8:56 UTC (permalink / raw)
  To: Robert Hancock; +Cc: linux-ide

Robert Hancock wrote:
> Peter Klotz wrote:
>> Robert Hancock wrote:
>>> OK, so it's a "test unit ready" command that got sent to the drive
>>> and it timed out, then the resets after that all failed. That's
>>> essentially the simplest command there is, so it seems likely that
>>> the drive went off into the weeds and stopped talking to us. Whether
>>> or not we can do anything to prevent it, I'm not sure.
>>>
>>> You're sure the drive always detects that same disc properly in Windows?
>>
>> You are right. I finally was able to reproduce this behavior in
>> Windows.  The event log filled up with errors while the disc kept
>> spinning.
>>
>> So this may be a drive firmware issue?
> 
> Almost certainly - you could see if there's a firmware update available..

If there's difference in frequency of it happening, it could be due to
the difference in which commands are used when polling for media
presence.  Windows only uses GET_EVENT_STATUS_NOTIFICATION while we
use a few more commands in combination including TUR.

If the drive actually is going nuts on TUR, disabling media polling
using hal-disable-polling might help.  If the drive just wanna check
out spontaneously, then, well...

-- 
tejun

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

end of thread, other threads:[~2008-12-29  8:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-27  9:10 2.6.28: Timeout problem with AHCI SATA DVD drive Peter Klotz
2008-12-27 19:11 ` Robert Hancock
2008-12-28  7:00   ` Peter Klotz
2008-12-28 22:11     ` Robert Hancock
2008-12-29  8:56       ` Tejun Heo

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).