All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: Tejun Heo <htejun@gmail.com>
Cc: IDE/ATA development list <linux-ide@vger.kernel.org>,
	diego torres <dtorres@coral.dnsalias.org>,
	Michael Tokarev <mjt@tls.msk.ru>
Subject: Re: Why we were seeing so many spurious NCQ completions
Date: Thu, 06 Dec 2007 21:25:35 -0500	[thread overview]
Message-ID: <4758AF1F.2060203@garzik.org> (raw)
In-Reply-To: <4758AD58.3000801@gmail.com>

Tejun Heo wrote:
> Hello, all.
> 
> This has been going on for quite some time now but I finally succeeded
> to reproduce the problem and find out what has been going on.  It
> wasn't drive's or controller's fault.  The spurious completion
> detection logic was wrong which makes all of this my fault.  :-)
> 
> The attached patch induces NCQ spurious completions by inserting
> artificial delays during irq handling.  The following is log with the
> patch applied.
> 
> A [ 1125.478813] ata35: MON issue=0x0 SAct=0x1 sactive=0x3 SDB FIS=004040a1:00000002
> B [ 1125.480248] ata35: MON issue=0x4 SAct=0x6 sactive=0x7 SDB FIS=004040a1:00000001
> C [ 1125.481614] ata35: MON issue=0x0 SAct=0x5 sactive=0x7 SDB FIS=004040a1:00000002
> D [ 1125.481704] ata35: YYY 0x2 -> 0x4
> E [ 1125.481722] ata35: XXX issue=0x0 SAct=0x1 sactive=0x1 SDB FIS=004040a1:00000004
> F [ 1125.483087] ata35: MON issue=0x0 SAct=0x0 sactive=0x1 SDB FIS=004040a1:00000001
> G [ 1125.484297] ata35: MON issue=0x4 SAct=0x6 sactive=0x7 SDB FIS=004040a1:00000001

Thanks a lot for tracking this down, and thanks even more for being 
humble enough to admit mistakes.  More kernel hackers should follow your 
example.

I continue to be a proud mentor, watching you kick ass on the Linux 
kernel scene :)

	Jeff




      reply	other threads:[~2007-12-07  2:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-07  2:18 Why we were seeing so many spurious NCQ completions Tejun Heo
2007-12-07  2:25 ` Jeff Garzik [this message]

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=4758AF1F.2060203@garzik.org \
    --to=jeff@garzik.org \
    --cc=dtorres@coral.dnsalias.org \
    --cc=htejun@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=mjt@tls.msk.ru \
    /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.