Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp82498lqo; Wed, 27 Mar 2024 07:31:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXU6zawKm8sWGi/+iXpg/S3rQ7dxt70CrlgHwd4BqrBEi+7D/U1YEEB1inGcJkH4qZm4CnKISj8+STlNQ1hdU1762Bh7YHW4rpLNrMBPg== X-Google-Smtp-Source: AGHT+IHyFqRDAB6fxPX/io3SfnX4iTU84fQkDbkprLsDVySaXlqnvk4T7cDAL7sp51kaub8fWYmL X-Received: by 2002:a05:6214:f2a:b0:696:50bf:15d0 with SMTP id iw10-20020a0562140f2a00b0069650bf15d0mr5820762qvb.56.1711549916041; Wed, 27 Mar 2024 07:31:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711549916; cv=pass; d=google.com; s=arc-20160816; b=AflGtk9hZSZyp80ECBZbNJMtbnoxOdsZlyypvza6ZVGmlxiFazp1Irn28nVUaRCfxZ GgGi66S+4W9ynt8Q0RkBQ+a5S2fQ/3fHwTDJXXOqmBBGGRcBe3ZbDZJb1omFBMV4tLKI Oi5jKwm0hLzxYz0Fz6/qrRfZ70XkCWyczz17oQ/nh0gmK95soWdW69UIa43Xj+7UTnqb jNSA1WUT24H+CmdafVu/nDES0V1Y6i7e6BUPWk8lHrgmW4/3pUSeMWDDGUbnMJIODRV3 J5rg3dqDGmAL0EFuZBj2y7hK+SdtzV3IzblOTWUhErp2Ysy0L0WXrmrwGGURqLzey2GH 9B1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:user-agent:message-id:in-reply-to:date:references:cc:to :from; bh=L0hHxHoyyPTLjFncvkLMCXUwUYWV1oOBrAYwoDQuJIQ=; fh=Km4P6ov9vEHSisSO19WPnv4nkK3hYIIZKWXctTm8/j4=; b=BavGAx9rfIBuIEFxrpuXJAEBw9wW7/7s4GrRYrGS4tcv7BLwZE5VL/W9RUzRF40TKE n93iJAFH9V/1Wfqfy8B0CqBjHn65Fg5mUlbFTL634ojw2SHdRIjueGapQ8LaXjE+eb3A 19cdSoS5sO6vp6aXdLA7WF19iSOHMPnF52SfhpXNf8RZlZ1MASlAW7pnjaTIVvfPnfyT jW2onAsDvdkdTlZG8eJqX1n0WfNNyACuMSbNJekJypQIP2LCgR4A1iFMz9J6WCxlZiXo Y1V/sA2acxaR7dmQCKKZQUpAFkzj6X9GJNnK316+6/o9h8Ytu4momgfAODZtf6ZULzB9 xzrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=xmission.com dmarc=pass fromdomain=xmission.com); spf=pass (google.com: domain of linux-kernel+bounces-121329-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121329-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fv7-20020a056214240700b00696721718f5si12189058qvb.209.2024.03.27.07.31.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 07:31:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121329-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=xmission.com dmarc=pass fromdomain=xmission.com); spf=pass (google.com: domain of linux-kernel+bounces-121329-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121329-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B55541C2A1A5 for ; Wed, 27 Mar 2024 14:31:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A47B12F583; Wed, 27 Mar 2024 12:58:53 +0000 (UTC) Received: from out03.mta.xmission.com (out03.mta.xmission.com [166.70.13.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99D8812C80B; Wed, 27 Mar 2024 12:58:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.70.13.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711544332; cv=none; b=Zs0qQwzKETCaWzADIixsXuQ5TmBQOOJPkXL6h+9RH0nh9m77He39ItkUZTJGH4YSWzutKrodYDh0BjnqR/+LMPLFBqUpJ6kmUFuTLVceSp8RAvVu7aUJQF1fkAr5gzjWgNttbU99C2pEhwD67Y7gzDspw6V4MjCYnyQy9TuWVCw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711544332; c=relaxed/simple; bh=iG8uPrBOIOH+AQyDUzYn/BzO2DNiuhvbgR0PyAf2uwk=; h=From:To:Cc:References:Date:In-Reply-To:Message-ID:MIME-Version: Content-Type:Subject; b=Knqja2l5ETFLunV0iEgHkeqd7FQHFY99Mk3+OXsJzFb2yS362HwKnOfhwsnxP2n2VoKLKIogwJNEk1PU8LbfepbGHlyEWW8LhWzOC1um05JWZFsNdyr9kDViGSleBhfxnvPL+XpO/7swVorp13slqmqKV9sGhInH6zv+vnameBQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xmission.com; spf=pass smtp.mailfrom=xmission.com; arc=none smtp.client-ip=166.70.13.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xmission.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xmission.com Received: from in01.mta.xmission.com ([166.70.13.51]:49876) by out03.mta.xmission.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1rpSrZ-001fy3-Ti; Wed, 27 Mar 2024 06:58:41 -0600 Received: from ip68-227-168-167.om.om.cox.net ([68.227.168.167]:50926 helo=email.froward.int.ebiederm.org.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1rpSrY-00GeAq-LA; Wed, 27 Mar 2024 06:58:41 -0600 From: "Eric W. Biederman" To: Steve Wahl Cc: Russ Anderson , Ingo Molnar , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, Linux regressions mailing list , Pavin Joseph , stable@vger.kernel.org, Eric Hagberg , Simon Horman , Dave Young , Sarah Brofeldt , Dimitri Sivanich References: <20240322162135.3984233-1-steve.wahl@hpe.com> <20240325020334.GA10309@hpe.com> <87o7b273p2.fsf@email.froward.int.ebiederm.org> Date: Wed, 27 Mar 2024 07:57:52 -0500 In-Reply-To: (Steve Wahl's message of "Mon, 25 Mar 2024 14:41:18 -0500") Message-ID: <87r0fv6ddb.fsf@email.froward.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1rpSrY-00GeAq-LA;;;mid=<87r0fv6ddb.fsf@email.froward.int.ebiederm.org>;;;hst=in01.mta.xmission.com;;;ip=68.227.168.167;;;frm=ebiederm@xmission.com;;;spf=pass X-XM-AID: U2FsdGVkX18MbAr20HjhuH3WMgkVKae6ZAm/7EpD1rc= X-SA-Exim-Connect-IP: 68.227.168.167 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Level: X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4918] * 0.7 XMSubLong Long Subject * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa05 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_02 5+ unique symbols in subject * -0.0 T_SCC_BODY_TEXT_LINE No description available. * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa05 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Steve Wahl X-Spam-Relay-Country: X-Spam-Timing: total 699 ms - load_scoreonly_sql: 0.11 (0.0%), signal_user_changed: 13 (1.9%), b_tie_ro: 11 (1.6%), parse: 1.68 (0.2%), extract_message_metadata: 19 (2.7%), get_uri_detail_list: 2.9 (0.4%), tests_pri_-2000: 7 (1.0%), tests_pri_-1000: 5 (0.7%), tests_pri_-950: 1.68 (0.2%), tests_pri_-900: 1.37 (0.2%), tests_pri_-90: 65 (9.3%), check_bayes: 64 (9.1%), b_tokenize: 12 (1.7%), b_tok_get_all: 10 (1.4%), b_comp_prob: 3.5 (0.5%), b_tok_touch_all: 35 (4.9%), b_finish: 0.91 (0.1%), tests_pri_0: 341 (48.8%), check_dkim_signature: 0.57 (0.1%), check_dkim_adsp: 2.4 (0.3%), poll_dns_idle: 193 (27.7%), tests_pri_10: 6 (0.8%), tests_pri_500: 233 (33.4%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH] x86/mm/ident_map: Use full gbpages in identity maps except on UV platform. X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Steve Wahl writes: > On Mon, Mar 25, 2024 at 10:04:41AM -0500, Eric W. Biederman wrote: >> Russ Anderson writes: >> > Steve can certainly merge his two patches and resubmit, to replace the >> > reverted original patch. He should be on in the morning to speak for >> > himself. >> >> I am going to push back and suggest that this is perhaps a bug in the >> HPE UV systems firmware not setting up the cpus memory type range >> registers correctly. >> >> Unless those systems are using new fangled cpus that don't have 16bit >> and 32bit support, and don't implement memory type range registers, >> I don't see how something that only affects HPE UV systems could be >> anything except an HPE UV specific bug. > > Eric, > > I took the time to communicate with others in the company who know > this stuff better than I do before replying on this. > > One of the problems with using the MTRRs for this is that there are > simply not enough of them. The MTRRs size/alignment requirements mean > that more than one entry would be required per reserved region, and we > need one reserved region per socket on systems that currently can go > up to 32 sockets. (In case you would think to ask, the reserved > regions also cannot be made contiguous.) > > So MTRRs will not work to keep speculation out of our reserved memory > regions. > > Let me know if you need more information from us on this. Thanks for this. Do you know if there are enough MTRRs for the first 4GB? I am curious if kexec should even consider going into 32bit mode without page tables or even into 16bit mode on such a system. Or if such a system will always require using page tables. If you don't have enough MTRRs on a big NUMA system I think it is perfectly understandable, to need to use the page tables. Please include this the fact that splitting GBpages is necessary because of a lack of MTRRs in the change description. Given that it is the lack of MTRRs on a large NUMA system that make the change necessary. The goes from a pure bug fix change to a change to accommodate systems without enough MTRRs. That information makes it more understandable why older systems (at least in the case of kexec) might not be ok with the change. As for older systems their MTRRs are sufficient and thus they can use fewer page table entries. Allowing for use of larger TLB entries. Eric