* nvida sata controller CK804 and NCQ not working on linux-2.6.28||29.1
@ 2009-04-06 13:03 l.genoni
2009-04-07 0:24 ` Jeff Garzik
2009-04-07 2:12 ` Robert Hancock
0 siblings, 2 replies; 5+ messages in thread
From: l.genoni @ 2009-04-06 13:03 UTC (permalink / raw)
To: jgarzik; +Cc: linux-kernel
Hi,
to make NCQ work with nvidia sata CK804 I had to introduce this simple
change into sata-nv.c. Is there some reason I am missing why adma_enable
is not by default one, so later in the dome NCQ is not enabled?
--- linux/drivers/ata/sata_nv.c.old 2009-04-06 14:56:19.000000000
+0200
+++ linux/drivers/ata/sata_nv.c 2009-04-06 14:56:24.000000000 +0200
@@ -577,7 +577,7 @@
MODULE_DEVICE_TABLE(pci, nv_pci_tbl);
MODULE_VERSION(DRV_VERSION);
-static int adma_enabled;
+static int adma_enabled = 1;
static int swncq_enabled = 1;
static void nv_adma_register_mode(struct ata_port *ap)
regards
Luigi Genoni
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: nvida sata controller CK804 and NCQ not working on linux-2.6.28||29.1
2009-04-06 13:03 l.genoni
@ 2009-04-07 0:24 ` Jeff Garzik
2009-04-07 2:12 ` Robert Hancock
1 sibling, 0 replies; 5+ messages in thread
From: Jeff Garzik @ 2009-04-07 0:24 UTC (permalink / raw)
To: l.genoni; +Cc: linux-kernel
l.genoni@oltrelinux.com wrote:
>
> Hi,
> to make NCQ work with nvidia sata CK804 I had to introduce this simple
> change into sata-nv.c. Is there some reason I am missing why adma_enable
> is not by default one, so later in the dome NCQ is not enabled?
Yes -- too many problems in the field led us to disable ADMA by default.
Jeff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: nvida sata controller CK804 and NCQ not working on linux-2.6.28||29.1
2009-04-06 13:03 l.genoni
2009-04-07 0:24 ` Jeff Garzik
@ 2009-04-07 2:12 ` Robert Hancock
1 sibling, 0 replies; 5+ messages in thread
From: Robert Hancock @ 2009-04-07 2:12 UTC (permalink / raw)
To: l.genoni; +Cc: jgarzik, linux-kernel
l.genoni@oltrelinux.com wrote:
>
> Hi,
> to make NCQ work with nvidia sata CK804 I had to introduce this simple
> change into sata-nv.c. Is there some reason I am missing why adma_enable
> is not by default one, so later in the dome NCQ is not enabled?
It's had some problems with certain hotplug scenarios and seemingly
others (like command timeouts) with different systems/drives. I use it
on my system and it seems to work fine, but others have had some issues.
NVIDIA won't release any public register specs for this controller (the
support there now was based on a partially finished version they
released), and haven't been very helpful with debugging. I suspect some
of the issues with it are related to hardware errata/bugs, which may
partially explain their silence. There definitely are hardware bugs in
this controller - just connect a SATA optical drive to it and try to
read a scratched DVD with read errors. Even under Windows, with either
NVIDIA's driver or the default Microsoft IDE driver, it'll usually
either hardlock or machine-check blue screen the system. (It's known
that the ATAPI part of ADMA is busted and unusable, but this happens
with or without it enabled.)
>
>
>
> --- linux/drivers/ata/sata_nv.c.old 2009-04-06 14:56:19.000000000 +0200
> +++ linux/drivers/ata/sata_nv.c 2009-04-06 14:56:24.000000000 +0200
> @@ -577,7 +577,7 @@
> MODULE_DEVICE_TABLE(pci, nv_pci_tbl);
> MODULE_VERSION(DRV_VERSION);
>
> -static int adma_enabled;
> +static int adma_enabled = 1;
> static int swncq_enabled = 1;
>
> static void nv_adma_register_mode(struct ata_port *ap)
>
> regards
>
> Luigi Genoni
^ permalink raw reply [flat|nested] 5+ messages in thread
* nvida sata controller CK804 and NCQ not working on linux-2.6.28||29.1
@ 2009-04-07 21:34 Genoni Luigi
2009-04-07 23:32 ` Tejun Heo
0 siblings, 1 reply; 5+ messages in thread
From: Genoni Luigi @ 2009-04-07 21:34 UTC (permalink / raw)
To: jgarzik@pobox.com, tj@kernel.org; +Cc: linux-kernel@vger.kernel.org
Hi,
to make NCQ work with nvidia sata CK804 I had to introduce this simple
change into sata-nv.c. Is there some reason I am missing why adma_enable is
not by default one, so later in the dome NCQ is not enabled?
--- linux/drivers/ata/sata_nv.c.old 2009-04-06 14:56:19.000000000 +0200
+++ linux/drivers/ata/sata_nv.c 2009-04-06 14:56:24.000000000 +0200
@@ -577,7 +577,7 @@
MODULE_DEVICE_TABLE(pci, nv_pci_tbl);
MODULE_VERSION(DRV_VERSION);
-static int adma_enabled;
+static int adma_enabled = 1;
static int swncq_enabled = 1;
static void nv_adma_register_mode(struct ata_port *ap)
regards
Luigi Genoni
Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate. La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente e di provvedere alla sua distruzione, Grazie.
This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail, Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: nvida sata controller CK804 and NCQ not working on linux-2.6.28||29.1
2009-04-07 21:34 nvida sata controller CK804 and NCQ not working on linux-2.6.28||29.1 Genoni Luigi
@ 2009-04-07 23:32 ` Tejun Heo
0 siblings, 0 replies; 5+ messages in thread
From: Tejun Heo @ 2009-04-07 23:32 UTC (permalink / raw)
To: Genoni Luigi; +Cc: jgarzik@pobox.com, linux-kernel@vger.kernel.org
Genoni Luigi wrote:
> Hi,
> to make NCQ work with nvidia sata CK804 I had to introduce this simple
> change into sata-nv.c. Is there some reason I am missing why adma_enable is
> not by default one, so later in the dome NCQ is not enabled?
You can simply use module parameter - sata_nv.adma=1. It's disabled
by default because it's unstable on certain configurations.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-04-07 23:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-07 21:34 nvida sata controller CK804 and NCQ not working on linux-2.6.28||29.1 Genoni Luigi
2009-04-07 23:32 ` Tejun Heo
-- strict thread matches above, loose matches on Subject: below --
2009-04-06 13:03 l.genoni
2009-04-07 0:24 ` Jeff Garzik
2009-04-07 2:12 ` Robert Hancock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox