From nobody@FreeBSD.org  Tue Sep 14 16:37:14 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 623E016A4D0
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 14 Sep 2004 16:37:14 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 427E243D3F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 14 Sep 2004 16:37:14 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i8EGbDlb096591
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 14 Sep 2004 16:37:13 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i8EGbDSv096590;
	Tue, 14 Sep 2004 16:37:13 GMT
	(envelope-from nobody)
Message-Id: <200409141637.i8EGbDSv096590@www.freebsd.org>
Date: Tue, 14 Sep 2004 16:37:13 GMT
From: Frank Arnold <far@4damind.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Marvel/Gigabit NIC on Asus K8V SE is not working (if_sk.ko)
X-Send-Pr-Version: www-2.3

>Number:         71733
>Category:       i386
>Synopsis:       Marvel/Gigabit NIC on Asus K8V SE is not working (if_sk.ko)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 14 16:40:26 GMT 2004
>Closed-Date:    Tue Dec 14 22:27:53 GMT 2004
>Last-Modified:  Tue Dec 14 22:27:53 GMT 2004
>Originator:     Frank Arnold
>Release:        5.3 Beta 4
>Organization:
>Environment:
i386 with Asus k8v SE motherboard
>Description:
Loading the if_sk.ko driver results with "skc0: no PHY found"


>How-To-Repeat:
Load the driver, manually or at boot
>Fix:
      
>Release-Note:
>Audit-Trail:

From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc: Frank Arnold <far@4damind.com>
Subject: Re: i386/71733: Marvel/Gigabit NIC on Asus K8V SE is not working
 (if_sk.ko)
Date: Sat, 30 Oct 2004 18:18:52 +0000 (UTC)

 I had a similar problem after updating the BIOS/Firmware on my amd64
 box with ASUS board to latest version. PHY had no longer been
 detected. Don't ask me what they did but downgrading BIOS/Firmware
 again helped to get it detected again.
State-Changed-From-To: open->feedback 
State-Changed-By: bz 
State-Changed-When: Tue Nov 23 09:48:52 GMT 2004 
State-Changed-Why:  
please try this patch: 

Index: mii.c 
=================================================================== 
RCS file: /local/mirror/FreeBSD/r/ncvs/src/sys/dev/mii/mii.c,v 
retrieving revision 1.20 
diff -u -p -r1.20 mii.c 
--- mii.c	15 Aug 2004 06:24:40 -0000	1.20 
+++ mii.c	23 Nov 2004 08:46:30 -0000 
@@ -125,7 +125,7 @@ miibus_probe(dev) 
*/ 
bmsr = MIIBUS_READREG(parent, ma.mii_phyno, MII_BMSR); 
if (bmsr == 0 || bmsr == 0xffff || 
-		    (bmsr & BMSR_MEDIAMASK) == 0) { 
+		    (bmsr & (BMSR_EXTSTAT|BMSR_MEDIAMASK)) == 0) { 
/* Assume no PHY at this address. */ 
continue; 
} 
@@ -316,7 +316,7 @@ mii_phy_probe(dev, child, ifmedia_upd, i 
for (i = 0; i < MII_NPHY; i++) { 
bmsr = MIIBUS_READREG(dev, i, MII_BMSR); 
if (bmsr == 0 || bmsr == 0xffff || 
-                    (bmsr & BMSR_MEDIAMASK) == 0) { 
+                    (bmsr & (BMSR_EXTSTAT|BMSR_MEDIAMASK)) == 0) { 
/* Assume no PHY at this address. */ 
continue; 
} else 


Responsible-Changed-From-To: freebsd-i386->bz 
Responsible-Changed-By: bz 
Responsible-Changed-When: Tue Nov 23 09:48:52 GMT 2004 
Responsible-Changed-Why:  
mine... 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71733 
State-Changed-From-To: feedback->closed 
State-Changed-By: bz 
State-Changed-When: Tue Dec 14 22:27:18 GMT 2004 
State-Changed-Why:  
HEAD and RELENG_5 got patched. Thanks for reporting. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71733 
>Unformatted:
