New Marvell/SysKonnect Gigabit driver

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

New Marvell/SysKonnect Gigabit driver

Mark Kettenis
Last night I checked in a driver, msk(4), for the previously
unsupported Marvell and SysKonnect Gigabit NICs.  The driver works
pretty well for me on the new Mac mini, but could really use some more
testing, especially on different hardware.  If you have such hardware
please compile yourself a fresh kernel (or fetch tourself today's
snapshot) and send me the dmesg, and a short report how well the
driver works for you.

Thanks,

Mark

Reply | Threaded
Open this post in threaded view
|

Re: New Marvell/SysKonnect Gigabit driver

Mike Erdely
Mark Kettenis wrote:
> Last night I checked in a driver, msk(4), for the previously
> unsupported Marvell and SysKonnect Gigabit NICs.

I couldn't wait to get home!  I downloaded the latest snapshot (today's
from ftp.openbsd.org) and burned cd40.iso to a CD-RW.

I rebooted my Mac Mini (purchased from Apple's store in early March '06)
and booted into the OpenBSD 4.0 beta boot CD (I did install the latest
Boot Camp Beta-1.1 before rebooting).
When it came to the USB ports, it still takes forever, but eventually
gets through it (forever is measured in 10s of minutes).  Then, I'm
prompted to install, like usual.  But, when I get to setting up the
network, it detects msk0, but whether using DHCP or manual IP, the
install process freezes and never (for small, meaning 10s of minutes,
definitions of never) continues to the next step.

> Mark
>

To be honest, I'm interested in having OpenBSD boot on my Intel Mac
Mini, but it's not the most important thing ever.  So I didn't bother to
write down the DMESG and type it for you guys.

Let me know if there's anything else I can test.  I did try opting for
(S)hell and running dhclient msk0, but I did not try manually IP'ing
msk0 from (S)hell.

Thanks for your efforts.

-ME

Reply | Threaded
Open this post in threaded view
|

Re: New Marvell/SysKonnect Gigabit driver

Mark Kettenis
> Date: Thu, 17 Aug 2006 20:58:08 -0400
> From: Mike Erdely <[hidden email]>
>
> Mark Kettenis wrote:
> > Last night I checked in a driver, msk(4), for the previously
> > unsupported Marvell and SysKonnect Gigabit NICs.
>
> I couldn't wait to get home!  I downloaded the latest snapshot (today's
> from ftp.openbsd.org) and burned cd40.iso to a CD-RW.
>
> I rebooted my Mac Mini (purchased from Apple's store in early March '06)
> and booted into the OpenBSD 4.0 beta boot CD (I did install the latest
> Boot Camp Beta-1.1 before rebooting).
> When it came to the USB ports, it still takes forever, but eventually
> gets through it (forever is measured in 10s of minutes).  Then, I'm
> prompted to install, like usual.  But, when I get to setting up the
> network, it detects msk0, but whether using DHCP or manual IP, the
> install process freezes and never (for small, meaning 10s of minutes,
> definitions of never) continues to the next step.

Oops, sorry to have made you go through the hoops again.  I discovered
today that the BIOS on the mini is somewhat busted and reports the
wrong interrupt for msk(4).  I've got some patches to get the
interrupt routing info from ACPI, but they're not quite ready yet to
go in.  I can send out a copy if you'd like to play with it, but
that'll only work if you already have an OpenBSD installation of some
sorts on the box and can compile your own kernel for it.

Mark

Reply | Threaded
Open this post in threaded view
|

Re: New Marvell/SysKonnect Gigabit driver

Andreas Bihlmaier-2
In reply to this post by Mark Kettenis
On Thu, Aug 17, 2006 at 09:04:05PM +0200, Mark Kettenis wrote:

> Last night I checked in a driver, msk(4), for the previously
> unsupported Marvell and SysKonnect Gigabit NICs.  The driver works
> pretty well for me on the new Mac mini, but could really use some more
> testing, especially on different hardware.  If you have such hardware
> please compile yourself a fresh kernel (or fetch tourself today's
> snapshot) and send me the dmesg, and a short report how well the
> driver works for you.
>
> Thanks,
> Mark

Thanks for all the effort to support these NICs.
Well I got an onboard chip on an ASUS A8V-E DELUXE motherboard.
I installed the latest i386 snapshot (see dmesg below), but things are
not quite working.

The interface gets attached (as msk0) and I can configure it with
ifconfig. The problem is as soon as I up/assign ip/change media on msk0
I get 99.9% interrupt load, rendering the system pretty much unuseable
until I reboot. No change whether cable is plugged in or isn't.

Weird thing is that the interrupts don't show up in:
systat -w 1 vmstat
    1 users    Load  1.79  1.04  0.48                  Fri Aug 18 12:56:55 2006

            memory totals (in KB)            PAGING   SWAPPING     Interrupts
           real   virtual     free           in  out   in  out      228 total
Active   162908    162908  1529564   ops                                mskc0
All      529040    529040  5723848   pages                              fxp0
                                                                        pciide0
Proc:r  d  s  w    Csw   Trp   Sys   Int   Sof  Flt     1 forks         uhci0
     2    10        45    37   245 59637    28   37     1 fkppw         ehci0
                                                          fksvm         pckbc0
  91.5%Int   0.7%Sys   2.1%Usr   0.0%Nic   5.7%Idle       pwait     100 clock
|    |    |    |    |    |    |    |    |    |    |       relck     128 rtc
||||||||||||||||||||||||||||||||||||||||||||||>           rlkok
                                                          noram
Namei         Sys-cache    Proc-cache    No-cache       3 ndcpy
    Calls     hits    %    hits     %    miss   %         fltcp
                                                          zfod
                                                        1 cow
Disks   wd0   cd0   cd1   fd0                         128 fmin
seeks                                                 170 ftarg
xfers                                                     itarg
Kbyte                                                 148 wired
  sec                                                     pdfre
                                                          pdscn
                                                          pzidle
                                                       23 kmapent


Dmesg:

OpenBSD 4.0-beta (GENERIC) #1072: Thu Aug 17 12:55:53 MDT 2006
    [hidden email]:/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,SSE3
