Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3074239img; Mon, 25 Mar 2019 03:16:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwp4Sgt6TqrH72HYyWgsvedddYHvdffKE+9bkKWeRVNZQHSGY3QwCU99drPdHnuHPDdeUNj X-Received: by 2002:a17:902:9306:: with SMTP id bc6mr23690496plb.59.1553508993301; Mon, 25 Mar 2019 03:16:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553508993; cv=none; d=google.com; s=arc-20160816; b=ic/G7WPw88KxGPL6uHDVhD7WXkC4kqjyEi2wiq1vXfDO2gxz+LNvOxMHlpaNCc046+ WhYDEYltXfXYtMHgJsNNkupqqYo2vule9w/kO+ILfkoDQEM0jvd63yUPjrfT5XHyYIGW 8Oy4und4ilcjIxJ93M2IJBA4u3SSXTL0X2Ah9wFlDraL/zBbR6x9hzM1QJUejeBiKyx/ WOfaTxEfP8iDVx9DcfWlv7oloAsymD7/GyzoKTAjijv45abp7ds6kWz6vphQEhIk4WTN hJLylKolRHpYSqSajUqr6IhaBN5trcJ73jsZNq2NNvkhLJdlLpalZoidi44v2+rjF9Pj CAyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=1fFC9EUR+W8h00sCYRn2eSTkAEWidZVlJoWcRc1YFX0=; b=ukBWoX/LBc+PISUNgzXhuiyV/tBYRsZWDr5LefPmbp3d3IDIeT0onOlHgIHBTnPCOE mQfNqK0Fp1PrmzC75e2+VLWdrvE/M0g59a0Tx70A3But8nfNZ8I7DjFOI52VoSc/CL90 oCBjQj0ga8YxgKnsfUBlLRbz9zuJb1ReUn+76GF4JDQOVRiYxEzY6RN56SK4gQtJoxRV oEcBOz0LCdAhRCzaXBOpzToukLq1C1ReOxUBJIIVdN1o7rpfUpvpqEiR60oqH1rQCqdd XlQaQA6u9voNXaR28xqb47PYf0InWlKErD3XryfRycVWGs82ZH7l5oAH0DgG5PwVEvX5 HCsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si1672908pgq.325.2019.03.25.03.16.18; Mon, 25 Mar 2019 03:16:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730865AbfCYKPT (ORCPT + 99 others); Mon, 25 Mar 2019 06:15:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59052 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730559AbfCYKPR (ORCPT ); Mon, 25 Mar 2019 06:15:17 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 56678307FBCB; Mon, 25 Mar 2019 10:15:17 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-119.pek2.redhat.com [10.72.12.119]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A7AB126562; Mon, 25 Mar 2019 10:15:13 +0000 (UTC) Date: Mon, 25 Mar 2019 18:15:09 +0800 From: Dave Young To: Boris Petkov Cc: Junichi Nomura , "fanc.fnst@cn.fujitsu.com" , "bp@suse.de" , "bhe@redhat.com" , "kasong@redhat.com" , "x86@kernel.org" , "kexec@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2] x86/boot: Use EFI setup data if provided Message-ID: <20190325101509.GA13160@dhcp-128-65.nay.redhat.com> References: <20190322110342.GA16202@jeru.linux.bs1.fc.nec.co.jp> <20190322152328.GD12472@zn.tnic> <20190325002740.GA6637@jeru.linux.bs1.fc.nec.co.jp> <20190325060128.GB9385@dhcp-128-65.nay.redhat.com> <20190325061929.GC9385@dhcp-128-65.nay.redhat.com> <20190325065921.GA11096@dhcp-128-65.nay.redhat.com> <20190325082720.GA20771@jeru.linux.bs1.fc.nec.co.jp> <51D9A7D1-49BF-4679-B102-0FC5AC300C9F@alien8.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51D9A7D1-49BF-4679-B102-0FC5AC300C9F@alien8.de> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Mon, 25 Mar 2019 10:15:17 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/25/19 at 09:54am, Boris Petkov wrote: > On March 25, 2019 9:27:21 AM GMT+01:00, Junichi Nomura wrote: > >On 3/25/19 3:59 PM, Dave Young wrote: > >> On 03/25/19 at 06:47am, Junichi Nomura wrote: > >>> On 3/25/19 3:19 PM, Dave Young wrote: > >>>> On 03/25/19 at 02:01pm, Dave Young wrote: > >>>> I think normally people do not see this bug, because kernel will > >set the > >>>> rsdp in boot_params->acpi_rsdp_addr. Maybe you are testing with > >>> > >>> I think it's only done for file-based kexec interface. > >> > >> Saw Kairui's another reply, yes, kexec-tools need a patch to fill the > >> value as well then. > >> > >> I would vote for a repost of your old patch with some #ifdef > > > >Thanks for comments, Dave, Kairui and Baoquan. > > > >The problem for me is it's a regression in v5.1-rc1, that breaks > >existing setup. If early parsing of RSDP is required only for newly > >supported configuration, I'm fine such configuration requires > >new tools or new options. > > > >This is the 1st version plus #ifdef around the EFI code. > > I'm going to repeat that again until you get it: > > If the kexec kernel should continue to use efi_systab_init() then you > should make efi_get_rsdp_addr() exit early in the kexec-ed kernel. In that way, early parsing will fail in kexeced kernel, am I missing something? The early code become complicated but since we have already the early acpi parsing why not to make it consistent in kexeced kernel? Thanks Dave