Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2037499ybh; Fri, 17 Jul 2020 07:52:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsH7LbO9Wed4B8bKV9WWuPUvlsC5waCL0t0N8IN2L1h2lE19svM1WKTFR1Q4lkcPWMeTuj X-Received: by 2002:a50:c044:: with SMTP id u4mr10068596edd.366.1594997522801; Fri, 17 Jul 2020 07:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594997522; cv=none; d=google.com; s=arc-20160816; b=Frcn8U10tYyDlilF3xS4+pDmImcFVJ5/JtE6hiyMTLOZpSaRg9jedW08VWXtQVCWPw 1QyhTSeqZZmaMdpKiIJunIYAw3tV75mSVDrPB9FZc5z6X5HAQbS2DDzm26Xg6AbPvtnr i/QBvu00c0J1UrHVu7C8/sm0KtmiWJIZrkqKPgfWGjtijlmilcMuT8rrqYuztcUrU3sy Pt47u+L7y5A+VvPcKuEr7NzD3v7H4gwx5oQqlHwyr0uV3QPJyrPXjSkp68CHzB3bfgJH IZ0HSMUpbM3PSFa2dUiJMUh6MZVo/QdRLt2M7/DOHagf9q1ynZMHw7lhvBnziaIuuxmz /qYA== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=PQqyKN2xfH3m7OlTlBc/MA5x2Nb6zrzqzw00WX7Wec8=; b=Hbj95rCS66nMCFtOKfRNIpjioREziIxIAk7n/y/J/MpdurSVa+uG7KmHwk79ibVXHE guqtlRySVDpvUhAojTzCMOnuDQtqfiLwr70zVTN5QzyLXd/y90OSDdoQJTsInqQPwV7V i49O7PAnUE+UAAc+GC8B2KNaXgnt56noLNQFi7Sk8n0zjH7tKkuKBlMQkvpuxecVie3z LBjC70Fvy9lwHDTXHdxeuaKkrhXn/5/FqP70wDTh90WC8bjGZ6oVPf1bp+g8J1asjKTD kefk3BYa6DC513RJuj02l/YGut3lRXBkwYPyy4sYy+MLJ0ko9fN16aG4ySR2fqwna5W1 JP3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=IDpVDRws; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id va7si5256956ejb.55.2020.07.17.07.51.38; Fri, 17 Jul 2020 07:52:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=IDpVDRws; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727794AbgGQOvS (ORCPT + 99 others); Fri, 17 Jul 2020 10:51:18 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:41152 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726856AbgGQOvL (ORCPT ); Fri, 17 Jul 2020 10:51:11 -0400 Date: Fri, 17 Jul 2020 14:51:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1594997468; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PQqyKN2xfH3m7OlTlBc/MA5x2Nb6zrzqzw00WX7Wec8=; b=IDpVDRwsmBU/elGGR1+CKDQfF0ALIRWtmBYe8jcpxc9D5qHV3XYzsS0+Cwcggn+5ro8KJn kfChthRlgLJ3YnL7+aJ4kE+smQDOD5Wm7F9WaPSD7Ich7pHbM391RIl770Gpt+dcG3if9F kAMMSHsQf6f106OGcmUCLyubBAWkP75VEzUAcHrZMMDtUkowbGUbVSeZOqZcbBTq3fVZ4z gRO0qU/8yB8AQCgM9QvAOfNu4v3MR6w6Woi+8n6fHwxWvrAYZLMxsUH8VJXzFo3vHlMc9x IRMZxVA8LUKE+XAVs11mX+bFBJR3+ITzEHsluZbvKlDdNoAOiAoopPwA/6WojQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1594997468; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PQqyKN2xfH3m7OlTlBc/MA5x2Nb6zrzqzw00WX7Wec8=; b=ntrlp5XRbEwE8j0NWzPzqAdY3JHNekeybgnVGTqeKYCbVkNnvTPKdLMdQgijCombrUa26Z 2zWNwSs+QIW2L8Dg== From: "tip-bot2 for steve.wahl@hpe.com" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/platform] x86/efi: Remove unused EFI_UV1_MEMMAP code Cc: Steve Wahl , Thomas Gleixner , Ard Biesheuvel , x86 , LKML In-Reply-To: <20200713212956.019149227@hpe.com> References: <20200713212956.019149227@hpe.com> MIME-Version: 1.0 Message-ID: <159499746650.4006.15958852805586049775.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam: Yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/platform branch of tip: Commit-ID: 3bcf25a40b018e632d70bb866d75746748953fbc Gitweb: https://git.kernel.org/tip/3bcf25a40b018e632d70bb866d75746748953fbc Author: steve.wahl@hpe.com AuthorDate: Mon, 13 Jul 2020 16:30:07 -05:00 Committer: Thomas Gleixner CommitterDate: Fri, 17 Jul 2020 16:47:48 +02:00 x86/efi: Remove unused EFI_UV1_MEMMAP code With UV1 support removed, EFI_UV1_MEMMAP is no longer used. Signed-off-by: Steve Wahl Signed-off-by: Thomas Gleixner Reviewed-by: Ard Biesheuvel Link: https://lkml.kernel.org/r/20200713212956.019149227@hpe.com --- arch/x86/include/asm/efi.h | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/arch/x86/include/asm/efi.h b/arch/x86/include/asm/efi.h index e7d2ccf..b9c2667 100644 --- a/arch/x86/include/asm/efi.h +++ b/arch/x86/include/asm/efi.h @@ -22,17 +22,7 @@ extern unsigned long efi_fw_vendor, efi_config_table; * * This is the main reason why we're doing stable VA mappings for RT * services. - * - * SGI UV1 machines are known to be incompatible with this scheme, so we - * provide an opt-out for these machines via a DMI quirk that sets the - * attribute below. */ -#define EFI_UV1_MEMMAP EFI_ARCH_1 - -static inline bool efi_have_uv1_memmap(void) -{ - return IS_ENABLED(CONFIG_X86_UV) && efi_enabled(EFI_UV1_MEMMAP); -} #define EFI32_LOADER_SIGNATURE "EL32" #define EFI64_LOADER_SIGNATURE "EL64" @@ -122,9 +112,7 @@ struct efi_scratch { efi_sync_low_kernel_mappings(); \ kernel_fpu_begin(); \ firmware_restrict_branch_speculation_start(); \ - \ - if (!efi_have_uv1_memmap()) \ - efi_switch_mm(&efi_mm); \ + efi_switch_mm(&efi_mm); \ }) #define arch_efi_call_virt(p, f, args...) \ @@ -132,9 +120,7 @@ struct efi_scratch { #define arch_efi_call_virt_teardown() \ ({ \ - if (!efi_have_uv1_memmap()) \ - efi_switch_mm(efi_scratch.prev_mm); \ - \ + efi_switch_mm(efi_scratch.prev_mm); \ firmware_restrict_branch_speculation_end(); \ kernel_fpu_end(); \ }) @@ -176,8 +162,6 @@ extern void efi_delete_dummy_variable(void); extern void efi_switch_mm(struct mm_struct *mm); extern void efi_recover_from_page_fault(unsigned long phys_addr); extern void efi_free_boot_services(void); -extern pgd_t * __init efi_uv1_memmap_phys_prolog(void); -extern void __init efi_uv1_memmap_phys_epilog(pgd_t *save_pgd); /* kexec external ABI */ struct efi_setup_data {