ata: SWNCQ should be enabled by default
PATCH 3/3 ata: SWNCQ should be enabled by default
From: Zoltan Boszormenyi <[email protected]>
unchangelogged patch.
---
drivers/ata/sata_nv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ata/sata_nv.c renamed from drivers/ata/sata_nv.c~ata-swncq-should-be-enabled-by-default +2 -2
@@ -532,7 +532,7 @@ MODULE_DEVICE_TABLE(pci, nv_pci_tbl);MODULE_VERSION (DRV_VERSION );static int adma_enabled =1 ; -static int swncq_enabled; +static int swncq_enabled =1 ;static void nv_adma_register_mode (struct ata_port *ap) {
@@ -2485,5 +2485,5 @@ 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 (swncq, swncq_enabled, bool,0444 ); -MODULE_PARM_DESC (swncq,"Enable use of SWNCQ (Default: false)" ); +MODULE_PARM_DESC (swncq,"Enable use of SWNCQ (Default: true)" );
_
Quoted 7 lines · [email protected] wrote:
From: Zoltan Boszormenyi <[email protected]>
unchangelogged patch.
Signed-off-by Zoltan Boszormenyi <[email protected]>Cc Robert Hancock <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Sorry, there are remaining issues to resolve before enabling ADMA by default.
Signature · 1 line
tejun
Tejun Heo írta:
Quoted 5 lines
Quoted 4 lines · [email protected] wrote:
From: Zoltan Boszormenyi <[email protected]>
unchangelogged patch.
Quoted 7 lines
Quoted 3 lines
Signed-off-by Zoltan Boszormenyi <[email protected]>Cc Robert Hancock <[email protected]>Signed-off-by Andrew Morton <[email protected]>Nacked-by Tejun Heo <[email protected]>Sorry, there are remaining issues to resolve before enabling ADMA by default.
Sorry, this is NOT ADMA. SWNCQ is completely independent from ADMA.
Quoted 10 lines · Zoltan Boszormenyi
Tejun Heo írta:
Quoted 9 lines
Quoted 7 lines · [email protected] wrote:
From: Zoltan Boszormenyi <[email protected]>
unchangelogged patch.
Signed-off-by Zoltan Boszormenyi <[email protected]>Cc Robert Hancock <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Quoted 5 lines
Quoted 3 lines
Nacked-by Tejun Heo <[email protected]>Sorry, there are remaining issues to resolve before enabling ADMA by default.
Sorry, this is NOT ADMA. SWNCQ is completely independent from ADMA.
Heh, right. Sorry about that. I disabled ADMA on the distro I work for and somehow ADMA was disabled on mainline too. :-)
Robert, is SWNCQ safe to turn on by default? I personally think it's better to prefer safety over performance or optional features and given the history of NCQ support on nv satas, I feel a bit more cautious.
Maybe we can enable SWNCQ on -mm and devel branches and disable it late in release cycle for 2.6.26 for a trial?
Kuan Luo and Peer Chen, what do you guys think about this? And can you guys please find a way to assist Robert in fixing the ADMA problems? For 2.6.25, we're too late to disable it. For 2.6.26, I'm afraid we will have to disable it unless those known issues are solved. :-(
Thanks.
Signature · 1 line
tejun
Quoted 15 lines · Tejun Heo
Quoted 14 lines · Zoltan Boszormenyi
Tejun Heo írta:
Quoted 12 lines
Quoted 7 lines · [email protected] wrote:
From: Zoltan Boszormenyi <[email protected]>
unchangelogged patch.
Signed-off-by Zoltan Boszormenyi <[email protected]>Cc Robert Hancock <[email protected]>Signed-off-by Andrew Morton <[email protected]>Nacked-by Tejun Heo <[email protected]>Sorry, there are remaining issues to resolve before enabling ADMA by default.
Quoted 7 lines
Quoted 1 line
Sorry, this is NOT ADMA. SWNCQ is completely independent from ADMA.
Heh, right. Sorry about that. I disabled ADMA on the distro I work for and somehow ADMA was disabled on mainline too. :-)
Robert, is SWNCQ safe to turn on by default? I personally think it's better to prefer safety over performance or optional features and given the history of NCQ support on nv satas, I feel a bit more cautious.
Maybe we can enable SWNCQ on -mm and devel branches and disable it late in release cycle for 2.6.26 for a trial?
I haven't seen any problem reports, but with it disabled by default most people haven't tried it. The only way to really know is to try turning it on by default and see what shakes out.
I'd vote to enable it by default in -mm and 2.6.26-rc and see what happens.
Quoted 20 lines · Robert Hancock
Quoted 19 lines · Tejun Heo
Quoted 10 lines · Zoltan Boszormenyi
Tejun Heo írta:
Quoted 9 lines
Quoted 7 lines · [email protected] wrote:
From: Zoltan Boszormenyi <[email protected]>
unchangelogged patch.
Signed-off-by Zoltan Boszormenyi <[email protected]>Cc Robert Hancock <[email protected]>Signed-off-by Andrew Morton <[email protected]>Quoted 5 lines
Quoted 3 lines
Nacked-by Tejun Heo <[email protected]>Sorry, there are remaining issues to resolve before enabling ADMA by default.
Sorry, this is NOT ADMA. SWNCQ is completely independent from ADMA.
Heh, right. Sorry about that. I disabled ADMA on the distro I work for and somehow ADMA was disabled on mainline too. :-)
Quoted 7 lines
Quoted 3 lines
Robert, is SWNCQ safe to turn on by default? I personally think it's better to prefer safety over performance or optional features and given the history of NCQ support on nv satas, I feel a bit more cautious.
Maybe we can enable SWNCQ on -mm and devel branches and disable it late in release cycle for 2.6.26 for a trial?
I haven't seen any problem reports, but with it disabled by default most people haven't tried it. The only way to really know is to try turning it on by default and see what shakes out.
I'd vote to enable it by default in -mm and 2.6.26-rc and see what happens.
Alright, Zoltan can you please repost w/ commit message fixed and comment stating /* FIXME: for testing during blah blah */ added?
Signature · 1 line
tejun
Tejun Heo írta:
Quoted 23 lines
Quoted 22 lines · Robert Hancock
Quoted 21 lines · Tejun Heo
Quoted 10 lines · Zoltan Boszormenyi
Tejun Heo írta:
Quoted 9 lines
Quoted 7 lines · [email protected] wrote:
From: Zoltan Boszormenyi <[email protected]>
unchangelogged patch.
Signed-off-by Zoltan Boszormenyi <[email protected]>Cc Robert Hancock <[email protected]>Signed-off-by Andrew Morton <[email protected]>Quoted 5 lines
Quoted 3 lines
Nacked-by Tejun Heo <[email protected]>Sorry, there are remaining issues to resolve before enabling ADMA by default.
Sorry, this is NOT ADMA. SWNCQ is completely independent from ADMA.
Heh, right. Sorry about that. I disabled ADMA on the distro I work for and somehow ADMA was disabled on mainline too. :-)
Robert, is SWNCQ safe to turn on by default? I personally think it's better to prefer safety over performance or optional features and given the history of NCQ support on nv satas, I feel a bit more cautious.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Maybe we can enable SWNCQ on -mm and devel branches and disable it late in release cycle for 2.6.26 for a trial?
I haven't seen any problem reports, but with it disabled by default most people haven't tried it. The only way to really know is to try turning it on by default and see what shakes out.
I'd vote to enable it by default in -mm and 2.6.26-rc and see what happens.
Alright, Zoltan can you please repost w/ commit message fixed and comment stating /* FIXME: for testing during blah blah */ added?
You mean like this?
Enable SWNCQ by default for testing in 2.6.26-rcX[-mm] and
---
drivers/ata/sata_nv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ata/sata_nv.c renamed from drivers/ata/sata_nv.c~ata-swncq-should-be-enabled-by-default +2 -2
@@ -532,7 +532,7 @@ MODULE_DEVICE_TABLE(pci, nv_pci_tbl);MODULE_VERSION (DRV_VERSION );static int adma_enabled =1 ; -static int swncq_enabled; +static int swncq_enabled =1 ;/* FIXME: for testing during 2.6.26-rcX[-mmY] */ static void nv_adma_register_mode (struct ata_port *ap) {
@@ -2485,5 +2485,5 @@ 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 (swncq, swncq_enabled, bool,0444 ); -MODULE_PARM_DESC (swncq,"Enable use of SWNCQ (Default: false)" ); +MODULE_PARM_DESC (swncq,"Enable use of SWNCQ (Default: true)" );
Quoted 4 lines · Zoltan Boszormenyi
Quoted 2 lines
Alright, Zoltan can you please repost w/ commit message fixed and comment stating /* FIXME: for testing during blah blah */ added?
You mean like this?
Yeap, Acked-by: Tejun Heo <[email protected]>
Signature · 1 line
tejun
For ADMA, I lean to disable it for default because stability is more important to our customers. At least, bug in this link: http://www.gossamer-threads.com/lists/linux/kernel/885929 is not resolved.
Best regards,
Kuan Luo
Quoted 40 lines
-----Original Message-----
From: Tejun Heo [mailto:[email protected]]
Sent: Sunday, March 30, 2008 8:12 AM
To: Zoltan Boszormenyi
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Kuan Luo; Peer Chen
Subject: Re: [patch 3/3] ata: SWNCQ should be enabled by defaultQuoted 13 lines · Zoltan Boszormenyi
Tejun Heo írta:
Quoted 12 lines
Quoted 7 lines · [email protected] wrote:
From: Zoltan Boszormenyi <[email protected]>
unchangelogged patch.
Signed-off-by Zoltan Boszormenyi <[email protected]>Cc Robert Hancock <[email protected]>Signed-off-by Andrew Morton <[email protected]>Nacked-by Tejun Heo <[email protected]>Sorry, there are remaining issues to resolve before
enabling ADMA by
Quoted 3 lines
Quoted 1 line
default.
Sorry, this is NOT ADMA. SWNCQ is completely independent from ADMA.
Heh, right. Sorry about that. I disabled ADMA on the distro I work for
and somehow ADMA was disabled on mainline too. :-)Robert, is SWNCQ safe to turn on by default? I personally think it's better to prefer safety over performance or optional features and given
the history of NCQ support on nv satas, I feel a bit more cautious.Maybe we can enable SWNCQ on -mm and devel branches and disable it late
in release cycle for 2.6.26 for a trial?
Quoted 11 lines
Kuan Luo and Peer Chen, what do you guys think about this? And can you
guys please find a way to assist Robert in fixing the ADMA problems? For 2.6.25, we're too late to disable it. For 2.6.26, I'm afraid we will have to disable it unless those known issues are solved. :-(Thanks.
Signature · 1 line
tejun
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
Quoted 4 lines · Kuan Luo
For ADMA, I lean to disable it for default because stability is more important to our customers. At least, bug in this link:
http://www.gossamer-threads.com/lists/linux/kernel/885929 is not resolved.
Robert, what do you think? Should we disable ADMA by default from 2.6.26-rcX?
Signature · 1 line
tejun
Quoted 8 lines · Tejun Heo
Quoted 4 lines · Kuan Luo
For ADMA, I lean to disable it for default because stability is more important to our customers. At least, bug in this link:
http://www.gossamer-threads.com/lists/linux/kernel/885929 is not resolved.Robert, what do you think? Should we disable ADMA by default from 2.6.26-rcX?
I can't say I'm inherently in favor of it, but if people feel strongly enough about it I won't yell too loudly. If we do disable it, I would suggest printing out a message saying it can be enabled when the driver loads if they didn't switch it on, in case people complain about it as a regression otherwise.
Quoted 11 lines · Robert Hancock
Quoted 8 lines · Tejun Heo
Quoted 4 lines · Kuan Luo
For ADMA, I lean to disable it for default because stability is more important to our customers. At least, bug in this link:
http://www.gossamer-threads.com/lists/linux/kernel/885929 is not resolved.Robert, what do you think? Should we disable ADMA by default from 2.6.26-rcX?
I can't say I'm inherently in favor of it, but if people feel strongly enough about it I won't yell too loudly. If we do disable it, I would suggest printing out a message saying it can be enabled when the driver loads if they didn't switch it on, in case people complain about it as a regression otherwise.
BTW, it would be nice if NVIDIA would put some more resources into debugging these issues so that we didn't have to take such an action. With some of these problems, there are definite limits to what we can do to figure out what's going on without knowing what is happening internally in the controller.
By my reckoning the known issues are:
-Occasional timeouts when issuing the first command after switching from NCQ to non-NCQ commands (even with the udelay() call in the driver to partially work around this). When this happens, going into register mode during error handling times out.
-When handling a failed command (ex: caused by a bad sector), going into register mode times out and retrieving result taskfile from ATA registers can cause a MCE due to a northbridge HyperTransport bus transaction timeout (reported by Kuan, I don't think anyone else has mentioned this one).
-Hotplug/hot-unplug fails to work properly, hotplug interrupts not raised (seemingly only on certain boards/configurations as I can't duplicate this problem). http://bugzilla.kernel.org/show_bug.cgi?id=8421
Quoted 5 lines · Robert
-Hotplug/hot-unplug fails to work properly, hotplug interrupts not raised (seemingly only on certain boards/configurations as I can't duplicate this problem).
http://bugzilla.kernel.org/show_bug.cgi?id=8421
I occasionly encountered this problem in one port under certain system, but didn't see this issue under other systems in the same mainboard. After adding the operation of manually clearing the added/removed interrupt bit in NV_INT_STATUS_CK804 register
in nv_adma_interrupt function, i saw some improvement.
The key problem is that no one who knows this controller comes to help to solve these issue.
Given this disadvantage, i think disabling it maybe is a good choice. I don't know whether we need to continue to provide patch for adma after disabling adma function.
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
Quoted 9 lines · Kuan Luo
Quoted 3 lines · Robert
-Hotplug/hot-unplug fails to work properly, hotplug interrupts not
raised (seemingly only on certain boards/configurations as I can't duplicate this problem). http://bugzilla.kernel.org/show_bug.cgi?id=8421I occasionly encountered this problem in one port under certain system,
but didn't see this issue under other systems in the same mainboard.
After adding the operation of manually clearing the added/removed
interrupt bit inNV_INT_STATUS_CK804register innv_adma_interruptfunction, i saw some improvement.
Quoted 5 lines
The key problem is that no one who knows this controller comes to help to solve these issue.
Given this disadvantage, i think disabling it maybe is a good choice. I don't know whether we need to continue to provide patch for adma after disabling adma function.
Based on all these discussions and experiences, I just checked in the following commit, setting adma_enabled to zero:
[libata] sata_nv: disable ADMA by default
Continues to have open issues, and engineering support is extremely
difficult to come by, according to fellow NVIDIA engineers.
Quoted 9 lines · Kuan Luo
Quoted 3 lines · Robert
-Hotplug/hot-unplug fails to work properly, hotplug interrupts not
raised (seemingly only on certain boards/configurations as I can't duplicate this problem). http://bugzilla.kernel.org/show_bug.cgi?id=8421I occasionly encountered this problem in one port under certain system,
but didn't see this issue under other systems in the same mainboard.
After adding the operation of manually clearing the added/removed
interrupt bit inNV_INT_STATUS_CK804register innv_adma_interruptfunction, i saw some improvement.
Quoted 5 lines
The key problem is that no one who knows this controller comes to help to solve these issue.
Given this disadvantage, i think disabling it maybe is a good choice. I don't know whether we need to continue to provide patch for adma after disabling adma function.
Is there any hope of getting permission for me to (a) give the NV ADMA documentation to Robert, or (b) posting the ADMA PDF on http://gkernel.sourceforge.net/specs/ ?
I strongly encourage vendors -- especially with chips at or past end-of-life -- to help customers and developers by permitting posting at http://gkernel.sourceforge.net/specs/
Thanks,
Jeff
Quoted 14 lines · Jeff Garzik
Quoted 4 lines · Kuan Luo
Quoted 3 lines · Robert
-Hotplug/hot-unplug fails to work properly, hotplug interrupts not
raised (seemingly only on certain boards/configurations as I can't duplicate this problem). http://bugzilla.kernel.org/show_bug.cgi?id=8421Quoted 8 lines
I occasionly encountered this problem in one port under certain system,
but didn't see this issue under other systems in the same mainboard.
After adding the operation of manually clearing the added/removed
interrupt bit inNV_INT_STATUS_CK804register innv_adma_interruptfunction, i saw some improvement. The key problem is that no one who knows this controller comes to help to solve these issue.
Given this disadvantage, i think disabling it maybe is a good choice.
I don't know whether we need to continue to provide patch for adma after
disabling adma function.
Quoted 7 lines
Is there any hope of getting permission for me to (a) give the NV ADMA documentation to Robert, or (b) posting the ADMA PDF on http://gkernel.sourceforge.net/specs/ ?
I strongly encourage vendors -- especially with chips at or past end-of-life -- to help customers and developers by permitting posting at http://gkernel.sourceforge.net/specs/
Thanks,
Jeff
I would second that call. It's been suggested that 3rd party IP was what inhibited this, I don't know if that is the case or not. But it would be a very nice gesture if NVIDIA would do what it takes to make this possible.
Quoted 17 lines · Robert Hancock
Quoted 16 lines · Jeff Garzik
Quoted 4 lines · Kuan Luo
Quoted 3 lines · Robert
-Hotplug/hot-unplug fails to work properly, hotplug interrupts not
raised (seemingly only on certain boards/configurations as I can't duplicate this problem). http://bugzilla.kernel.org/show_bug.cgi?id=8421Quoted 8 lines
I occasionly encountered this problem in one port under certain system,
but didn't see this issue under other systems in the same mainboard.
After adding the operation of manually clearing the added/removed
interrupt bit inNV_INT_STATUS_CK804register innv_adma_interruptfunction, i saw some improvement. The key problem is that no one who knows this controller comes to help to solve these issue.
Given this disadvantage, i think disabling it maybe is a good choice.
I don't know whether we need to continue to provide patch for adma after
disabling adma function.Is there any hope of getting permission for me to (a) give the NV ADMA documentation to Robert, or (b) posting the ADMA PDF on http://gkernel.sourceforge.net/specs/ ?
Quoted 7 lines
Quoted 5 lines
I strongly encourage vendors -- especially with chips at or past end-of-life -- to help customers and developers by permitting posting at http://gkernel.sourceforge.net/specs/
Thanks,
Jeff
I would second that call. It's been suggested that 3rd party IP was what inhibited this, I don't know if that is the case or not. But it would be a very nice gesture if NVIDIA would do what it takes to make this possible.
/me thirds.
Signature · 1 line
tejun
Quoted 25 lines · [email protected] wrote:
From: Zoltan Boszormenyi <[email protected]>
unchangelogged patch.
Signed-off-by Zoltan Boszormenyi <[email protected]>Cc Robert Hancock <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
drivers/ata/sata_nv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)diff -puN
drivers/ata/sata_nv.c~ata-swncq-should-be-enabled-by-defaultdrivers/ata/sata_nv.cdrivers/ata/sata_nv.c renamed from drivers/ata/sata_nv.c~ata-swncq-should-be-enabled-by-default +1
-1@@ -532,7 +532,7 @@ MODULE_DEVICE_TABLE(pci, nv_pci_tbl);MODULE_VERSION (DRV_VERSION );static int adma_enabled =1 ; -static int swncq_enabled; +static int swncq_enabled =1 ;static void nv_adma_register_mode (struct ata_port *ap) {
drivers/ata/sata_nv.c module_exit(nv_exit); · line 2488
Quoted 5 lines
drivers/ata/sata_nv.c renamed from drivers/ata/sata_nv.c~ata-swncq-should-be-enabled-by-default +1
-1@@ -2485,5 +2485,5 @@ 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 (swncq, swncq_enabled, bool,0444 ); -MODULE_PARM_DESC (swncq,"Enable use of SWNCQ (Default: false)" ); +MODULE_PARM_DESC (swncq,"Enable use of SWNCQ (Default: true)" );
applied... we'll see how testing goes