From owner-freebsd-i386@FreeBSD.ORG Thu Aug 5 15:00:45 2004 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C26816A4D2 for ; Thu, 5 Aug 2004 15:00:44 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA91343D48 for ; Thu, 5 Aug 2004 15:00:41 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i75F0fFG009973 for ; Thu, 5 Aug 2004 15:00:41 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i75F0fsl009972; Thu, 5 Aug 2004 15:00:41 GMT (envelope-from gnats) Resent-Date: Thu, 5 Aug 2004 15:00:41 GMT Resent-Message-Id: <200408051500.i75F0fsl009972@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nikolaj Hansen Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C1E316A4CE for ; Thu, 5 Aug 2004 14:59:03 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 099A643D1F for ; Thu, 5 Aug 2004 14:59:03 +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 i75Ex2Mo085888 for ; Thu, 5 Aug 2004 14:59:02 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i75Ex20a085887; Thu, 5 Aug 2004 14:59:02 GMT (envelope-from nobody) Message-Id: <200408051459.i75Ex20a085887@www.freebsd.org> Date: Thu, 5 Aug 2004 14:59:02 GMT From: Nikolaj Hansen To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: i386/70036: pcn device not recognizing device X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 15:00:45 -0000 >Number: 70036 >Category: i386 >Synopsis: pcn device not recognizing device >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 05 15:00:41 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Nikolaj Hansen >Release: 5.2.1-RELEASE >Organization: ProgressIT >Environment: $ uname -a FreeBSD sauron.progressit.dk 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #4: Thu Jul 22 19:28:42 CEST 2004 root@sauron.progressit.dk:/usr/src/sys/i386/compile/MYKERNEL i386 >Description: Hi, I have an older version IBM NetFinity 5000 with an AMD Lance netcard. If i try to use the pcn device the kernel panics. Probably because it correctly recognizes the card but not the chipset? The card runs fine with the older LNC device, but it would be nice to have the features in the new driver using the DMA 32 bit and such. Here is the output from a pciconf scan: lnc0@pci0:9:0: class=0x020000 card=0x20001014 chip=0x20001022 rev=0x36 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'Am79C970/1/2/3/5/6 PCnet LANCE PCI Ethernet Controller' class = network subclass = ethernet console log panic: .. .. .. pcn0: port 0x2040-0x205f mem 0xfebfdc00-0xfebfde1f irq 11 at device 9.0 on pci0 pcn0: Eterhnet address: 00:06:29:39:61:39 miibus0: on pcn0 ukphy0: on miibus0 ukphy0: OUI 0x080017, model 0x0001, rev.0 ukphy0: ifmedia_set: no match for 0x0/0xfffffff panic: ifmedia_set .die.. .die.. >How-To-Repeat: I suppose not possible without the actual netcard version as mentioned above. >Fix: I think the HEX code for this card has to be added to the file /usr/src/sys/pci/if_pcnreg.h and the value from this to the switch command checking the NIC id in /usr/src/sys/pci/if_pcn.c I will be happy to test a fix on my server. I work as a systems developer so I will be able to report any further bugs and/or edit the device driver code according to your guidance. >Release-Note: >Audit-Trail: >Unformatted: