linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 3/3] ata: SWNCQ should be enabled by default
@ 2008-03-28 21:33 akpm
  2008-03-29 13:38 ` Tejun Heo
  2008-04-04  7:40 ` Jeff Garzik
  0 siblings, 2 replies; 18+ messages in thread
From: akpm @ 2008-03-28 21:33 UTC (permalink / raw)
  To: jeff; +Cc: linux-ide, akpm, zboszor, hancockr

From: Zoltan Boszormenyi <zboszor@dunaweb.hu>

unchangelogged patch.

Signed-off-by: Zoltan Boszormenyi <zboszor@dunaweb.hu>
Cc: Robert Hancock <hancockr@shaw.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 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-default drivers/ata/sata_nv.c
--- a/drivers/ata/sata_nv.c~ata-swncq-should-be-enabled-by-default
+++ a/drivers/ata/sata_nv.c
@@ -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)");
 
_

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-03-28 21:33 [patch 3/3] ata: SWNCQ should be enabled by default akpm
@ 2008-03-29 13:38 ` Tejun Heo
  2008-03-29 18:22   ` Zoltan Boszormenyi
  2008-04-04  7:40 ` Jeff Garzik
  1 sibling, 1 reply; 18+ messages in thread
From: Tejun Heo @ 2008-03-29 13:38 UTC (permalink / raw)
  To: akpm; +Cc: jeff, linux-ide, zboszor, hancockr

akpm@linux-foundation.org wrote:
> From: Zoltan Boszormenyi <zboszor@dunaweb.hu>
> 
> unchangelogged patch.
> 
> Signed-off-by: Zoltan Boszormenyi <zboszor@dunaweb.hu>
> Cc: Robert Hancock <hancockr@shaw.ca>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Nacked-by: Tejun Heo <htejun@gmail.com>

Sorry, there are remaining issues to resolve before enabling ADMA by 
default.

-- 
tejun

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-03-29 13:38 ` Tejun Heo
@ 2008-03-29 18:22   ` Zoltan Boszormenyi
  2008-03-30  0:11     ` Tejun Heo
  0 siblings, 1 reply; 18+ messages in thread
From: Zoltan Boszormenyi @ 2008-03-29 18:22 UTC (permalink / raw)
  To: Tejun Heo; +Cc: akpm, jeff, linux-ide, hancockr

Tejun Heo írta:
> akpm@linux-foundation.org wrote:
>> From: Zoltan Boszormenyi <zboszor@dunaweb.hu>
>>
>> unchangelogged patch.
>>
>> Signed-off-by: Zoltan Boszormenyi <zboszor@dunaweb.hu>
>> Cc: Robert Hancock <hancockr@shaw.ca>
>> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
>
> Nacked-by: Tejun Heo <htejun@gmail.com>
>
> Sorry, there are remaining issues to resolve before enabling ADMA by 
> default.

Sorry, this is NOT ADMA. SWNCQ is completely independent from ADMA.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-03-29 18:22   ` Zoltan Boszormenyi
@ 2008-03-30  0:11     ` Tejun Heo
  2008-03-30  1:06       ` Robert Hancock
  2008-03-31  2:58       ` Kuan Luo
  0 siblings, 2 replies; 18+ messages in thread
From: Tejun Heo @ 2008-03-30  0:11 UTC (permalink / raw)
  To: Zoltan Boszormenyi; +Cc: akpm, jeff, linux-ide, hancockr, Kuan Luo, Peer Chen

Zoltan Boszormenyi wrote:
> Tejun Heo írta:
>> akpm@linux-foundation.org wrote:
>>> From: Zoltan Boszormenyi <zboszor@dunaweb.hu>
>>>
>>> unchangelogged patch.
>>>
>>> Signed-off-by: Zoltan Boszormenyi <zboszor@dunaweb.hu>
>>> Cc: Robert Hancock <hancockr@shaw.ca>
>>> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
>>
>> Nacked-by: Tejun Heo <htejun@gmail.com>
>>
>> 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.

-- 
tejun

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-03-30  0:11     ` Tejun Heo
@ 2008-03-30  1:06       ` Robert Hancock
  2008-03-30  1:17         ` Tejun Heo
  2008-03-31  2:58       ` Kuan Luo
  1 sibling, 1 reply; 18+ messages in thread
