From owner-svn-src-all@FreeBSD.ORG Fri May 15 05:21:41 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 A46C8106564A for ; Fri, 15 May 2009 05:21:41 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (backbone.deglitch.com [IPv6:2001:16d8:fffb:4::abba]) by mx1.freebsd.org (Postfix) with ESMTP id 562648FC0A for ; Fri, 15 May 2009 05:21:41 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from DSPAM-Daemon (localhost [127.0.0.1]) by mx0.deglitch.com (Postfix) with SMTP id 5AA448FC51 for ; Fri, 15 May 2009 09:21:40 +0400 (MSD) Received: from orion.SpringDaemons.com (unknown [77.232.3.143]) by mx0.deglitch.com (Postfix) with ESMTPA id 1482C8FC18; Fri, 15 May 2009 09:21:36 +0400 (MSD) Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id 6B8E13982B; Fri, 15 May 2009 09:22:05 +0400 (MSD) Date: Fri, 15 May 2009 09:22:05 +0400 From: Stanislav Sedov To: "M. Warner Losh" Message-Id: <20090515092205.6f6d06fa.stas@FreeBSD.org> In-Reply-To: <20090514.213712.-404854369.imp@bsdimp.com> References: <200905122114.n4CLEag9033208@svn.freebsd.org> <20090514.213712.-404854369.imp@bsdimp.com> Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Fri May 15 09:21:40 2009 X-DSPAM-Confidence: 0.9899 X-DSPAM-Improbability: 1 in 9809 chance of being spam X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4a0cfbe4994295595297431 Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r192027 - head/sys/arm/at91 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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: Fri, 15 May 2009 05:21:41 -0000 On Thu, 14 May 2009 21:37:12 -0600 (MDT) "M. Warner Losh" mentioned: > In message: <200905122114.n4CLEag9033208@svn.freebsd.org> > Stanislav Sedov writes: > : @@ -926,6 +937,7 @@ atestart_locked(struct ifnet *ifp) > : * tell the hardware to xmit the packet. > : */ > : WR4(sc, ETH_TAR, segs[0].ds_addr); > : + BARRIER(sc, ETH_TAR, 8, BUS_SPACE_BARRIER_WRITE); > : WR4(sc, ETH_TCR, segs[0].ds_len); > > Why is a barrier needed here? > Writing the TCR register triggers the transmit, so it had to be written strongly after the TAR register. That's why I added the barrier here. -- Stanislav Sedov ST4096-RIPE !DSPAM:4a0cfbe4994295595297431!