Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp650660yba; Fri, 5 Apr 2019 14:15:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzab3vSBdY14USGXYCwZhm/yd5yrOEB8bTGJR+VbhvhU7DhAhUsj9eLdVyUAzhFFqn1jyEb X-Received: by 2002:a63:fc5a:: with SMTP id r26mr13603068pgk.97.1554498913937; Fri, 05 Apr 2019 14:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554498913; cv=none; d=google.com; s=arc-20160816; b=iEq8mII0SPCNvwOqZQe0kvXY/MNhgwrpICFGp0L8zGQCiffoBsvTqzJixtk/XzpP2Y apXAS2Oj9qNt9Qq7sRUxYm22Un6gjHpxYzq9iFmZxiQxQEvBCtZP/cmf8BlVij9uFkFd pXwsWOzO58+S6ee1a8GIiBz+ARkK4a+jN6cZk/CSiab6vT8dqMiB6FZuNTeQPdi6+Lf1 5MayRLtAjB1f7TtklyVf52tFpDvgGQCkfPySMA8wgby6jg2Ev1QRFQydawZ7+VUkb+mr rB2qWqQC8wfq8UTqS5kLAH05uUDYNGWGd/TTy8I7PubMGt61VD8vG8I6OcoyHJ2RFZsk /O+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=LXG3O8fLfcbCMAR8Mkjw7pYjQ5ZARUo5SMJwJW5sT14=; b=03ggLgTDSGSTwQSY7fAWh6dDltHLpiKvw257kb1cD+CkPoeTBjTEuq3KVZGLKKYCSz qOlWdqb5cJ7Z//4eMmZ8Ze3fEtJONl96GVTpWsltKWtIHE6t6V43i7QQUCwErgTG87AQ 1x6quiPO+qigktHhTLiAjwJe9QJcQpdpFeLXhd0kgcn+M0xhas5V3EWznO1FJ9aHYIy4 dEV4CUmsUxIdTywJC9/qv4cXpBAuM6iJvIcfn/v2uvesXhTziLegJtCJ0LNqwuZiyyJF Fg2XSa6vpt80ffC48A4j/aLgqVnRJBc5j2vtk+eRXR5mTHg7Uw6vkPdweJg0Do4ZziAp kJUA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i33si19351819pgb.99.2019.04.05.14.14.58; Fri, 05 Apr 2019 14:15:13 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726467AbfDEVOC (ORCPT + 99 others); Fri, 5 Apr 2019 17:14:02 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:49943 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfDEVOC (ORCPT ); Fri, 5 Apr 2019 17:14:02 -0400 Received: from p5492e2fc.dip0.t-ipconnect.de ([84.146.226.252] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hCW9t-000520-K2; Fri, 05 Apr 2019 23:13:57 +0200 Date: Fri, 5 Apr 2019 23:13:57 +0200 (CEST) From: Thomas Gleixner To: Jian-Hong Pan cc: Ingo Molnar , Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org, linux@endlessm.com, Daniel Drake Subject: Re: [PATCH] x86/reboot: Use efi reboot for Acer TravelMate X514-51T In-Reply-To: <20190401073514.2785-1-jian-hong@endlessm.com> Message-ID: References: <20190401073514.2785-1-jian-hong@endlessm.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 1 Apr 2019, Jian-Hong Pan wrote: > +/* > + * Some machines require the "reboot=e" commandline options > + */ > +static int __init set_efi_reboot(const struct dmi_system_id *d) > +{ > + if (reboot_type != BOOT_EFI) { > + reboot_type = BOOT_EFI; So if EFI is disabled in the kernel this will fall through to BOOT_BIOS. Is that intended behaviour? > + pr_info("%s series board detected. Selecting %s-method for reboot.\n", > + d->ident, "EFI"); Is thee a reason not to write "EFI" in the string itself? Thanks, tglx