From: Ian Campbell Subject: Re: [RFC 02/14] xen/arm: Remove the parameter "attrindx" in copy_paddr Date: Mon, 17 Mar 2014 12:02:40 +0000 Message-ID: <1395057760.7428.9.camel@kazak.uk.xensource.com> References: <1394640969-25583-1-git-send-email-julien.grall@linaro.org> <1394640969-25583-3-git-send-email-julien.grall@linaro.org> <1394817258.6442.173.camel@kazak.uk.xensource.com> <5323441D.3080404@linaro.org> <1395051181.4122.38.camel@kazak.uk.xensource.com> <5326E220.4090105@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WPWFg-0003SZ-IO for xen-devel@lists.xenproject.org; Mon, 17 Mar 2014 12:02:44 +0000 In-Reply-To: <5326E220.4090105@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, tim@xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Mon, 2014-03-17 at 11:53 +0000, Julien Grall wrote: > Hi Ian, > > On 03/17/2014 10:13 AM, Ian Campbell wrote: > > On Fri, 2014-03-14 at 18:02 +0000, Julien Grall wrote: > >> Hi Ian, > >> > >> On 03/14/2014 05:14 PM, Ian Campbell wrote: > >>> On Wed, 2014-03-12 at 16:15 +0000, Julien Grall wrote: > >>>> copy_addr > >>> > >>> s/copy_p?addr/copy_from_paddr/ throughout the subject and changelog. > >> > >> Right. I will fix it in the next series. > >> > >>>> is only used with BUFFERABLE, there is some place where DEV_SHARED > >>>> was used by mistake. > >>> > >>> A hangover from flash support or something else? > >> > >> I guess, DEV_SHARED was using in few place mainly when Xen is loading a > >> small amount of data. Even before this patch, info->load_attr should > >> have been used. > >> > >> Do you think I need to send a patch for Xen 4.4? > > > > Is it actively harmful or just not ideal? > > From the ARM ARM A3.5.1, we should use Normal memory attribute even for > the flash. For r/o access that does make sense. I expect when programming or sending control commands more cleverness is needed, but we needn't worry here. Good. > I'm not sure what is the behavior when Normal memory is access with > Device memory attribute. It's just pointlessly uncached and strongly ordered I think, so it's a performance hit. Ian.