From: Ian Campbell Subject: Re: [PATCH v3 03/11] arm: support fewer LR registers than virtual irqs Date: Wed, 14 Mar 2012 09:26:52 +0000 Message-ID: <1331717212.23971.336.camel@zakaz.uk.xensource.com> References: <1330698457-8622-3-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1330698457-8622-3-git-send-email-stefano.stabellini@eu.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: Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , David Vrabel , "Tim Deegan (3P)" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-03-02 at 14:27 +0000, Stefano Stabellini wrote: > @@ -247,6 +256,8 @@ static void __cpuinit gic_hyp_init(void) > GICH[GICH_HCR] = GICH_HCR_EN; > GICH[GICH_MISR] = GICH_MISR_EOI; > + gic.lr_mask = 0ULL; > + INIT_LIST_HEAD(&gic.lr_pending); I'm not sure this is the correct place for this initialisation. In Tim's SMP series he added a call to this from gic_init_secondary_cpu, this made sense to me because until now this function has only initialised the per-CPU GICH registers. However you are now adding a global gic initialiser. I think either this initialisation would be better off in gic_init() or we need a new datastructure for per-CPU git information. Ian.