Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1474916ybt; Thu, 9 Jul 2020 07:57:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPnCQbzTTCCFLF0e1phnCZq1xbDl6Mr9IsUat+zxLQSD9mLXnbpzFuDJBx58YjTnmMARiA X-Received: by 2002:a05:6402:17ee:: with SMTP id t14mr70782539edy.359.1594306626079; Thu, 09 Jul 2020 07:57:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594306626; cv=none; d=google.com; s=arc-20160816; b=e+n0gYXTow564OCDuRT7VydjM4e92LgkCsjt7rdWUpxpNNX/JNI/7RTvUZo7nQW1Vz 6wNlZvSfd6wydv32ZhuVa9XLoxccmZAkv9m7n8lYbM7gsBZZTVKl6iq0lAxnm5i7x+AZ SfgZu2Ch2PaVaw+LiD8exv9SDZMDYEDX21aeb2PYLj7dywoTsbFSRzSugKZLBHyW//P6 A166NGOqTxc0t8O+HG1ZH2B4p3Jbz4CijKDO6krBQAPDVbRMBtpUfP/H0UQFKK7z+jXB k3i2hbGBNGGauqvpxRUVZ7SaGwuUhLilySGZiPot/yd4e0pQzgkQ9VUhVx3lOmqKwPNx r2dQ== 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=aV/9rs3F09LoiuVBf0RuhfQjN3aRst7nX+mitmtapes=; b=A+sfZBxY+5nZsOptT1WAebKfj4RJIdS9WiUaZuPIMV4JMEkehrQy9iUP6wffNZ2FyJ e53pI85iC03bsTu4GjRtpLhSFwqkTNvDNxsmSjIC9//3UT5vn6k8yXgC5WrCnwg5ZK79 9Iu5cTKzQ0DVreeahU0bSefULjI8fZc8l0JcUkhZu+67GYVaTr463AFoupXTYIK9yS1Z rSI21WW8a2Fb00EjLDDmjYeXoR4wS265z9/vzEpmDO8+A0CGrRNsLkOgMwb1p033M0PI OC5yMCErR6/QR6FkhDLdlAYQ/tf8Z51KDtl3t9sj8TDhJjYm/blW/T9vHlId7YHZCvKv dEcg== 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 g26si2033398ejo.47.2020.07.09.07.56.43; Thu, 09 Jul 2020 07:57:06 -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 S1728266AbgGIOzw (ORCPT + 99 others); Thu, 9 Jul 2020 10:55:52 -0400 Received: from mx0a-002e3701.pphosted.com ([148.163.147.86]:24492 "EHLO mx0a-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728218AbgGIOzo (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 069EmPo5009793; Thu, 9 Jul 2020 14:54:51 GMT Received: from g2t2352.austin.hpe.com (g2t2352.austin.hpe.com [15.233.44.25]) by mx0b-002e3701.pphosted.com with ESMTP id 325k1aqgrj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 09 Jul 2020 14:54:51 +0000 Received: from stormcage.eag.rdlabs.hpecorp.net (stormcage.eag.rdlabs.hpecorp.net [128.162.236.70]) by g2t2352.austin.hpe.com (Postfix) with ESMTP id 3984DC5; Thu, 9 Jul 2020 14:54:50 +0000 (UTC) Received: by stormcage.eag.rdlabs.hpecorp.net (Postfix, from userid 200934) id D598920203304; Thu, 9 Jul 2020 09:54:48 -0500 (CDT) Message-ID: <20200709145448.768760938@hpe.com> User-Agent: quilt/0.66 Date: Thu, 09 Jul 2020 09:54:57 -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 10/13] x86: Delete SGI UV1 detection. 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=0 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 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 --- 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;