From: Ian Campbell Subject: Re: [PATCH 1/4] arm: disable distributor delivery on boot CPU only Date: Mon, 6 Aug 2012 12:56:19 +0100 Message-ID: <1344254179.11339.29.camel@zakaz.uk.xensource.com> References: <1344252872.11339.27.camel@zakaz.uk.xensource.com> <1344252900-26148-1-git-send-email-ian.campbell@citrix.com> <20120806115516.GA68290@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120806115516.GA68290@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: Stefano Stabellini , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Mon, 2012-08-06 at 12:55 +0100, Tim Deegan wrote: > At 11:34 +0000 on 06 Aug (1344252897), Ian Campbell wrote: > > The secondary processors do not call enter_hyp_mode until the boot CPU > > has brought most of the system up, including enabling delivery via the > > distributor. This means that bringing up secondary CPUs unexpectedly > > disables the GICD again, meaning we get no further interrupts on any > > CPU. > > > > It's not clear that the distributor actually needs to be disabled to > > modify the group registers but it seems reasonable that the bringup > > code should make sure the GICD is disabled even if not doing the > > transition to hyp mode, so move this to the main flow of head.S and > > only do it on the boot processor. > > > > For completeness also disable the GICC (CPU interface) on all CPUs > > too. > > I think that having interrupts disabled is something we can rely on the > bootloader/firmware handling for us, so this should all stay in > mode_switch.S for now, and avoid leaking GIC_* magic constants into > head.S. (Unless you fancy writing a DT parser in assembler :)) Not really ;-) I'll move this back then.