From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH] xen/arm: gic-v3: Implement correctly the callback send_SGI Date: Fri, 8 May 2015 15:02:22 +0100 Message-ID: <1431093742.2660.469.camel@citrix.com> References: <1430159464-24599-1-git-send-email-julien.grall@citrix.com> <553F616A.3020008@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YqirE-0003I3-9F for xen-devel@lists.xenproject.org; Fri, 08 May 2015 14:02:28 +0000 In-Reply-To: <553F616A.3020008@citrix.com> 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, Chen Baozi , tim@xen.org, stefano.stabellini@citrix.com, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Tue, 2015-04-28 at 11:31 +0100, Julien Grall wrote: > Hi Stefano, > > On 28/04/15 11:00, Stefano Stabellini wrote: > > On Mon, 27 Apr 2015, Julien Grall wrote: > >> diff --git a/xen/include/asm-arm/gic_v3_defs.h b/xen/include/asm-arm/gic_v3_defs.h > >> index b8a1c2e..556f114 100644 > >> --- a/xen/include/asm-arm/gic_v3_defs.h > >> +++ b/xen/include/asm-arm/gic_v3_defs.h > >> @@ -147,7 +147,7 @@ > >> > >> #define ICH_SGI_IRQMODE_SHIFT 40 > >> #define ICH_SGI_IRQMODE_MASK 0x1 > >> -#define ICH_SGI_TARGET_OTHERS 1 > >> +#define ICH_SGI_TARGET_OTHERS 1UL > > > > Spurious change? > > No, this was a mistake when the GICv3 driver has been imported. The > IRQMODE bit is 40 and 1 << 40 would throw the error: > > gic-v3.c:847:9: error: left shift count >= width of type [-Werror] > WRITE_SYSREG(ICH_SGI_TARGET_OTHERS << ICH_SGI_IRQMODE_SHIFT | > ^ I think you want 1ULL then so it is definitely always 64-bit.