Subject: Re: slow writes on ixpide0?
To: None <port-amd64@NetBSD.org>
From: Jonathan Kay <jpk@panix.com>
List: port-amd64
Date: 08/21/2007 13:51:55
On Tue, 21 Aug, 2007 at 07:44:43PM +0200, it was scribed by cube@cubidou.net that:
> On Tue, Aug 21, 2007 at 01:37:25PM -0400, Jonathan Kay wrote:
> > Hello again,
> >   I'm seeing some rampant slowness with a secondary drive on an ATI/AMD
> > (IXP IDE) based motherboard.  There are two sata drives attached to it,
> > and the primary one reads & writes fast, but the secondary one refuses
> > to write any faster than 7MB/s.  It does however, read really fast.
> > (Again, this is a dedicated hosting machine, so some of my testing
> > abilities are limited..)
> > 
> > from the dmesg, I see that it reports:
> > wd1: quirks 2<FORCE_LBA48>
> > but don't see anything else to indicate a problem.
> > 
> > Any ideas?  Is it possibly just a bad harddrive & I should try to get
> > it replaced?
> > Thank you again!
> > Jonathan
> > 
> > here are some excerpts from my dmesg that are relevant to the situ:
> > 
> > ixpide0 at pci0 dev 18 function 0
> > ixpide0: ATI Technologies IXP IDE Controller (rev. 0x00)
> > ixpide0: bus-master DMA support present
> > ixpide0: primary channel configured to native-PCI mode
> > ixpide0: using irq 5 for native-PCI interrupt
> > atabus0 at ixpide0 channel 0
> > ixpide0: secondary channel configured to native-PCI mode
> > atabus1 at ixpide0 channel 1
> > atabus2 at ixpide1 channel 0
> > atabus3 at ixpide1 channel 1
> > wd0 at atabus0 drive 0: <WDC WD2000JS-00MHB0>
> > wd0: drive supports 16-sector PIO transfers, LBA48 addressing
> > wd0: 186 GB, 387621 cyl, 16 head, 63 sec, 512 bytes/sect x 390721968 sectors
> > wd0: 32-bit data port
> > wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
> > wd0(ixpide0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
> > wd1 at atabus1 drive 0: <ST3250620NS>
> > wd1: quirks 2<FORCE_LBA48>
> > wd1: drive supports 16-sector PIO transfers, LBA48 addressing
> > wd1: 232 GB, 484521 cyl, 16 head, 63 sec, 512 bytes/sect x 488397168 sectors
> > wd1: 32-bit data port
> > wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
> > wd1(ixpide0:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
> 
> What does atactl wd1 identify have to say about the driver?

Sorry, been a while since I've had any problems & I've forgotten these
things!
hmmm, that write cache disabled would probably be a problem!

# atactl wd1 identify
Model: ST3250620NS, Rev:   3.BJH, Serial #: 5QE2M3N1
Device type: ATA, fixed
Cylinders: 16383, heads: 16, sec/track: 63, total sectors: 268435455
Device capabilities:
        DMA
        LBA
        ATA standby timer values
        IORDY operation
        IORDY disabling
Device supports following standards:
ATA-1 ATA-2 ATA-3 ATA-4 ATA-5 ATA-6 ATA-7 
Command set support:
        NOP command (enabled)
        READ BUFFER command (enabled)
        WRITE BUFFER command (enabled)
        look-ahead (enabled)
        write cache (disabled)
        Power Management feature set (enabled)
        SMART feature set (enabled)
        FLUSH CACHE EXT command (enabled)
        FLUSH CACHE command (enabled)
        Device Configuration Overlay feature set (enabled)
        48-bit Address feature set (enabled)
        DOWNLOAD MICROCODE command (enabled)
        Time-limited R/W feature set R/W Continuous mode
        Time-limited Read/Write
        World Wide name
        WRITE DMA/MULTIPLE FUA EXT commands
        General Purpose Logging feature set
        SMART self-test
        SMART error logging