Re: Slow PCI write access to twe or pciide

2005-06-27 Thread jimmy
The dmesg for OpenBSD/i386 (-CURRENT) shows things about the IRQ routing table,
anyone who can provide me some more info about what could be going wrong?

OpenBSD 3.7-current (GENERIC) #204: Fri Jun 24 21:25:02 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) 64 Processor 3200+ ("AuthenticAMD" 686-class, 512KB L2 cach
e) 1.99 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
LUSH,MMX,FXSR,SSE,SSE2
cpu0: AMD Powernow: FID VID TTP TM
real mem  = 468230144 (457256K)
avail mem = 420102144 (410256K)
using 4278 buffers containing 23515136 bytes (22964K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(37) BIOS, date 02/03/05, BIOS32 rev. 0 @ 0xf9fd0
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 3.0 @ 0xf/0xcd44
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfcc10/272 (15 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 17 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 3 5 10 11 12
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #2 is the last bus
WARNING: can't reserve area for I/O APIC.
WARNING: can't reserve area for Local APIC.
WARNING: can't reserve area for BIOS PROM.
bios0: ROM list: 0xc/0xd000 0xd/0x1000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "ATI RS480 Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "ATI RS480 PCIE" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 5 function 0 "ATI Radeon XPRESS 200" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ohci0 at pci0 dev 19 function 0 "ATI IXP400 USB" rev 0x00: irq 3, version 1.0, l
egacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ohci1 at pci0 dev 19 function 1 "ATI IXP400 USB" rev 0x00: irq 3, version 1.0, l
egacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 4 ports with 4 removable, self powered
ehci0 at pci0 dev 19 function 2 "ATI IXP400 USB2" rev 0x00: irq 3
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: ATI EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 8 ports with 8 removable, self powered
"ATI IXP400 SMBus" rev 0x04 at pci0 dev 20 function 0 not configured
pciide0 at pci0 dev 20 function 1 "ATI IXP400 IDE" rev 0x00: DMA (unsupported),
channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 39083MB, 80043264 sectors
pciide0: channel 1 ignored (not responding; disabled or no drives?)
pcib0 at pci0 dev 20 function 3 "ATI IXP400 ISA" rev 0x00
ppb1 at pci0 dev 20 function 4 "ATI IXP400 PCI" rev 0x00
pci2 at ppb1 bus 2
twe0 at pci2 dev 2 function 0 "3ware Escalade IDE RAID" rev 0x01: irq 11
twe0: Escalade V1.3
scsibus0 at twe0: 16 targets
sd0 at scsibus0 targ 0 lun 0: <3WARE, Host drive #00, > SCSI2 0/direct fixed
sd0: 152636MB, 152636 cyl, 64 head, 32 sec, 512 bytes/sec, 312598784 sec total
rl0 at pci2 dev 3 function 0 "Realtek 8139" rev 0x10: irq 10 address 00:11:09:fa
:e5:b5
rlphy0 at rl0 phy 0: RTL internal phy
"VIA VT6306 FireWire" rev 0x80 at pci2 dev 4 function 0 not configured
"ATI IXP400 AC'97" rev 0x00 at pci0 dev 20 function 5 not configured
pchb1 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb4 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: 
spkr0 at pcppi0
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: 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 fb6d netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
dkcsum: wd0 matched BIOS disk 80
dkcsum: sd0 matched BIOS disk 81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302



This message has been sent through ihosting.be
To report spamming or other unaccepted behavior
by a iHosting customer, please send a message 
to [EMAIL PROTECTED]




Slow PCI write access to twe or pciide

2005-06-23 Thread jimmy
Hi all,

I have a problem with the RS480M2-IL mainboard from MSI.

The problem is that I cannot write with more than 29 MB/s to a disk on any
add-on PCI IDE/RAID controller, even not to a raid 0 array.
I even get only 14 MB/s to a raid 1 array.

I tried to attach a 3ware Escalade 7006-2 with 2 disks.
I even tried some unknown IDE controller (ITE chip) on the PCI slots.
I both tried OpenBSD/i386 and OpenBSD/amd64.
The onboard IDE controller is forced to use DMA mode, since it was 10x slower
otherwise because the controller did not report that DMA could be used.
I tried the disks and controllers on another mainboard,
and I could get at least 53 MB/s on the raid 0 array and 34 MB/s
to an individual disk.

Speeds were mesured with 'dd if=/dev/zero of=/mnt/100mb bs=1m count=100'

This is the dmesg from the OpenBSD/amd64 installed were i had to include
the twe driver myself. The same problem exists though with
OpenBSD/i386's GENERIC kernel.

Every suggestion is welcome, I already tried to tweak anything in the bios,
doesn't change a thing, FreeBSD also has this same problem.

OpenBSD 3.7 (CUSTOM) #0: Wed Jun 22 19:49:34 CEST 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/CUSTOM
real mem = 518582272 (506428K)
avail mem = 433680384 (423516K)
using 12711 buffers containing 52064256 bytes (50844K) of memory
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon(tm) 64 Processor 3200+, 1990.06 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 vendor "ATI", unknown product 0x5950 rev 0x00
ppb0 at pci0 dev 1 function 0 vendor "ATI", unknown product 0x5a3f rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 5 function 0 vendor "ATI", unknown product 0x5954 rev 0x00
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ohci0 at pci0 dev 19 function 0 vendor "ATI", unknown product 0x4374 rev 0x00:
irq 7, version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ohci1 at pci0 dev 19 function 1 vendor "ATI", unknown product 0x4375 rev 0x00:
irq 7, version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 4 ports with 4 removable, self powered
vendor "ATI", unknown product 0x4372 (class serial bus subclass SMBus, rev 0x04)
at pci0 dev 20 function 0 not configured
pciide0 at pci0 dev 20 function 1 vendor "ATI", unknown product 0x4376 rev 0x00:
DMA, (partial support), channel 0 configured to compatibility, channel 1
configured to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 39083MB, 80043264 sectors
pciide0: channel 1 ignored (not responding; disabled or no drives?)
pciide0:0:0: using DMA data transfers
vendor "ATI", unknown product 0x4377 (class bridge subclass ISA, rev 0x00) at
pci0 dev 20 function 3 not configured
ppb1 at pci0 dev 20 function 4 vendor "ATI", unknown product 0x4371 rev 0x00
pci2 at ppb1 bus 2
twe0 at pci2 dev 2 function 0 "3ware Escalade IDE RAID" rev 0x01: irq 11
twe0: Escalade V1.3
scsibus0 at twe0: 16 targets
sd0 at scsibus0 targ 0 lun 0: <3WARE, Host drive #00, > SCSI2 0/direct fixed
sd0: 152636MB, 19458 cyl, 255 head, 63 sec, 512 bytes/sec, 312598784 sec total
rl0 at pci2 dev 3 function 0 "Realtek 8139" rev 0x10: irq 10 address
00:11:09:fa:e5:b5
rlphy0 at rl0 phy 0: RTL internal phy
"VIA VT6306 FireWire" rev 0x80 at pci2 dev 4 function 0 not configured
pchb1 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb4 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
isa0 at mainbus0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0 (mux 1 ignored for console): console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
dkcsum: wd0 matched BIOS disk 80
dkcsum: sd0 matched BIOS disk 81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

# pcitweak -l
PCI: Probing config type using method 1
PCI: Config type is 1
PCI: PCI scan (all values are in hex)
PCI: 00:00:0: chip 1002,5950 card 1462,7141 rev 00 class 06,00,00 hdr 00
PCI: 00:01:0: chip 1002,5a3f card , rev 00 class 06,04,00 hdr 01
PCI: 00:13:0: chip 1002,4374 card 1462,7141 rev 00 class 0c,03,10 hdr 80
PCI: 00:13:1: chip 1002,4375 card 1462,7141 rev 00 class 0c,03,10 hdr 00