cpu0: Cool`n'Quiet K8 1801 Mhz: speeds: 1800 1000 Mhz
real mem  = 2145873920 (2095580K)
avail mem = 1777840128 (1736172K)
using 4256 buffers containing 278921216 bytes (272384K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(24) BIOS, date 01/25/06, BIOS32 rev. 0 @ 0xf1e40, SMBIOS rev. 2.3 @ 0xf0000 (69 entries)
bios0: ASUSTek Computer INC. A8V-E DELUXE
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 @ 0xf0000/0xdf84
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfde40/320 (18 entries)
pcibios0: PCI Exclusive IRQs: 3 5 11
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C596A ISA" rev 0x00)
pcibios0: PCI bus #6 is the last bus
bios0: ROM list: 0xc0000/0xd000 0xd0000/0x1000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA K8T890 Host" rev 0x00
pchb1 at pci0 dev 0 function 1 "VIA K8T890 Host" rev 0x00
pchb2 at pci0 dev 0 function 2 "VIA K8T890 Host" rev 0x00
pchb3 at pci0 dev 0 function 3 "VIA K8T890 Host" rev 0x00
pchb4 at pci0 dev 0 function 4 "VIA K8T890 Host" rev 0x00
"VIA K8T890 IOAPIC" rev 0x00 at pci0 dev 0 function 5 not configured
pchb5 at pci0 dev 0 function 7 "VIA K8T890 Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA K8HTB AGP" rev 0x00
pci1 at ppb0 bus 1
ppb1 at pci0 dev 2 function 0 "VIA K8T890 PCI-PCI" rev 0x00
pci2 at ppb1 bus 2
vga1 at pci2 dev 0 function 0 "ATI Radeon X600 (RV380)" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"ATI Radeon X600 (RV380) Sec" rev 0x00 at pci2 dev 0 function 1 not configured
ppb2 at pci0 dev 3 function 0 "VIA K8T890 PCI-PCI" rev 0x00
pci3 at ppb2 bus 3
ppb3 at pci0 dev 3 function 1 "VIA K8T890 PCI-PCI" rev 0x00
pci4 at ppb3 bus 4
ppb4 at pci0 dev 3 function 2 "VIA K8T890 PCI-PCI" rev 0x00
pci5 at ppb4 bus 5
mskc0 at pci5 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x15, Marvell Yukon-2 EC rev. A3 (0x2): irq 11
msk0 at mskc0 port A, address 00:11:d8:aa:4a:61
eephy0 at msk0 phy 0: Marvell 88E1111 Gigabit PHY, rev. 2
ppb5 at pci0 dev 3 function 3 "VIA K8T890 PCI-PCI" rev 0x00
pci6 at ppb5 bus 6
emu0 at pci0 dev 12 function 0 "Creative Labs SoundBlaster Live" rev 0x08: irq 5
ac97: codec id 0x54524123 (TriTech Microelectronics TR28602)
audio0 at emu0
"Creative Labs PCI Gameport Joystick" rev 0x08 at pci0 dev 12 function 1 not configured
fxp0 at pci0 dev 13 function 0 "Intel 8255x" rev 0x08, i82559: irq 11, address 00:90:27:8e:61:99
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
pciide0 at pci0 dev 15 function 0 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <SAMSUNG SP2014N>
wd0: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
wd0(pciide0:0:0): 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: <AOpen, DVD-1640 PRO, 1.24> SCSI0 5/cdrom removable
atapiscsi1 at pciide0 channel 1 drive 1
scsibus1 at atapiscsi1: 2 targets
cd1 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVDRAM GSA-4082B, A209> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: irq 3
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81: irq 3
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: irq 5
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: irq 5
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86: irq 11
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
viapm0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00
iic0 at viapm0
lm1 at iic0 addr 0x2f: W83791SD
pchb6 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb7 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb8 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb9 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
isa0 at mainbus0
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
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: unknown Winbond chip (ID 0x88)
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 ff6d netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
uhub5 at uhub4 port 4
uhub5: Standard Microsystems product 0xa700, rev 2.00/0.00, addr 2
uhub5: 3 ports with 3 removable, bus powered, multiple transaction translators
uhub6 at uhub0 port 2
uhub6: Lite-On Technology USB 1.1 2port downstream low power hub, rev 1.10/1.00, addr 2
uhub6: 3 ports with 2 removable, bus powered
uhidev0 at uhub6 port 1 configuration 1 interface 0
uhidev0: Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ), rev 1.10/1.00, addr 3, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub6 port 1 configuration 1 interface 1
uhidev1: Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ), rev 1.10/1.00, addr 3, iclass 3/0
uhidev1: 3 report ids
uhid0 at uhidev1 reportid 3: input=3, output=0, feature=0
uhidev2 at uhub6 port 3 configuration 1 interface 0
uhidev2: Logitech USB-PS/2 Optical Mouse, rev 2.00/25.00, addr 4, iclass 3/1
ums0 at uhidev2: 4 buttons and Z dir.
wsmouse0 at ums0 mux 0
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

If I can help you in any way to debug this (testing patches, etc.) I'd
be happy to help.

Regards,
ahb

Reply | Threaded
Open this post in threaded view
|

Re: New Marvell/SysKonnect Gigabit driver

Mike Erdely
In reply to this post by Mark Kettenis
Mark Kettenis wrote:
> Oops, sorry to have made you go through the hoops again.  I discovered
> today that the BIOS on the mini is somewhat busted and reports the
> wrong interrupt for msk(4).  I've got some patches to get the
> interrupt routing info from ACPI, but they're not quite ready yet to
> go in.  I can send out a copy if you'd like to play with it, but
> that'll only work if you already have an OpenBSD installation of some
> sorts on the box and can compile your own kernel for it.

Oh my!  Please don't apologize.  I'm happy to test.  I appreciate the
work you're doing and am trying to contribute in the only way I can.

If you have patches for me to test, I can build a new kernel in a VM or
on another box, copy them to a CD-RW and load using bsd.rd or something.
  I'll figure it out.

> Mark
>

Thanks.

-ME

Reply | Threaded
Open this post in threaded view
|

Re: New Marvell/SysKonnect Gigabit driver

Andreas Bihlmaier
In reply to this post by Andreas Bihlmaier-2
On Fri, Aug 18, 2006 at 01:02:13PM +0200, Andreas Bihlmaier wrote:

> On Thu, Aug 17, 2006 at 09:04:05PM +0200, Mark Kettenis wrote:
> > Last night I checked in a driver, msk(4), for the previously
> > unsupported Marvell and SysKonnect Gigabit NICs.  The driver works
> > pretty well for me on the new Mac mini, but could really use some more
> > testing, especially on different hardware.  If you have such hardware
> > please compile yourself a fresh kernel (or fetch tourself today's
> > snapshot) and send me the dmesg, and a short report how well the
> > driver works for you.
> >
> > Thanks,
> > Mark
>
> Thanks for all the effort to support these NICs.
> Well I got an onboard chip on an ASUS A8V-E DELUXE motherboard.
> I installed the latest i386 snapshot (see dmesg below), but things are
> not quite working.
>
> The interface gets attached (as msk0) and I can configure it with
> ifconfig. The problem is as soon as I up/assign ip/change media on msk0
> I get 99.9% interrupt load, rendering the system pretty much unuseable
> until I reboot. No change whether cable is plugged in or isn't.
>
> Weird thing is that the interrupts don't show up in:
> systat -w 1 vmstat
>     1 users    Load  1.79  1.04  0.48                  Fri Aug 18 12:56:55 2006
>
>             memory totals (in KB)            PAGING   SWAPPING     Interrupts
>            real   virtual     free           in  out   in  out      228 total
> Active   162908    162908  1529564   ops                                mskc0
> All      529040    529040  5723848   pages                              fxp0
>                                                                         pciide0
> Proc:r  d  s  w    Csw   Trp   Sys   Int   Sof  Flt     1 forks         uhci0
>      2    10        45    37   245 59637    28   37     1 fkppw         ehci0
>                                                           fksvm         pckbc0
>   91.5%Int   0.7%Sys   2.1%Usr   0.0%Nic   5.7%Idle       pwait     100 clock
> |    |    |    |    |    |    |    |    |    |    |       relck     128 rtc
> ||||||||||||||||||||||||||||||||||||||||||||||>           rlkok
>                                                           noram
> Namei         Sys-cache    Proc-cache    No-cache       3 ndcpy
>     Calls     hits    %    hits     %    miss   %         fltcp
>                                                           zfod
>                                                         1 cow
> Disks   wd0   cd0   cd1   fd0                         128 fmin
> seeks                                                 170 ftarg
> xfers                                                     itarg
> Kbyte                                                 148 wired
>   sec                                                     pdfre
>                                                           pdscn
>                                                           pzidle
>                                                        23 kmapent
>
>
> Dmesg:
>
> OpenBSD 4.0-beta (GENERIC) #1072: Thu Aug 17 12:55:53 MDT 2006
>     [hidden email]:/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,SSE3
> cpu0: Cool`n'Quiet K8 1801 Mhz: speeds: 1800 1000 Mhz
> real mem  = 2145873920 (2095580K)
> avail mem = 1777840128 (1736172K)
> using 4256 buffers containing 278921216 bytes (272384K) of memory
> mainbus0 (root)
> bios0 at mainbus0: AT/286+(24) BIOS, date 01/25/06, BIOS32 rev. 0 @ 0xf1e40, SMBIOS rev. 2.3 @ 0xf0000 (69 entries)
> bios0: ASUSTek Computer INC. A8V-E DELUXE
> 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 @ 0xf0000/0xdf84
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfde40/320 (18 entries)
> pcibios0: PCI Exclusive IRQs: 3 5 11
> pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C596A ISA" rev 0x00)
> pcibios0: PCI bus #6 is the last bus
> bios0: ROM list: 0xc0000/0xd000 0xd0000/0x1000
> cpu0 at mainbus0
> pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
> pchb0 at pci0 dev 0 function 0 "VIA K8T890 Host" rev 0x00
> pchb1 at pci0 dev 0 function 1 "VIA K8T890 Host" rev 0x00
> pchb2 at pci0 dev 0 function 2 "VIA K8T890 Host" rev 0x00
> pchb3 at pci0 dev 0 function 3 "VIA K8T890 Host" rev 0x00
> pchb4 at pci0 dev 0 function 4 "VIA K8T890 Host" rev 0x00
> "VIA K8T890 IOAPIC" rev 0x00 at pci0 dev 0 function 5 not configured
> pchb5 at pci0 dev 0 function 7 "VIA K8T890 Host" rev 0x00
> ppb0 at pci0 dev 1 function 0 "VIA K8HTB AGP" rev 0x00
> pci1 at ppb0 bus 1
> ppb1 at pci0 dev 2 function 0 "VIA K8T890 PCI-PCI" rev 0x00
> pci2 at ppb1 bus 2
> vga1 at pci2 dev 0 function 0 "ATI Radeon X600 (RV380)" rev 0x00
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> "ATI Radeon X600 (RV380) Sec" rev 0x00 at pci2 dev 0 function 1 not configured
> ppb2 at pci0 dev 3 function 0 "VIA K8T890 PCI-PCI" rev 0x00
> pci3 at ppb2 bus 3
> ppb3 at pci0 dev 3 function 1 "VIA K8T890 PCI-PCI" rev 0x00
> pci4 at ppb3 bus 4
> ppb4 at pci0 dev 3 function 2 "VIA K8T890 PCI-PCI" rev 0x00
> pci5 at ppb4 bus 5
> mskc0 at pci5 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x15, Marvell Yukon-2 EC rev. A3 (0x2): irq 11
> msk0 at mskc0 port A, address 00:11:d8:aa:4a:61
> eephy0 at msk0 phy 0: Marvell 88E1111 Gigabit PHY, rev. 2
> ppb5 at pci0 dev 3 function 3 "VIA K8T890 PCI-PCI" rev 0x00
> pci6 at ppb5 bus 6
> emu0 at pci0 dev 12 function 0 "Creative Labs SoundBlaster Live" rev 0x08: irq 5
> ac97: codec id 0x54524123 (TriTech Microelectronics TR28602)
> audio0 at emu0
> "Creative Labs PCI Gameport Joystick" rev 0x08 at pci0 dev 12 function 1 not configured
> fxp0 at pci0 dev 13 function 0 "Intel 8255x" rev 0x08, i82559: irq 11, address 00:90:27:8e:61:99
> inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
> pciide0 at pci0 dev 15 function 0 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility
> wd0 at pciide0 channel 0 drive 0: <SAMSUNG SP2014N>
> wd0: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
> wd0(pciide0:0:0): 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: <AOpen, DVD-1640 PRO, 1.24> SCSI0 5/cdrom removable
> atapiscsi1 at pciide0 channel 1 drive 1
> scsibus1 at atapiscsi1: 2 targets
> cd1 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVDRAM GSA-4082B, A209> SCSI0 5/cdrom removable
> cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
> cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
> uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: irq 3
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0
> uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81: irq 3
> usb1 at uhci1: USB revision 1.0
> uhub1 at usb1
> uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1
> uhub1: 2 ports with 2 removable, self powered
> uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: irq 5
> usb2 at uhci2: USB revision 1.0
> uhub2 at usb2
> uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1
> uhub2: 2 ports with 2 removable, self powered
> uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: irq 5
> usb3 at uhci3: USB revision 1.0
> uhub3 at usb3
> uhub3: VIA UHCI root hub, rev 1.00/1.00, addr 1
> uhub3: 2 ports with 2 removable, self powered
> ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86: irq 11
> usb4 at ehci0: USB revision 2.0
> uhub4 at usb4
> uhub4: VIA EHCI root hub, rev 2.00/1.00, addr 1
> uhub4: 8 ports with 8 removable, self powered
> viapm0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00
> iic0 at viapm0
> lm1 at iic0 addr 0x2f: W83791SD
> pchb6 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
> pchb7 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
> pchb8 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
> pchb9 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
> isa0 at mainbus0
> 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
> lpt0 at isa0 port 0x378/4 irq 7
> lm0 at isa0 port 0x290/8: unknown Winbond chip (ID 0x88)
> 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 ff6d netmask ff6d ttymask ffef
> pctr: user-level cycle counter enabled
> uhub5 at uhub4 port 4
> uhub5: Standard Microsystems product 0xa700, rev 2.00/0.00, addr 2
> uhub5: 3 ports with 3 removable, bus powered, multiple transaction translators
> uhub6 at uhub0 port 2
> uhub6: Lite-On Technology USB 1.1 2port downstream low power hub, rev 1.10/1.00, addr 2
> uhub6: 3 ports with 2 removable, bus powered
> uhidev0 at uhub6 port 1 configuration 1 interface 0
> uhidev0: Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ), rev 1.10/1.00, addr 3, iclass 3/1
> ukbd0 at uhidev0: 8 modifier keys, 6 key codes
> wskbd1 at ukbd0 mux 1
> wskbd1: connecting to wsdisplay0
> uhidev1 at uhub6 port 1 configuration 1 interface 1
> uhidev1: Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ), rev 1.10/1.00, addr 3, iclass 3/0
> uhidev1: 3 report ids
> uhid0 at uhidev1 reportid 3: input=3, output=0, feature=0
> uhidev2 at uhub6 port 3 configuration 1 interface 0
> uhidev2: Logitech USB-PS/2 Optical Mouse, rev 2.00/25.00, addr 4, iclass 3/1
> ums0 at uhidev2: 4 buttons and Z dir.
> wsmouse0 at ums0 mux 0
> dkcsum: wd0 matches BIOS drive 0x80
> root on wd0a
> rootdev=0x0 rrootdev=0x300 rawdev=0x302
>
> If I can help you in any way to debug this (testing patches, etc.) I'd
> be happy to help.
>
> Regards,
> ahb

