public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH][RFC] ServerWorks autodma behavior
@ 2002-02-26  9:26 Ken Brownfield
  2002-02-26  9:52 ` Alan Cox
  2002-02-26 11:12 ` Martin Dalecki
  0 siblings, 2 replies; 10+ messages in thread
From: Ken Brownfield @ 2002-02-26  9:26 UTC (permalink / raw)
  To: linux-kernel

There wasn't a specific MAINTAINER for this stuff, other than perhaps
Andre Hedrick by proxy, so I decided it might be best to post this
directly.

I have a lot of ServerWorks OSB4 IDE hardware, which has the annoyingly
suboptimal behavior of corrupting filesystems when DMA is active.
Unfortunately, serverworks.c (in recent 2.4, at least) does not honor
the CONFIG_IDEDMA_AUTO config option -- it turns dma on only unless
"ide=nodma" is set on the kernel command line.

Personally, I think the correct behavior is for the subdrivers to honor
this config value.  However, only VIA behaves in this way, and PIIX only
because of its funky CONFIG_PIIX_TUNING config.  This obviates having to
modify lilo.conf (or similar) on all machines, and having to remember
to do so, etc etc.

The alternative is that, somewhat unintuitively, the correct behavior is
for the subdrivers to make their own non-CONFIGurable decisions on DMA.
In this case, VIA and PIIX should be corrected, I would think.

In any case, I've appended the patch I'm using to be able to turn off
auto-DMA at config-time rather than run-time for ServerWorks.  One
alternative is to shed this code altogether, since ide-pci.c seems to
set a rational default.

I just wanted to see if there was any clear consensus on this -- I'd be
glad to whip out patches for either behavior.

Thanks,
-- 
Ken.
brownfld@irridia.com


--- linux/drivers/ide/serverworks.c.orig	Sun Sep  9 10:43:02 2001
+++ linux/drivers/ide/serverworks.c	Tue Feb 26 00:39:17 2002
@@ -590,8 +590,10 @@
 #else /* CONFIG_BLK_DEV_IDEDMA */
 
 	if (hwif->dma_base) {
+#ifdef CONFIG_IDEDMA_AUTO
 		if (!noautodma)
 			hwif->autodma = 1;
+#endif
 		hwif->dmaproc = &svwks_dmaproc;
 	} else {
 		hwif->autodma = 0;


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

end of thread, other threads:[~2002-02-27 10:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-26  9:26 [PATCH][RFC] ServerWorks autodma behavior Ken Brownfield
2002-02-26  9:52 ` Alan Cox
2002-02-26  9:37   ` Andre Hedrick
2002-02-26 10:27     ` Ken Brownfield
2002-02-26 10:50       ` Andre Hedrick
2002-02-26 19:14         ` Gunther Mayer
2002-02-26 10:19   ` Ken Brownfield
2002-02-26 11:12 ` Martin Dalecki
2002-02-27  1:01   ` Ken Brownfield
2002-02-27 10:21     ` Martin Dalecki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox