From: Albert Lee <albertcc@tw.ibm.com>
To: Vlad Codrea <VladCodrea@mail.utexas.edu>
Cc: Tejun Heo <htejun@gmail.com>, linux-ide@vger.kernel.org
Subject: Re: DVD drive fails in 2.6.20.2
Date: Fri, 16 Mar 2007 01:57:55 +0800 [thread overview]
Message-ID: <45F98923.1040601@tw.ibm.com> (raw)
In-Reply-To: <45F9516D.4090008@mail.utexas.edu>
Vlad Codrea wrote:
> Tejun Heo wrote:
>
>> [cc'ing Albert Lee. Hi!]
>>
>> Vlad Codrea wrote:
>>
>>
>>>> Okay, now that you're on libata driver, it's easier for me to debug.
>>>> Can you apply the attached patch over 2.6.20 and report what the kernel
>>>> says? (the patch will apply with some noise, it's okay)
>>>>
>>>
>>> I've applied your patch and recompiled the kernel, but the new dmesg
>>> (attached as dmesg_2.txt) doesn't seem to have changed much.
>>>
>>
>>
>> Hmmm.. that's weird, can you please try the attached patch?
>>
>> Albert, can you take a look at this one? I'm pretty sure you know much
>> better about this than me. The whole thread can be read at...
>>
>> http://thread.gmane.org/gmane.linux.ide/17052
>>
>> Thanks.
>>
>>
>
>
> I've attached the dmesg after applying this patch. There is now a new
> line reading "ata2.00: ata_eh_analyze_tf, AC_ERR_HSM, 0x58".
>
This device is configured as MWDMA2:
ata2.00: ATAPI, max MWDMA2, CDB intr
ata2.00: configured for MWDMA2
The state machine should start at HSM_ST_FIRST to transfer CDB then
transit to HSM_ST_LAST after DMA is completed.
Device status 0x58 looks good for HSM_ST_FIRST, maybe libata is
seeing 0x58 in the HSM_ST_LAST state?
Hi Vlad,
Could you please also apply the attached HSM debug patch and collect the dmesg,
thanks.
--
albert
--- linux-2.6.20.3/drivers/ata/libata-core.c 2007-03-15 12:13:12.000000000 +0800
+++ linux-2.6.20.3-mod/drivers/ata/libata-core.c 2007-03-15 12:13:55.000000000 +0800
@@ -4371,8 +4371,9 @@ int ata_hsm_move(struct ata_port *ap, st
WARN_ON(in_wq != ata_hsm_ok_in_wq(ap, qc));
fsm_start:
- DPRINTK("ata%u: protocol %d task_state %d (dev_stat 0x%X)\n",
- ap->id, qc->tf.protocol, ap->hsm_task_state, status);
+ if (is_atapi_taskfile(&qc->tf))
+ printk(KERN_ERR "ata%u: protocol %d task_state %d (dev_stat 0x%X)\n",
+ ap->id, qc->tf.protocol, ap->hsm_task_state, status);
switch (ap->hsm_task_state) {
case HSM_ST_FIRST:
@@ -5091,8 +5092,9 @@ inline unsigned int ata_host_intr (struc
struct ata_eh_info *ehi = &ap->eh_info;
u8 status, host_stat = 0;
- VPRINTK("ata%u: protocol %d task_state %d\n",
- ap->id, qc->tf.protocol, ap->hsm_task_state);
+ if (is_atapi_taskfile(&qc->tf))
+ printk(KERN_ERR "ata%u: protocol %d task_state %d\n",
+ ap->id, qc->tf.protocol, ap->hsm_task_state);
/* Check whether we are expecting interrupt in this state */
switch (ap->hsm_task_state) {
next prev parent reply other threads:[~2007-03-15 17:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-13 5:09 DVD drive fails in 2.6.20.2 Vlad Codrea
2007-03-14 3:57 ` Tejun Heo
2007-03-14 4:11 ` Tejun Heo
2007-03-14 15:15 ` Vlad Codrea
2007-03-14 16:58 ` Vlad Codrea
2007-03-15 6:22 ` Tejun Heo
2007-03-15 14:00 ` Vlad Codrea
2007-03-15 17:57 ` Albert Lee [this message]
2007-03-16 2:58 ` Vlad Codrea
2007-03-16 16:34 ` Albert Lee
2007-03-16 18:09 ` Vlad Codrea
2007-03-17 4:43 ` Albert Lee
2007-03-18 1:26 ` Vlad Codrea
2007-03-18 10:57 ` Albert Lee
2007-03-19 5:58 ` Vlad Codrea
2007-03-19 6:48 ` Albert Lee
2007-03-19 7:01 ` Albert Lee
2007-03-19 13:22 ` Vlad Codrea
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=45F98923.1040601@tw.ibm.com \
--to=albertcc@tw.ibm.com \
--cc=VladCodrea@mail.utexas.edu \
--cc=albertl@mail.com \
--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.