Okay I have an update (a good one):
Today I installed newest AMD64 snapshot on machine above (and dmesg
below) and now the msk NIC works great!

What could be the cause for the problems on i386 (I also tried newest)?
Screwed up interrupts by BIOS? Or any other hints?

I tested throughput with netpipe via cross-over cable and my X40 with
an em0 NIC on the other end:
0.000126 0.060570 8 1 0.000000 0.000000 0.000015 0.000000 0.000000
0.000126 0.121240 16 2 0.000000 0.000001 0.000017 0.000000 0.000000
0.000126 0.182159 24 3 0.000000 0.000001 0.000013 0.000000 0.000000
0.000125 0.244455 32 4 0.000000 0.000001 0.000014 0.000000 0.000000
0.000125 0.367431 48 6 0.000000 0.000002 0.000016 0.000000 0.000000
0.000124 0.490561 64 8 0.000000 0.000001 0.000014 0.000000 0.000000
0.000124 0.735554 96 12 0.000000 0.000001 0.000011 0.000000 0.000000
0.000125 0.795070 104 13 0.000000 0.000000 0.000010 0.000000 0.000000
0.000125 0.980412 128 16 0.000000 0.000001 0.000008 0.000000 0.000000
0.000124 1.165930 152 19 0.000000 0.000001 0.000009 0.000000 0.000000
0.000124 1.287195 168 21 0.000000 0.000001 0.000014 0.000000 0.000000
0.000125 1.470616 192 24 0.000000 0.000002 0.000012 0.000000 0.000000
0.000125 1.649489 216 27 0.000000 0.000000 0.000009 0.000000 0.000000
0.000124 1.778316 232 29 0.000000 0.000000 0.000014 0.000000 0.000000
0.000124 1.964320 256 32 0.000000 0.000000 0.000013 0.000000 0.000000
0.000125 2.141532 280 35 0.000000 0.000000 0.000016 0.000000 0.000000
0.000125 2.753392 360 45 0.000000 0.000000 0.000016 0.000000 0.000000
0.000125 2.926184 384 48 0.000000 0.000001 0.000016 0.000000 0.000000
0.000125 3.110012 408 51 0.000000 0.000000 0.000012 0.000000 0.000000
0.000125 3.725540 488 61 0.000000 0.000001 0.000014 0.000000 0.000000
0.000125 3.918992 512 64 0.000000 0.000002 0.000016 0.000000 0.000000
0.000125 4.097869 536 67 0.000000 0.000001 0.000017 0.000000 0.000000
0.000125 5.683326 744 93 0.000000 0.000001 0.000013 0.000000 0.000000
0.000125 5.854496 768 96 0.000000 0.000000 0.000011 0.000000 0.000000
0.000125 6.045341 792 99 0.000000 0.000001 0.000008 0.000000 0.000000
0.000125 7.646514 1000 125 0.000000 0.000001 0.000011 0.000000 0.000000
0.000125 7.829353 1024 128 0.000000 0.000000 0.000012 0.000000 0.000000
0.000125 8.025058 1048 131 0.000000 0.000000 0.000014 0.000000 0.000000
0.000125 11.526739 1512 189 0.000000 0.000002 0.000013 0.000000 0.000000
0.000125 11.695883 1536 192 0.000000 0.000001 0.000012 0.000000 0.000000
0.000125 11.885081 1560 195 0.000000 0.000000 0.000018 0.000000 0.000000
0.000129 14.927911 2024 253 0.000000 0.000000 0.000013 0.000000 0.000000
0.000129 15.175716 2048 256 0.000000 0.000001 0.000012 0.000000 0.000000
0.000131 15.109019 2072 259 0.000000 0.000002 0.000014 0.000000 0.000000
0.000126 23.030609 3048 381 0.000000 0.000001 0.000012 0.000000 0.000000
0.000125 23.450924 3072 384 0.000000 0.000000 0.000009 0.000000 0.000000
0.000125 23.528593 3096 387 0.000000 0.000000 0.000007 0.000000 0.000000
0.000124 31.222489 4072 509 0.000000 0.000000 0.000004 0.000000 0.000000
0.000125 31.330573 4096 512 0.000000 0.000000 0.000003 0.000000 0.000000
0.000125 31.545981 4120 515 0.000000 0.000001 0.000004 0.000000 0.000000
0.000131 44.503699 6120 765 0.000000 0.000000 0.000005 0.000000 0.000000
0.000129 45.332274 6144 768 0.000000 0.000000 0.000002 0.000000 0.000000
0.000129 45.619753 6168 771 0.000000 0.000000 0.000005 0.000000 0.000000
0.000188 41.544240 8168 1021 0.000000 0.000000 0.000006 0.000000 0.000000
0.000187 41.690563 8192 1024 0.000000 0.000000 0.000008 0.000000 0.000000
0.000187 41.813935 8216 1027 0.000000 0.000000 0.000005 0.000000 0.000000
0.000186 62.726729 12264 1533 0.000000 0.000000 0.000012 0.000000 0.000000
0.000187 62.765598 12288 1536 0.000000 0.000002 0.000012 0.000000 0.000000
0.000187 62.935165 12312 1539 0.000000 0.000001 0.000013 0.000000 0.000000
0.000187 83.525741 16360 2045 0.000000 0.000001 0.000012 0.000000 0.000000
0.000187 83.463624 16384 2048 0.000000 0.000000 0.000013 0.000000 0.000000
0.000187 83.704696 16408 2051 0.000000 0.000000 0.000012 0.000000 0.000000
0.000187 124.961514 24552 3069 0.000000 0.000000 0.000017 0.000000 0.000000
0.000188 124.843494 24576 3072 0.000000 0.000000 0.000018 0.000000 0.000000
0.000187 125.198732 24600 3075 0.000000 0.000000 0.000018 0.000000 0.000000
0.000187 166.638271 32744 4093 0.000000 0.000000 0.000019 0.000000 0.000000
0.000188 166.188884 32768 4096 0.000000 0.000000 0.000019 0.000000 0.000000
0.000188 166.056305 32792 4099 0.000000 0.000000 0.000019 0.000000 0.000000
0.000219 213.796865 49128 6141 0.000000 0.000002 0.000020 0.000000 0.000000
0.000220 213.050904 49152 6144 0.000000 0.000000 0.000024 0.000000 0.000000
0.000220 213.204844 49176 6147 0.000000 0.000000 0.000032 0.000000 0.000000
0.000242 258.048923 65512 8189 0.000000 0.000000 0.000032 0.000000 0.000000
0.000237 263.575018 65536 8192 0.000000 0.000000 0.000036 0.000000 0.000000
0.000243 256.842649 65560 8195 0.000000 0.000002 0.000041 0.000000 0.000000
0.000296 316.163717 98280 12285 0.000000 0.000000 0.000052 0.000000 0.000000
0.000298 314.723105 98304 12288 0.000000 0.000001 0.000047 0.000000 0.000000
0.000297 315.510226 98328 12291 0.000000 0.000001 0.000049 0.000000 0.000000
0.000346 361.058622 131048 16381 0.000000 0.000000 0.000066 0.000000 0.000000
0.000346 361.467098 131072 16384 0.000000 0.000000 0.000051 0.000000 0.000000
0.000346 361.157030 131096 16387 0.000000 0.000003 0.000063 0.000000 0.000000
0.000439 426.626894 196584 24573 0.000000 0.000000 0.000079 0.000000 0.000000
0.000439 426.854439 196608 24576 0.000000 0.000000 0.000085 0.000000 0.000000
0.000441 425.039032 196632 24579 0.000000 0.000000 0.000063 0.000000 0.000000
0.000550 454.899836 262120 32765 0.000000 0.000003 0.000142 0.000000 0.000000
0.000553 452.268693 262144 32768 0.000000 0.000000 0.000111 0.000000 0.000000
0.000585 427.079508 262168 32771 0.000000 0.000000 0.000128 0.000000 0.000000
0.000882 425.289097 393192 49149 0.000000 0.000000 0.000147 0.000000 0.000000
0.000873 429.762901 393216 49152 0.000000 0.000003 0.000148 0.000000 0.000000
0.000872 429.953160 393240 49155 0.000000 0.000006 0.000149 0.000000 0.000000
0.001097 455.706548 524264 65533 0.000000 0.000000 0.000235 0.000000 0.000000
0.001103 453.267414 524288 65536 0.000000 0.000005 0.000267 0.000000 0.000000
0.001107 451.646823 524312 65539 0.000000 0.000000 0.000296 0.000000 0.000000
0.001609 466.004145 786408 98301 0.000000 0.000000 0.000404 0.000000 0.000000
0.001608 466.312123 786432 98304 0.000000 0.000000 0.000406 0.000000 0.000000
0.001611 465.583254 786456 98307 0.000000 0.000000 0.000379 0.000000 0.000000
0.002101 475.937437 1048552 131069 0.000000 0.000000 0.000449 0.000000 0.000000
0.002108 474.398741 1048576 131072 0.000000 0.000000 0.000378 0.000000 0.000000
0.002106 474.882992 1048600 131075 0.000000 0.000000 0.000388 0.000000 0.000000
0.003138 477.972068 1572840 196605 0.000000 0.000009 0.000766 0.000000 0.000000
0.003096 484.444356 1572864 196608 0.000000 0.000000 0.000758 0.000000 0.000000
0.003113 481.890054 1572888 196611 0.000000 0.000000 0.000811 0.000000 0.000000
0.004081 490.091079 2097128 262141 0.000000 0.000000 0.001030 0.000000 0.000000
0.004099 487.951379 2097152 262144 0.000000 0.000000 0.000893 0.000000 0.000000
0.004077 490.554576 2097176 262147 0.000000 0.000000 0.001023 0.000000 0.000000
0.006062 494.883779 3145704 393213 0.000000 0.000000 0.001674 0.000000 0.000000
0.006088 492.762243 3145728 393216 0.000000 0.000000 0.001385 0.000000 0.000000
0.006092 492.473857 3145752 393219 0.000002 0.000000 0.001405 0.000000 0.000000
0.008100 493.835752 4194280 524285 0.000000 0.000043 0.001674 0.000000 0.000000
0.008074 495.434123 4194304 524288 0.000000 0.000000 0.001897 0.000000 0.000000
0.008044 497.284318 4194328 524291 0.000000 0.000000 0.002381 0.000000 0.000000
0.012084 496.536179 6291432 786429 0.000000 0.000000 0.003646 0.000000 0.000000
0.012121 495.000847 6291456 786432 0.000000 0.000000 0.003005 0.000000 0.000000
0.012088 496.371114 6291480 786435 0.000000 0.000000 0.003692 0.000000 0.000001
0.016078 497.582007 8388584 1048573 0.000000 0.000000 0.005022 0.000000 0.000001
0.016106 496.698505 8388608 1048576 0.000000 0.000000 0.003986 0.000000 0.000001
0.016106 496.704127 8388632 1048579 0.000000 0.000000 0.004624 0.000000 0.000004
0.024276 494.319956 12582888 1572861 0.000000 0.000080 0.007095 0.000000 0.000002
0.024415 491.499772 12582912 1572864 0.000000 0.000000 0.007175 0.000000 0.000002
0.024113 497.651676 12582936 1572867 0.000000 0.000000 0.007254 0.000000 0.000004
0.032526 491.916560 16777192 2097149 0.000000 0.000000 0.010443 0.000000 0.000005
0.032258 496.007543 16777216 2097152 0.000000 0.000080 0.010603 0.000000 0.000004
0.032598 490.828336 16777240 2097155 0.000000 0.000080 0.010045 0.000000 0.000003
0.048660 493.216339 25165800 3145725 0.000000 0.000159 0.015705 0.000000 0.000008
0.048716 492.654900 25165824 3145728 0.000000 0.000080 0.014190 0.000000 0.000004
0.048646 493.356273 25165848 3145731 0.000000 0.000159 0.015705 0.000000 0.000008
0.064782 493.962412 33554408 4194301 0.000000 0.000159 0.021126 0.000000 0.000004
0.064848 493.458803 33554432 4194304 0.000000 0.000000 0.020727 0.000000 0.000007
0.064634 495.097384 33554456 4194307 0.000000 0.000000 0.021046 0.000000 0.000004
0.097330 493.165485 50331624 6291453 0.000000 0.000080 0.030612 0.000000 0.000002
0.096688 496.441387 50331648 6291456 0.000000 0.000239 0.032526 0.000000 0.000008
0.097292 493.361133 50331672 6291459 0.000000 0.000000 0.032047 0.000000 0.000003
0.129944 492.521031 67108840 8388605 0.000001 0.000080 0.039142 0.000000 0.000004
0.129850 492.875571 67108864 8388608 0.000000 0.000080 0.041773 0.000000 0.000016
0.129797 493.076733 67108888 8388611 0.000001 0.000080 0.041215 0.000000 0.000021
0.194264 494.173099 100663272 12582909 0.000002 0.000239 0.061464 0.000000 0.000016
0.195305 491.537786 100663296 12582912 0.000000 0.000080 0.060746 0.000000 0.000048
0.194653 493.184520 100663320 12582915 0.000001 0.000000 0.061304 0.000000 0.000028
0.259693 492.888896 134217704 16777213 0.000003 0.000399 0.083626 0.000000 0.000010
0.258808 494.576073 134217728 16777216 0.000001 0.000399 0.087293 0.000000 0.000005
0.258433 495.292478 134217752 16777219 0.000000 0.000478 0.063855 0.000000 0.000465
0.390380 491.827891 201326568 25165821 0.000004 0.000319 0.128269 0.000000 0.000748
0.389207 493.310751 201326592 25165824 0.000001 0.000478 0.117267 0.000001 0.000068
0.389742 492.633647 201326616 25165827 0.000074 0.000319 0.125080 0.000000 0.000134
0.518613 493.624444 268435432 33554429 0.000008 0.000558 0.167570 0.000000 0.000027
0.518258 493.962814 268435456 33554432 0.000002 0.000399 0.150909 0.000000 0.000207
0.518066 494.145385 268435480 33554435 0.000007 0.000399 0.138632 0.000000 0.000098
0.778756 493.094265 402653160 50331645 0.000001 0.000877 0.202647 0.000000 0.000072
0.776958 494.235076 402653184 50331648 0.000024 0.001036 0.202487 0.000001 0.000041
0.778129 493.491696 402653208 50331651 0.000006 0.000877 0.212851 0.000000 0.000051
1.036108 494.156925 536870888 67108861 0.000007 0.001196 0.264190 0.000000 0.001339


