Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1475117ybt; Thu, 9 Jul 2020 07:57:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzzpHvcICBo1wNLeom+eOZjEwbGnqIy1Um+HlqwvS/dT5S7+DgO8n34XPUteJGCSR1NmcQ X-Received: by 2002:a05:6402:b99:: with SMTP id cf25mr70350038edb.291.1594306642422; Thu, 09 Jul 2020 07:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594306642; cv=none; d=google.com; s=arc-20160816; b=kc/OwL6isPRVcXMIH9PH+fl4AGcZ1q3caPTeVSsZyOhDhm1ZvQRs7M/l3E4qy9hHy5 btUWs9U9khNPUjXTex4LX9KTJ90imwOK+20j7KefHgInCm6ZhR3MKjM/Ybpc9OgiVExT k07XCtbRTn0iIcE+vy+Kli7la6/XF8s+/A4auTvTF/wvzRex9oXe6bk2CgVsm+bZUmfD 5wMR7E8GbpGflp6ercPg31DDg7t/KwQazcqpKOjs3JrN07GnakPfMo9NGG7SGqEW8amI iqW6tnK7ZVN8EHwg+EG7Om2RPYA6njpIS99HF4YqmFhQXbMVyZjI7NWWLFe8+qx+BsYS vlWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:subject:cc:to :from:date:user-agent:message-id; bh=uBiKJzOjNK3eM/M+is5w7Oov7Jqzbs3fdUXCfzALsUk=; b=yj8s4/6MH5gJmZ4ChEI3C+EaDCGRjodEWgHvyKlU+YvbTwfIRMZnz2HdRqjL+bp4Vq 9obDzSkj5IDBVskaLtrRkRXstEF8A6gvuq++gzwcDwudG1eQHnP+jXHhiiJ67bv/PxrL gmIqIcT3LjXr2w2M/8whEk3QvxII8vro6gYEu7cuJaf5YeGDja1dA5+UWg/5v5FKItHI arCjrL3ywRb7cW4di4MyJFiT+pkxXozSNIOABHk5H9fSifQaGVMDlDedW8pyqZSDiuzQ CEGk5neVZkzlNdEgH3VlU9f6ycPhUK60wM3xcaLi1qe2A4n91LfBZaKUdHdkJzbmwElR QPjA== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=hpe.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si2420034edl.449.2020.07.09.07.56.59; Thu, 09 Jul 2020 07:57:22 -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; 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=NONE dis=NONE) header.from=hpe.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728308AbgGIO4L (ORCPT + 99 others); Thu, 9 Jul 2020 10:56:11 -0400 Received: from mx0a-002e3701.pphosted.com ([148.163.147.86]:19780 "EHLO mx0a-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728215AbgGIOzo (ORCPT ); Thu, 9 Jul 2020 10:55:44 -0400 Received: from pps.filterd (m0134420.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 069EmOSO009746; Thu, 9 Jul 2020 14:54:52 GMT Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by mx0b-002e3701.pphosted.com with ESMTP id 325k1aqgrq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 Jul 2020 14:54:52 +0000 Received: from stormcage.eag.rdlabs.hpecorp.net (stormcage.eag.rdlabs.hpecorp.net [128.162.236.70]) by g4t3427.houston.hpe.com (Postfix) with ESMTP id 8B29B7B; Thu, 9 Jul 2020 14:54:51 +0000 (UTC) Received: by stormcage.eag.rdlabs.hpecorp.net (Postfix, from userid 200934) id 3585F20203307; Thu, 9 Jul 2020 09:54:49 -0500 (CDT) Message-ID: <20200709145449.112770495@hpe.com> User-Agent: quilt/0.66 Date: Thu, 09 Jul 2020 09:55:00 -0500 From: steve.wahl@hpe.com To: Steve Wahl , Jonathan Corbet , Ard Biesheuvel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Darren Hart , Andy Shevchenko , Mauro Carvalho Chehab , Andrew Morton , Greg Kroah-Hartman , "Paul E. McKenney" , Pawan Gupta , Juergen Gross , Mike Kravetz , Oliver Neukum , Mike Travis , Dimitri Sivanich , Benjamin Thiel , Andy Lutomirski , Arnd Bergmann , James Morris , David Howells , Kees Cook , Dave Young , Dan Williams , Logan Gunthorpe , Alexandre Chartre , "Peter Zijlstra (Intel)" , Austin Kim , Alexey Dobriyan , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org Cc: Russ Anderson Subject: [patch v2 13/13] x86: Remove (now unused) EFI_UV1_MEMMAP from efi.h References: <20200709145447.549145421@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-09_08:2020-07-09,2020-07-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 mlxscore=0 malwarescore=0 clxscore=1015 mlxlogscore=999 impostorscore=0 spamscore=0 suspectscore=2 lowpriorityscore=0 priorityscore=1501 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007090111 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With UV1 support removed, EFI_UV1_MEMMAP is no longer used. Signed-off-by: Steve Wahl --- arch/x86/include/asm/efi.h | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) --- linux.orig/arch/x86/include/asm/efi.h 2020-07-07 10:49:49.753511000 -0500 +++ linux/arch/x86/include/asm/efi.h 2020-07-07 10:56:15.821045006 -0500 @@ -22,17 +22,7 @@ extern unsigned long efi_fw_vendor, efi_ * * 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(vo 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 {