From owner-freebsd-current@FreeBSD.ORG Tue Oct 12 00:35:13 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD6BE106566B for ; Tue, 12 Oct 2010 00:35:13 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 73FE98FC0A for ; Tue, 12 Oct 2010 00:35:13 +0000 (UTC) Received: by pvg7 with SMTP id 7so8343pvg.13 for ; Mon, 11 Oct 2010 17:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=g8Pk44E8rdwp6VeXm/lJkSecG+o1FI0s6f+vdUKr+Qg=; b=MYFMBr+V+FEOEQ9vrgkr/rdZ0QCGr2bsWkKSaDdekTsm1lvPYIlmZV3P9XFgbcHPTA 4WvMyJWb7eUOl5/uTCPlF+IIggK1Z4UaMxOwO9N3loyI8A2iexpdXVUH5VQhq4cel4lb +JrSCPKh5oCLEfbQPRy3glM0GNS5uIeFPaiHg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=SqwxV02kGfwbnSXwfHk/DzT2N5YvFJ/Cy8WKQ6kRGyaLKbRq0tL62cmemvWVGe4MTG BTB56osBgF4BpmF0xLaaZNnRs6q8jfYOwoV38ofF2wMaZV875nD8VXgZdzqJBe2Smhuo 4G7Ti9k3s154LziBG2PtPdmOXzsaorCiKDOnw= Received: by 10.142.213.3 with SMTP id l3mr5767486wfg.6.1286843712821; Mon, 11 Oct 2010 17:35:12 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id c22sm12010747waa.13.2010.10.11.17.35.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 11 Oct 2010 17:35:11 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Mon, 11 Oct 2010 17:33:29 -0700 From: Pyun YongHyeon Date: Mon, 11 Oct 2010 17:33:29 -0700 To: Steve Kargl Message-ID: <20101012003329.GL4607@michelle.cdnetworks.com> References: <20101011225331.GA2829@troutmask.apl.washington.edu> <20101011231604.GI4607@michelle.cdnetworks.com> <20101012000216.GA1554@troutmask.apl.washington.edu> <20101012000927.GK4607@michelle.cdnetworks.com> <20101012001510.GA6789@troutmask.apl.washington.edu> <20101012002621.GA1554@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="6Nae48J/T25AfBN4" Content-Disposition: inline In-Reply-To: <20101012002621.GA1554@troutmask.apl.washington.edu> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org Subject: Re: recent bge(4) changes causing problems 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, 12 Oct 2010 00:35:13 -0000 --6Nae48J/T25AfBN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Oct 11, 2010 at 05:26:21PM -0700, Steve Kargl wrote: > On Mon, Oct 11, 2010 at 05:15:10PM -0700, Steve Kargl wrote: > > On Mon, Oct 11, 2010 at 05:09:27PM -0700, Pyun YongHyeon wrote: > > > On Mon, Oct 11, 2010 at 05:02:16PM -0700, Steve Kargl wrote: > > > > > > > > troutmask:sgk[204] ping hpc > > > > PING hpc.apl.washington.edu (10.208.78.111): 56 data bytes > > > > ping: sendto: No buffer space available > > > > ping: sendto: No buffer space available > > > > ping: sendto: No buffer space available > > > > ping: sendto: No buffer space available > > > > > > > > > > Would you show me the revision number of if_bge.c/if_bgereg.h? > > > %cd /usr/src/sys/dev/bge > > > %ident if_bge.c if_bgereg.h > > > > > > > if_bge.c: > > $FreeBSD: head/sys/dev/bge/if_bge.c 213587 2010-10-08 17:58:07Z yongari $ > > > > if_bgereg.h: > > $FreeBSD: head/sys/dev/bge/if_bgereg.h 213486 2010-10-06 17:47:13Z yongari > > Note, my old kernel which works fine shows > > troutmask:kargl[202] ident /boot/sgk/kernel | grep bge > $FreeBSD: head/sys/dev/bge/if_bge.c 211596 2010-08-22 01:39:09Z yongari $ > Thanks for the info. I still suspect r213495 might break BCM5704. Due to lack of BCM5704 I still couldn't test it except guessing. How about attached one? --6Nae48J/T25AfBN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="bge.rxprod.patch2" Index: sys/dev/bge/if_bge.c =================================================================== --- sys/dev/bge/if_bge.c (revision 213711) +++ sys/dev/bge/if_bge.c (working copy) @@ -1736,7 +1736,8 @@ RCB_WRITE_4(sc, vrcb, bge_hostaddr.bge_addr_hi, 0); RCB_WRITE_4(sc, vrcb, bge_hostaddr.bge_addr_lo, 0); RCB_WRITE_4(sc, vrcb, bge_maxlen_flags, - BGE_RCB_FLAG_RING_DISABLED); + BGE_RCB_MAXLEN_FLAGS(sc->bge_return_ring_cnt, + BGE_RCB_FLAG_RING_DISABLED)); RCB_WRITE_4(sc, vrcb, bge_nicaddr, 0); bge_writembx(sc, BGE_MBX_RX_CONS0_LO + (i * (sizeof(uint64_t))), 0); --6Nae48J/T25AfBN4--