Here is the new dmesg:
OpenBSD 4.0-beta (GENERIC) #670: Sat Aug 19 14:16:52 MDT 2006
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 2145906688 (2095612K)
avail mem = 1834336256 (1791344K)
using 22937 buffers containing 214798336 bytes (209764K) of memory
mainbus0 (root)
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0000 (69 entries)
bios0: ASUSTek Computer INC. A8V-E DELUXE
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon(tm) 64 Processor 3000+, 1800.39 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,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
cpu0: Cool`n'Quiet K8 1800 Mhz: speeds: 1800 1000 Mhz
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 "VIA K8T890 Host" rev 0x00
pchb1 at pci0 dev 0 function 1 "VIA K8T890 Host" rev 0x00
pchb2 at pci0 dev 0 function 2 "VIA K8T890 Host" rev 0x00
pchb3 at pci0 dev 0 function 3 "VIA K8T890 Host" rev 0x00
pchb4 at pci0 dev 0 function 4 "VIA K8T890 Host" rev 0x00
"VIA K8T890 IOAPIC" rev 0x00 at pci0 dev 0 function 5 not configured
pchb5 at pci0 dev 0 function 7 "VIA K8T890 Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA K8HTB AGP" rev 0x00
pci1 at ppb0 bus 1
ppb1 at pci0 dev 2 function 0 "VIA K8T890 PCI-PCI" rev 0x00
pci2 at ppb1 bus 2
vga1 at pci2 dev 0 function 0 "ATI Radeon X600 (RV380)" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"ATI Radeon X600 (RV380) Sec" rev 0x00 at pci2 dev 0 function 1 not configured
ppb2 at pci0 dev 3 function 0 "VIA K8T890 PCI-PCI" rev 0x00
pci3 at ppb2 bus 3
ppb3 at pci0 dev 3 function 1 "VIA K8T890 PCI-PCI" rev 0x00
pci4 at ppb3 bus 4
ppb4 at pci0 dev 3 function 2 "VIA K8T890 PCI-PCI" rev 0x00
pci5 at ppb4 bus 5
mskc0 at pci5 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x15, Marvell Yukon-2 EC rev. A3 (0x2): irq 11
msk0 at mskc0 port A, address 00:11:d8:aa:4a:61
eephy0 at msk0 phy 0: Marvell 88E1111 Gigabit PHY, rev. 2
ppb5 at pci0 dev 3 function 3 "VIA K8T890 PCI-PCI" rev 0x00
pci6 at ppb5 bus 6
emu0 at pci0 dev 12 function 0 "Creative Labs SoundBlaster Live" rev 0x08: irq 5
ac97: codec id 0x54524123 (TriTech Microelectronics TR28602)
audio0 at emu0
"Creative Labs PCI Gameport Joystick" rev 0x08 at pci0 dev 12 function 1 not configured
fxp0 at pci0 dev 13 function 0 "Intel 8255x" rev 0x08, i82559: irq 11, address 00:90:27:8e:61:99
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
pciide0 at pci0 dev 15 function 0 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <SAMSUNG SP2014N>
wd0: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
wd0(pciide0:0:0): 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: <AOpen, DVD-1640 PRO, 1.24> SCSI0 5/cdrom removable
atapiscsi1 at pciide0 channel 1 drive 1
scsibus1 at atapiscsi1: 2 targets
cd1 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVDRAM GSA-4082B, A209> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: irq 3
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81: irq 3
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: irq 5
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: irq 5
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86: irq 11
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
viapm0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00
iic0 at viapm0
lm1 at iic0 addr 0x2f: W83791SD
pchb6 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb7 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb8 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb9 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
isa0 at mainbus0
isadma0 at isa0
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: console keyboard, using wsdisplay0
mpu0 at isa0 port 0x330/2: generic MPU-401 compatible
midi0 at mpu0: <MPU-401 MIDI UART>
pcppi0 at isa0 port 0x61
midi1 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: unknown Winbond chip (ID 0x88)
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
uhub5 at uhub4 port 4
uhub5: Standard Microsystems product 0xa700, rev 2.00/0.00, addr 2
uhub5: 3 ports with 3 removable, bus powered, multiple transaction translators
umass0 at uhub4 port 7 configuration 2 interface 0
umass0: SmartDisk Corp. FireLite (USB 2.0), rev 2.00/11.01, addr 3
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets
sd0 at scsibus2 targ 1 lun 0: <IC25N040, ATMR04-0, MO2O> SCSI0 0/direct fixed
sd0: 38154MB, 38154 cyl, 64 head, 32 sec, 512 bytes/sec, 78140160 sec total
uhub6 at uhub0 port 2
uhub6: Lite-On Technology USB 1.1 2port downstream low power hub, rev 1.10/1.00, addr 2
uhub6: 3 ports with 2 removable, bus powered
uhidev0 at uhub6 port 1 configuration 1 interface 0
uhidev0: Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ), rev 1.10/1.00, addr 3, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub6 port 1 configuration 1 interface 1
uhidev1: Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ), rev 1.10/1.00, addr 3, iclass 3/0
uhidev1: 3 report ids
uhid0 at uhidev1 reportid 3: input=3, output=0, feature=0
uhidev2 at uhub6 port 3 configuration 1 interface 0
uhidev2: Logitech USB-PS/2 Optical Mouse, rev 2.00/25.00, addr 4, iclass 3/1
ums0 at uhidev2: 4 buttons and Z dir.
wsmouse0 at ums0 mux 0
dkcsum: wd0 matches BIOS drive 0x81
dkcsum: sd0 matches BIOS drive 0x80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02

Now I'm stuck between i386 and amd64, on the former my NIC is not
working on the later there is no linux emulation. Well I guess I'll have to stick
with i386 and the fxp NIC for now.

Again thanks for the work everybody is putting in, to make OpenBSD
great.

Regards,
ahb

Reply | Threaded
Open this post in threaded view
|

Re: New Marvell/SysKonnect Gigabit driver

Andreas Bihlmaier-2
Well, here it goes again:

Issue with my onboard
mskc0: "Marvell Yukon 88E8053" Marvell Yukon-2

With the newest i386 (quite old btw.) snapshot, I can use msk0 without
any troubles UNTIL I start X on the machine.
As soon as I do that interrupts go to 99% and everything starts to crawl
until I reboot. Pretty much same issue I had before with the difference
that I know the "cause".

I'll try another graphic card and will report back.
Any other hints about what I could test to solve/further isolate the
problem?

dmesg:
OpenBSD 4.0 (GENERIC) #1104: Fri Sep  1 11:54:27 MDT 2006
    [hidden email]:/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,SSE3
cpu0: Cool`n'Quiet K8 1801 Mhz: speeds: 1800 1000 Mhz
real mem  = 2145873920 (2095580K)
avail mem = 1949392896 (1903704K)
using 4256 buffers containing 107397120 bytes (104880K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(24) BIOS, date 01/25/06, BIOS32 rev. 0 @ 0xf1e40, SMBIOS rev. 2.3 @ 0xf0000 (69 entries)
bios0: ASUSTek Computer INC. A8V-E DELUXE
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 @ 0xf0000/0xdf84
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfde40/320 (18 entries)
pcibios0: PCI Exclusive IRQs: 3 5 11
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C596A ISA" rev 0x00)
pcibios0: PCI bus #6 is the last bus
bios0: ROM list: 0xc0000/0xd000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA K8T890 Host" rev 0x00
pchb1 at pci0 dev 0 function 1 "VIA K8T890 Host" rev 0x00
pchb2 at pci0 dev 0 function 2 "VIA K8T890 Host" rev 0x00
pchb3 at pci0 dev 0 function 3 "VIA K8T890 Host" rev 0x00
pchb4 at pci0 dev 0 function 4 "VIA K8T890 Host" rev 0x00
"VIA K8T890 IOAPIC" rev 0x00 at pci0 dev 0 function 5 not configured
pchb5 at pci0 dev 0 function 7 "VIA K8T890 Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA K8HTB AGP" rev 0x00
pci1 at ppb0 bus 1
ppb1 at pci0 dev 2 function 0 "VIA K8T890 PCI-PCI" rev 0x00
pci2 at ppb1 bus 2
vga1 at pci2 dev 0 function 0 "ATI Radeon X600 (RV380)" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"ATI Radeon X600 (RV380) Sec" rev 0x00 at pci2 dev 0 function 1 not configured
ppb2 at pci0 dev 3 function 0 "VIA K8T890 PCI-PCI" rev 0x00
pci3 at ppb2 bus 3
ppb3 at pci0 dev 3 function 1 "VIA K8T890 PCI-PCI" rev 0x00
pci4 at ppb3 bus 4
ppb4 at pci0 dev 3 function 2 "VIA K8T890 PCI-PCI" rev 0x00
pci5 at ppb4 bus 5
mskc0 at pci5 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x15, Marvell Yukon-2 EC rev. A3 (0x2): irq 11
msk0 at mskc0 port A, address 00:11:d8:aa:4a:61
eephy0 at msk0 phy 0: Marvell 88E1111 Gigabit PHY, rev. 2
ppb5 at pci0 dev 3 function 3 "VIA K8T890 PCI-PCI" rev 0x00
pci6 at ppb5 bus 6
emu0 at pci0 dev 12 function 0 "Creative Labs SoundBlaster Live" rev 0x08: irq 5
ac97: codec id 0x54524123 (TriTech Microelectronics TR28602)
audio0 at emu0
"Creative Labs PCI Gameport Joystick" rev 0x08 at pci0 dev 12 function 1 not configured
pciide0 at pci0 dev 15 function 0 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <SAMSUNG SP2014N>
wd0: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
wd0(pciide0:0:0): 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: <AOpen, DVD-1640 PRO, 1.24> SCSI0 5/cdrom removable
atapiscsi1 at pciide0 channel 1 drive 1
scsibus1 at atapiscsi1: 2 targets
cd1 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVDRAM GSA-4082B, A209> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: irq 3
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81: irq 3
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: irq 5
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: irq 5
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86: irq 11
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
viapm0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00
iic0 at viapm0
lm1 at iic0 addr 0x2f: W83791SD
pchb6 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb7 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb8 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb9 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
isa0 at mainbus0
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
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: unknown Winbond chip (ID 0x88)
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 ff6d netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
uhub5 at uhub4 port 4
uhub5: Standard Microsystems product 0xa700, rev 2.00/0.00, addr 2
uhub5: 3 ports with 3 removable, bus powered, multiple transaction translators
uhub6 at uhub0 port 2
uhub6: Lite-On Technology USB 1.1 2port downstream low power hub, rev 1.10/1.00, addr 2
uhub6: 3 ports with 2 removable, bus powered
uhidev0 at uhub6 port 1 configuration 1 interface 0
uhidev0: Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ), rev 1.10/1.00, addr 3, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub6 port 1 configuration 1 interface 1
uhidev1: Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ), rev 1.10/1.00, addr 3, iclass 3/0
uhidev1: 3 report ids
uhid0 at uhidev1 reportid 3: input=3, output=0, feature=0
uhidev2 at uhub6 port 3 configuration 1 interface 0
uhidev2: Logitech USB-PS/2 Optical Mouse, rev 2.00/25.00, addr 4, iclass 3/1
ums0 at uhidev2: 4 buttons and Z dir.
wsmouse0 at ums0 mux 0
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302


