Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1285016ybh; Mon, 13 Jul 2020 14:33:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwb9q8+ykO8Aq+1jFkbbyJqa1oATosiRLtreXtyBDzH+kTTZ1tI7IpXJ5cOOFCzmet2Wwu4 X-Received: by 2002:a50:8c06:: with SMTP id p6mr1329012edp.146.1594675994977; Mon, 13 Jul 2020 14:33:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594675994; cv=none; d=google.com; s=arc-20160816; b=REFbT4FFxeD/XJm+iRUNpAGJ6Nf9eMqAtRc2fDNOJhYmmvEINSbTd+ukw2M/jUwqBy bf0CyraYROV5KYlVawRErRxoP34S52wY4Nn3aW8dEvs2OKxu8ecLJD/mY1vOhF3in9ko aswgZHp9JRVAf1wcsiyCBTCtYprFVBioajBmwkpQyXGQ7+oIJ/IycVXgMC+aMGI1eUYf A4LMCdB78kqE+FinIY3FIil1X2UUigK2zKsAYT5QIQ+GlXUPzRQEcLIfkv3h+/gN6klL j5oPZUa856WvbeStMgOFCOH6zPXeFQL6dKPcog/P0gZa8Pukm4QOu+6jEHIktW1CRVoJ REvQ== 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=pK6QvRko9KY//q7JPPLqAQf/ImON99QaBry22c00JyI=; b=fByKWd1JSgpQDNyAObK3cYhQJ7EYVlhs0a2SLr6QT93nqOOhYDfEG/UmNPgMkj8lJi UmPYtys7coDobyIEMhKr8b0X9ecnJbgWx3AG3NKmI7p43SnTDco9mGcsFo1MDVteREcK YB+E05jTqg5F5See6ekktcPNE4QkYOX2UKDP5vOFMMLbI3hCXOhPJwcf9Ie7PnXqWH6a T65Pq5I5pZNnddgvtV70/XoP3W4L9Tn0+FLrvZ3t3tNbu6b9T9VQg7KRaQuA0bCkikJ+ rfvQcdW5u8/521pOEdTYcfeNPXS749/+K5LQdckxnY+/g6V1af58e4pLQM6BeeEz11sM /Zpg== 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 qc14si10654002ejb.611.2020.07.13.14.32.52; Mon, 13 Jul 2020 14:33:14 -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 S1727062AbgGMVbX (ORCPT + 99 others); Mon, 13 Jul 2020 17:31:23 -0400 Received: from mx0b-002e3701.pphosted.com ([148.163.143.35]:25540 "EHLO mx0b-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726786AbgGMVat (ORCPT ); Mon, 13 Jul 2020 17:30:49 -0400 Received: from pps.filterd (m0134425.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06DLOJsm027098; Mon, 13 Jul 2020 21:29:59 GMT Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0b-002e3701.pphosted.com with ESMTP id 3276qr2kuv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 13 Jul 2020 21:29:59 +0000 Received: from stormcage.eag.rdlabs.hpecorp.net (stormcage.eag.rdlabs.hpecorp.net [128.162.236.70]) by g4t3425.houston.hpe.com (Postfix) with ESMTP id 400D38D; Mon, 13 Jul 2020 21:29:58 +0000 (UTC) Received: by stormcage.eag.rdlabs.hpecorp.net (Postfix, from userid 200934) id BDD61200F784F; Mon, 13 Jul 2020 16:29:55 -0500 (CDT) Message-ID: <20200713212955.667726896@hpe.com> User-Agent: quilt/0.66 Date: Mon, 13 Jul 2020 16:30:04 -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 v3 10/13] x86: Delete SGI UV1 detection. References: <20200713212954.444086564@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-13_17:2020-07-13,2020-07-13 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 lowpriorityscore=0 phishscore=0 impostorscore=0 priorityscore=1501 mlxscore=0 bulkscore=0 clxscore=1015 suspectscore=0 malwarescore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007130153 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As a part of UV1 platform removal, don't try to recognize the platform through DMI to set the EFI_UV1_MEMMAP bit. Signed-off-by: Steve Wahl Reviewed-by: Ard Biesheuvel --- arch/x86/platform/efi/quirks.c | 23 ----------------------- 1 file changed, 23 deletions(-) --- linux.orig/arch/x86/platform/efi/quirks.c 2020-07-07 10:49:50.017510679 -0500 +++ linux/arch/x86/platform/efi/quirks.c 2020-07-07 10:56:15.209045740 -0500 @@ -558,16 +558,6 @@ out: return ret; } -static const struct dmi_system_id sgi_uv1_dmi[] __initconst = { - { NULL, "SGI UV1", - { DMI_MATCH(DMI_PRODUCT_NAME, "Stoutland Platform"), - DMI_MATCH(DMI_PRODUCT_VERSION, "1.0"), - DMI_MATCH(DMI_BIOS_VENDOR, "SGI.COM"), - } - }, - { } /* NULL entry stops DMI scanning */ -}; - void __init efi_apply_memmap_quirks(void) { /* @@ -579,17 +569,6 @@ void __init efi_apply_memmap_quirks(void pr_info("Setup done, disabling due to 32/64-bit mismatch\n"); efi_memmap_unmap(); } - - /* UV2+ BIOS has a fix for this issue. UV1 still needs the quirk. */ - if (dmi_check_system(sgi_uv1_dmi)) { - if (IS_ENABLED(CONFIG_X86_UV)) { - set_bit(EFI_UV1_MEMMAP, &efi.flags); - } else { - pr_warn("EFI runtime disabled, needs CONFIG_X86_UV=y on UV1\n"); - clear_bit(EFI_RUNTIME_SERVICES, &efi.flags); - efi_memmap_unmap(); - } - } } /* @@ -723,8 +702,6 @@ void efi_recover_from_page_fault(unsigne /* * Make sure that an efi runtime service caused the page fault. - * "efi_mm" cannot be used to check if the page fault had occurred - * in the firmware context because the UV1 memmap doesn't use efi_pgd. */ if (efi_rts_work.efi_rts_id == EFI_NONE) return;