Received: by 10.223.185.116 with SMTP id b49csp623292wrg; Fri, 16 Feb 2018 04:41:04 -0800 (PST) X-Google-Smtp-Source: AH8x224EHqqAHE2FMsCHiIoECdbHjjSKmZWuKXKBY3kp207M9c75woe38qlp72ikRC/xt6s+axQP X-Received: by 2002:a17:902:3064:: with SMTP id u91-v6mr5752327plb.421.1518784864206; Fri, 16 Feb 2018 04:41:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518784864; cv=none; d=google.com; s=arc-20160816; b=PnTxf6lP4InMjjiyqC3HAYwCkSCG323Bw+PCbiJ3UlmpD3Sp8W4ahya05B6GIbKyFI IUz/2BEcUCGwqrCeYD4nf/LdaGUpz4owZowim0ye6aaP6/jjQb8E9fpEC0+q4eqAXL9K 0Nao0uI/KmmlmVgO0xxwRD4FdoX8NA93ROfqDXQDwyTmi4bqD3dqLMeXkpjVYOhEDP5g a5w+fFtgezrZLvBOySnoU7D8m2yUd1F2EuJvUtWx5pokgqfQZtz3m3mhMLd8329bIK81 L61GML/eD1vlP35qlsnVMJA8h5OVZNVgbsMc9OwDz8OyvF2RGZtVx9X+HXLJkBXY7FY9 eHBQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject:arc-authentication-results; bh=lABJXH/q8bfbPwmDATRI86YD1QORoICicpd1VPdQX/Q=; b=mGQtAF9MV44seVsWECLlxHGR4mPp4m+rsArOy3VtbAoFQOGbmSFommmd+QCm0SR39B 64IVV4p3IWbT1B+PPqo69jzYjOBZA/sadn5xQ8AC6qS/QgfUjdL07EzWMkGXRqaQMRVK XM5+eOrLpN8ViCCfX+FldwHy8TfQllAOIV/A+01jNfz6IeATdGvIcaEHa/xip0qsZ0JO 3u8YHiCa8tPBypxLVgB5s1PVGWhBjzoQ0TTIO4Yg91pmk86Gkq+vHQDpuLvquQOl6oIY nXScPugpmX8EoZEyB0TyVxDuBxxit47EfUKoq/OUh/8w6fBm+FXkpyps4Ujb4/pc+uYo dxCA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s7-v6si996951plp.57.2018.02.16.04.40.48; Fri, 16 Feb 2018 04:41:04 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1166122AbeBOSNI (ORCPT + 99 others); Thu, 15 Feb 2018 13:13:08 -0500 Received: from mga14.intel.com ([192.55.52.115]:2414 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162671AbeBOSNG (ORCPT ); Thu, 15 Feb 2018 13:13:06 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Feb 2018 10:13:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,517,1511856000"; d="scan'208";a="18782526" Received: from makhan1-mobl.amr.corp.intel.com (HELO [10.254.69.204]) ([10.254.69.204]) by orsmga006.jf.intel.com with ESMTP; 15 Feb 2018 10:13:05 -0800 Subject: Re: [PATCH 0/3] Use global pages with PTI To: Linus Torvalds References: <20180215132053.6C9B48C8@viggo.jf.intel.com> Cc: Linux Kernel Mailing List , linux-mm , Andrew Lutomirski , Kees Cook , Hugh Dickins , =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= , the arch/x86 maintainers From: Dave Hansen Message-ID: <648e1bf1-c03e-2f1a-8a08-3763e6211ad3@linux.intel.com> Date: Thu, 15 Feb 2018 10:13:05 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/15/2018 09:47 AM, Linus Torvalds wrote: > On Thu, Feb 15, 2018 at 5:20 AM, Dave Hansen > wrote: >> >> During the switch over to PTI, we seem to have lost our ability to have >> GLOBAL mappings. > > Oops. Odd, I have this distinct memory of somebody even _testing_ the > global bit performance when I pointed out that we shouldn't just make > the bit go away entirely. > > [ goes back and looks at archives ] > > Oh, that was in fact you who did that performance test. ... > Did you perhaps re-run any benchmark numbers just to verify? Because > it's always good to back up patches that should improve performance > with actual numbers.. Nope, haven't done it yet, but I will. I wanted to double-check that there was not a reason for doing the global disabling other than the K8 TLB mismatch issues that Thomas fixed a few weeks ago: > commit 52994c256df36fda9a715697431cba9daecb6b11 > Author: Thomas Gleixner > Date: Wed Jan 3 15:57:59 2018 +0100 > > x86/pti: Make sure the user/kernel PTEs match > > Meelis reported that his K8 Athlon64 emits MCE warnings when PTI is > enabled: > > [Hardware Error]: Error Addr: 0x0000ffff81e000e0 > [Hardware Error]: MC1 Error: L1 TLB multimatch. > [Hardware Error]: cache level: L1, tx: INSN