public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: ide.2.4.1-p3.01112001.patch
Date: Sat, 13 Jan 2001 15:00:46 +0100	[thread overview]
Message-ID: <20010113150046.E1155@suse.cz> (raw)
In-Reply-To: <20010112212427.A2829@suse.cz> <Pine.LNX.4.10.10101121604080.8097-100000@penguin.transmeta.com>
In-Reply-To: <Pine.LNX.4.10.10101121604080.8097-100000@penguin.transmeta.com>; from torvalds@transmeta.com on Fri, Jan 12, 2001 at 04:09:22PM -0800

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

On Fri, Jan 12, 2001 at 04:09:22PM -0800, Linus Torvalds wrote:

> On Fri, 12 Jan 2001, Vojtech Pavlik wrote:
> > 
> > However - Alan's IDE patch for 2.2 kills autodma on ALL VIA chipsets.
> > That's because all VIA chipsets starting from vt82c586 to vt82c686b
> > (UDMA100), share the same PCI ID.
> > 
> > Would you prefer to filter just vt82c586 and vt82c586a as the comment in
> > Alan's code says or simply unconditionally kill autodma on all of VIA
> > chipsets, as Alan's code does?
> 
> Right now, for 2.4.1, I'd rather have the patch to just do the same as
> 2.2.x. We can figure it out better when we get a better idea of exactly
> what the bug is, and whether there is some other work-around, and whether
> it is 100% certain that it is just those two controllers (maybe the other
> ones are buggy too, but the 2.2.x tests basically cured their symptoms too
> and peopl ehaven't reported them because they are "fixed").
> 
> 		Linus

Ok, here goes the patch.

Note that with this patch, all VIA users will get IDE transferrates
about 3 MB/sec as opposed to about 20 MB/sec without it (and with
UDMA66). 

This patch disables automatic DMA on all VIA chipsets, including the
ancient 82c561 for 486's, and up to the 686a UDMA66 chipset.

Also note that enabling the DMA later with hdparm -X66 -d1 or similar
command is not safe, and usually works by pure luck on VIA chipsets.
This however, would need some non-minor changes to the generic code to
fix.

But perhaps it's still worth ...

-- 
Vojtech Pavlik
SuSE Labs

[-- Attachment #2: via-no-autodma.diff --]
[-- Type: text/plain, Size: 996 bytes --]

diff -urN linux-old/drivers/ide/ide-pci.c linux/drivers/ide/ide-pci.c
--- linux-old/drivers/ide/ide-pci.c	Wed Jan  3 01:58:45 2001
+++ linux/drivers/ide/ide-pci.c	Sat Jan 13 14:54:53 2001
@@ -663,7 +663,9 @@
 		if (IDE_PCI_DEVID_EQ(d->devid, DEVID_SIS5513) ||
 		    IDE_PCI_DEVID_EQ(d->devid, DEVID_AEC6260) ||
 		    IDE_PCI_DEVID_EQ(d->devid, DEVID_PIIX4NX) ||
-		    IDE_PCI_DEVID_EQ(d->devid, DEVID_HPT34X))
+		    IDE_PCI_DEVID_EQ(d->devid, DEVID_HPT34X)  ||
+		    IDE_PCI_DEVID_EQ(d->devid, DEVID_VIA_IDE) ||
+		    IDE_PCI_DEVID_EQ(d->devid, DEVID_VP_IDE))
 			autodma = 0;
 		if (autodma)
 			hwif->autodma = 1;
diff -urN linux-old/drivers/ide/via82cxxx.c linux/drivers/ide/via82cxxx.c
--- linux-old/drivers/ide/via82cxxx.c	Tue Nov  7 20:02:24 2000
+++ linux/drivers/ide/via82cxxx.c	Sat Jan 13 14:52:26 2001
@@ -602,7 +602,6 @@
 #ifdef CONFIG_BLK_DEV_IDEDMA
 	if (hwif->dma_base) {
 		hwif->dmaproc = &via82cxxx_dmaproc;
-		hwif->autodma = 1;
 	}
 #endif /* CONFIG_BLK_DEV_IDEDMA */
 }

  parent reply	other threads:[~2001-01-13 14:05 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-12  8:44 ide.2.4.1-p3.01112001.patch Andre Hedrick
2001-01-12  8:55 ` ide.2.4.1-p3.01112001.patch Andre Hedrick
2001-01-12 17:51   ` ide.2.4.1-p3.01112001.patch Linus Torvalds
2001-01-12 18:13     ` ide.2.4.1-p3.01112001.patch Alan Cox
2001-01-12 18:37       ` ide.2.4.1-p3.01112001.patch Linus Torvalds
2001-01-12 21:26       ` ide.2.4.1-p3.01112001.patch Adrian Bunk
2001-01-12 18:17     ` ide.2.4.1-p3.01112001.patch Andre Hedrick
2001-01-12 18:55       ` ide.2.4.1-p3.01112001.patch Linus Torvalds
2001-01-12 19:46         ` ide.2.4.1-p3.01112001.patch Vojtech Pavlik
2001-01-12 19:57           ` ide.2.4.1-p3.01112001.patch Linus Torvalds
2001-01-12 20:24             ` ide.2.4.1-p3.01112001.patch Vojtech Pavlik
2001-01-12 23:47               ` ide.2.4.1-p3.01112001.patch Alan Cox
2001-01-13 13:45                 ` ide.2.4.1-p3.01112001.patch Vojtech Pavlik
2001-01-13 17:09                   ` ide.2.4.1-p3.01112001.patch Bryan O'Sullivan
2001-01-13 17:19                     ` ide.2.4.1-p3.01112001.patch Vojtech Pavlik
2001-01-13  0:09               ` ide.2.4.1-p3.01112001.patch Linus Torvalds
2001-01-13  0:25                 ` ide.2.4.1-p3.01112001.patch Alan Cox
2001-01-12 16:43                   ` ide.2.4.1-p3.01112001.patch John Heil
2001-01-13  0:52                     ` ide.2.4.1-p3.01112001.patch Linus Torvalds
2001-01-12 17:09                       ` ide.2.4.1-p3.01112001.patch John Heil
2001-01-13  1:16                         ` ide.2.4.1-p3.01112001.patch Linus Torvalds
2001-01-15 10:15                         ` ide.2.4.1-p3.01112001.patch Matthias Andree
2001-01-13  1:12                       ` ide.2.4.1-p3.01112001.patch Andre Hedrick
2001-01-13  1:18                         ` ide.2.4.1-p3.01112001.patch Linus Torvalds
2001-01-13  1:24                           ` ide.2.4.1-p3.01112001.patch Andre Hedrick
2001-01-13  1:31                             ` ide.2.4.1-p3.01112001.patch Linus Torvalds
2001-01-13  1:48                               ` ide.2.4.1-p3.01112001.patch Andre Hedrick
2001-01-13  1:51                               ` ide.2.4.1-p3.01112001.patch Andre Hedrick
2001-01-13 14:02                       ` ide.2.4.1-p3.01112001.patch Vojtech Pavlik
2001-01-13 14:00                 ` Vojtech Pavlik [this message]
2001-01-13 19:46                   ` ide.2.4.1-p3.01112001.patch Alan Cox
2001-01-13 20:00                     ` ide.2.4.1-p3.01112001.patch Andre Hedrick
2001-01-14  3:41                   ` ide.2.4.1-p3.01112001.patch TimO
2001-01-14  8:55                     ` ide.2.4.1-p3.01112001.patch Vojtech Pavlik
2001-01-15 13:06                   ` ide.2.4.1-p3.01112001.patch Stephen Clark
     [not found]               ` <Pine.LNX.4.30.0101130559060.19743-100000@wr5z.localdomain>
2001-01-13 14:22                 ` VIA IDE corruption - anyone experiencing it with 2.4.0? Vojtech Pavlik
2001-01-12 23:43           ` ide.2.4.1-p3.01112001.patch Alan Cox
2001-01-13  2:43             ` ide.2.4.1-p3.01112001.patch davej
2001-01-13 13:42               ` ide.2.4.1-p3.01112001.patch Vojtech Pavlik
2001-01-13  3:03             ` ide.2.4.1-p3.01112001.patch Tkil
2001-01-13 13:44               ` ide.2.4.1-p3.01112001.patch Vojtech Pavlik
2001-01-13 13:35             ` ide.2.4.1-p3.01112001.patch Vojtech Pavlik
2001-01-14 19:38             ` ide.2.4.1-p3.01112001.patch Jamie Lokier
2001-01-14 22:39               ` ide.2.4.1-p3.01112001.patch Vojtech Pavlik
2001-01-15  0:06                 ` ide.2.4.1-p3.01112001.patch Albert Cranford
2001-01-15 23:47                   ` ide.2.4.1-p3.01112001.patch Henrique de Moraes Holschuh
2001-01-15  1:13                 ` ide.2.4.1-p3.01112001.patch Jamie Lokier
2001-01-13 22:06           ` ide.2.4.1-p3.01112001.patch junio
2001-01-13  7:12         ` ide.2.4.1-p3.01112001.patch Andre Hedrick
2001-01-13 16:42         ` ide.2.4.1-p3.01112001.patch David Woodhouse
2001-01-13 17:04           ` ide.2.4.1-p3.01112001.patch Linus Torvalds
2001-01-14 17:22             ` ide.2.4.1-p3.01112001.patch David Woodhouse
2001-01-13 18:54           ` ide.2.4.1-p3.01112001.patch Russell King
2001-01-12  8:56 ` ide.2.4.1-p3.01112001.patch Craig Schlenter
  -- strict thread matches above, loose matches on Subject: below --
2001-01-13 23:40 ide.2.4.1-p3.01112001.patch Andrzej Krzysztofowicz
2001-01-14  8:46 ` ide.2.4.1-p3.01112001.patch Vojtech Pavlik
2001-01-14  3:53 ide.2.4.1-p3.01112001.patch Tony Parsons
2001-01-14  8:31 ` ide.2.4.1-p3.01112001.patch David D.W. Downey
2001-01-14  9:03   ` ide.2.4.1-p3.01112001.patch David D.W. Downey
2001-01-15 10:29   ` ide.2.4.1-p3.01112001.patch Paul Flinders

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=20010113150046.E1155@suse.cz \
    --to=vojtech@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.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