Subject: Re: UltraDMA performance.
To: Andrea Franceschini <andrea@cs.tin.it>
From: David Carrel <carrel@NetBSD.org>
List: port-i386
Date: 01/09/2001 19:39:02
If you update to the very latest -current, Manuel has checked in a fix to
the pciide code that will now allow your VIA controller to run at Ultra/66.

Dave

> Manuel Bouyer wrote:
> > 
> > On Thu, Dec 28, 2000 at 07:18:30PM +0100, Andrea Franceschini wrote:
> > > Manuel Bouyer wrote:
> > > >
> > > > On Wed, Dec 27, 2000 at 07:18:34PM +0100, Andrea Franceschini wrote:
> > > > > I tried using softdep as a mount parameter and i get better performan
>       ce
> > > > > only during write phase.
> > > > >
> > > > > I want to know the exact parameters to give in kernel config.
> > > > >
> > > > > Actually,I use the following:
> > > > >
> > > > > flags 0x01 for wdc0 controller
> > > >
> > > > Only needed if your controller is not known from pciide.
> > >
> > > Without  these settings i was not able to obtain speed over 4MB/s
> > 
> > Then I suspect your controller isn't knon from pciide. What NetBSD release
> > are you running, and what controller do you have (dmesg, please) ?
> 
> Sorry for my late reply.
> Now ,i discovered that great part of performance loss was caused by  a
> mis-configuration
> in Kernel-file. (wdc instead of pciidee ..... :( ).
> But still i cannot obtain the full-speed of my controller.
> In fact even if if my motherboard is UDMA/66 capable ,pciide insist to
> recognize it as UDMA/33
> The chipset is a VIA VT82C598MVP.
> 
> this is the dmesg:
> 
> NetBSD 1.5 (GENERIC) #7: Tue Jan  9 16:43:02 PST 2001
>     root@:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: AMD K6-2 (586-class)
> total memory = 255 MB
> avail memory = 234 MB
> using 3296 buffers containing 13184 KB of memory
> BIOS32 rev. 0 found at 0xfb270
> mainbus0 (root)
> pci0 at mainbus0 bus 0: configuration mode 1
> pci0: i/o space, memory space enabled
> pchb0 at pci0 dev 0 function 0
> pchb0: vendor 0x1106 product 0x0597 (rev. 0x04)
> ppb0 at pci0 dev 1 function 0: vendor 0x1106 product 0x8598 (rev. 0x00)
> pci1 at ppb0 bus 1
> pci1: i/o space, memory space enabled
> vendor 0x1039 product 0x6326 (VGA display, revision 0x0b) at pci1 dev 0
> function 0 not configured
> pcib0 at pci0 dev 7 function 0
> pcib0: vendor 0x1106 product 0x0596 (rev. 0x12)
> pciide0 at pci0 dev 7 function 1: VIA Tech VT82C586A IDE Controller
> (rev. 0x06)
> pciide0: bus-master DMA support present
> pciide0: primary channel configured to compatibility mode
> wd0 at pciide0 channel 0 drive 0: <IBM-DPTA-372050>
> wd0: drive supports 16-sector pio transfers, lba addressing
> wd0: 19574 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 40088160
> sectors
> wd0: 32-bit data port
> wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
> wd1 at pciide0 channel 0 drive 1: <IBM-DPTA-372050>
> wd1: drive supports 16-sector pio transfers, lba addressing
> wd1: 19574 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 40088160
> sectors
> wd1: 32-bit data port
> wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
> pciide0: primary channel interrupting at irq 14
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data
> transfers)
> wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (using DMA data
> transfers)
> pciide0: secondary channel configured to compatibility mode
> wd2 at pciide0 channel 1 drive 0: <IBM-DPTA-372050>
> wd2: drive supports 16-sector pio transfers, lba addressing
> wd2: 19574 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 40088160
> sectors
> wd2: 32-bit data port
> wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
> wd3 at pciide0 channel 1 drive 1: <QUANTUM FIREBALLP LM20.5>
> wd3: drive supports 16-sector pio transfers, lba addressing
> wd3: 19595 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 40132503
> sectors
> wd3: 32-bit data port
> wd3: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
> pciide0: secondary channel interrupting at irq 15
> wd2(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data
> transfers)
> wd3(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 (using DMA data
> transfers)
> vendor 0x1106 product 0x3038 (USB serial bus, revision 0x08) at pci0 dev
> 7 function 2 not configured
> pchb1 at pci0 dev 7 function 3
> pchb1: vendor 0x1106 product 0x3050 (rev. 0x20)
> vendor 0x1274 product 0x1371 (audio multimedia, revision 0x08) at pci0
> dev 9 function 0 not configured
> rtk0 at pci0 dev 10 function 0: RealTek 8139 10/100BaseTX
> rtk0: interrupting at irq 5
> rtk0: Ethernet address 00:00:b4:aa:bb:82
> OUI 0x000000 model 0x0000 rev 0 at rtk0 phy 7 not configured
> vendor 0x11d4 product 0x1805 (miscellaneous communications) at pci0 dev
> 11 function 0 not configured
> isa at pcib0 not configured
> isa0 at mainbus0
> com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
> com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
> pckbc0 at isa0 port 0x60-0x64
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard
> vga0 at isa0 port 0x3b0-0x3df iomem 0xa0000-0xbffff
> wsdisplay0 at vga0: console (80x25, vt100 emulation), using wskbd0
> lpt0 at isa0 port 0x378-0x37b irq 7
> npx0 at isa0 port 0xf0-0xff: using exception 16
> fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
> fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
> biomask ff45 netmask ff65 ttymask ffe7
> Kernelized RAIDframe activated
> RAID autoconfigure
> Configuring raid0:
> RAIDFRAME: protectedSectors is 64
> RAIDFRAME: Configure (RAID Level 5): total number of sectors is
> 119440800 (58320 MB)
> RAIDFRAME(RAID Level 5): Using 20 floating recon bufs with head sep
> limit 10
> boot device: raid0
> root on raid0a dumps on raid0b
> 
> With this kernel i obtained a ~20MB/s troughtput in read.
> 
> 
> Thanks!