From bfarmer@xenon.xe.com  Wed Jun 11 14:42:19 2003
Return-Path: <bfarmer@xenon.xe.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2103437B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Jun 2003 14:42:19 -0700 (PDT)
Received: from xenon.xe.com (ws-gw.tor.xe.net [216.220.37.73])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5677A43FA3
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Jun 2003 14:42:18 -0700 (PDT)
	(envelope-from bfarmer@xenon.xe.com)
Received: from xenon.xe.com (localhost [127.0.0.1])
	by xenon.xe.com (8.12.8p1/8.12.8) with ESMTP id h5BLgH7S000315
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 11 Jun 2003 17:42:17 -0400 (EDT)
	(envelope-from bfarmer@xenon.xe.com)
Received: (from root@localhost)
	by xenon.xe.com (8.12.8p1/8.12.8/Submit) id h5BLgEAC000314;
	Wed, 11 Jun 2003 17:42:14 -0400 (EDT)
Message-Id: <200306112142.h5BLgEAC000314@xenon.xe.com>
Date: Wed, 11 Jun 2003 17:42:14 -0400 (EDT)
From: Beric Farmer <bfarmer@xe.com>
Reply-To: Beric Farmer <bfarmer@xe.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] fxp driver fails to detect 82562 chipset on Intel D865GBFL motherboard
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         53228
>Category:       kern
>Synopsis:       [patch] fxp driver fails to detect 82562 chipset on Intel D865GBFL motherboard
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 11 14:50:08 PDT 2003
>Closed-Date:    Thu Jun 12 09:40:38 PDT 2003
>Last-Modified:  Thu Jun 12 09:40:38 PDT 2003
>Originator:     Beric Farmer
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
XE.com Inc.
>Environment:

Intel D865GBFL motherboard (AA Revision C25843-401)
   Integrated LAN with Intel 82562EZ PLC
2.4C GHz Pentium 4 processor (800MHz, HT)
FreeBSD 4.8-RELEASE -- GENERIC kernel
   (although, would presumably happen with any kernel with the current
   fxp driver)

Version info from if_fxp.c:

* $FreeBSD: src/sys/dev/fxp/if_fxp.c,v 1.110.2.28 2003/01/28 11:17:33 sanpei Ex
p $

Relevant output from 'pciconf -lv':

none4@pci1:8:0: class=0x020000 card=0x302f8086 chip=0x10508086 rev=0x01 hdr=0x00
    vendor   = 'Intel Corporation'
    class    = network
    subclass = ethernet

>Description:

The fxp driver fails to recognize the integrated Intel 82562EZ LAN on the
Intel D865GBFL motherboard.  If my diagnosis is correct, this is the result
of this version of the 82562 chip reporting a new PCI "chip id", as has
happened before (see kern/39974).

>How-To-Repeat:

Install 4.8-RELEASE on a system with an Intel D865GBFL motherboard (the AA
Revision on the board in question was C25843-401).  During and after
installation, the kernel (specifically the fxp driver) fails to detect the
on-board Intel 82562 LAN.

>Fix:

Add an entry to the fxp_ident_table array in sys/dev/fxp/if_fxp.c for the
new PCI chip id and re-build the kernel.  Here's a patch:

--- if_fxp.c    Wed Jun 11 16:36:59 2003
+++ if_fxp.c-patched    Wed Jun 11 16:36:30 2003
@@ -165,6 +165,7 @@
     { 0x103C,          "Intel Pro/100 Ethernet" },
     { 0x103D,          "Intel Pro/100 Ethernet" },
     { 0x103E,          "Intel Pro/100 Ethernet" },
+    { 0x1050,          "Intel Pro/100 Ethernet" },
     { 0x1059,          "Intel Pro/100 M Mobile Connection" },
     { 0,               NULL },
 };

Note: the timestamp on the original if_fxp.c file is wrong because I had to
re-create the original after patching and testing it, and didn't back up the
original first.  The version info from the top of the file, however, is:

* $FreeBSD: src/sys/dev/fxp/if_fxp.c,v 1.110.2.28 2003/01/28 11:17:33 sanpei Exp $

This solved the problem for me.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mux 
State-Changed-When: Thu Jun 12 09:40:24 PDT 2003 
State-Changed-Why:  
Patch commited, thanks! 

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