From owner-freebsd-sparc64@FreeBSD.ORG Sat Sep 24 07:23:31 2005 Return-Path: X-Original-To: freebsd-sparc64@freebsd.org Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE8E216A41F for ; Sat, 24 Sep 2005 07:23:31 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DDAC43D48 for ; Sat, 24 Sep 2005 07:23:31 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so401941nzd for ; Sat, 24 Sep 2005 00:23:30 -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=mtinQvcsVinZA1AlqVSPBbDGhl42urvCLAACNGSARY1/cNVbBMZnS8HDMTIhJsu6rxsCByFxJ68OMZSZ7Zjj7D6ieEodLB6vRh7RJnWzr9lsMflhZ+gMjsooTd0HHfZmkMqMD2g7udtpCFmv/wCOlDPTHSDo+GAhVB7jbgYF75I= Received: by 10.37.15.64 with SMTP id s64mr2394400nzi; Sat, 24 Sep 2005 00:23:30 -0700 (PDT) Received: from michelle.rndsoft.co.kr ( [211.32.202.211]) by mx.gmail.com with ESMTP id 34sm2409630nza.2005.09.24.00.23.29; Sat, 24 Sep 2005 00:23:30 -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 j8O7OHoh020019 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 24 Sep 2005 16:24:17 +0900 (KST) (envelope-from yongari@gmail.com) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id j8O7ODjP020018; Sat, 24 Sep 2005 16:24:13 +0900 (KST) (envelope-from yongari@gmail.com) Date: Sat, 24 Sep 2005 16:24:13 +0900 From: Pyun YongHyeon To: Christian Brueffer Message-ID: <20050924072413.GA19116@rndsoft.co.kr> References: <20050924061342.GA1302@unixpages.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050924061342.GA1302@unixpages.org> User-Agent: Mutt/1.4.2.1i Cc: Miles Nordin , freebsd-sparc64@freebsd.org Subject: Re: bge(4) X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2005 07:23:31 -0000 On Sat, Sep 24, 2005 at 08:13:42AM +0200, Christian Brueffer wrote: > On Wed, Sep 21, 2005 at 12:40:40PM -0400, Miles Nordin wrote: > > When I do 'kldload if_bge' i get: > > > > -----8<----- > > bge0: mem 0x10000-0x1ffff at device 3.0 on pci2 > > bge0: firmware handshake timed out > > bge0 PHY read timed out > > bge0: MII without any PHY! > > device_attach: bge0 attach returned 6 > > -----8<----- > > > > Is this expected? > > > > I'm looking for a good card to do forwarding of high pps on a Netra T1 > > 200, because AFAICT gem and hme aren't documented to support interrupt > > mitigation nor polling(9). Will em(4) work on sparc64? Do people > > have other suggestions? > > > > You can find a prototype polling(4) patch for bge(4) here: > > http://people.freebsd.org/~brueffer/polling/bge_polling.diff > > It lacks error recovery though. I haven't worked on this for some time, > but I'll look into polishing it this weekend. > Do you have a documentation for Tigon3? Due to lack of data sheet for Tigon3 I can't sure supporting polling for bge(4) is feasible. Comments in bge_intr says bge(4) needs an interrupt to check link state changes as some revisions of BCM5700 have bugs in the chip. In addition, unlike most other drivers, bge(4) calls bus_dmamap_sync(9) to update statistics for its status block in bge_intr. > If I get my Ultra 10 to play nice with CURRENT and Pyun doesn't beat me > to it, I'll also take a look at hme(4). > I'm happy to review your changes. -- Regards, Pyun YongHyeon