From nobody@FreeBSD.org  Mon May 30 19:51:47 2005
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 22B0B16A41C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 May 2005 19:51:47 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id EE99243D48
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 May 2005 19:51:46 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j4UJpkmd039024
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 30 May 2005 19:51:46 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j4UJpkNH039023;
	Mon, 30 May 2005 19:51:46 GMT
	(envelope-from nobody)
Message-Id: <200505301951.j4UJpkNH039023@www.freebsd.org>
Date: Mon, 30 May 2005 19:51:46 GMT
From: Michael jones <mlj28@cam.ac.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: No support for Asus Pundit-R Onboard NIC in FreeBSD 4.11/5.3 xl Driver
X-Send-Pr-Version: www-2.3

>Number:         81684
>Category:       i386
>Synopsis:       No support for Asus Pundit-R Onboard NIC in FreeBSD 4.11/5.3 xl Driver
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 30 20:00:06 GMT 2005
>Closed-Date:    Fri Jul 22 23:30:57 GMT 2005
>Last-Modified:  Fri Jul 22 23:30:57 GMT 2005
>Originator:     Michael jones
>Release:        4.11/5.3
>Organization:
N/A
>Environment:
Default m0n0wall Install (Both 1.11 based on 4.11 and 1.2b7 based on 5.3)
>Description:
xl driver does not recognise the On-Board NIC

lspci:
02:08.0 Ethernet controller: 3Com Corporation 3Com 3C920B-EMB-WNM Integrated Fast Ethernet Controller (rev 40)

dmesg from a Linux 2.4.28 install:
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
See Documentation/networking/vortex.txt
02:08.0: 3Com PCI 3c920B-EMB-WNM (ATI Radeon 9100 IGP) at 0xec00. Vers LK1.1.18-ac
00:0e:a6:c3:5a:76, IRQ 18
product code f800 rev 00.0 date 00-04-02
Internal config register is 1600000, transceivers 0x40.
8K byte-wide RAM 5:3 Rx:Tx split, autoselect/MII interface.
MII transceiver found at address 1, status 786d.
Enabling bus-master transmits and whole-frame receives.
02:08.0: scatter/gather enabled. h/w checksums enabled

Information about the device from a Linux 2.4.28 install:
02:08.0 Class 0200: 10b7:9202 (rev 40)
Subsystem: 1043:8108
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64 (2500ns min, 2500ns max), cache line size 10
Interrupt: pin A routed to IRQ 18
Region 0: I/O ports at ec00 [size=128]
Region 1: Memory at fe200000 (32-bit, non-prefetchable) [size=128]
Expansion ROM at fe100000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-

The fix to the Linux Kernel was 4 lines, simply adding its PCI address to the appropriate driver and a description to an array of vortex chips. Can someone please contribute a patch that will apply to 4.11 and later versions.

http://www.ussg.iu.edu/hypermail/linux/kernel/0409.2/1215/013-3com_ati_radeon.patch

Thanks for your help (and understanding re: Linux references - I don't use FreeBSD regularly)

Michael-Luke
>How-To-Repeat:

>Fix:
      
>Release-Note:
>Audit-Trail:

From: Michael Jones <mlj28@cam.ac.uk>
To: bug-followup@FreeBSD.org,
 Michael-Luke Jones <mlj28@cam.ac.uk>
Cc:  
Subject: Re: i386/81684: No support for Asus Pundit-R Onboard NIC in FreeBSD 4.11/5.3 xl Driver
Date: Wed, 1 Jun 2005 18:26:07 +0100

 It appears (from the CVS) that support for this device has already  
 been added to the xl driver in the 5.4 Release (after I handmade a  
 patch too, d'oh)
 
 The m0n0wall image I tested this on was based on FreeBSD 5.3 (and  
 4.11 which also predated the patch)
 
 The good thing is that, despite my total lack of experience with C or  
 any programming language above BASIC, the patch I made seems to be  
 identical to the patch in the release. Score!
 
 So this problem report can be closed. Thanks for your help.
 
 Mike
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Fri Jul 22 23:30:31 GMT 2005 
State-Changed-Why:  
Submitter notes that problem has been resolved. 

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