From: Ian Campbell Subject: Re: [PATCH v7 0/5] xen/arm: Add GICv3 support Date: Wed, 16 Jul 2014 14:32:44 +0100 Message-ID: <1405517564.16617.5.camel@kazak.uk.xensource.com> References: <1405083092-20216-1-git-send-email-vijay.kilari@gmail.com> <1405506920.7019.63.camel@kazak.uk.xensource.com> <1405514295.14331.6.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1405514295.14331.6.camel@kazak.uk.xensource.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: Vijay Kilari Cc: Stefano Stabellini , Prasun Kapoor , Vijaya Kumar K , Julien Grall , Tim Deegan , "xen-devel@lists.xen.org" , Stefano Stabellini , manish.jaggi@caviumnetworks.com List-Id: xen-devel@lists.xenproject.org On Wed, 2014-07-16 at 13:38 +0100, Ian Campbell wrote: > On Wed, 2014-07-16 at 17:17 +0530, Vijay Kilari wrote: > > On Wed, Jul 16, 2014 at 4:05 PM, Ian Campbell wrote: > > > On Fri, 2014-07-11 at 18:21 +0530, vijay.kilari@gmail.com wrote: > > >> Add GICv3 support for arm64 platform. > > > > > > I get lots of: > > > {standard input}:1476: Error: unknown or missing system register name at operand 1 -- `msr ICH_VMCR_EL2,x1' > > > > > > I'm using: > > > $ aarch64-linux-gnu-gcc --version > > > aarch64-linux-gnu-gcc (crosstool-NG linaro-1.13.1-4.8-2014.04 - Linaro GCC 4.8-2014.04) 4.8.3 20140401 (prerelease) > > > > > > Do you have a pointer to a toolchain which can build this stuff? > > > > I am using our internal toolchain based on GCC version 4.7 > > OK. We really ought to find some publicly available toolchain before > accepting this code. Or else we need to make gic v3 functionality depend > on the toolstack, which would suck. > > I'm going to see if the Linaro 4.9 gcc will do it. Sadly not. Mark Rutland pointed me to the workaround which Linux uses: https://git.kernel.org/cgit/linux/kernel/git/maz/arm-platforms.git/tree/include/linux/irqchip/arm-gic-v3.h?h=gicv3/base&id=1545387f2ca2e51f5ccd3ed764348ee41e15c02f#n143 Which AFAICT works with at least Linaro's gcc 4.8 and 4.9. So I think we'll have to go down this route. Please could you make sure that this series compiles with the gcc from either http://releases.linaro.org/14.04/components/toolchain/binaries or http://releases.linaro.org/14.06/components/toolchain/binaries Presumably this will mostly be a case of adding the defines to xen/include/asm-arm/sysregs.h. Thanks, Ian.