Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2561200yba; Sun, 7 Apr 2019 23:01:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxHOzHgX4JpoFps1jVyyTsv/ahEstYHDLAE5mx1avZMWKDHYTVJuZw9c5dfY4fxqQ4eSkGG X-Received: by 2002:a63:e042:: with SMTP id n2mr15440779pgj.45.1554703306892; Sun, 07 Apr 2019 23:01:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554703306; cv=none; d=google.com; s=arc-20160816; b=gvhYCf1lUK8EZV/95xBiXSL15YuoeC1MyhiVoMIcBX80PaP1VMxDXWs2wegYAegsNT RVfYIND3aPNPAVG9C5kFiGftGkeY12BUFif45h4/X9/G2YVE+UavLzW/lyWwDcoqmz3O d0Vzp63W7bSPcbeuojsYPn9PPfsxcdank1aha8HL50qJQy2M8fVNkgaA51jAhYmI+Gpt IbQBVueSMx+wRK458I9FU6v+Ch7Lm/Zzht0aRQTpsvl7sZZ8sjVZjCYFio6hzLnNjXEN CgHI0a6Z7FuPlpgGUG8ILZMJQhRXunj8WXULtBsx0hPyoUrDTzX0vIZUAMzIPfobSns0 ARYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Ceow9Kpb34qDt2aDmbMOWfiag3sBsLRqN1Tc1/CJTcQ=; b=titulnWElGNFJKRYqu+w63DovRndKNXu2htgJ/yFu0Uazt50NvpY69GaeOitU6mLCU Rutm2h6nAZ78P8/i/uUShcZcYZpaZQOZdeWmpDNKP5t/x8PEsHYuvlryk8XHzpyfbrIG pzqLOOvQlliWLc/FwjFlgrUqDaay/QrlcEYav0t84soaa2rBoISmh8D83kMbx39umK1i n4nnseg7Bxj91AlrPnepR7rlH2qJLhVhJqglRIq+6Um19JVNKqXHaHl0tUHOXqLb9D1y AYBu8fAK2sOaz8daRaDSVf4VMXhrDevKI6AsRfYWtOtpqxiIXNLrye+LhM+SdnAiLRnv EFLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=oYMK8rZT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g20si25033885pfh.226.2019.04.07.23.01.31; Sun, 07 Apr 2019 23:01:46 -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; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=oYMK8rZT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726532AbfDHGAm (ORCPT + 99 others); Mon, 8 Apr 2019 02:00:42 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:38813 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726349AbfDHGAl (ORCPT ); Mon, 8 Apr 2019 02:00:41 -0400 Received: by mail-vs1-f68.google.com with SMTP id s2so6882905vsi.5 for ; Sun, 07 Apr 2019 23:00:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Ceow9Kpb34qDt2aDmbMOWfiag3sBsLRqN1Tc1/CJTcQ=; b=oYMK8rZTl+tyGBbB4LvAhRJNhT+gCel7rYEOqeKkBvE/WNMP1e5t4F6ggTJYZ9WORa /lWF6/+bJyT3KLQBWATAgsc9+Kmk00jmxtEIOl2zKvbwx+MeiBf4buFW2hIJU+TNbpVr VcvZswTd9hXzAPE714dzhZIEBysb0jUqoWn2xUxpY1KqkkaYMk+9h8cxHvW/lV3nkJ+h hxleMGagV81qJGLsBRoMKdvssXXssD3pErPrvEEO1Qi+aiXNUZFDqlYMYTSAT9oQuYY/ WQIxgtqOH/GWQySOaX/IZqNQfgS6J4YriPGAYQf37v8L/PuyQI8VelYZJ4IOmknI/thL +v5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Ceow9Kpb34qDt2aDmbMOWfiag3sBsLRqN1Tc1/CJTcQ=; b=kQMzhwvO8jTgTz2JWMXA6U0rOvNwBm7nHSZViEPtEXy3cyxNAmJsA/lOnGdceSd6G6 cM7S6hJNRGJM1EPbI8SMg4NueqkoPEPdJq6ZY5iUwYG7XL3STde8TkND2cZUwjgl4gS7 egotKZVku2LAKuWwG1NBmNZcXal4sLpain6SqUNIECZkdOhOZNFyLh6evRV0bqPL4kuG 89XfxQYuM4RgV97tE9tbwlyF3xeotKKsnnU2i+CVGJBhZgXkoKe09IxPaW/mKXQRW35Q VX43xrcsWzd670hOtCwZrGCMSzIw2WdvzvLaRRvtRY4AaESx3zE7k1ctz3XKy6VWzWxa ZkOg== X-Gm-Message-State: APjAAAWJF9V/THhbF3uz5Gd6UasSJH59oF8xECsvP/H4EyHkjRfszVIe IkLbFboRUSfLazVfERHEI17/pQ5Vpxo98llCk5dtpA== X-Received: by 2002:a67:f402:: with SMTP id p2mr15491656vsn.130.1554703240519; Sun, 07 Apr 2019 23:00:40 -0700 (PDT) MIME-Version: 1.0 References: <20190401073514.2785-1-jian-hong@endlessm.com> In-Reply-To: From: Jian-Hong Pan Date: Mon, 8 Apr 2019 14:02:14 +0800 Message-ID: Subject: Re: [PATCH] x86/reboot: Use efi reboot for Acer TravelMate X514-51T To: Thomas Gleixner Cc: Ingo Molnar , Borislav Petkov , x86@kernel.org, Linux Kernel , Linux Upstreaming Team , Daniel Drake Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thomas Gleixner =E6=96=BC 2019=E5=B9=B44=E6=9C=886=E6= =97=A5 =E9=80=B1=E5=85=AD =E4=B8=8A=E5=8D=885:14=E5=AF=AB=E9=81=93=EF=BC=9A > > On Mon, 1 Apr 2019, Jian-Hong Pan wrote: > > +/* > > + * Some machines require the "reboot=3De" commandline options > > + */ > > +static int __init set_efi_reboot(const struct dmi_system_id *d) > > +{ > > + if (reboot_type !=3D BOOT_EFI) { > > + reboot_type =3D BOOT_EFI; > > So if EFI is disabled in the kernel this will fall through to BOOT_BIOS. = Is > that intended behaviour? If not choose EFI as the reboot type, system will use APCI reboot type on Acer TravelMate X514-51T. If the reboot type is set as BIOS by appending "reboot=3Db", system cannot reboot and hangs up when shutdown. > > + pr_info("%s series board detected. Selecting %s-method fo= r reboot.\n", > > + d->ident, "EFI"); > > Is thee a reason not to write "EFI" in the string itself? Just simply follow the format like functions: set_acpi_reboot, set_bios_reb= oot https://elixir.bootlin.com/linux/v5.1-rc4/source/arch/x86/kernel/reboot.c#L= 60 BR, Jian-Hong Pan