From: Robert Hancock @ 2008-03-30  1:06 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Zoltan Boszormenyi, akpm, jeff, linux-ide, Kuan Luo, Peer Chen

Tejun Heo wrote:
> Zoltan Boszormenyi wrote:
>> Tejun Heo írta:
>>> akpm@linux-foundation.org wrote:
>>>> From: Zoltan Boszormenyi <zboszor@dunaweb.hu>
>>>>
>>>> unchangelogged patch.
>>>>
>>>> Signed-off-by: Zoltan Boszormenyi <zboszor@dunaweb.hu>
>>>> Cc: Robert Hancock <hancockr@shaw.ca>
>>>> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
>>>
>>> Nacked-by: Tejun Heo <htejun@gmail.com>
>>>
>>> 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?

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.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-03-30  1:06       ` Robert Hancock
@ 2008-03-30  1:17         ` Tejun Heo
  2008-03-30  7:03           ` Zoltan Boszormenyi
  0 siblings, 1 reply; 18+ messages in thread
From: Tejun Heo @ 2008-03-30  1:17 UTC (permalink / raw)
  To: Robert Hancock
  Cc: Zoltan Boszormenyi, akpm, jeff, linux-ide, Kuan Luo, Peer Chen

Robert Hancock wrote:
> Tejun Heo wrote:
>> Zoltan Boszormenyi wrote:
>>> Tejun Heo írta:
>>>> akpm@linux-foundation.org wrote:
>>>>> From: Zoltan Boszormenyi <zboszor@dunaweb.hu>
>>>>>
>>>>> unchangelogged patch.
>>>>>
>>>>> Signed-off-by: Zoltan Boszormenyi <zboszor@dunaweb.hu>
>>>>> Cc: Robert Hancock <hancockr@shaw.ca>
>>>>> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
>>>>
>>>> Nacked-by: Tejun Heo <htejun@gmail.com>
>>>>
>>>> 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?
> 
> 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?

-- 
tejun

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-03-30  1:17         ` Tejun Heo
@ 2008-03-30  7:03           ` Zoltan Boszormenyi
  2008-03-30 10:59             ` Tejun Heo
  0 siblings, 1 reply; 18+ messages in thread
From: Zoltan Boszormenyi @ 2008-03-30  7:03 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Robert Hancock, akpm, jeff, linux-ide, Kuan Luo, Peer Chen

