Hi,
I noticed that on the latest i386 snapshot (may, 17th),
there is no IDE (ATA133) DMA for the nForce4 chipset.
I took a look at the NetBSD driver (sys/dev/pci/viaide.c) : same
code for nforce3 and nforce4.
So I -successfully- tried the basic patch below.
I had expected speed improvements (33 -> 133 time ratio).
I won't be able to try soon an amd64 snapshot :-(
dmesg follows.
Olivier
[pacth for sys/dev/pci/pciide.c]
*** pciide.c Wed May 25 01:58:57 2005
--- pciide.c.modified Wed May 25 02:01:10 2005
***************
*** 656,661 ****
--- 656,665 ----
{ PCI_PRODUCT_NVIDIA_NFORCE3_250_IDE,
0,
nforce_chip_map
+ },
+ { PCI_PRODUCT_NVIDIA_NFORCE4_ATA133,
+ 0,
+ nforce_chip_map
}
};
***************
*** 6563,6568 ****
--- 6567,6573 ----
case PCI_PRODUCT_NVIDIA_NFORCE2_400_IDE:
case PCI_PRODUCT_NVIDIA_NFORCE3_IDE:
case PCI_PRODUCT_NVIDIA_NFORCE3_250_IDE:
+ case PCI_PRODUCT_NVIDIA_NFORCE4_ATA133:
sc->sc_wdcdev.UDMA_cap = 6;
break;
default:
[dmesg]
the motherboard is labeled "GA-K8NF-9", "Gigabyte K8 Triton - PCIE"
OpenBSD 3.7-current (GENERIC) #0: Wed May 25 01:04:39 MEST 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) 64 Processor 3000+ ("AuthenticAMD" 686-class, 512KB L2
cache) 1.81 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2
cpu0: AMD Powernow: FID VID TTP TM
real mem = 1073258496 (1048104K)
avail mem = 972677120 (949880K)
using 4278 buffers containing 53764096 bytes (52504K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(4c) BIOS, date 12/17/04, BIOS32 rev. 0 @ 0xfb740
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev 3.0 @ 0xf0000/0xdb04
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfd990/352 (20 entries)
pcibios0: PCI Exclusive IRQs: 5 10 11 12
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #5 is the last bus
bios0: ROM list: 0xc0000/0xd000 0xce200/0x200! 0xcec00/0xa00! 0xd0000/0x1800
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
"Nvidia nForce4 DDR" rev 0xa2 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 "Nvidia nForce4 ISA" rev 0xa2
"Nvidia nForce4 SMBus" rev 0xa2 at pci0 dev 1 function 1 not configured
ohci0 at pci0 dev 2 function 0 "Nvidia nForce4 USB" rev 0xa2: irq 5, version
1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Nvidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 10 ports with 10 removable, self powered
ehci0 at pci0 dev 2 function 1 "Nvidia nForce4 USB" rev 0xa2: irq 12
usb1 at ehci0: USB revision 2.0
uhub1 at usb1
uhub1: Nvidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: 10 ports with 10 removable, self powered
auich0 at pci0 dev 4 function 0 "Nvidia nForce4 AC-97" rev 0xa2: irq 11,
nForce4 AC97
ac97: codec id 0x414c4790 (Avance Logic ALC850)
audio0 at auich0
pciide0 at pci0 dev 6 function 0 "Nvidia nForce4 IDE" rev 0xa2: DMA, channel 0
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <IC35L040AVVN07-0>
wd0: 16-sector PIO, LBA, 39265MB, 80416127 sectors
wd1 at pciide0 channel 0 drive 1: <IBM-DTLA-307030>
wd1: 16-sector PIO, LBA, 29314MB, 60036480 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, CD-RW GCE-8480B, 1.03> SCSI0 5/cdrom
removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
pciide1 at pci0 dev 7 function 0 "Nvidia nForce4 SATA 1" rev 0xa2: DMA
(unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide1: using irq 10 for native-PCI interrupt
pciide1: channel 0 ignored (not responding; disabled or no drives?)
pciide1: channel 1 ignored (not responding; disabled or no drives?)
pciide2 at pci0 dev 8 function 0 "Nvidia nForce4 SATA 2" rev 0xa2: DMA
(unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI
pciide2: using irq 11 for native-PCI interrupt
pciide2: channel 0 ignored (not responding; disabled or no drives?)
pciide2: channel 1 ignored (not responding; disabled or no drives?)
ppb0 at pci0 dev 9 function 0 "Nvidia nForce4 PCI-PCI" rev 0xa2
pci1 at ppb0 bus 1
de0 at pci1 dev 7 function 0 "DEC 21041" rev 0x21: irq 12
de0: pass 2.1 address 00:c0:f0:22:97:2c
vendor "Texas Instruments", unknown product 0x8025 (class serial bus subclass
Firewire, rev 0x01) at pci1 dev 10 function 0 not configured
"Nvidia CK804 LAN" rev 0xa2 at pci0 dev 10 function 0 not configured
ppb1 at pci0 dev 11 function 0 "Nvidia nForce4 PCIE" rev 0xa2
pci2 at ppb1 bus 2
ppb2 at pci0 dev 12 function 0 "Nvidia nForce4 PCIE" rev 0xa2
pci3 at ppb2 bus 3
ppb3 at pci0 dev 13 function 0 "Nvidia nForce4 PCIE" rev 0xa2
pci4 at ppb3 bus 4
ppb4 at pci0 dev 14 function 0 "Nvidia nForce4 PCIE" rev 0xa2
pci5 at ppb4 bus 5
vga1 at pci5 dev 0 function 0 "ATI Radeon X300" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"ATI Radeon X300 Sec" rev 0x00 at pci5 dev 0 function 1 not configured
pchb0 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb1 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb2 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb3 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x290/8: IT87
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ff65 netmask ff65 ttymask ffe7
pctr: user-level cycle counter enabled
dkcsum: wd0 matched BIOS disk 80
dkcsum: wd1 matched BIOS disk 81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
--
--------------------------------------------------------
Olivier Crouzet --{Epitech.}--
[EMAIL PROTECTED] 24 rue Pasteur
01 44 08 01 01 94276 le Kremlin Bicetre
--------------------------------------------------------