On Sat, 8 Jan 2011 11:39:09 +0100 (CET)
Mark Kettenis <[email protected]> wrote:

> > Date: Fri, 7 Jan 2011 18:25:08 -0700
> > From: Travis King <[email protected]>
> > nfe0 at pci0 dev 7 function 0 "NVIDIA MCP61 LAN" rev 0xa2: apic 1
> > int 5 (irq 5), address 40:61:86:cc:1c:eb
> > rlphy0 at nfe0 phy 0: RTL8201L 10/100 PHY, rev. 1
> > rlphy1 at nfe0 phy 1: RTL8201L 10/100 PHY, rev. 1
> > rlphy2 at nfe0 phy 2: RTL8201L 10/100 PHY, rev. 1
> 
> Looks like the PHY on that interface is a bit messed up and responds
> to all addresses on the MII bus.  Does the attached diff help?
> 
> Index: if_nfe.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/if_nfe.c,v
> retrieving revision 1.96
> diff -u -p -r1.96 if_nfe.c
> --- if_nfe.c  7 Sep 2010 16:21:45 -0000       1.96
> +++ if_nfe.c  8 Jan 2011 10:30:26 -0000
> @@ -368,8 +368,7 @@ nfe_attach(struct device *parent, struct
>  
>       ifmedia_init(&sc->sc_mii.mii_media, 0, nfe_ifmedia_upd,
>           nfe_ifmedia_sts);
> -     mii_attach(self, &sc->sc_mii, 0xffffffff, MII_PHY_ANY,
> -         MII_OFFSET_ANY, 0);
> +     mii_attach(self, &sc->sc_mii, 0xffffffff, MII_PHY_ANY, 0, 0);
>       if (LIST_FIRST(&sc->sc_mii.mii_phys) == NULL) {
>               printf("%s: no PHY found!\n", sc->sc_dev.dv_xname);
>               ifmedia_add(&sc->sc_mii.mii_media, IFM_ETHER |
> IFM_MANUAL,
> 

This works great.

No freezing with ifconfig:

nfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 40:61:86:cc:1c:eb
        priority: 0
        groups: egress
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet6 fe80::4261:86ff:fecc:1ceb%nfe0 prefixlen 64 scopeid 0x2
        inet 10.10.4.12 netmask 0xffffff00 broadcast 10.10.4.255

Here is the new dmesg:

OpenBSD 4.8 (GENERIC) #0: Sun Jan  9 20:24:24 MST 2011
    [email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Sempron(tm) 145 Processor ("AuthenticAMD" 686-class, 1024KB L2 cache) 
2.82 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,MWAIT,CX16,POPCNT
real mem  = 2113433600 (2015MB)
avail mem = 2068897792 (1973MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/10/09, BIOS32 rev. 0 @ 0xf0010, SMBIOS 
rev. 2.6 @ 0xfce30 (47 entries)
bios0: vendor American Megatrends Inc. version "V2.3" date 12/10/2009
bios0: MSI MS-7309
acpi at bios0 function 0x0 not configured
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 200MHz
mpbios0: bus 0 is type PCI   
mpbios0: bus 1 is type PCI   
mpbios0: bus 2 is type PCI   
mpbios0: bus 3 is type PCI   
mpbios0: bus 4 is type PCI   
mpbios0: bus 5 is type ISA   
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 11, 24 pins
pcibios0 at bios0: rev 3.0 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf4bb0/256 (14 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x10de product 0x03e0
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc0000/0xf000
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
"NVIDIA MCP61 Memory" rev 0xa1 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 "NVIDIA MCP61 ISA" rev 0xa2
nviic0 at pci0 dev 1 function 1 "NVIDIA MCP61 SMBus" rev 0xa2
iic0 at nviic0
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5
spdmem1 at iic0 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-5300CL5
iic1 at nviic0
"NVIDIA MCP61 Memory" rev 0xa2 at pci0 dev 1 function 2 not configured
ohci0 at pci0 dev 2 function 0 "NVIDIA MCP61 USB" rev 0xa3: apic 1 int 7 (irq 
7), version 1.0, legacy support
ehci0 at pci0 dev 2 function 1 "NVIDIA MPC61 USB" rev 0xa3: apic 1 int 10 (irq 
10)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
ppb0 at pci0 dev 4 function 0 "NVIDIA MCP61" rev 0xa1
pci1 at ppb0 bus 1
xl0 at pci1 dev 10 function 0 "3Com 3c905B 100Base-TX" rev 0x30pci_intr_map: 
bus 1 dev 10 func 0 pin 1; line 11
pci_intr_map: no MP mapping found
: irq 11, address 00:10:5a:0a:d7:3a
exphy0 at xl0 phy 24: 3Com internal media interface
azalia0 at pci0 dev 5 function 0 "NVIDIA MCP61 HD Audio" rev 0xa2: apic 1 int 
11 (irq 11)
azalia0: codecs: Realtek ALC888
audio0 at azalia0
pciide0 at pci0 dev 6 function 0 "NVIDIA MCP61 IDE" rev 0xa2: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <TSSTcorp, CDDVDW SH-S222A, SB02> ATAPI 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 ignored (disabled)
nfe0 at pci0 dev 7 function 0 "NVIDIA MCP61 LAN" rev 0xa2: apic 1 int 5 (irq 
5), address 40:61:86:cc:1c:eb
rlphy0 at nfe0 phy 0: RTL8201L 10/100 PHY, rev. 1
pciide1 at pci0 dev 8 function 0 "NVIDIA MCP61 SATA" rev 0xa2: DMA
pciide1: using apic 1 int 10 (irq 10) for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: <WDC WD800AAJS-00L7A0>
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
wd1 at pciide1 channel 1 drive 0: <WDC WD10EALS-00Z8A0>
wd1: 16-sector PIO, LBA48, 953869MB, 1953525168 sectors
wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 6
pciide2 at pci0 dev 8 function 1 "NVIDIA MCP61 SATA" rev 0xa2: DMA
pciide2: using apic 1 int 10 (irq 10) for native-PCI interrupt
ppb1 at pci0 dev 9 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
pci2 at ppb1 bus 2
ppb2 at pci0 dev 11 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
pci3 at ppb2 bus 3
ppb3 at pci0 dev 12 function 0 "NVIDIA MCP61 PCIE" rev 0xa2
pci4 at ppb3 bus 4
vga1 at pci0 dev 13 function 0 "NVIDIA GeForce 6100 nForce 430" rev 0xa2
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pchb0 at pci0 dev 24 function 0 "AMD AMD64 10h HyperTransport" rev 0x00
pchb1 at pci0 dev 24 function 1 "AMD AMD64 10h Address Map" rev 0x00
pchb2 at pci0 dev 24 function 2 "AMD AMD64 10h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 10h Misc Cfg" rev 0x00
pchb3 at pci0 dev 24 function 4 "AMD AMD64 10h Link Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: probed fifo depth: 15 bytes
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
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
uhidev0 at uhub1 port 2 configuration 1 interface 0 "Logitech USB Optical 
Mouse" rev 2.00/34.01 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 8 buttons, Z dir
wsmouse0 at ums0 mux 0
softraid0 at root
root on wd0a swap on wd0b dump on wd0b

Thanks!

-- 
end

Reply via email to