From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hT14C-0003Lk-5A for kexec@lists.infradead.org; Tue, 21 May 2019 09:28:17 +0000 Date: Tue, 21 May 2019 17:28:08 +0800 From: Baoquan He Subject: Re: [PATCH] x86/boot: Call get_rsdp_addr() after console_init() Message-ID: <20190521092808.GA3805@MiWiFi-R3L-srv> References: <20190429002318.GA25400@MiWiFi-R3L-srv> <20190429135536.GC2324@zn.tnic> <20190513014248.GA16774@MiWiFi-R3L-srv> <20190513070725.GA20105@zn.tnic> <20190513073254.GB16774@MiWiFi-R3L-srv> <20190513075006.GB20105@zn.tnic> <20190513080653.GD16774@MiWiFi-R3L-srv> <20190514032208.GA25875@dhcp-128-65.nay.redhat.com> <20190517134159.GA13482@zn.tnic> <20190517135030.GB13482@zn.tnic> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190517135030.GB13482@zn.tnic> 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: Borislav Petkov Cc: fanc.fnst@cn.fujitsu.com, kasong@redhat.com, x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, hpa@zytor.com, j-nomura@ce.jp.nec.com, tglx@linutronix.de, Dave Young On 05/17/19 at 03:50pm, Borislav Petkov wrote: > And now as a proper patch: > > --- > From: Borislav Petkov > > ... so that early debugging output from the RSDP parsing code can be > visible and collected. > > Suggested-by: Dave Young > Signed-off-by: Borislav Petkov > Cc: Baoquan He > Cc: Chao Fan > Cc: Jun'ichi Nomura > Cc: Kairui Song > Cc: kexec@lists.infradead.org > Cc: x86@kernel.org > --- > arch/x86/boot/compressed/misc.c | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > > diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c > index c0d6c560df69..24e65a0f756d 100644 > --- a/arch/x86/boot/compressed/misc.c > +++ b/arch/x86/boot/compressed/misc.c > @@ -351,9 +351,6 @@ asmlinkage __visible void *extract_kernel(void *rmode, memptr heap, > /* Clear flags intended for solely in-kernel use. */ > boot_params->hdr.loadflags &= ~KASLR_FLAG; > > - /* Save RSDP address for later use. */ > - boot_params->acpi_rsdp_addr = get_rsdp_addr(); > - > sanitize_boot_params(boot_params); > > if (boot_params->screen_info.orig_video_mode == 7) { > @@ -368,6 +365,14 @@ asmlinkage __visible void *extract_kernel(void *rmode, memptr heap, > cols = boot_params->screen_info.orig_video_cols; > > console_init(); > + > + /* > + * Save RSDP address for later use. Have this after console_init() > + * so that early debugging output from the RSDP parsing code can be > + * collected. > + */ > + boot_params->acpi_rsdp_addr = get_rsdp_addr(); > + > debug_putstr("early console in extract_kernel\n"); Thanks for making this. FWIW, Reviewed-by: Baoquan He _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec