All of lore.kernel.org
 help / color / mirror / Atom feed
* Promise IDE controller crashes 2.4.22
@ 2003-11-27 18:43 John Goerzen
  2003-11-27 19:42 ` Bartlomiej Zolnierkiewicz
  2003-11-28 19:36 ` Wes Janzen
  0 siblings, 2 replies; 18+ messages in thread
From: John Goerzen @ 2003-11-27 18:43 UTC (permalink / raw)
  To: linux-kernel

Hi,

I have a Promise 20269-based UDMA 133 IDE controller.  If I have DMA
enabled on this controller, then when it is seeing heavy write activity,
the system freezes.  No messages on the console, ctrl-alt-del does
nothing, magic sysrq does nothing.

Reads do not appear to cause this problem, and the problem also
disappears if I disable DMA on the drive connected to the controller by
using hdparm.

System information:
Linux pi 2.4.22 #3 Sat Oct 25 15:45:50 CDT 2003 i586 GNU/Linux
AMD K6 400MHz processor

lspci:
00:08.0 Unknown mass storage controller: Promise Technology, Inc. 20269
(rev 02)

Drive: Maxtor 6Y160P0 150GB UDMA 133

I have, in my .config:

CONFIG_BLK_DEV_PDC202XX_NEW=y
CONFIG_BLK_DEV_PDC202XX=y

Thanks for any insight.

-- John Goerzen



^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: Promise IDE controller crashes 2.4.22
@ 2003-11-29 22:07 beolach
  2003-11-30 23:31 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 18+ messages in thread
From: beolach @ 2003-11-29 22:07 UTC (permalink / raw)
  To: jgoerzen; +Cc: linux-ide


I recently had a very similar problem to this on my computer with a
Promise Ultra133TX2 (PDC20269) addon card.  In my case I had a Western
Digital drive attached to the PDC20269 that would have major filesystem
corruption when DMA was enabled during the boot process.  Interestingly,
if I disabled DMA during boot, and then enabled it after boot with
hdparm, the drive worked OK.  Also, if I moved the drive to my
mainboard's IDE controller, it would work.  It seemed to be a
combination of my drive & IDE controller, because the IDE controller
works fine with other drives, and the WD hard drive worked fine with
another IDE controller.  I replaced the drive (20 GB) with a 120 GB
Maxtor drive, and haven't had any problem since.

Just something similar that happened to me,
Conway S. Smith


-- John Goerzen <jgoerzen@complete.org> wrote:
On Fri, Nov 28, 2003 at 12:16:48AM +0100, Bartlomiej Zolnierkiewicz wrote:
> 
> Can you first try booting with "ide2=autodma" kernel parameter
> instead of downgrading to UDMA100?

This caused the system to boot up with DMA disabled for the relevant
drive.  (Note: that may also be how it was working before.)  Here is a
diff from the previous dmesg to this one:

--- dmesg       2003-11-27 17:51:54.000000000 -0500
+++ dmesg2      2003-11-27 21:04:14.000000000 -0500
@@ -9,9 +9,10 @@
 zone(0): 4096 pages.
 zone(1): 94208 pages.
 zone(2): 0 pages.
-Kernel command line: root=/dev/hdc1 ro rootfstype=ext3
+Kernel command line: root=/dev/hdc1 ro rootfstype=ext3 ide2=autodma
+ide_setup: ide2=autodma -- BAD OPTION
 Initializing CPU#0
-Detected 400.919 MHz processor.
+Detected 400.923 MHz processor.
 Console: colour VGA+ 80x25
 Calibrating delay loop... 799.53 BogoMIPS
 Memory: 386700k/393216k available (1137k kernel code, 6132k reserved,
465k data, 76k init, 0k highmem)
@@ -55,7 +56,6 @@
 VP_IDE: IDE controller at PCI slot 00:07.1
 VP_IDE: chipset revision 6
 VP_IDE: not 100% native mode: will probe irqs later
-ide: Assuming 33MHz system bus speed for PIO modes; override with
idebus=xx
 VP_IDE: VIA vt82c596b (rev 12) IDE UDMA66 controller on pci00:07.1
     ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA
     ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:DMA
@@ -113,7 +113,3 @@
 EXT3 FS 2.4-0.9.19, 19 August 2002 on ide2(33,1), internal journal
 EXT3-fs: mounted filesystem with ordered data mode.
 Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
-blk: queue c02cc320, I/O limit 4095Mb (mask 0xffffffff)
-blk: queue c02cc774, I/O limit 4095Mb (mask 0xffffffff)
-blk: queue c02ccbc8, I/O limit 4095Mb (mask 0xffffffff)
-hde: DMA disabled

Also, here's some hdparm info:

# hdparm -i /dev/hde

/dev/hde:

 Model=Maxtor 6Y160P0, FwRev=YAR41VW0, SerialNo=xxxxxxxx
 Config={ Fixed }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
 BuffType=DualPortCache, BuffSize=7936kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 udma5 udma6
 AdvancedPM=yes: disabled (255) WriteCache=enabled
 Drive conforms to: (null):  1 2 3 4 5 6 7




________________________________________________________________
The best thing to hit the internet in years - Juno SpeedBand!
Surf the web up to FIVE TIMES FASTER!
Only $14.95/ month - visit www.juno.com to sign up today!

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

end of thread, other threads:[~2003-11-30 23:31 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-27 18:43 Promise IDE controller crashes 2.4.22 John Goerzen
2003-11-27 19:42 ` Bartlomiej Zolnierkiewicz
2003-11-27 22:55   ` John Goerzen
2003-11-27 23:16     ` Bartlomiej Zolnierkiewicz
2003-11-28  2:12       ` John Goerzen
2003-11-28 13:01         ` Bartlomiej Zolnierkiewicz
2003-11-29  1:12           ` John Goerzen
2003-11-28  2:24       ` John Goerzen
2003-11-28  3:22         ` Stefan Smietanowski
2003-11-28 13:00           ` Bartlomiej Zolnierkiewicz
2003-11-29  1:52             ` John Goerzen
2003-11-29  5:57               ` Andrew Herdman
2003-11-29 14:23               ` Bartlomiej Zolnierkiewicz
2003-11-28 19:36 ` Wes Janzen
2003-11-29  1:23   ` John Goerzen
2003-11-29  9:12     ` Wes Janzen
  -- strict thread matches above, loose matches on Subject: below --
2003-11-29 22:07 beolach
2003-11-30 23:31 ` Benjamin Herrenschmidt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.