All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harald Dunkel <harald.dunkel@t-online.de>
To: linux-ide@vger.kernel.org
Cc: Tejun Heo <htejun@gmail.com>, Daniel Beichl <daniel_beichl@gmx.net>
Subject: Re: [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work
Date: Fri, 04 May 2007 19:32:47 +0200	[thread overview]
Message-ID: <463B6E3F.5000300@t-online.de> (raw)
In-Reply-To: <463AEAF9.3000103@gmail.com>

Hi folks,

Tejun Heo suggested to post my problem here.

If I enter a movie DVD into my drive (Samsung SH-S183A, SATA)
and run xine dvd:/dev/scd0 immediately (while the drive's LED
is still blinking), then there is some timeout problem.
kern.log says:


May  4 19:10:17 pluto kernel: ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
May  4 19:10:17 pluto kernel: ata2.00: cmd a0/01:00:00:00:00/00:00:00:00:00/a0 tag 0 cdb 0xa4 data 8 in
May  4 19:10:17 pluto kernel:          res 40/00:02:00:04:08/00:00:00:00:00/a0 Emask 0x4 (timeout)
May  4 19:10:17 pluto kernel: ata2: soft resetting port
May  4 19:10:24 pluto kernel: ata2: port is slow to respond, please be patient (Status 0xf8)
May  4 19:10:47 pluto kernel: ata2: port failed to respond (30 secs, Status 0xf8)
May  4 19:10:47 pluto kernel: ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
May  4 19:10:47 pluto kernel: ATA: abnormal status 0xF8 on port 0xffffc2000001a0c7
May  4 19:10:47 pluto last message repeated 5 times
May  4 19:11:17 pluto kernel: ata2.00: qc timeout (cmd 0xa1)
May  4 19:11:17 pluto kernel: ata2.00: failed to IDENTIFY (I/O error, err_mask=0x4)
May  4 19:11:17 pluto kernel: ata2.00: revalidation failed (errno=-5)
May  4 19:11:17 pluto kernel: ata2: failed to recover some devices, retrying in 5 secs
May  4 19:11:22 pluto kernel: ata2: hard resetting port
May  4 19:11:23 pluto kernel: CLASSIFY TF 00/01:01:01:14:eb/a0 <6>ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
May  4 19:11:23 pluto kernel: ata2.00: XXX: IDENTIFY
May  4 19:11:23 pluto kernel: 00: 85c0 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: 08: 0000 0000 2020 2020  2020 2020 2020 2020
May  4 19:11:23 pluto kernel: 10: 2020 2020 2020 2020  0000 0000 0000 5342
May  4 19:11:23 pluto kernel: 18: 3032 2020 2020 5453  5354 636f 7270 4344
May  4 19:11:23 pluto kernel: 20: 2f44 5644 5720 5348  2d53 3138 3341 2020
May  4 19:11:23 pluto kernel: 28: 2020 2020 2020 2020  2020 2020 2020 0000
May  4 19:11:23 pluto kernel: 30: 0000 0f00 0000 0200  0200 0006 0000 0000
May  4 19:11:23 pluto kernel: 38: 0000 0000 0000 0000  0000 0000 0000 0007
May  4 19:11:23 pluto kernel: 40: 0003 0078 0078 0078  0078 0000 0000 0000
May  4 19:11:23 pluto kernel: 48: 0000 0000 0000 0000  0602 0000 0068 0040
May  4 19:11:23 pluto kernel: 50: 0000 0000 0000 4000  4000 0000 0000 4000
May  4 19:11:23 pluto kernel: 58: 0407 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: 60: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: 68: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: 70: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: 78: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: 80: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: 88: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: 90: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: 98: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: a0: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: a8: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: b0: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: b8: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: c0: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: c8: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: d0: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: d8: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: e0: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: e8: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: f0: 0000 0000 0000 0000  0000 0000 0000 0000
May  4 19:11:23 pluto kernel: f8: 0000 0000 0000 0000  0000 0000 0000 9ca5
May  4 19:11:23 pluto kernel: ata2.00: configured for UDMA/33
May  4 19:11:23 pluto kernel: ata2: EH complete


Its pretty much reproducible. For the example above the DVD played
at the end, but sometimes the DVD drive dies, and I have to reboot.

If I enter a data DVD and try to mount it without waiting, then I get

% mount /cdrom
mount: /dev/scd0 already mounted or /cdrom busy
% mount /cdrom
%

There is no message in kern.log in this case. On the second try it
succeeds, as shown above.

If I enter a data DVD without running anything, then it takes
about 15 seconds till the LED goes off. Movie DVDs are a little
bit faster: 12 secs. But I am sure this depends.

Any help would be highly appreciated. Please keep me on CC:; I haven't
subscribed this ML.


Regards

Harri
==========================================================================
Tejun Heo wrote:
> Harald Dunkel wrote:
>> Hi Tejun,
>>
>> Tejun Heo wrote:
>>> The timeout is normal.  As the drive is still trying to recognize the
>>> dvd, it doesn't respond to commands in the time specified by xine or
>>> whatever. 
>> I never saw this before with any other drive.
>>
>>> Interestingly, the drive reports illegal device type after
>>> such event.  Can you please apply the attached patch and report the
>>> dmesg after such failure?
>>>
>>>
>> Here it is:
>>
>> ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
>> ata2.00: cmd a0/01:00:00:00:00/00:00:00:00:00/a0 tag 0 cdb 0xad data
>> 2052 in
>>          res 40/00:02:00:0c:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
>> ata2: soft resetting port
>> CLASSIFY TF 00/01:01:01:14:eb/a0 <6>ata2: SATA link up 1.5 Gbps (SStatus
>> 113 SControl 310)
>> ata2.00: failed to IDENTIFY (device reports illegal type, err_mask=0x0)
>> ata2.00: revalidation failed (errno=-22)
>> ata2.00: disabled
>> ata2: EH complete
> 
> Thanks.
> 
> Can you please apply the attached patch and report this problem to
> linux-ide@vger.kernel.org with the resulting dmesg?   It seems your
> drive reports incorrect IDENTIFY data (maybe due to unflushed FIFO)
> after such timeout event.  I think the timeout itself is probably okay.
>  The drive might just take a tad bit longer than other drives (how long
> do you have to wait?).
> 
> Thanks.
> 
> 


       reply	other threads:[~2007-05-04 17:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <46362672.7080103@gmx.net>
     [not found] ` <4636EA85.40809@t-online.de>
     [not found]   ` <46371628.9060905@gmail.com>
     [not found]     ` <46379CA1.601@t-online.de>
     [not found]       ` <463AEAF9.3000103@gmail.com>
2007-05-04 17:32         ` Harald Dunkel [this message]
2007-05-07 10:29           ` [PATCH] Re: 2.6.19.1, sata_sil: sata dvd writer doesn't work Tejun Heo
2007-05-07 18:21             ` Harald Dunkel
2007-05-08 14:27               ` Tejun Heo
2007-05-09 17:37                 ` Harald Dunkel
2007-05-10 13:00                   ` Tejun Heo
2007-05-10 20:27                     ` Harald Dunkel
2007-05-11  8:33                       ` Tejun Heo
2007-05-15 17:38                         ` Harald Dunkel
2007-06-06  4:38                         ` Harald Dunkel
2007-06-19  7:24                           ` Tejun Heo
     [not found] ` <4636DCA9.9050803@gmail.com>
     [not found]   ` <4636FBB7.3030605@gmx.net>
     [not found]     ` <463AE631.9030701@gmail.com>
2007-05-04 18:18       ` Daniel Beichl
2007-05-07  8:24         ` Tejun Heo
     [not found]           ` <463F634E.2070103@gmx.net>
2007-05-08 14:42             ` Tejun Heo
2007-05-08 14:51               ` Alan Cox
2007-05-08 14:52                 ` Tejun Heo
2007-05-25  3:23             ` Jeff Garzik

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=463B6E3F.5000300@t-online.de \
    --to=harald.dunkel@t-online.de \
    --cc=daniel_beichl@gmx.net \
    --cc=htejun@gmail.com \
    --cc=linux-ide@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.