From: Ian Campbell Subject: Re: [PATCH 1/4] arm: remove incorrect dcache flush at start of day. Date: Tue, 23 Apr 2013 10:35:24 +0100 Message-ID: <1366709724.20256.78.camel@zakaz.uk.xensource.com> References: <1366648964.20256.24.camel@zakaz.uk.xensource.com> <1366648985-26435-1-git-send-email-ian.campbell@citrix.com> <517576D8.6090304@citrix.com> <1366706555.20256.46.camel@zakaz.uk.xensource.com> <20130423085713.GC7118@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130423085713.GC7118@ocelot.phlegethon.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: Tim Deegan Cc: Julien Grall , Stefano Stabellini , Sengul Thomas , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Tue, 2013-04-23 at 09:57 +0100, Tim Deegan wrote: > At 09:42 +0100 on 23 Apr (1366710155), Ian Campbell wrote: > > On Mon, 2013-04-22 at 18:43 +0100, Julien Grall wrote: > > > On 04/22/2013 05:43 PM, Ian Campbell wrote: > > > > > > > flush_xen_dcache flushes by virtual address and at this point boot_ttbr > > > > contains a physical address. > > > > > > I think this part of the comment is wrong. flush_xen_dcache will flush > > > the address of boot_ttbr, not the one contains in the variable. > > > > Ah yes. this is a macro which takes &argument and flushes that. > > > > However the global variable boot_ttbr is also part of the following > > flush_xen_dcache_va_range so I think the removal itself is correct > > I don't think the removal is correct. This is the _unrelocated_ copy of > boot_ttbr we're flushing here, and we do mean to flush the variable > itself, for the benefit of the other CPUs which will use it when they > turn on paging. Ah, that makes sense. I'll drop this patch. Ian.