From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932721AbcLRRXk (ORCPT ); Sun, 18 Dec 2016 12:23:40 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:60925 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932493AbcLRRXi (ORCPT ); Sun, 18 Dec 2016 12:23:38 -0500 Date: Sun, 18 Dec 2016 18:23:35 +0100 From: Pavel Machek To: Lino Sanfilippo Cc: Francois Romieu , bh74.an@samsung.com, ks.giri@samsung.com, vipul.pandya@samsung.com, peppe.cavallaro@st.com, alexandre.torgue@st.com, davem@davemloft.net, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 1/2] net: ethernet: sxgbe: remove private tx queue lock Message-ID: <20161218172335.GA31650@amd> References: <20161209112142.GA22710@amd> <20161211201104.GB20574@amd> <20161215210324.GA13878@amd> <6f43eac8-754b-cfa2-371d-050701deb4cd@gmx.de> <20161217173150.GA20231@amd> <20161218001507.GA5343@electric-eye.fr.zoreil.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > - e1efa87241272104d6a12c8b9fcdc4f62634d447 >=20 > Yep, a sync of the dma descriptors before the hardware gets ownership of = the tx tail > idx is missing in the stmmac, too.=20 Thanks for the hint. Actually, the driver uses smp_wmb() which is completely crazy, and probably misses rmb() in clean_tx, too. Anyway, I did not notice there are dma_ variants, too... we clearly need them. Thanks and best regards, Pavel =09 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --AqsLC8rIMeq19msA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlhWxhcACgkQMOfwapXb+vKZbACghNuLkffoqy3n72Fii5xI2u06 BncAoJd7DHdyoa5J7FOXOn8QaFmH+Lh1 =GaTd -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--