From owner-svn-src-all@FreeBSD.ORG Mon Nov 23 20:53:52 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F041B106566B for ; Mon, 23 Nov 2009 20:53:52 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by mx1.freebsd.org (Postfix) with ESMTP id A22AB8FC13 for ; Mon, 23 Nov 2009 20:53:52 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 9so1311856qwb.7 for ; Mon, 23 Nov 2009 12:53:52 -0800 (PST) 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=kklH4ERhFSUMoMIkJJWWNZerAa7DWq8wOI1a3rLggQU=; b=OBsTSkmtMuQ7TijmNJ9bVsRLUsKUhuXKDWHyI9scZ9clbGVOeK/YFq1SObPsjLdyF9 YgLH7+mywVlO2q7bR+Sm/D8e/0n+QS40fzLSQ9+PV/AN3xCRe7JUZx+OHHCSe9OH9zOw EnHUZ8643Tk2KdBpZx6yvSCnDsDUEyqQ5I/MI= 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=ld0kKN8kExcPiITpR9sEOTVeHXSA9Nh4CvV/eZ1QzcoUcvTjWA4TlEbAhnT3Vm+xYN srVqgPJqY/6WDBCOhzU5xWo/+s0LTUETf3yB3FcganxNxdvHJGR1dmXB5akHNcWfPCBf 8inDSqsSF2hKXEZFMXX0XzJEpCJudtJtk2Yo4= Received: by 10.224.102.211 with SMTP id h19mr2700261qao.310.1259009631981; Mon, 23 Nov 2009 12:53:51 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 2sm13269996qwi.27.2009.11.23.12.53.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 23 Nov 2009 12:53:51 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Mon, 23 Nov 2009 12:53:24 -0800 From: Pyun YongHyeon Date: Mon, 23 Nov 2009 12:53:24 -0800 To: Joerg Sonnenberger Message-ID: <20091123205324.GC1214@michelle.cdnetworks.com> References: <200911222050.nAMKoRYh029141@svn.freebsd.org> <20091123010511.GA14572@britannica.bec.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091123010511.GA14572@britannica.bec.de> User-Agent: Mutt/1.4.2.3i Cc: svn-src-all@freebsd.org Subject: Re: svn commit: r199670 - head/sys/dev/bge X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Nov 2009 20:53:53 -0000 On Mon, Nov 23, 2009 at 02:05:11AM +0100, Joerg Sonnenberger wrote: > On Sun, Nov 22, 2009 at 08:50:27PM +0000, Pyun YongHyeon wrote: > > Log: > > Fix two long standing bugs on bge(4). Most pre BCM5755 controllers > > have a DMA bug when buffer address crosses a multiple of the 4GB > > boundary(e.g. 4GB, 8GB, 12GB etc). > > Does this only affect transfers that *cross* a 4GB boundary or does it > also affect transfers that *end* at a 4GB boundary? E.g. if the mbuf > cluster starts at 0xffffff00 with size 0x100 -- will the DMA engine > stall happen or not? > AFAIK publicly available datasheet explicitly mentions 4GB boundary limitation(page 153). For BCM5704 case, the datasheet also says buffer descriptors that ends exactly on any multiple of 4GB, BCM5704 will generate host address overflow error even though the buffer descriptor does not actually cross over the 4GB boundary (page 213). I have no idea how to address this specific issue on BCM5704 except allocating more size than needed descriptor size though. > Joerg