[-- Attachment #1: Type: text/plain, Size: 1634 bytes --]

Tejun Heo írta:
> Robert Hancock wrote:
>> Tejun Heo wrote:
>>> Zoltan Boszormenyi wrote:
>>>> Tejun Heo írta:
>>>>> akpm@linux-foundation.org wrote:
>>>>>> From: Zoltan Boszormenyi <zboszor@dunaweb.hu>
>>>>>>
>>>>>> unchangelogged patch.
>>>>>>
>>>>>> Signed-off-by: Zoltan Boszormenyi <zboszor@dunaweb.hu>
>>>>>> Cc: Robert Hancock <hancockr@shaw.ca>
>>>>>> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
>>>>>
>>>>> Nacked-by: Tejun Heo <htejun@gmail.com>
>>>>>
>>>>> 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?
>>
>> 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?


[-- Attachment #2: sata_nv-swncq_enabled-1.patch --]
[-- Type: text/x-patch, Size: 1125 bytes --]

Enable SWNCQ by default for testing in 2.6.26-rcX[-mm] and 

Signed-off-by: Zoltan Boszormenyi <zboszor@dunaweb.hu>
Cc: Robert Hancock <hancockr@shaw.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 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-default drivers/ata/sata_nv.c
--- a/drivers/ata/sata_nv.c~ata-swncq-should-be-enabled-by-default
+++ a/drivers/ata/sata_nv.c
@@ -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)");
 

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-03-30  7:03           ` Zoltan Boszormenyi
@ 2008-03-30 10:59             ` Tejun Heo
  0 siblings, 0 replies; 18+ messages in thread
From: Tejun Heo @ 2008-03-30 10:59 UTC (permalink / raw)
  To: Zoltan Boszormenyi
  Cc: Robert Hancock, akpm, jeff, linux-ide, Kuan Luo, Peer Chen

Zoltan Boszormenyi wrote:
>> 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 <htejun@gmail.com>

-- 
tejun

^ permalink raw reply	[flat|nested] 18+ messages in thread

* RE: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-03-30  0:11     ` Tejun Heo
  2008-03-30  1:06       ` Robert Hancock
@ 2008-03-31  2:58       ` Kuan Luo
  2008-03-31  4:34         ` Tejun Heo
  1 sibling, 1 reply; 18+ messages in thread
From: Kuan Luo @ 2008-03-31  2:58 UTC (permalink / raw)
  To: Tejun Heo, Zoltan Boszormenyi; +Cc: akpm, jeff, linux-ide, hancockr, Peer Chen

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
 

> -----Original Message-----
> From: Tejun Heo [mailto:htejun@gmail.com] 
> Sent: Sunday, March 30, 2008 8:12 AM
> To: Zoltan Boszormenyi
> Cc: akpm@linux-foundation.org; jeff@garzik.org; 
> linux-ide@vger.kernel.org; hancockr@shaw.ca; Kuan Luo; Peer Chen
> Subject: Re: [patch 3/3] ata: SWNCQ should be enabled by default
> 
> Zoltan Boszormenyi wrote:
> > Tejun Heo írta:
> >> akpm@linux-foundation.org wrote:
> >>> From: Zoltan Boszormenyi <zboszor@dunaweb.hu>
> >>>
> >>> unchangelogged patch.
> >>>
> >>> Signed-off-by: Zoltan Boszormenyi <zboszor@dunaweb.hu>
> >>> Cc: Robert Hancock <hancockr@shaw.ca>
> >>> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> >>
> >> Nacked-by: Tejun Heo <htejun@gmail.com>
> >>
> >> 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.
> 
> -- 
> 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.
-----------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-03-31  2:58       ` Kuan Luo
@ 2008-03-31  4:34         ` Tejun Heo
  2008-04-01  3:14           ` Robert Hancock
  0 siblings, 1 reply; 18+ messages in thread
From: Tejun Heo @ 2008-03-31  4:34 UTC (permalink / raw)
  To: Kuan Luo
  Cc: Zoltan Boszormenyi, Robert Hancock, akpm, jeff, linux-ide,
	Peer Chen

Kuan Luo wrote:
> 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?

-- 
tejun

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-03-31  4:34         ` Tejun Heo
@ 2008-04-01  3:14           ` Robert Hancock
  2008-04-01  3:24             ` Robert Hancock
  0 siblings, 1 reply; 18+ messages in thread
From: Robert Hancock @ 2008-04-01  3:14 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Kuan Luo, Zoltan Boszormenyi, akpm, jeff, linux-ide, Peer Chen

Tejun Heo wrote:
> Kuan Luo wrote:
>> 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.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-04-01  3:14           ` Robert Hancock
@ 2008-04-01  3:24             ` Robert Hancock
  2008-04-01  5:24               ` Kuan Luo
  0 siblings, 1 reply; 18+ messages in thread
From: Robert Hancock @ 2008-04-01  3:24 UTC (permalink / raw)
  To: Robert Hancock
  Cc: Tejun Heo, Kuan Luo, Zoltan Boszormenyi, akpm, jeff, linux-ide,
	Peer Chen, Allen Martin

Robert Hancock wrote:
> Tejun Heo wrote:
>> Kuan Luo wrote:
>>> 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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* RE: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-04-01  3:24             ` Robert Hancock
@ 2008-04-01  5:24               ` Kuan Luo
  2008-04-04  7:38                 ` Jeff Garzik
  2008-04-04  8:10                 ` Jeff Garzik
  0 siblings, 2 replies; 18+ messages in thread
From: Kuan Luo @ 2008-04-01  5:24 UTC (permalink / raw)
  To: Robert Hancock
  Cc: Tejun Heo, Zoltan Boszormenyi, akpm, jeff, linux-ide, Peer Chen,
	Allen Martin

Robert wrote:
> -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.
-----------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-04-01  5:24               ` Kuan Luo
@ 2008-04-04  7:38                 ` Jeff Garzik
  2008-04-04  8:10                 ` Jeff Garzik
  1 sibling, 0 replies; 18+ messages in thread
From: Jeff Garzik @ 2008-04-04  7:38 UTC (permalink / raw)
  To: Kuan Luo
  Cc: Robert Hancock, Tejun Heo, Zoltan Boszormenyi, akpm, linux-ide,
	Peer Chen, Allen Martin, LKML

Kuan Luo wrote:
> Robert wrote:
>> -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.

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.

     Signed-off-by: Jeff Garzik <jgarzik@redhat.com>


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-03-28 21:33 [patch 3/3] ata: SWNCQ should be enabled by default akpm
  2008-03-29 13:38 ` Tejun Heo
@ 2008-04-04  7:40 ` Jeff Garzik
  1 sibling, 0 replies; 18+ messages in thread
From: Jeff Garzik @ 2008-04-04  7:40 UTC (permalink / raw)
  To: akpm; +Cc: linux-ide, zboszor, hancockr, Kuan Luo, Peer Chen

akpm@linux-foundation.org wrote:
> From: Zoltan Boszormenyi <zboszor@dunaweb.hu>
> 
> unchangelogged patch.
> 
> Signed-off-by: Zoltan Boszormenyi <zboszor@dunaweb.hu>
> Cc: Robert Hancock <hancockr@shaw.ca>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  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-default drivers/ata/sata_nv.c
> --- a/drivers/ata/sata_nv.c~ata-swncq-should-be-enabled-by-default
> +++ a/drivers/ata/sata_nv.c
> @@ -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)");

