From owner-freebsd-bugs Sat Jun 9 13:50: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 99BD137B407 for ; Sat, 9 Jun 2001 13:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f59Ko1631731; Sat, 9 Jun 2001 13:50:01 -0700 (PDT) (envelope-from gnats) Received: from sep.hamburg.com (sep.hamburg.com [194.64.112.14]) by hub.freebsd.org (Postfix) with ESMTP id AB52B37B401 for ; Sat, 9 Jun 2001 13:44:22 -0700 (PDT) (envelope-from hmo@sep.hamburg.com) Received: (from hmo@localhost) by sep.hamburg.com (8.11.3/8.11.3/hmo03mar01) id f59KhuB01107; Sat, 9 Jun 2001 22:43:56 +0200 (CEST) (envelope-from hmo) Message-Id: <200106092043.f59KhuB01107@sep.hamburg.com> Date: Sat, 9 Jun 2001 22:43:56 +0200 (CEST) From: send-pr@oldach.net Reply-To: send-pr@oldach.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 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 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 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: on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 ncr0: port 0xfc00-0xfcff mem 0xfedfbc00-0xfedfbcff irq 15 at device 6.0 on pci0 pci0: at 10.0 irq 11 pcn0: port 0xf8e0-0xf8ff mem 0xfedfb800-0xfedfb81f irq 15 at device 11.0 on pci0 pcn0: Ethernet address: 00:60:b0:7b:b6:3f miibus0: on pcn0 nsphy0: 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