From owner-freebsd-current@FreeBSD.ORG Tue Oct 11 03:49:08 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9947616A41F for ; Tue, 11 Oct 2005 03:49:08 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD13543D46 for ; Tue, 11 Oct 2005 03:49:07 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id 40so254417nzk for ; Mon, 10 Oct 2005 20:49:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=oIB2CffTpcdzuV64IFi1GJuYKqb3CLgj4+aCGCVqc/2rVvQ8OLY9abuvdfuCcha7FBlvLkZvvawhH6A9Qrd8KhE4QYbaChbxswhdJapQ8GhoEL2xBNuKyqIOAEY/TkGBD/+aWBgB/g/+nFQMDtEAbD7UVvkJu9uV+AemrDNWLKY= Received: by 10.36.115.10 with SMTP id n10mr3637853nzc; Mon, 10 Oct 2005 20:49:07 -0700 (PDT) Received: from michelle.rndsoft.co.kr ( [211.32.202.217]) by mx.gmail.com with ESMTP id 15sm916638nzo.2005.10.10.20.49.03; Mon, 10 Oct 2005 20:49:07 -0700 (PDT) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.1/8.13.1) with ESMTP id j9B3mM74005903 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 11 Oct 2005 12:48:22 +0900 (KST) (envelope-from yongari@gmail.com) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id j9B3mHgI005902; Tue, 11 Oct 2005 12:48:17 +0900 (KST) (envelope-from yongari@gmail.com) Date: Tue, 11 Oct 2005 12:48:17 +0900 From: Pyun YongHyeon To: John Nielsen Message-ID: <20051011034817.GA5207@rndsoft.co.kr> References: <200510061139.37825.lists@jnielsen.net> <200510071557.50553.lists@jnielsen.net> <20051008172037.O56323@ury.york.ac.uk> <200510101059.03558.lists@jnielsen.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline In-Reply-To: <200510101059.03558.lists@jnielsen.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@freebsd.org Subject: Re: Broadcom BCM5751 not attaching on IBM ThinkCentre A51 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 03:49:08 -0000 --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Oct 10, 2005 at 10:59:03AM -0400, John Nielsen wrote: > On Saturday 08 October 2005 14:14, Gavin Atkinson wrote: > > On Fri, 7 Oct 2005, John Nielsen wrote: > > > On Friday 07 October 2005 12:58, Gavin Atkinson wrote: > > >> Can you post the output of pciconf -l please? > > > > > > Attached, along with dmesg output and kernel config file (basically a > > > stripped-down GENERIC). > > > > Can you try applying the attached patch, and the patch in > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/79139 and if the latter > > patch makes no difference, show the output of the extra line? > > I built a new kernel on -CURRENT with these two patches. No change. The > only real diff in the dmesg output was your extra line: > > bge0: register value ffffffff > > No different output regarding the PCI bus. > > The ndis driver still does not work as well. > Due to lack of data sheet from Broadcom it seems that it's hard to identify what caused this. Since the error message comes from bge_chipinit(), I guess there is a possible bug(reading/writing registers while chip reset is in progress) in bge_reset()/bge_chipinit(). -- Regards, Pyun YongHyeon --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="bge.pcistate.patch" --- sys/dev/bge/if_bge.c.orig Mon Oct 3 13:27:44 2005 +++ sys/dev/bge/if_bge.c Tue Oct 11 12:56:21 2005 @@ -2583,7 +2583,7 @@ struct bge_softc *sc; { device_t dev; - u_int32_t cachesize, command, pcistate, reset; + u_int32_t cachesize, command, pcistate, new_pcistate, reset; int i, val = 0; dev = sc->bge_dev; @@ -2673,10 +2673,16 @@ * results. */ for (i = 0; i < BGE_TIMEOUT; i++) { - if (pci_read_config(dev, BGE_PCI_PCISTATE, 4) == pcistate) + new_pcistate = pci_read_config(dev, BGE_PCI_PCISTATE, 4); + if ((new_pcistate & ~BGE_PCISTATE_RESERVED) == + (pcistate & ~BGE_PCISTATE_RESERVED)) break; DELAY(10); } + + if ((new_pcistate & ~BGE_PCISTATE_RESERVED) != + (pcistate & ~BGE_PCISTATE_RESERVED)) + printf("bge%d: pcistate failed to revert\n", sc->bge_unit); /* Fix up byte swapping */ CSR_WRITE_4(sc, BGE_MODE_CTL, BGE_MODECTL_BYTESWAP_NONFRAME| --- sys/dev/bge/if_bgereg.h.orig Mon Jun 13 09:24:40 2005 +++ sys/dev/bge/if_bgereg.h Tue Oct 11 12:55:35 2005 @@ -306,6 +306,7 @@ #define BGE_PCISTATE_EXPROM_RETRY 0x00000040 #define BGE_PCISTATE_FLATVIEW_MODE 0x00000100 #define BGE_PCISTATE_PCI_TGT_RETRY_MAX 0x00000E00 +#define BGE_PCISTATE_RESERVED ((1 << 12) + (1 <<7)) /* * PCI Clock Control register -- note, this register is read only --r5Pyd7+fXNt84Ff3--