From: Albert Lee <albertcc@tw.ibm.com>
To: YUP <yupadmin@gmail.com>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>,
Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
albertl@mail.com, linux-ide@vger.kernel.org
Subject: Re: libata: CD and dvd devices not recognized
Date: Tue, 20 Mar 2007 15:27:35 +0800 [thread overview]
Message-ID: <45FF8CE7.4040905@tw.ibm.com> (raw)
In-Reply-To: <45FEE5EB.9020909@gmail.com>
YUP wrote:
> Hi Sergei, Albert and Bartek,
>
> Thanks for the patch. If you dealt with it, could you please apply this
> patch to 2.6.20.3 kernel and send me diff? I'm just afraid that I
> couldn't do it right.
>
> Albert and Bartek,
>
> please find latest dmsg output with Albert's patch. I quoted here only
> output after the first "qc timeout" as Albert requested (see below).
> Hope it will help you.
>
Thanks for the help. Your trace is valuable.
It seems we have identified the cause.
The AOpen drive returned 0x51 (check condition) on INQUIRY of 254 bytes,
and it seems to mess up when REQUEST SENSE was issued:
[ 105.480046] CDB (4:0,1,0) 12 01 00 00 fe 00 00 00 00
[ 105.480101] ata4: protocol 5 task_state 4 (dev_stat 0x58) <== INQUIRY
[ 105.480551] ata4: protocol 5 task_state 1
[ 105.480555] ata4: host_stat 0x4
[ 105.480561] ata4: protocol 5 task_state 1 (dev_stat 0x51)
[ 105.480564] ata4: protocol 5 task_state 2 (dev_stat 0x51)
[ 105.480567] ata4: protocol 5 task_state 3 (dev_stat 0x51) <= check condition
[ 105.480644] ata4: protocol 5 task_state 4 (dev_stat 0x58) <== REQUEST SENSE
[ 113.509692] ata4: protocol 5 task_state 1 <== interrupt. device BSY.
[ 113.509703] ata4: host_stat 0x0 <== device messed up
[ 113.510276] ata4: protocol 5 task_state 1
[ 113.510280] ata4: host_stat 0x0
[ 113.510890] ata4: protocol 5 task_state 1
[ 113.510894] ata4: host_stat 0x0
[ 113.512120] ata4: protocol 5 task_state 1 <== .. loop until time out
This INQUIRY problem can be reliable reproduced:
[ 171.258863] CDB (4:0,1,0) 12 01 00 00 fe 00 00 00 00
[ 171.258918] ata4: protocol 5 task_state 4 (dev_stat 0x58) <== INQUIRY
[ 171.259359] ata4: protocol 5 task_state 1
[ 171.259363] ata4: host_stat 0x4
[ 171.259368] ata4: protocol 5 task_state 1 (dev_stat 0x51)
[ 171.259371] ata4: protocol 5 task_state 2 (dev_stat 0x51)
[ 171.259374] ata4: protocol 5 task_state 3 (dev_stat 0x51)<= check condition
[ 171.259451] ata4: protocol 5 task_state 4 (dev_stat 0x58) <== REQUEST SENSE
[ 172.538040] ata4: protocol 5 task_state 1 <== interrupt. device BSY.
[ 172.538051] ata4: host_stat 0x0 <== device messed up
[ 172.538145] ata4: protocol 5 task_state 1
[ 172.538150] ata4: host_stat 0x0
[ 173.424869] ata4: protocol 5 task_state 1 <== .. loop until time out
Except INQUIRY, other commands/REQUEST SENSE are ok.
(ex. TEST UNIT READY)
[ 105.456944] CDB (4:0,1,0) 00 00 00 00 00 00 00 00 00
[ 105.457003] ata4: protocol 6 task_state 4 (dev_stat 0x58) <= TEST UNIT READY
[ 105.457551] ata4: protocol 6 task_state 2
[ 105.457555] ata4: host_stat 0x4
[ 105.457561] ata4: protocol 6 task_state 2 (dev_stat 0x51)
[ 105.457563] ata4: protocol 6 task_state 3 (dev_stat 0x51)<= check condition
[ 105.457647] ata4: protocol 5 task_state 4 (dev_stat 0x58) <== REQUEST SENSE
[ 105.458233] ata4: protocol 5 task_state 1 <== interrupt. device ok.
[ 105.458237] ata4: host_stat 0x4
[ 105.458242] ata4: protocol 5 task_state 1 (dev_stat 0x58)
[ 105.458350] ata4: protocol 5 task_state 1
[ 105.458353] ata4: host_stat 0x4 <== device returns sense data ok.
[ 105.458358] ata4: protocol 5 task_state 1 (dev_stat 0x50)
[ 105.458361] ata4: protocol 5 task_state 2 (dev_stat 0x50)
Hi Yarema,
Could you help to send me the dmesg before the first qc timeout (i.e. before
[ 69.646046] ata4.01: qc timeout (cmd 0xa0)).
We can see how the AOpen drive deal with the first INQUIRY (e.g. 36 bytes).
Thanks.
--
albert
next prev parent reply other threads:[~2007-03-20 7:27 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-14 22:14 libata: CD and dvd devices not recognized YUP
2007-03-15 3:56 ` Albert Lee
2007-03-15 13:11 ` YUP
2007-03-15 17:32 ` Albert Lee
2007-03-16 10:16 ` YUP
2007-03-16 15:06 ` Albert Lee
2007-03-16 15:50 ` YUP
2007-03-17 13:29 ` Bartlomiej Zolnierkiewicz
2007-03-17 14:39 ` Albert Lee
2007-03-17 15:00 ` Bartlomiej Zolnierkiewicz
2007-03-17 18:38 ` YUP
2007-03-17 18:47 ` YUP
2007-03-17 19:12 ` Bartlomiej Zolnierkiewicz
2007-03-17 19:22 ` YUP
2007-03-17 20:07 ` Bartlomiej Zolnierkiewicz
2007-03-18 10:07 ` YUP
2007-03-18 15:10 ` Bartlomiej Zolnierkiewicz
2007-03-18 15:22 ` YUP
2007-03-18 15:54 ` Bartlomiej Zolnierkiewicz
2007-03-18 15:49 ` YUP
2007-03-18 22:48 ` YUP
2007-03-19 3:31 ` Albert Lee
2007-03-19 8:22 ` YUP
2007-03-19 8:29 ` Albert Lee
2007-03-19 12:10 ` Sergei Shtylyov
2007-03-19 19:35 ` YUP
2007-03-20 7:27 ` Albert Lee [this message]
2007-03-20 9:07 ` Albert Lee
2007-03-21 4:52 ` Albert Lee
2007-03-21 9:01 ` YUP
2007-03-22 6:06 ` Albert Lee
2007-03-22 7:09 ` Tejun Heo
2007-03-22 12:37 ` Alan Cox
2007-03-23 3:40 ` Albert Lee
2007-03-23 15:19 ` Douglas Gilbert
2007-03-26 5:50 ` Albert Lee
2007-03-22 14:50 ` Sergei Shtylyov
2007-03-23 3:21 ` Albert Lee
2007-03-19 23:02 ` YUP
2007-03-20 15:23 ` Sergei Shtylyov
2007-03-23 22:13 ` Bartlomiej Zolnierkiewicz
2007-03-26 5:53 ` Albert Lee
2007-03-18 6:42 ` YUP
2007-03-16 22:37 ` YUP
2007-03-17 3:24 ` Albert Lee
2007-03-17 9:09 ` YUP
2007-03-17 10:51 ` Albert Lee
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=45FF8CE7.4040905@tw.ibm.com \
--to=albertcc@tw.ibm.com \
--cc=albertl@mail.com \
--cc=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=sshtylyov@ru.mvista.com \
--cc=yupadmin@gmail.com \
/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 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).