Subject: Compact Flash fixes (change request in PR#24633)
To: None <>
From: Ian Zagorskih <>
List: tech-kern
Date: 07/13/2004 00:44:29
NetBSD IANZAG 2.0_BETA NetBSD 2.0_BETA (IANZAG) #1: Tue Jun 15 16:15:27 NOVST 
2004  ianzag@IANZAG:/usr/src/sys/arch/i386/compile/IANZAG i386

I just looked at 
and ported sugested patches for -release-2-0 ATA code. 

geodeide0 at pci0 dev 18 function 2
geodeide0: AMD Geode CX5530 IDE controller (rev. 0x00)
geodeide0: bus-master DMA support present
geodeide0: primary channel wired to compatibility mode
geodeide0: primary channel interrupting at irq 14
atabus0 at geodeide0 channel 0
geodeide0: secondary channel wired to compatibility mode
geodeide0: secondary channel interrupting at irq 15
atabus1 at geodeide0 channel 1
wd0 at atabus1 drive 0: <PQI IDE Flash Disk>
wd0: drive supports 1-sector PIO transfers, LBA addressing
wd0: 32000 KB, 500 cyl, 8 head, 16 sec, 512 bytes/sect x 64000 sectors
wdattach() done
wd0: 32-bit data port
wd0(geodeide0:1:0): using PIO mode 0

On FFS partition with native code i get about 50kb/s which is too slow for 
this machine even on CF card. After applying the patch i get about 
600..900kb/s and this seems much better for me.

Any ideas about the state of PR24633 ?

// wbr