Re: 2.2.7.uniform-ide-6.19.golf.patch

Willem Riede (wriede@monmouth.com)
Sun, 09 May 1999 22:15:53 -0400


"Andre M. Hedrick" wrote:
>
> Latest Version.........
> http://www.dyer.vanderbilt.edu/server/udma/2.2.7.uniform-ide-6.19.golf.patch.gz
>
Succesfully applied on my P166 Gigabyte GA-586HX PC
with 64M memory and Promise Ultra 33 IDE card.

dmesg shows:

Uniform Multi-Platform E-IDE driver Revision: 6.19
PIIX3: IDE controller on PCI bus 00 dev 39
PIIX3: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:pio
PDC20246: IDE controller on PCI bus 00 dev 48
PDC20246: not 100% native mode: will probe irqs later
PDC20246: (U)DMA Burst Bit ENABLED Primary PCI Mode Secondary PCI Mode.
ide2: BM-DMA at 0x6500-0x6507, BIOS settings: hde:DMA, hdf:DMA
ide3: BM-DMA at 0x6508-0x650f, BIOS settings: hdg:DMA, hdh:DMA
hdc: NEC PD-1 ODX654P, ATAPI CDROM drive
hdd: NEC CD-ROM DRIVE:273, ATAPI CDROM drive
hde: WDC AC35100L, ATA DISK drive
hdg: WDC AC36400L, ATA DISK drive
ide1 at 0x170-0x177,0x376 on irq 15
ide2 at 0x6100-0x6107,0x6206 on irq 10
ide3 at 0x6300-0x6307,0x6406 on irq 10
hde: WDC AC35100L, 4924MB w/256kB Cache, CHS=10672/15/63, UDMA(33)
hdg: WDC AC36400L, 6149MB w/256kB Cache, CHS=13328/15/63, UDMA(33)
hdd: status error: status=0xd0 { Busy }
hdd: ATAPI reset complete
hdd: status error: status=0x58 { DriveReady SeekComplete DataRequest }
hdd: drive not ready for command
hdd: status error: status=0x58 { DriveReady SeekComplete DataRequest }
hdd: drive not ready for command
hdd: ATAPI reset complete
hdd: status error: status=0x00 { }
end_request: I/O error, dev 16:40 (hdd), sector 0
hdd: ATAPI 35X DVD-ROM drive, 37507kB Cache
Uniform CDROM driver Revision: 2.54

My oldish NEC CD-ROM DRIVE:273 on hdd seems to get confused.
It definitely is not a ATAPI 35X DVD-ROM drive, 37507kB Cache!
I cannot mount a CD on it, I get (with a RedHat CD in the drive):

[root@linnie wriede]# mount -t iso9660 /dev/hdd /mnt/cdrom
mount: block device /dev/hdd is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/hdd,
or too many mounted file systems

I can mount and read that CD fine on my other drive,
which, fyi, is using ide-scsi since it's a CD/PD drive.

Any ideas what could be going on?

The positive side: a more than 2x speed gain:

---- before
[root@linnie hdparm-3.5]# ./hdparm -Tt /dev/hdg

/dev/hdg:
Timing buffer-cache reads: 128 MB in 4.62 seconds =27.71 MB/sec
Timing buffered disk reads: 64 MB in 14.77 seconds = 4.33 MB/sec
[root@linnie hdparm-3.5]# ./hdparm -Tt /dev/hdg

/dev/hdg:
Timing buffer-cache reads: 128 MB in 4.52 seconds =28.32 MB/sec
Timing buffered disk reads: 64 MB in 14.74 seconds = 4.34 MB/sec
[root@linnie hdparm-3.5]# ./hdparm -Tt /dev/hde

/dev/hde:
Timing buffer-cache reads: 128 MB in 4.61 seconds =27.77 MB/sec
Timing buffered disk reads: 64 MB in 14.89 seconds = 4.30 MB/sec
[root@linnie hdparm-3.5]# ./hdparm -Tt /dev/hde

/dev/hde:
Timing buffer-cache reads: 128 MB in 4.53 seconds =28.26 MB/sec
Timing buffered disk reads: 64 MB in 15.32 seconds = 4.18 MB/sec

--- after

/dev/hde:
Timing buffer-cache reads: 128 MB in 4.63 seconds =27.65 MB/sec
Timing buffered disk reads: 64 MB in 6.52 seconds = 9.82 MB/sec

/dev/hde:
Timing buffer-cache reads: 128 MB in 4.54 seconds =28.19 MB/sec
Timing buffered disk reads: 64 MB in 6.54 seconds = 9.79 MB/sec

/dev/hdg:
Timing buffer-cache reads: 128 MB in 4.61 seconds =27.77 MB/sec
Timing buffered disk reads: 64 MB in 6.55 seconds = 9.77 MB/sec

/dev/hdg:
Timing buffer-cache reads: 128 MB in 4.51 seconds =28.38 MB/sec
Timing buffered disk reads: 64 MB in 6.58 seconds = 9.73 MB/sec

[root@linnie wriede]# /sbin/hdparm -I /dev/hde

/dev/hde:

Model=DW CCA5301L0 , FwRev=010.M811,
SerialNo=DWW-3T09004298 1
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs
FmtGapReq }
RawCHS=10672/15/63, TrkSize=57600, SectSize=600, ECCbytes=22
BuffType=3(DualPortCache), BuffSize=256kB, MaxMultSect=16, MultSect=16
DblWordIO=no, maxPIO=2(fast), DMA=yes, maxDMA=0(slow)
CurCHS=10672/15/63, CurSects=10085040, LBA=yes, LBAsects=10085040
tDMA={min:120,rec:120}, DMA modes: mword0 mword1 *mword2
IORDY=on/off, tPIO={min:160,w/IORDY:120}, PIO modes: mode3 mode4
UDMA modes: mode0 mode1 *mode2
Drive Supports : ATA-1 ATA-2 ATA-3

[root@linnie wriede]# /sbin/hdparm -I /dev/hdg

/dev/hdg:

Model=DW CCA6304L0 , FwRev=900.M980,
SerialNo=DWW-4M02009411 7
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs
FmtGapReq }
RawCHS=13328/15/63, TrkSize=57600, SectSize=600, ECCbytes=22
BuffType=3(DualPortCache), BuffSize=256kB, MaxMultSect=16, MultSect=16
DblWordIO=no, maxPIO=2(fast), DMA=yes, maxDMA=0(slow)
CurCHS=13328/15/63, CurSects=12594960, LBA=yes, LBAsects=12594960
tDMA={min:120,rec:120}, DMA modes: mword0 mword1 mword2
IORDY=on/off, tPIO={min:160,w/IORDY:120}, PIO modes: mode3 mode4
UDMA modes: mode0 mode1 *mode2
Drive Supports : ATA-1 ATA-2 ATA-3 ATA-4

System seems OK, I'm sending this mail with it...

Regards. Willem Riede.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/