From: Chen Baozi Subject: Re: Trying Xen on APM Date: Wed, 26 Mar 2014 20:38:50 +0800 Message-ID: <9702BFA6-B853-40CA-B9C4-E70AAFD07841@gmail.com> References: <00CCD711-AF08-44AD-B16C-8328C406EB7B@gmail.com> <1395405629.19839.30.camel@kazak.uk.xensource.com> <85F4B2B2-0ACF-42A5-9F0B-CD035D8C49E4@gmail.com> <1395416537.19839.158.camel@kazak.uk.xensource.com> <198BA0FF-95CE-4AB8-9997-86E49A3631B2@gmail.com> <1395418902.19839.171.camel@kazak.uk.xensource.com> <09DD87FC-F59B-4C4C-835D-CC22AC084C93@gmail.com> <1395501407.2234.107.camel@hastur.hellion.org.uk> <747F50C7-48F9-4884-99D5-435CABB5B838@gmail.com> <1395826827.22808.14.camel@kazak.uk.xensource.com> Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1395826827.22808.14.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: Ian Campbell Cc: Wookey , Pranavkumar Sawargaonkar , Anup Patel , List Developer Xen List-Id: xen-devel@lists.xenproject.org CC to the related guys. On Mar 26, 2014, at 17:40, Ian Campbell wrote: > On Wed, 2014-03-26 at 16:53 +0800, Chen Baozi wrote: >> I found an interesting phenomenon on APM machine. When I was using >> Xen + dom0 kernel to boot the machine, the dom0 kernel seems not to >> be able to handle the interrupt from PKA of the SoC. > = > Not sure what the PKA is -- perhaps I don't have a driver for it. Please > could you take this to the devel mailing list and CC the APM guys > (Pranav and Anup). I guess PKA is short for =93Private Key Accelerator=94? The driver is included in the kernel offered by Wookey. And I think Xen would just pass all the device related work (except the serial console) to dom0. So it should be something wrong when the hypervisor deal with the interrupt, for there won=92t be such a problem if I use the same kernel on bare-metal machine. (For those people who don=92t received the previous conversation, here is the OOPS message below) irq 99: nobody cared (try booting with the "irqpoll" option) CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.12.0-mustang_sw_1.11.09-beta+ #2 Call trace: [] dump_backtrace+0x0/0x12c [] show_stack+0x14/0x1c [] dump_stack+0x70/0x90 [] __report_bad_irq+0x38/0xe4 [] note_interrupt+0x1f8/0x254 [] handle_irq_event_percpu+0x108/0x188 [] handle_irq_event+0x44/0x70 [] handle_fasteoi_irq+0xb0/0x150 [] generic_handle_irq+0x34/0x4c [] handle_IRQ+0x5c/0xcc [] gic_handle_irq+0x3c/0x88 Exception stack(0xffffffc03a87f9b0 to 0xffffffc03a87fad0) f9a0: 009fbc80 ffffffc0 00000001 000000= 00 f9c0: 3a87faf0 ffffffc0 000d1e1c ffffffc0 0099f090 ffffffc0 0099f090 ffffff= c0 f9e0: 00000000 00000000 00000000 00000000 00000001 00000000 003c0944 ffffff= c0 fa00: 00000001 00000000 000000ee 00000000 6c6c7566 6e492079 00000002 000000= 00 fa20: 00000080 00000000 00000024 00000000 00000058 00000000 000033f8 000000= 00 fa40: 00000000 00000000 00000002 00000000 deadbeef 00000000 00000007 000000= 00 fa60: 0000000e 00000000 009fbc80 ffffffc0 00000001 00000000 0099f000 ffffff= c0 fa80: 00000004 00000000 00000000 00000000 00000100 00000000 00000031 000000= 00 faa0: 00000000 00000000 00000031 00000000 009fc5d8 ffffffc0 3a87faf0 ffffff= c0 fac0: 000d1f1c ffffffc0 3a87faf0 ffffffc0 [] el1_irq+0x6c/0xc0 [] printk+0x74/0x7c [] apm_pka_probe+0x1ec/0x200 [] platform_drv_probe+0x18/0x20 [] really_probe+0xf4/0x210 [] __driver_attach+0xa4/0xa8 [] bus_for_each_dev+0x58/0x98 [] driver_attach+0x20/0x28 [] bus_add_driver+0x1cc/0x280 [] driver_register+0x68/0x130 [] __platform_driver_register+0x60/0x68 [] apm_pka_driver_init+0x1c/0x24 [] do_one_initcall+0xdc/0x124 [] kernel_init_freeable+0x1a0/0x240 [] kernel_init+0x18/0x148 handlers: [] apm_pka_irq_handler Disabling IRQ #99 Cheers, Baozi