Regards,
ahb

p.s. why are there no new snapshots?

Reply | Threaded
Open this post in threaded view
|

Re: New Marvell/SysKonnect Gigabit driver

Stuart Henderson
On 2006/09/14 11:03, Andreas Bihlmaier wrote:
> With the newest i386 (quite old btw.) snapshot, I can use msk0 without
> any troubles UNTIL I start X on the machine.
> As soon as I do that interrupts go to 99% and everything starts to crawl
> until I reboot. Pretty much same issue I had before with the difference
> that I know the "cause".
> I'll try another graphic card and will report back.

have you tried bsd.mp? Some machines work a lot better when
you use the APIC, and the easy way to do that is use an MP kernel.

> OpenBSD 4.0 (GENERIC) #1104: Fri Sep  1 11:54:27 MDT 2006
>     [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
>
> p.s. why are there no new snapshots?

it's around release-building time.

Reply | Threaded
Open this post in threaded view
|

Re: New Marvell/SysKonnect Gigabit driver

Andreas Bihlmaier-2
In reply to this post by Andreas Bihlmaier-2
On Thu, Sep 14, 2006 at 11:03:59AM +0200, Andreas Bihlmaier wrote:

> Well, here it goes again:
>
> Issue with my onboard
> mskc0: "Marvell Yukon 88E8053" Marvell Yukon-2
>
> With the newest i386 (quite old btw.) snapshot, I can use msk0 without
> any troubles UNTIL I start X on the machine.
> As soon as I do that interrupts go to 99% and everything starts to crawl
> until I reboot. Pretty much same issue I had before with the difference
> that I know the "cause".
>
> I'll try another graphic card and will report back.
> Any other hints about what I could test to solve/further isolate the
> problem?
>

Well that is really weird, I pulled out my PCI Express graphics card
(see previous message) and replaced it with a really old PCI card:
vga1 at pci0 dev 11 function 0 "S3 Trio32/64" rev 0x54

Same behaviour as described above.
Now what do have those cards in common to screw up in combination with msk?

Regards,
ahb

Reply | Threaded
Open this post in threaded view
|

Re: New Marvell/SysKonnect Gigabit driver

Henning Brauer
In reply to this post by Stuart Henderson
* Stuart Henderson <[hidden email]> [2006-09-14 11:27]:

> On 2006/09/14 11:03, Andreas Bihlmaier wrote:
> > With the newest i386 (quite old btw.) snapshot, I can use msk0 without
> > any troubles UNTIL I start X on the machine.
> > As soon as I do that interrupts go to 99% and everything starts to crawl
> > until I reboot. Pretty much same issue I had before with the difference
> > that I know the "cause".
> > I'll try another graphic card and will report back.
>
> have you tried bsd.mp? Some machines work a lot better when
> you use the APIC, and the easy way to do that is use an MP kernel.

bad advice in this case as there is clearly a bug hidden.

--
Henning Brauer, [hidden email], [hidden email]
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam

Reply | Threaded
Open this post in threaded view
|

Re: New Marvell/SysKonnect Gigabit driver

Jonathan Gray
In reply to this post by Andreas Bihlmaier-2
On Thu, Sep 14, 2006 at 11:03:59AM +0200, Andreas Bihlmaier wrote:

> Well, here it goes again:
>
> Issue with my onboard
> mskc0: "Marvell Yukon 88E8053" Marvell Yukon-2
>
> With the newest i386 (quite old btw.) snapshot, I can use msk0 without
> any troubles UNTIL I start X on the machine.
> As soon as I do that interrupts go to 99% and everything starts to crawl
> until I reboot. Pretty much same issue I had before with the difference
> that I know the "cause".
>
> I'll try another graphic card and will report back.
> Any other hints about what I could test to solve/further isolate the
> problem?

Try this diff from kettenis which will hopefully be applied
in the next few days.

Index: if_msk.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/if_msk.c,v
retrieving revision 1.16
diff -u -p -r1.16 if_msk.c
--- if_msk.c 25 Aug 2006 00:21:10 -0000 1.16
+++ if_msk.c 3 Sep 2006 15:39:13 -0000
@@ -2032,10 +2032,8 @@ msk_init(void *xsc_if)
  sc->sk_intrmask |= SK_Y2_INTRS1;
  else
  sc->sk_intrmask |= SK_Y2_INTRS2;
- sc->sk_intrmask |= SK_Y2_IMR_HWERR | SK_Y2_IMR_BMU;
+ sc->sk_intrmask |= SK_Y2_IMR_BMU;
  CSR_WRITE_4(sc, SK_IMR, sc->sk_intrmask);
-
- CSR_WRITE_4(sc, SK_IEMR, 0x2e00003f);
 
  ifp->if_flags |= IFF_RUNNING;
  ifp->if_flags &= ~IFF_OACTIVE;

Reply | Threaded
Open this post in threaded view
|

Re: New Marvell/SysKonnect Gigabit driver

Andreas Bihlmaier-2
In reply to this post by Stuart Henderson
On Thu, Sep 14, 2006 at 10:22:03AM +0100, Stuart Henderson wrote:

> On 2006/09/14 11:03, Andreas Bihlmaier wrote:
> > With the newest i386 (quite old btw.) snapshot, I can use msk0 without
> > any troubles UNTIL I start X on the machine.
> > As soon as I do that interrupts go to 99% and everything starts to crawl
> > until I reboot. Pretty much same issue I had before with the difference
> > that I know the "cause".
> > I'll try another graphic card and will report back.
>
> have you tried bsd.mp? Some machines work a lot better when
> you use the APIC, and the easy way to do that is use an MP kernel.

Yes, with APIC in Bios enabled all USB ports stop working,
but the problem with interrupts DOES NOT OCCUR:

OpenBSD 4.0 (GENERIC.MP) #933: Fri Sep  1 12:06:05 MDT 2006
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC.MP
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,SSE3
real mem  = 2145873920 (2095580K)
avail mem = 1949335552 (1903648K)
using 4256 buffers containing 107397120 bytes (104880K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(24) BIOS, date 01/25/06, BIOS32 rev. 0 @ 0xf1e40, SMBIOS rev. 2.3 @ 0xf0000 (69 entries)
bios0: ASUSTek Computer INC. A8V-E DELUXE
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 @ 0xf0000/0xdf84
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfde40/320 (18 entries)
pcibios0: PCI Exclusive IRQs: 3 5 11
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C596A ISA" rev 0x00)
pcibios0: PCI bus #6 is the last bus
bios0: ROM list: 0xc0000/0xd000
mainbus0: Intel MP Specification (Version 1.4) (OEM00000 PROD00000000)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 200 MHz
mainbus0: bus 0 is type PCI  
mainbus0: bus 1 is type PCI  
mainbus0: bus 2 is type PCI  
mainbus0: bus 3 is type PCI  
mainbus0: bus 4 is type PCI  
mainbus0: bus 5 is type PCI  
mainbus0: bus 6 is type PCI  
mainbus0: bus 7 is type ISA  
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 3, 24 pins
ioapic1 at mainbus0: apid 3 pa 0xfecc0000, version 3, 24 pins
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA K8T890 Host" rev 0x00
pchb1 at pci0 dev 0 function 1 "VIA K8T890 Host" rev 0x00
pchb2 at pci0 dev 0 function 2 "VIA K8T890 Host" rev 0x00
pchb3 at pci0 dev 0 function 3 "VIA K8T890 Host" rev 0x00
pchb4 at pci0 dev 0 function 4 "VIA K8T890 Host" rev 0x00
"VIA K8T890 IOAPIC" rev 0x00 at pci0 dev 0 function 5 not configured
pchb5 at pci0 dev 0 function 7 "VIA K8T890 Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA K8HTB AGP" rev 0x00
pci1 at ppb0 bus 1
ppb1 at pci0 dev 2 function 0 "VIA K8T890 PCI-PCI" rev 0x00
pci2 at ppb1 bus 2
vga1 at pci2 dev 0 function 0 "ATI Radeon X600 (RV380)" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"ATI Radeon X600 (RV380) Sec" rev 0x00 at pci2 dev 0 function 1 not configured
ppb2 at pci0 dev 3 function 0 "VIA K8T890 PCI-PCI" rev 0x00
pci3 at ppb2 bus 3
ppb3 at pci0 dev 3 function 1 "VIA K8T890 PCI-PCI" rev 0x00
pci4 at ppb3 bus 4
ppb4 at pci0 dev 3 function 2 "VIA K8T890 PCI-PCI" rev 0x00
pci5 at ppb4 bus 5
mskc0 at pci5 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x15, Marvell Yukon-2 EC rev. A3 (0x2): apic 2 int 23 (irq 11)
msk0 at mskc0 port A, address 00:11:d8:aa:4a:61
eephy0 at msk0 phy 0: Marvell 88E1111 Gigabit PHY, rev. 2
ppb5 at pci0 dev 3 function 3 "VIA K8T890 PCI-PCI" rev 0x00
pci6 at ppb5 bus 6
emu0 at pci0 dev 12 function 0 "Creative Labs SoundBlaster Live" rev 0x08: apic 2 int 5 (irq 5)
ac97: codec id 0x54524123 (TriTech Microelectronics TR28602)
audio0 at emu0
"Creative Labs PCI Gameport Joystick" rev 0x08 at pci0 dev 12 function 1 not configured
pciide0 at pci0 dev 15 function 0 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <SAMSUNG SP2014N>
wd0: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
wd0(pciide0:0:0): 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: <AOpen, DVD-1640 PRO, 1.24> SCSI0 5/cdrom removable
atapiscsi1 at pciide0 channel 1 drive 1
scsibus1 at atapiscsi1: 2 targets
cd1 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVDRAM GSA-4082B, A209> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: apic 2 int 3 (irq 3)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81: apic 2 int 3 (irq 3)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: apic 2 int 5 (irq 5)
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: apic 2 int 5 (irq 5)
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86pci_intr_map: bus 0 dev 16 func 4 pin 3; line 11
pci_intr_map: no MP mapping found
: irq 11
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
viapm0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00
iic0 at viapm0
lm1 at iic0 addr 0x2f: W83791SD
pchb6 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb7 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb8 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb9 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
isa0 at mainbus0
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
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: unknown Winbond chip (ID 0x88)
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 0 netmask 0 ttymask 0
ioapic0: pin 5 shares different IPL interrupts (40..90), degraded performance
pctr: user-level cycle counter enabled
ehci_sync_hc: tsleep() = 35
ehci_sync_hc: tsleep() = 35
ehci_sync_hc: tsleep() = 35
ehci_sync_hc: tsleep() = 35
ehci_sync_hc: tsleep() = 35
uhub4: device problem, disabling port 4
uhub0: device problem, disabling port 2
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302


With APIC in BIOS disabled and bsd.mp, usb works, but interrupt flood:
OpenBSD 4.0 (GENERIC.MP) #933: Fri Sep  1 12:06:05 MDT 2006
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC.MP
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,SSE3
real mem  = 2145873920 (2095580K)
avail mem = 1949335552 (1903648K)
using 4256 buffers containing 107397120 bytes (104880K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(24) BIOS, date 01/25/06, BIOS32 rev. 0 @ 0xf1e40, SMBIOS rev. 2.3 @ 0xf0000 (69 entries)
bios0: ASUSTek Computer INC. A8V-E DELUXE
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 @ 0xf0000/0xdf84
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfde40/320 (18 entries)
pcibios0: PCI Exclusive IRQs: 3 5 11
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C596A ISA" rev 0x00)
pcibios0: PCI bus #6 is the last bus
bios0: ROM list: 0xc0000/0xd000
cpu0 at mainbus0: (uniprocessor)
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,SSE3
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA K8T890 Host" rev 0x00
pchb1 at pci0 dev 0 function 1 "VIA K8T890 Host" rev 0x00
pchb2 at pci0 dev 0 function 2 "VIA K8T890 Host" rev 0x00
pchb3 at pci0 dev 0 function 3 "VIA K8T890 Host" rev 0x00
pchb4 at pci0 dev 0 function 4 "VIA K8T890 Host" rev 0x00
"VIA K8T890 IOAPIC" rev 0x00 at pci0 dev 0 function 5 not configured
pchb5 at pci0 dev 0 function 7 "VIA K8T890 Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA K8HTB AGP" rev 0x00
pci1 at ppb0 bus 1
ppb1 at pci0 dev 2 function 0 "VIA K8T890 PCI-PCI" rev 0x00
pci2 at ppb1 bus 2
vga1 at pci2 dev 0 function 0 "ATI Radeon X600 (RV380)" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"ATI Radeon X600 (RV380) Sec" rev 0x00 at pci2 dev 0 function 1 not configured
ppb2 at pci0 dev 3 function 0 "VIA K8T890 PCI-PCI" rev 0x00
pci3 at ppb2 bus 3
ppb3 at pci0 dev 3 function 1 "VIA K8T890 PCI-PCI" rev 0x00
pci4 at ppb3 bus 4
ppb4 at pci0 dev 3 function 2 "VIA K8T890 PCI-PCI" rev 0x00
pci5 at ppb4 bus 5
mskc0 at pci5 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x15, Marvell Yukon-2 EC rev. A3 (0x2): irq 11
msk0 at mskc0 port A, address 00:11:d8:aa:4a:61
eephy0 at msk0 phy 0: Marvell 88E1111 Gigabit PHY, rev. 2
ppb5 at pci0 dev 3 function 3 "VIA K8T890 PCI-PCI" rev 0x00
pci6 at ppb5 bus 6
emu0 at pci0 dev 12 function 0 "Creative Labs SoundBlaster Live" rev 0x08: irq 5
ac97: codec id 0x54524123 (TriTech Microelectronics TR28602)
audio0 at emu0
"Creative Labs PCI Gameport Joystick" rev 0x08 at pci0 dev 12 function 1 not configured
pciide0 at pci0 dev 15 function 0 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <SAMSUNG SP2014N>
wd0: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
wd0(pciide0:0:0): 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: <AOpen, DVD-1640 PRO, 1.24> SCSI0 5/cdrom removable
atapiscsi1 at pciide0 channel 1 drive 1
scsibus1 at atapiscsi1: 2 targets
cd1 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVDRAM GSA-4082B, A209> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
cd1(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: irq 3
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81: irq 3
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: irq 5
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: irq 5
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86: irq 11
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
viapm0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00
iic0 at viapm0
lm1 at iic0 addr 0x2f: W83791SD
pchb6 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb7 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb8 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb9 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
isa0 at mainbus0
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
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: unknown Winbond chip (ID 0x88)
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 ff6d netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
uhub5 at uhub4 port 4
uhub5: Standard Microsystems product 0xa700, rev 2.00/0.00, addr 2
uhub5: 3 ports with 3 removable, bus powered, multiple transaction translators
uhub6 at uhub0 port 2
uhub6: Lite-On Technology USB 1.1 2port downstream low power hub, rev 1.10/1.00, addr 2
uhub6: 3 ports with 2 removable, bus powered
uhidev0 at uhub6 port 1 configuration 1 interface 0
uhidev0: Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ), rev 1.10/1.00, addr 3, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub6 port 1 configuration 1 interface 1
uhidev1: Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ), rev 1.10/1.00, addr 3, iclass 3/0
uhidev1: 3 report ids
uhid0 at uhidev1 reportid 3: input=3, output=0, feature=0
uhidev2 at uhub6 port 3 configuration 1 interface 0
uhidev2: Logitech USB-PS/2 Optical Mouse, rev 2.00/25.00, addr 4, iclass 3/1
ums0 at uhidev2: 4 buttons and Z dir.
wsmouse0 at ums0 mux 0
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302


I'll try the patch ASAP.

Regards,
ahb

Reply | Threaded
Open this post in threaded view
|

Re: New Marvell/SysKonnect Gigabit driver

Andreas Bihlmaier-2
In reply to this post by Jonathan Gray
On Thu, Sep 14, 2006 at 07:44:44PM +1000, Jonathan Gray wrote:

> On Thu, Sep 14, 2006 at 11:03:59AM +0200, Andreas Bihlmaier wrote:
> > Well, here it goes again:
> >
> > Issue with my onboard
> > mskc0: "Marvell Yukon 88E8053" Marvell Yukon-2
> >
> > With the newest i386 (quite old btw.) snapshot, I can use msk0 without
> > any troubles UNTIL I start X on the machine.
> > As soon as I do that interrupts go to 99% and everything starts to crawl
> > until I reboot. Pretty much same issue I had before with the difference
> > that I know the "cause".
> >
> > I'll try another graphic card and will report back.
> > Any other hints about what I could test to solve/further isolate the
> > problem?
>
> Try this diff from kettenis which will hopefully be applied
> in the next few days.
>
> Index: if_msk.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/if_msk.c,v
> retrieving revision 1.16
> diff -u -p -r1.16 if_msk.c
> --- if_msk.c 25 Aug 2006 00:21:10 -0000 1.16
> +++ if_msk.c 3 Sep 2006 15:39:13 -0000
> @@ -2032,10 +2032,8 @@ msk_init(void *xsc_if)
>   sc->sk_intrmask |= SK_Y2_INTRS1;
>   else
>   sc->sk_intrmask |= SK_Y2_INTRS2;
> - sc->sk_intrmask |= SK_Y2_IMR_HWERR | SK_Y2_IMR_BMU;
> + sc->sk_intrmask |= SK_Y2_IMR_BMU;
>   CSR_WRITE_4(sc, SK_IMR, sc->sk_intrmask);
> -
> - CSR_WRITE_4(sc, SK_IEMR, 0x2e00003f);
>  
>   ifp->if_flags |= IFF_RUNNING;
>   ifp->if_flags &= ~IFF_OACTIVE;
>
>

I hope this will still make it into 4.0 because it now everything works
great (at least on my machine). Thank you very much!

Regards,
ahb