From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754596AbbFWJDz (ORCPT ); Tue, 23 Jun 2015 05:03:55 -0400 Received: from smtprelay.synopsys.com ([198.182.47.9]:40955 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932093AbbFWJDo (ORCPT ); Tue, 23 Jun 2015 05:03:44 -0400 Message-ID: <558920DD.6010505@synopsys.com> Date: Tue, 23 Jun 2015 14:33:25 +0530 From: Vineet Gupta User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 Newsgroups: gmane.linux.kernel.cross-arch,gmane.linux.kernel To: Will Deacon , Vineet Gupta CC: "Peter Zijlstra (Intel)" , lkml , "linux-arch@vger.kernel.org" , "arc-linux-dev@synopsys.com" Subject: Re: [PATCH v2 20/28] ARCv2: barriers References: <20150622133656.GG1583@arm.com> <1435046283-2073-1-git-send-email-vgupta@synopsys.com> <20150623084905.GE31504@arm.com> In-Reply-To: <20150623084905.GE31504@arm.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.12.197.3] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Will, On Tuesday 23 June 2015 02:19 PM, Will Deacon wrote: >> +/* >> > + * MMIO can also get buffered/optimized in micro-arch, so barriers needed >> > + * Based on ARM model for the typical use case >> > + * >> > + * >> > + * >> > + * or: >> > + * >> > + * > The writel_relaxed/readl_relaxed parts here would actually just be > bog-standard loads and stores to an in-memory buffer. I was trying too hard > to show the barrier semantics and accidentally turned the DMA buffers into > __iomem regions. Not sure if I follow you completely :-) IMHO, It doesn't matter if we are dealing with a typical DMA buffer (cached) or a buffer descriptor (typically uncached unless there's hardware IO-coh or some such). Both the cases assume a vanilla ld/st to buffer (using relaxed API) with a surrounding MMIO access. > > If you fix the comment: Does this look better ? - * + * > > Reviewed-by: Will Deacon > > Sorry for messing you about. NP. -Vineet