Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6008584ybe; Tue, 10 Sep 2019 12:05:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7c4TLULUwhopTiMZqOMhXND3E+tchrpbMiZkHskKCyxK0IVDYSx0/LOtfwRg9Yjvkw3SM X-Received: by 2002:a17:906:1c46:: with SMTP id l6mr26277441ejg.304.1568142327926; Tue, 10 Sep 2019 12:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568142327; cv=none; d=google.com; s=arc-20160816; b=mG3PyJ/1NMY4jFvojk1HXh5FpEs9t12BakddevCjR7RLLkbF0KnMVvsAqYqJynRAr5 T63SAEj2v8py/iy46cIhrI6bnyjyvDVdlR07RDvtgOIeSsaEF6nllRWEukp8MXeKV146 gpQySjacmQgc/WTAuTvDJlLnhkUACn24OniU6b8ElIZX01LFkAQTi+ApFAPTVykchikO 2rOD1FiygKCDVUemriWkwkp8DVFyILYE1kkvXNmUGlga2gq2gAgJAneHwr3r9eeqPCjT c3onjrF+dt2llp94jzz5WidxjYMtDcH24/uCTcBhKMviR8qyjgGp/yKNy/4T3EoziI4t 3Qug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:subject:cc:to:from :date:user-agent:references:message-id; bh=NKhaE/IRDJSVkuC6a+0YWshmGQc7sjghjkum/UOGBQI=; b=DVPID4So0mnBf+0deL8l07Q/ILRuJGaj2iiyOMRqDRheYRKQuhZg21gOw9ak/471yW XU+4xDUNndFdvItIC1TxvqEGN5hzHfAxdwrIihdXcEK9hr0TzheqvXL7/RKw556mQK6u 3BNLzYYP76zkdQXumxTb1db/YWZ0jktvzfrJknItx02vQxU0YktBtglaPgxQwVsvyWBZ TVW4uGbqx5chy7xmASgQsI/08yYNS1AObKGUzygLdPb5M7aGZ5Z/if74gt0ve3pzHxJU eWwiKqpK4koB/NJ5Dk6CW9INs4nJqhINybBQ55LcydGtUU+Y7WVNl0LDRamRlpIXJINq p50w== 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=hpe.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a30si12195807eda.39.2019.09.10.12.05.03; Tue, 10 Sep 2019 12:05:27 -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=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403851AbfIJOqg (ORCPT + 99 others); Tue, 10 Sep 2019 10:46:36 -0400 Received: from mx0b-002e3701.pphosted.com ([148.163.143.35]:8784 "EHLO mx0b-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbfIJOqf (ORCPT ); Tue, 10 Sep 2019 10:46:35 -0400 Received: from pps.filterd (m0150244.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x8AEfLi0008121; Tue, 10 Sep 2019 14:46:23 GMT Received: from g2t2353.austin.hpe.com (g2t2353.austin.hpe.com [15.233.44.26]) by mx0b-002e3701.pphosted.com with ESMTP id 2uxa9hk75j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Sep 2019 14:46:23 +0000 Received: from stormcage.eag.rdlabs.hpecorp.net (stormcage.eag.rdlabs.hpecorp.net [128.162.236.70]) by g2t2353.austin.hpe.com (Postfix) with ESMTP id 3051C9C; Tue, 10 Sep 2019 14:46:22 +0000 (UTC) Received: by stormcage.eag.rdlabs.hpecorp.net (Postfix, from userid 5508) id 6C884201FCF28; Tue, 10 Sep 2019 09:46:21 -0500 (CDT) Message-Id: <20190910144610.752086970@stormcage.eag.rdlabs.hpecorp.net> References: <20190910144609.909602978@stormcage.eag.rdlabs.hpecorp.net> User-Agent: quilt/0.46-1 Date: Tue, 10 Sep 2019 09:46:16 -0500 From: Mike Travis To: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andrew Morton , Borislav Petkov , Christoph Hellwig Cc: Dimitri Sivanich , Russ Anderson , Hedi Berriche , Steve Wahl , Justin Ernst , x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] x86/platform/uv: Check EFI Boot to set reboot type Content-Disposition: inline; filename=check-efi-boot X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-10_10:2019-09-10,2019-09-10 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 bulkscore=0 priorityscore=1501 phishscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 clxscore=1015 mlxlogscore=999 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1906280000 definitions=main-1909100142 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change to checking for EFI Boot type from previous check on if this is a KDUMP kernel. This allows for KDUMP kernels that can handle EFI reboots. Signed-off-by: Mike Travis Reviewed-by: Steve Wahl Reviewed-by: Dimitri Sivanich --- arch/x86/kernel/apic/x2apic_uv_x.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) --- linux.orig/arch/x86/kernel/apic/x2apic_uv_x.c +++ linux/arch/x86/kernel/apic/x2apic_uv_x.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -1483,6 +1484,14 @@ static void __init build_socket_tables(v } } +/* Check which reboot to use */ +static void check_efi_reboot(void) +{ + /* If EFI reboot not available, use ACPI reboot */ + if (!efi_enabled(EFI_BOOT)) + reboot_type = BOOT_ACPI; +} + /* Setup user proc fs files */ static int proc_hubbed_show(struct seq_file *file, void *data) { @@ -1571,6 +1580,8 @@ static __init int uv_system_init_hubless if (rc >= 0) uv_setup_proc_files(1); + check_efi_reboot(); + return rc; } @@ -1704,12 +1715,7 @@ static void __init uv_system_init_hub(vo /* Register Legacy VGA I/O redirection handler: */ pci_register_set_vga_state(uv_set_vga_state); - /* - * For a kdump kernel the reset must be BOOT_ACPI, not BOOT_EFI, as - * EFI is not enabled in the kdump kernel: - */ - if (is_kdump_kernel()) - reboot_type = BOOT_ACPI; + check_efi_reboot(); } /* --