From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from wolverine02.qualcomm.com ([199.106.114.251]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WJ3D0-00024w-HP for ath10k@lists.infradead.org; Thu, 27 Feb 2014 15:49:15 +0000 From: Kalle Valo Subject: Missing memory barriers References: <871tzq210z.fsf@kamboji.qca.qualcomm.com> Date: Thu, 27 Feb 2014 17:48:46 +0200 In-Reply-To: (Avery Pennarun's message of "Sun, 9 Feb 2014 03:00:45 -0500") Message-ID: <8738j4ftep.fsf_-_@kamboji.qca.qualcomm.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath10k" Errors-To: ath10k-bounces+kvalo=adurom.com@lists.infradead.org To: Avery Pennarun Cc: Adrian Chadd , "ath10k@lists.infradead.org" Hi Avery, starting a new thread about memory barriers: Avery Pennarun writes: > On Wed, Jan 29, 2014 at 9:41 PM, Avery Pennarun wrote: > > - there are definitely some missing memory barriers in here; in a few > cases you can clearly see a write getting done before the read that > came before it. Looking at the definitions for iowrite32 and > ioread32, and for rmb() and wmb(), we can see that the use of rmb() > and wmb() do not work properly (at least on ARM) when you care about > the ordering between reads and writes. However, I don't think this > actually causes the problem. Can you tell more about this, please? Did you find out where we are actually doing it wrong? -- Kalle Valo _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k