From: Tejun Heo <tj@kernel.org>
To: Justin Madru <jdm64@gawab.com>
Cc: lkml <linux-kernel@vger.kernel.org>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
Andrew Morton <akpm@linux-foundation.org>,
linux-ide@vger.kernel.org, "Rafael J. Wysocki" <rjw@sisk.pl>,
Jeff Garzik <jeff@garzik.org>
Subject: Re: [2.6.28-rc] Sata soft reset filling log
Date: Tue, 23 Dec 2008 11:23:08 +0900 [thread overview]
Message-ID: <49504B8C.8080907@kernel.org> (raw)
In-Reply-To: <49500BE2.6050106@gawab.com>
[-- Attachment #1: Type: text/plain, Size: 903 bytes --]
Hello,
Justin Madru wrote:
>> Ah.. strange. The command protocol is ATAPI_PROT_NODATA and the drive
>> should be setting DRQ to receive CDB but it's not doing that.
>> Strange. It could be that the drive is a little bit tardy with DRQ -
>> ie. setting DRQ after clearing BUSY and ata_piix is now successfully
>> hitting the small window for some reason.
>>
>> Does the attached patch make any difference?
>>
>> Thanks.
>>
>>
> Ok, I applied your patch. Unfortunately, it didn't fix my problem.
> I now get a different, but similar message; not sure if it happens less
> frequently - still often though.
Aiee...
> What changes happened between .27 and .28 could've caused this?
> Anyways, below is what I get now (with your patch), including the
> frequency of occurrence.
I have no idea and I'm afraid we'll need a bisection here. :-( Can you
please try the attached patch?
Thanks.
--
tejun
[-- Attachment #2: DRQ-debug-1.patch --]
[-- Type: text/x-patch, Size: 668 bytes --]
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
index 4b47394..fcd7d08 100644
--- a/drivers/ata/libata-sff.c
+++ b/drivers/ata/libata-sff.c
@@ -1120,6 +1120,22 @@ fsm_start:
*/
poll_next = (qc->tf.flags & ATA_TFLAG_POLLING);
+ {
+ int cnt = 0;
+
+ while (!(status & (ATA_DRQ | ATA_ERR | ATA_DF)) &&
+ cnt < 100) {
+ status = ap->ops->sff_check_status(ap);
+ cnt++;
+ udelay(10);
+ }
+
+ if (cnt)
+ ata_port_printk(ap, KERN_INFO,
+ "XXX status=%02x after %d tries\n",
+ status, cnt);
+ }
+
/* check device status */
if (unlikely((status & ATA_DRQ) == 0)) {
/* handle BSY=0, DRQ=0 as error */
next prev parent reply other threads:[~2008-12-23 2:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-13 2:07 [2.6.28-rc] Sata soft reset filling log Justin Madru
2008-12-17 5:02 ` Andrew Morton
2008-12-17 7:26 ` Jeff Garzik
2008-12-17 10:13 ` Alan Cox
2008-12-19 7:09 ` Justin Madru
2008-12-22 2:37 ` Tejun Heo
2008-12-22 6:59 ` Justin Madru
2008-12-22 7:14 ` Tejun Heo
2008-12-22 21:51 ` Justin Madru
2008-12-23 2:23 ` Tejun Heo [this message]
2008-12-27 20:14 ` Justin Madru
2008-12-29 6:23 ` Tejun Heo
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=49504B8C.8080907@kernel.org \
--to=tj@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=jdm64@gawab.com \
--cc=jeff@garzik.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@sisk.pl \
/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.