linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Hancock <hancockr@shaw.ca>
To: Jeff Garzik <jeff@garzik.org>
Cc: Kuan Luo <kluo@nvidia.com>, Peer Chen <pchen@nvidia.com>,
	Allen Martin <AMartin@nvidia.com>,
	linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
	linux-ide@vger.kernel.org
Subject: Re: Disabling ADMA?  (was Re: [PATCH] drivers/ata: Add the SW NCQ support to sata_nv for MCP51/MCP55/MCP61)
Date: Sat, 07 Jul 2007 11:57:59 -0600	[thread overview]
Message-ID: <468FD427.8010904@shaw.ca> (raw)
In-Reply-To: <468FB3A5.9000008@garzik.org>

Jeff Garzik wrote:
> Kuan Luo wrote:
>>     @@ -1714,3 +2761,6 @@ module_init(nv_init);
>>      module_exit(nv_exit);
>>      module_param_named(adma, adma_enabled, bool, 0444);
>>      MODULE_PARM_DESC(adma, "Enable use of ADMA (Default: true)");
>>     +module_param_named(ncq, ncq_enabled, bool, 0444);
>>     +MODULE_PARM_DESC(ncq, "Enable use of NCQ (Default: false)");
> 
> After looking through sata_nv bug reports, I am leaning towards 
> disabling ADMA by default, and wanted to solicit comments.
> 
> While admittedly not knowing the root cause, it seems like every current 
> outstanding sata_nv bug report that remains after switching out hardware 
> can be solved by setting module option 'adma' to zero.  That's my first 
> suggestion upon any bugzilla sata_nv bug, and it usually works.  You can 
> look through bugs assigned to or CC'd to jgarzik@pobox.com (kernel.org 
> bugs) jgarzik@redhat.com (redhat.com bugs) for examples.

Do you have some specific bug numbers? Other than this one:

http://bugzilla.kernel.org/show_bug.cgi?id=8421

That one is hotplug-related, and it would seem only affects specific 
boards as it works fine for me. Likely NVIDIA input would be needed on 
that one to get much farther.

I didn't find any other sata_nv ADMA-related bugs in the kernel.org or 
RH Bugzillas.

Most of the reports I've gotten recently have been in one of these 
categories:

-broken NCQ implementation on the drive (usually shows up as commands 
timing out with CPB resp_flags of 2)
-cabling or power problems (often showing errors in the SError register)

There have been a few reports yet of problems with commands getting 
issued and seeing to go nowhere. These can be difficult to diagnose. 
However, in some cases there's evidence leaning toward this being a 
drive issue as well, ex: this thread:

http://groups.google.ca/group/linux.kernel/browse_frm/thread/2ebf329e3f6470eb/0d26dff9a30d29e9?lnk=gst

Here there's a report of this drive model doing this on multiple 
controllers.

Keep in mind, in the case where a broken NCQ implementation on the drive 
is the cause, disabling ADMA (and hence NCQ) will appear to "fix" the 
problem when the proper course of action would be to blacklist NCQ on 
that drive globally.

Given the relative scarcity of problem reports (at least those I've 
seen), and the fact that this is not obscure hardware (they must have 
made millions of these nForce4 boards, and I think some may even still 
be in production), I'm reluctant to say we should be switching ADMA off 
by default.

> 
> I still need to review the SWNCQ patch in detail, but I presume it is 
> possible to still use SWNCQ without ADMA?

Yes, they're independent.

> 
> On a side note, I would rather default SWNCQ to 'on'.



      reply	other threads:[~2007-07-07 17:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-18 11:10 [PATCH] drivers/ata: Add the SW NCQ support to sata_nv for MCP51/MCP55/MCP61 Kuan Luo
2007-07-07 15:39 ` Disabling ADMA? (was Re: [PATCH] drivers/ata: Add the SW NCQ support to sata_nv for MCP51/MCP55/MCP61) Jeff Garzik
2007-07-07 17:57   ` Robert Hancock [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=468FD427.8010904@shaw.ca \
    --to=hancockr@shaw.ca \
    --cc=AMartin@nvidia.com \
    --cc=akpm@linux-foundation.org \
    --cc=jeff@garzik.org \
    --cc=kluo@nvidia.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pchen@nvidia.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).