From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753253AbbC3HQt (ORCPT ); Mon, 30 Mar 2015 03:16:49 -0400 Received: from foss.arm.com ([217.140.101.70]:60119 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752984AbbC3HQs (ORCPT ); Mon, 30 Mar 2015 03:16:48 -0400 Date: Mon, 30 Mar 2015 08:16:13 +0100 From: Marc Zyngier To: AKASHI Takahiro Cc: Kyle McMartin , Catalin Marinas , Will Deacon , Mark Rutland , "linux-arm-kernel@lists.infradead.org" , "linaro-kernel@lists.linaro.org" , "geoff@infradead.org" , "kexec@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "broonie@kernel.org" , "david.griego@linaro.org" , "christoffer.dall@linaro.org" , "freddy77@gmail.com" Subject: Re: [RFC v2 0/5] arm64: kvm: reset hyp context for kexec Message-ID: <20150330081613.60ff7dc0@arm.com> In-Reply-To: <5518A969.3090707@linaro.org> References: <1427358326-3708-1-git-send-email-takahiro.akashi@linaro.org> <20150327153131.GK12400@redacted.bos.redhat.com> <55157920.3050003@arm.com> <20150327174044.GL12400@redacted.bos.redhat.com> <5518A969.3090707@linaro.org> Organization: ARM Ltd X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; arm-unknown-linux-gnueabihf) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 30 Mar 2015 02:39:53 +0100 AKASHI Takahiro wrote: > On 03/28/2015 02:40 AM, Kyle McMartin wrote: > > On Fri, Mar 27, 2015 at 03:37:04PM +0000, Marc Zyngier wrote: > >>> [ 236.260863] Kernel panic - not syncing: HYP panic: > >>> [ 236.260863] PS:600003c9 PC:000003ffffff0830 ESR:0000000096000006 > >> > >> It would be interesting if you could find out what you have at offset > >> 0x830 of hyp-init.o (the stack trace is for EL1, and is not going to > >> help much). > >> > > > > Given the alignment, i'm going to assume i'm looking at the right thing: > > > > 0000000000000820 <__kvm_hyp_reset>: > > 820: d51c2000 msr ttbr0_el2, x0 > > 824: d5033fdf isb > > 828: d50c871f tlbi alle2 > > 82c: d5033f9f dsb sy > > 830: 10000060 adr x0, 83c <__kvm_hyp_reset+0x1c> > > 834: b3403c01 bfxil x1, x0, #0, #16 > > 838: d61f0020 br x1 > > 83c: d53c1000 mrs x0, sctlr_el2 > > > > but it seems fairly implausible to be trapping on ADR x0, 1f... > > > I've never seen this panic on fast model... > > ESR shows that > - Exception class: Data abort taken without a change in Exception level > - Data fault status code: Translation fault at EL2 > > and FAR seems not to be a proper address. ... which is consistent with what we're seeing here (data fault on something that doesn't generate a load/store). I'm pretty sure the page tables are screwed. Have you tested it with 64k pages? Thanks, M. -- Jazz is not dead. It just smells funny. From mboxrd@z Thu Jan 1 00:00:00 1970 From: marc.zyngier@arm.com (Marc Zyngier) Date: Mon, 30 Mar 2015 08:16:13 +0100 Subject: [RFC v2 0/5] arm64: kvm: reset hyp context for kexec In-Reply-To: <5518A969.3090707@linaro.org> References: <1427358326-3708-1-git-send-email-takahiro.akashi@linaro.org> <20150327153131.GK12400@redacted.bos.redhat.com> <55157920.3050003@arm.com> <20150327174044.GL12400@redacted.bos.redhat.com> <5518A969.3090707@linaro.org> Message-ID: <20150330081613.60ff7dc0@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, 30 Mar 2015 02:39:53 +0100 AKASHI Takahiro wrote: > On 03/28/2015 02:40 AM, Kyle McMartin wrote: > > On Fri, Mar 27, 2015 at 03:37:04PM +0000, Marc Zyngier wrote: > >>> [ 236.260863] Kernel panic - not syncing: HYP panic: > >>> [ 236.260863] PS:600003c9 PC:000003ffffff0830 ESR:0000000096000006 > >> > >> It would be interesting if you could find out what you have at offset > >> 0x830 of hyp-init.o (the stack trace is for EL1, and is not going to > >> help much). > >> > > > > Given the alignment, i'm going to assume i'm looking at the right thing: > > > > 0000000000000820 <__kvm_hyp_reset>: > > 820: d51c2000 msr ttbr0_el2, x0 > > 824: d5033fdf isb > > 828: d50c871f tlbi alle2 > > 82c: d5033f9f dsb sy > > 830: 10000060 adr x0, 83c <__kvm_hyp_reset+0x1c> > > 834: b3403c01 bfxil x1, x0, #0, #16 > > 838: d61f0020 br x1 > > 83c: d53c1000 mrs x0, sctlr_el2 > > > > but it seems fairly implausible to be trapping on ADR x0, 1f... > > > I've never seen this panic on fast model... > > ESR shows that > - Exception class: Data abort taken without a change in Exception level > - Data fault status code: Translation fault at EL2 > > and FAR seems not to be a proper address. ... which is consistent with what we're seeing here (data fault on something that doesn't generate a load/store). I'm pretty sure the page tables are screwed. Have you tested it with 64k pages? Thanks, M. -- Jazz is not dead. It just smells funny. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Mon, 30 Mar 2015 08:16:13 +0100 From: Marc Zyngier Subject: Re: [RFC v2 0/5] arm64: kvm: reset hyp context for kexec Message-ID: <20150330081613.60ff7dc0@arm.com> In-Reply-To: <5518A969.3090707@linaro.org> References: <1427358326-3708-1-git-send-email-takahiro.akashi@linaro.org> <20150327153131.GK12400@redacted.bos.redhat.com> <55157920.3050003@arm.com> <20150327174044.GL12400@redacted.bos.redhat.com> <5518A969.3090707@linaro.org> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: AKASHI Takahiro Cc: Mark Rutland , "linaro-kernel@lists.linaro.org" , "christoffer.dall@linaro.org" , "geoff@infradead.org" , Catalin Marinas , Will Deacon , "linux-kernel@vger.kernel.org" , "freddy77@gmail.com" , "broonie@kernel.org" , Kyle McMartin , "kexec@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , "david.griego@linaro.org" On Mon, 30 Mar 2015 02:39:53 +0100 AKASHI Takahiro wrote: > On 03/28/2015 02:40 AM, Kyle McMartin wrote: > > On Fri, Mar 27, 2015 at 03:37:04PM +0000, Marc Zyngier wrote: > >>> [ 236.260863] Kernel panic - not syncing: HYP panic: > >>> [ 236.260863] PS:600003c9 PC:000003ffffff0830 ESR:0000000096000006 > >> > >> It would be interesting if you could find out what you have at offset > >> 0x830 of hyp-init.o (the stack trace is for EL1, and is not going to > >> help much). > >> > > > > Given the alignment, i'm going to assume i'm looking at the right thing: > > > > 0000000000000820 <__kvm_hyp_reset>: > > 820: d51c2000 msr ttbr0_el2, x0 > > 824: d5033fdf isb > > 828: d50c871f tlbi alle2 > > 82c: d5033f9f dsb sy > > 830: 10000060 adr x0, 83c <__kvm_hyp_reset+0x1c> > > 834: b3403c01 bfxil x1, x0, #0, #16 > > 838: d61f0020 br x1 > > 83c: d53c1000 mrs x0, sctlr_el2 > > > > but it seems fairly implausible to be trapping on ADR x0, 1f... > > > I've never seen this panic on fast model... > > ESR shows that > - Exception class: Data abort taken without a change in Exception level > - Data fault status code: Translation fault at EL2 > > and FAR seems not to be a proper address. ... which is consistent with what we're seeing here (data fault on something that doesn't generate a load/store). I'm pretty sure the page tables are screwed. Have you tested it with 64k pages? Thanks, M. -- Jazz is not dead. It just smells funny. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec