Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jun 2001 22:43:56 +0200 (CEST)
From:      send-pr@oldach.net
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/27995: cvs commit: src/sys/pci if_pcn.c revision 1.21 resp. 1.5.2.7 breaks pcn device on HP Vectra
Message-ID:  <200106092043.f59KhuB01107@sep.hamburg.com>

next in thread | raw e-mail | index | archive | help

>Number:         27995
>Category:       kern
>Synopsis:       src/sys/pci if_pcn.c revision 1.21 resp. 1.5.2.7 breaks pcn device on HP Vectra
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 09 13:50:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Helge Oldach
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD sep.hamburg.com 4.3-STABLE FreeBSD 4.3-STABLE #0: Mon Jun 4 12:02:24 CEST 2001 toor@sep.hamburg.com:/usr/obj/usr/src/sys/HMO i386


Hewlett-Packard Vectra XA. This box has a built-in NIC with a "10" and
a "100" connector.

Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.3-STABLE #0: Mon Jun  4 12:02:24 CEST 2001
    toor@sep.hamburg.com:/usr/obj/usr/src/sys/HMO
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium/P55C (165.79-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x544  Stepping = 4
  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory  = 100659200 (98300K bytes)
avail memory = 92856320 (90680K bytes)
Preloaded elf kernel "kernel.old" at 0xc04f0000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc04f00ac.
Intel Pentium detected, installing workaround for F00F bug
md0: Malloc disk
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
ncr0: <ncr 53c810 fast10 scsi> port 0xfc00-0xfcff mem 0xfedfbc00-0xfedfbcff irq 15 at device 6.0 on pci0
pci0: <Matrox MGA Millennium 2064W graphics accelerator> at 10.0 irq 11
pcn0: <AMD PCnet/PCI 10/100BaseTX> port 0xf8e0-0xf8ff mem 0xfedfb800-0xfedfb81f irq 15 at device 11.0 on pci0
pcn0: Ethernet address: 00:60:b0:7b:b6:3f
miibus0: <MII bus> on pcn0
nsphy0: <DP83840 10/100 media interface> on miibus0
nsphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
....


>Description:

The commits for these revisions properly turned on autonegotiation
handling through miibus and disabled the PHY's autonegotiation.
Unfortunately miibus autoneg handling doesn't work on this Vectra:

During device probe the nsphy says "no media present" if *anything* is
connected to either the 10 or the 100 port. Workaround: disconnect from
the hub/switch during boot. This is probably kern/25959.

Before the commit the PHY was doing autoneg. This led to the strange
effect that a 10BaseT hub on the "100" Port worked fine (but not on the
"10" port).

After this commit miibus is responsible for autonegotiation. This
doesn't work at all. The "10" port doesn't, and the "100" port doesn't
either. While with the hub at the "10" port the link is down (which the
hub doesn't grok, as it sees it link up), at the "100" port the link is
up but no packets get transmitted. Seems that the MII autonegotiation
stuff is broken. The pcn device is just unusable now.

>How-To-Repeat:
	
>Fix:

	
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106092043.f59KhuB01107>