From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Zyngier Subject: Re: 4.15-rc2 crash on RPi2 in teardown_hyp_mode() Date: Sat, 09 Dec 2017 16:33:58 +0000 Message-ID: <86a7yrsvwp.wl-marc.zyngier@arm.com> References: <45e72322-52dd-4fdb-2e51-176524fb56a8@arm.com> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 7D02B49D66 for ; Sat, 9 Dec 2017 11:30:47 -0500 (EST) Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id roHTdOIPOnTM for ; Sat, 9 Dec 2017 11:30:46 -0500 (EST) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 2889049D27 for ; Sat, 9 Dec 2017 11:30:46 -0500 (EST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu To: Andreas =?ISO-8859-1?Q?F=E4rber?= Cc: Rob Herring , Eric Auger , Andre Przywara , linux-rpi-kernel@lists.infradead.org, "kvmarm@lists.cs.columbia.edu" , "linux-arm-kernel@lists.infradead.org" List-Id: kvmarm@lists.cs.columbia.edu On Sat, 09 Dec 2017 15:48:05 +0000, Andreas F=E4rber wrote: > = > [1 ] > Hi, > = > Am 06.12.2017 um 15:11 schrieb Andre Przywara: > > while trying to boot 4.15-rc1 on my Calxeda Midway I observed a crash > [snip] > = > I'm seeing a possibly related crash in 4.15-rc2 on Raspberry Pi 2. > Using its 4.15-rc2 dtb I see a ton of timer interrupt errors (attached) > and then KVM runs into an error in unmap_hyp_range(): > = > [ 3.974575] kvm [1]: 8-bit VMID > [ 3.977734] kvm [1]: IDMAP page: 401000 > [ 3.981632] kvm [1]: HYP VA range: c0000000:ffffffff > [ 3.987575] kvm [1]: Invalid trigger for IRQ19, assuming level low > [ 3.993864] kvm [1]: kvm_arch_timer: error setting vcpu affinity > [ 4.000174] Unable to handle kernel paging request at virtual address > ae46a000 > [ 4.007470] pgd =3D 6db59d0e > [ 4.010206] [ae46a000] *pgd=3D80000000306003, *pmd=3D00000000 > [ 4.015666] Internal error: Oops: 206 [#1] PREEMPT SMP ARM > [ 4.021181] Modules linked in: > [ 4.024259] CPU: 1 PID: 1 Comm: swapper/0 Not tainted > 4.15.0-rc2-2.gef715eb-lpae #1 > [ 4.031955] Hardware name: BCM2835 > [ 4.035373] task: 27c0e1b0 task.stack: 6730d7bc > [ 4.039936] PC is at unmap_hyp_range+0x130/0x414 > [ 4.044580] LR is at 0x40000000 > [...] > [ 4.273820] [] (unmap_hyp_range) from [] > (free_hyp_pgds+0x10c/0x18c) > [ 4.281965] [] (free_hyp_pgds) from [] > (teardown_hyp_mode+0x28/0x84) > [ 4.290109] [] (teardown_hyp_mode) from [] > (kvm_arch_init+0x324/0x52c) > = > 4.14.3 boots fine on RPi2 with the same dtb. > 4.15-rc2 boots fine on RPi3 with its latest dtb. > = > I'm assuming there's two bugs here, one in the RPi2 dts for the No. Or rather, the RPi bug is to lack a GIC altogether. > arch_timer and that error triggering Andre's kvm teardown bug that > hopefully will be fixed with Marc's patch. Only you can tell. You'll probably need both of these patches: https://lists.cs.columbia.edu/pipermail/kvmarm/2017-December/028864.html https://lists.cs.columbia.edu/pipermail/kvmarm/2017-December/028865.html M. -- = Jazz is not dead, it just smell funny.