applied... we'll see how testing goes




^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-04-01  5:24               ` Kuan Luo
  2008-04-04  7:38                 ` Jeff Garzik
@ 2008-04-04  8:10                 ` Jeff Garzik
  2008-04-04 14:34                   ` Robert Hancock
  1 sibling, 1 reply; 18+ messages in thread
From: Jeff Garzik @ 2008-04-04  8:10 UTC (permalink / raw)
  To: Kuan Luo
  Cc: Robert Hancock, Tejun Heo, Zoltan Boszormenyi, akpm, linux-ide,
	Peer Chen, Allen Martin

Kuan Luo wrote:
> Robert wrote:
>> -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.

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





^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-04-04  8:10                 ` Jeff Garzik
@ 2008-04-04 14:34                   ` Robert Hancock
  2008-04-05  0:00                     ` Tejun Heo
  0 siblings, 1 reply; 18+ messages in thread
From: Robert Hancock @ 2008-04-04 14:34 UTC (permalink / raw)
  To: Jeff Garzik
  Cc: Kuan Luo, Tejun Heo, Zoltan Boszormenyi, akpm, linux-ide,
	Peer Chen, Allen Martin

Jeff Garzik wrote:
> Kuan Luo wrote:
>> Robert wrote:
>>> -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.
> 
> 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.

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [patch 3/3] ata: SWNCQ should be enabled by default
  2008-04-04 14:34                   ` Robert Hancock
@ 2008-04-05  0:00                     ` Tejun Heo
  0 siblings, 0 replies; 18+ messages in thread
From: Tejun Heo @ 2008-04-05  0:00 UTC (permalink / raw)
  To: Robert Hancock
  Cc: Jeff Garzik, Kuan Luo, Zoltan Boszormenyi, akpm, linux-ide,
	Peer Chen, Allen Martin

Robert Hancock wrote:
> Jeff Garzik wrote:
>> Kuan Luo wrote:
>>> Robert wrote:
>>>> -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.
>>
>> 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.

/me thirds.

-- 
tejun

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2008-04-05  0:00 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-28 21:33 [patch 3/3] ata: SWNCQ should be enabled by default akpm
2008-03-29 13:38 ` Tejun Heo
2008-03-29 18:22   ` Zoltan Boszormenyi
2008-03-30  0:11     ` Tejun Heo
2008-03-30  1:06       ` Robert Hancock
2008-03-30  1:17         ` Tejun Heo
2008-03-30  7:03           ` Zoltan Boszormenyi
2008-03-30 10:59             ` Tejun Heo
2008-03-31  2:58       ` Kuan Luo
2008-03-31  4:34         ` Tejun Heo
2008-04-01  3:14           ` Robert Hancock
2008-04-01  3:24             ` Robert Hancock
2008-04-01  5:24               ` Kuan Luo
2008-04-04  7:38                 ` Jeff Garzik
2008-04-04  8:10                 ` Jeff Garzik
2008-04-04 14:34                   ` Robert Hancock
2008-04-05  0:00                     ` Tejun Heo
2008-04-04  7:40 ` Jeff Garzik

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).