From: "Jan Beulich" Subject: Re: [xen-unstable test] 11946: regressions - FAIL Date: Mon, 07 May 2012 14:34:24 +0100 Message-ID: <4FA7EB80020000780008204B@nat28.tlf.novell.com> References: <1329216291.31256.207.camel@zakaz.uk.xensource.com> <1332844592.25560.9.camel@zakaz.uk.xensource.com> <4FA437E7.6040105@citrix.com> <4FA79F9F0200007800081F5F@nat28.tlf.novell.com> <4FA7B6EF.9030403@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4FA7B6EF.9030403@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper , AP Cc: "Keir (Xen.org)" , Daniel De Graaf , "xen-devel@lists.xensource.com" , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org >>> On 07.05.12 at 13:50, Andrew Cooper wrote: > On 07/05/2012 09:10, Jan Beulich wrote: >>>>> On 05.05.12 at 02:21, AP wrote: >>> (XEN) *** IRQ BUG found *** >>> (XEN) CPU0 -Testing vector 236 from bitmap >> 236 = 0xec = FIRST_LEGACY_VECTOR + 0x0c, i.e. an IRQ12 coming >> in through the 8259A. Something fundamentally fishy must be going >> on here, and I would suppose the code in question shouldn't even be >> reached for legacy vectors. >> >> Furthermore, calling dump_irqs() from the debugging code with >> desc->lock still held makes it impossible to get full output, as that >> function wants to lock all initialized IRQ descriptors. > > Yes - it has been vector 236 on each of the 3 reported failures from AP, > and I believe it was also vector 236 in the one case I managed to > reproduce the issue. > > However, once we have set up the IO-APIC, the 8259A should not be used > any more. The boot dmeg shows that io_ack_method is indeed "old" (which > was going to be my first suggestion), and that EOI Broadcast Suppression > is enabled, which I have already identified as a source of problems for > some customers. As a 'fix', I provided the ability for > "io_ack_method=new" to prevent EOI Broadcast Suppression being enabled. > This was upstreamed in c/s 24870:9bf3ec036bef, but apparently has not > completely fixed the customer problems - just made it substantially more > rare. > > AP: Can you manually invoke the 'i' debug key and provide that - it will > help to see how Xen is setting up the IO-APIC(s) on your system. Seeing the 'z' output might also be helpful, especially to see whether any of the IO-APICs' RTEs is an ExtINT one. Further, checking that no 8259A IRQ got (or was left) enabled for some reason might be useful as well (cached_irq_mask plus the raw port 0x21 and 0xA1 values). In any case the debugging code's locking should be fixed. Jan