Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1772813yba; Thu, 4 Apr 2019 18:39:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUNYUzGyZzlcn8de8k3xNAoUUvKTRtFI3HFgLTWqVF+WV0eCnVOO3bsqX1uLH88La8hTSK X-Received: by 2002:a17:902:2ac3:: with SMTP id j61mr10080863plb.112.1554428377415; Thu, 04 Apr 2019 18:39:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554428377; cv=none; d=google.com; s=arc-20160816; b=ZL3ZNuftIA6p8lvpsSxV8dONirHJPhQX1pUDl0VIyq+cCeqYC3BDgoSmc9ERhEXhO2 nilBIBdt2swA99taivBP8VPWmK639WexDyXWUcaKn+l0HrqjHTIqaic443yaSO/4w8Cr li2M2JBxESsJZHM6kc2D7f3MTk3M/mvmlzppx8fJhqOF19PRrK2JirXCZ97HJAmwyAqI k37Jnm+REIvMnL6K28BY/tK8dwdU8jUv8EtnifbNkpeky392VZDyMBQqlW43xC5hToiz hULFX8b0yqfZ49KTR/HlW3ySzBK8JqkNFHTrVtwcjFPxZEPNqWz18RHcG7BkSVfGPBT9 Iayg== 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=mHfEZefNtxiIdrogrLgAPJY61GRX2WzcoZwbExEd1TI=; b=h/C48b9wI/+NERi+yMO+yaGyfGys3X9lE6yl7pBIyAJDpxDQYr9FFrL+jsr46ghFTk iAOe7TDkkdhcaAiDAbAVu3/+4xGQM/hYZAij6n6Yv/qnEpFr3iYbBTg5nNghlEb56+N+ KggfNmKZt14jOjqTdsJE1KSRqAkjHadoMyY1ivZwEC9ZTXUngrt+8MGwFO7sI2VG3501 Xi1vBppq6Nq0AEXgicV36Qo1/JuqsPpL6dWDftb+X4s0uadXcub2ZspNUdACmJ33p92N GUIVXKb2fDHU34yjCfNi92jRCZODPORrQbH+Ikiex4Nc36Y4HowWz0uD+42GHI2PrGT3 XL+w== 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 l68si17898352plb.342.2019.04.04.18.39.21; Thu, 04 Apr 2019 18:39:37 -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 S1730665AbfDEBgx (ORCPT + 99 others); Thu, 4 Apr 2019 21:36:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56540 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727053AbfDEBgx (ORCPT ); Thu, 4 Apr 2019 21:36:53 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8037B3084023; Fri, 5 Apr 2019 01:36:53 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-39.pek2.redhat.com [10.72.12.39]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0755260A97; Fri, 5 Apr 2019 01:36:49 +0000 (UTC) Date: Fri, 5 Apr 2019 09:36:45 +0800 From: Dave Young To: Borislav Petkov Cc: Junichi Nomura , "bhe@redhat.com" , "fanc.fnst@cn.fujitsu.com" , "x86@kernel.org" , "kexec@lists.infradead.org" , "kasong@redhat.com" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3] x86/boot: Use efi_setup_data for searching RSDP on kexec-ed kernel Message-ID: <20190405013645.GA8865@dhcp-128-65.nay.redhat.com> References: <20190327014852.GA3659@MiWiFi-R3L-srv> <73322ba9-e436-68db-7863-afd31607d969@ce.jp.nec.com> <20190328064343.GA1877@MiWiFi-R3L-srv> <20190328074337.GA9470@jeru.linux.bs1.fc.nec.co.jp> <20190328155256.GP22720@zn.tnic> <20190402102529.GA21698@jeru.linux.bs1.fc.nec.co.jp> <20190404073233.GC5708@dhcp-128-65.nay.redhat.com> <20190404122425.GC22539@zn.tnic> <20190404141241.GB7789@dhcp-128-65.nay.redhat.com> <20190404144115.GE22539@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190404144115.GE22539@zn.tnic> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Fri, 05 Apr 2019 01:36:53 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/04/19 at 04:41pm, Borislav Petkov wrote: > On Thu, Apr 04, 2019 at 10:12:41PM +0800, Dave Young wrote: > > The early code hang can make people confused, it is hard to > > say what happens and not easy to debug. But if we return 0 then kernel > > just continue to boot, and fail later because of no acpi root pointer, at > > least we can have some kernel boot log. > > Is it clear from that boot log where we failed? The early boot log in compress/*.c is not visible for kexec EFI boot so the log is useless unless serial is usable. the early putstr only works for legacy boot with some ioport outb() callbacks unless serial is available. For EFI boot it does not work, and for kexec, it is even worse because 1st kernel booted with kms mode setting, it is not like the firmware initialized video mode any more when we run kexec reboot.