From: Ian Campbell Subject: Re: [PATCH v3 04/13] xen: arm: add a quirk to handle platforms with unusual GIC layout Date: Mon, 25 Nov 2013 12:36:40 +0000 Message-ID: <1385383000.22002.50.camel@kazak.uk.xensource.com> References: <1385377561.22002.22.camel@kazak.uk.xensource.com> <1385377625-20250-4-git-send-email-ian.campbell@citrix.com> <529343E2.5070100@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <529343E2.5070100@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: pranavkumar@linaro.org, stefano.stabellini@eu.citrix.com, tim@xen.org, Anup Patel , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Mon, 2013-11-25 at 12:34 +0000, Julien Grall wrote: > > + if ( platform_has_quirk(PLATFORM_QUIRK_GIC_64K_STRIDE) ) > > + ret = map_mmio_regions(d, d->arch.vgic.cbase + PAGE_SIZE, > > + d->arch.vgic.cbase + (2 * PAGE_SIZE) - 1, > > + gic.vbase + PAGE_SIZE); > > + else > > + ret = map_mmio_regions(d, d->arch.vgic.cbase + PAGE_SIZE, > > + d->arch.vgic.cbase + (2 * PAGE_SIZE) - 1, > > + gic.vbase + 16*PAGE_SIZE); > > The condition needs to be inverted here ... the CPU second page is at > 64K only on platform where the quirk is enabled. Doh! Shows how much use Linux makes of the secnd page of registers (i.e. none!) Ian.