From owner-freebsd-bugs Fri Jan 31 19:50:13 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5A3F37B405 for ; Fri, 31 Jan 2003 19:50:11 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5515143F79 for ; Fri, 31 Jan 2003 19:50:11 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h113oBNS081039 for ; Fri, 31 Jan 2003 19:50:11 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h113oBoG081038; Fri, 31 Jan 2003 19:50:11 -0800 (PST) Date: Fri, 31 Jan 2003 19:50:11 -0800 (PST) Message-Id: <200302010350.h113oBoG081038@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Giorgos Keramidas Subject: Re: kern/44092: dc(4) assigns incorrect link address with Davicom DM9102A chipsets Reply-To: Giorgos Keramidas 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 The following reply was made to PR kern/44092; it has been noted by GNATS. From: Giorgos Keramidas To: bug-followup@freebsd.org Cc: Subject: Re: kern/44092: dc(4) assigns incorrect link address with Davicom DM9102A chipsets Date: Sat, 1 Feb 2003 05:43:49 +0200 [-- Adding to audit trail --] : Message-Id: <20030127083701.GK49658@goddamnbastard.org> : Date: Mon, 27 Jan 2003 02:37:01 -0600 : From: ryan beasley : To: freebsd-gnats-submit@freebsd.org : Cc: Warner Losh : Subject: pending/47537: Re: dc(4) assigns incorrect link address with Davicom DM9102A chipsets : : As it turns out, everything but the first chunk of the if_dc.c patch is : bogus. It is necessary to perform the SROM read as dc_romwidth is : referenced later on in dc_eeprom_putbyte. The attached patch is just a : trimmed version of the first one submitted, and it seems to do the job. : : I'm cc'ng Warner since he committed the dynamically sized srom code. : : Index: src/sys/pci/if_dc.c : --- sys/pci/if_dc.c.orig Mon Jan 27 02:15:04 2003 : +++ sys/pci/if_dc.c Mon Jan 27 02:12:33 2003 : @@ -1979,6 +1983,8 @@ : command &= 0xFFFF00FF; : command |= 0x00008000; : pci_write_config(dev, DC_PCI_CFLT, command, 4); : + dc_eeprom_width(sc); : + dc_read_srom(sc, sc->dc_romwidth); : break; : case DC_DEVICEID_AL981: : sc->dc_type = DC_TYPE_AL981; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message