[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Alpha Miata IDE disk problem

Hi all,

I have a MIATA PWS 500a with a custom Woody installation updated to SID,
SRM boot. Debian is installed on a 20G 7200 rpms IDE disk. 
hdparm -t with a 2.2.x kernel reports a transfer rate of 1.3 MB/s
hdparm -t with a custom compiled 2.4.26 reports a transfer rate of 13 MB/s.
Ten times the 2.2.x transfer rate. Comparable to the transfer rate of the SCSI
disk connected to the Qlogic 1020 card.
All looks ok, dmesg, lspci, hardware detection (I get some depmod error,
see dmesg, but they looks benign).

BUT I get strange filesystem (ext2) corruptions only with the 2.4.26 kernel.
Untarring the kernel sources I can see random binary data in the sources.
I also tried a 2.6.4 kernel but the filesystem corruption was so bad I had to 
wipe the disk.
The kernel reports that the disk (dkb0 in SRM lingo) is in mdma2 mode.
I also read that UDMA is out of question. 

What could I try to fix this problem ?

Thank you all, getting to this point has been fun.


lspci, dmesg and hdparm output follows:

00:03.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 
(rev 30)
00:04.0 IDE interface: CMD Technology Inc PCI0646 (rev 01)
00:07.0 Non-VGA unclassified device: Intel Corp. 82378IB [SIO ISA Bridge] (rev 
00:14.0 PCI bridge: Digital Equipment Corporation DECchip 21152 (rev 02)
01:08.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 
01:09.0 SCSI storage controller: QLogic Corp. ISP1020 Fast-wide SCSI (rev 05)
01:0a.0 VGA compatible controller: Matrox Graphics, Inc. MGA 2064W 
[Millennium] (rev 01)

Linux version 2.4.26 (root@pcalpha1) (gcc version 3.3.3 (Debian 20040306)) #4 
Mon Apr 19 23:47:46 CEST 2004
Booting on Miata using machine vector Miata from SRM
Command line: ro root=/dev/hdc1
memcluster 0, usage 1, start        0, end      243
memcluster 1, usage 0, start      243, end    32767
memcluster 2, usage 1, start    32767, end    32768
freeing pages 243:384
freeing pages 818:32767
reserving pages 818:819
pci: cia revision 1 (pyxis)
On node 0 totalpages: 32767
zone(0): 32767 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: ro root=/dev/hdc1
HWRPB cycle frequency bogus.  Estimated 499704028 Hz
Using epoch = 2000
Console: colour VGA+ 80x25
Calibrating delay loop... 990.32 BogoMIPS
Memory: 253864k/262136k available (2084k kernel code, 6328k reserved, 761k 
data, 176k init)
Dentry cache hash table entries: 32768 (order: 6, 524288 bytes)
Inode cache hash table entries: 16384 (order: 5, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 8192 bytes)
Buffer cache hash table entries: 8192 (order: 3, 65536 bytes)
Page-cache hash table entries: 32768 (order: 5, 262144 bytes)
POSIX conformance testing by UNIFIX
pci: passed tb register update test
pci: passed sg loopback i/o read test
pci: passed pte write cache snoop test
pci: failed valid tag invalid pte reload test (mcheck; workaround available)
pci: passed pci machine check test
pci: tbia workaround enabled
pci: enabling save/restore of SRM state
PCI: Bus 1, bridge: Digital Equipment Corporation DECchip 21152
  IO window: 8000-8fff
  MEM window: 09c00000-09cfffff
  PREFETCH window: 09000000-09bfffff
pci: pyxis 8K boundary dma bug - sg dma disabled
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
parport0: PC-style at 0x3bc [PCSPP(,...)]
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI 
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
rtc: SRM (post-2000) epoch (2000) detected
Real Time Clock Driver v1.10f
Floppy drive(s): fd0 is 2.88M
FDC 0 is a National Semiconductor PC87306
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CMD646: IDE controller at PCI slot 00:04.0
CMD646: chipset revision 1
CMD646: not 100% native mode: will probe irqs later
CMD646: chipset revision 0x01, MultiWord DMA Limited, IRQ workaround enabled
    ide0: BM-DMA at 0x9080-0x9087, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x9088-0x908f, BIOS settings: hdc:DMA, hdd:pio
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
hdc: ST320011A, ATA DISK drive
blk: queue fffffc0000656358, no I/O memory limit
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hdc: attached ide-disk driver.
hdc: host protected area => 1
hdc: 39102336 sectors (20020 MB) w/2048KiB Cache, CHS=38792/16/63, (U)DMA
hda: attached ide-cdrom driver.
hda: ATAPI 32X CD-ROM drive, 256kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
Partition check:
 /dev/ide/host0/bus1/target0/lun0: p1 p2 p3
SCSI subsystem driver Revision: 1.00
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 32768)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 176k freed
Adding Swap: 546192k swap-space (priority -1)
depmod(48): unaligned trap at 000000012000e868: 000000012011f47b 2c 21
depmod(48): unaligned trap at 000000012000e868: 000000012011f493 2c 21
depmod(48): unaligned trap at 000000012000e868: 000000012011f4b2 2c 21
depmod(48): unaligned trap at 000000012000e868: 000000012011f4f2 2c 21
qlogicisp : new isp1020 revision ID (5)
scsi0 : QLogic ISP1020 SCSI on PCI bus 01 device 48 irq 40 MEM base 
  Vendor: DEC       Model: RZ2CC-KA (C) DEC  Rev: 5520
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 8380080 512-byte hdwr sectors (4291 MB)
 /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
eth0: DC21143 at 0x9000 (PCI bus 0, device 3), h/w address 00:00:f8:75:ec:40,
      and requires IRQ24 (provided by PCI BIOS).
de4x5.c:V0.546 2001/02/22 davies@maniac.ultranet.com
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
See Documentation/networking/vortex.txt
01:08.0: 3Com PCI 3c905C Tornado at 0x8400. Vers LK1.1.18-ac
 00:50:04:be:ac:7f, IRQ 36
  product code 5555 rev 00.11 date 11-14-99
Full duplex capable
  Internal config register is 3800000, transceivers 0xa.
  8K byte-wide RAM 5:3 Rx:Tx split, autoselect/Autonegotiate interface.
  MII transceiver found at address 24, status 7809.
  Enabling bus-master transmits and whole-frame receives.
01:08.0: scatter/gather enabled. h/w checksums enabled
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Soundblaster audio driver Copyright (C) by Hannu Savolainen 1993-1996
sb: No ISAPnP cards found, trying standard ones...
SB 3.01 detected OK (220)
ESS chip ES1888 detected
<ESS ES1888 AudioDrive (rev 11) (3.01)> at 0x220 irq 7 dma 1,5
eth0: media is 100Mb/s.


 Model=ST320011A, FwRev=3.10, SerialNo=3HT1Z7RV
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=unknown, BuffSize=2048kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=39102336
 IORDY=on/off, tPIO={min:240,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 
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: device does not report version: 

 * signifies the current active mode

Reply to: