Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2908453lqp; Mon, 25 Mar 2024 12:42:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXrWislQIrZt6DEzc6lCbhDW8/MUM3XndSG5XNL7U8scBZMZO/m+ZLCKrre0wQVbNiyQMomqzVgbrLuFLBqzBjTKZkSfwN8k3mA60MA6g== X-Google-Smtp-Source: AGHT+IF6G6bYroPuAvf5u4ysMy19MO984yQmoxYMbnwYA/S1ejzSVnJRLYLKHedVUculy7ynHagF X-Received: by 2002:a0d:d751:0:b0:611:bdd:4534 with SMTP id z78-20020a0dd751000000b006110bdd4534mr7006811ywd.3.1711395766673; Mon, 25 Mar 2024 12:42:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711395766; cv=pass; d=google.com; s=arc-20160816; b=Nt83o+01SwLqyFUvdc4frwIiLKyohBZ6mycbx24d2/h/JqagsCPmuT3PmEA3wanL9O 9DjeaDn5mlxzphAmW8/5uFPgLx+gPpxqVJs1wTkHnFkqhvrQR1g1i4xCFoQE9LaB8D78 +1GUMfE8kqR1kEj1FSUhi25L3B/B5ekRsblhJmsAzD1DQCRcJSQRgOKTt/h73yqIasTv 307QSRuHnkwkzgQsiA2Eliics1RZxZXBMu2jVQrKTpVlOyexKzzS3OTdc0SBsYsHVpNR ZMMps8JIGpSleIew9GSNNrqgaNJmNZrWt+dLdZSZ9RAPZNj+GVvSwbzhOf4yfZoqjmb9 rw0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Vd0x2s1s8A1eG1ZZUcTHg8PDO3Hnu/HCp1lniIrhfVc=; fh=x/cq7PLqUkEEOO8sJiNcZIqlA9pg1ZFlzQhF1nz9ans=; b=CBSAfwqumVGLomfPaa3YjZCBLaZpcjpLh4WBJElADCC4SHZcC8teH0wPcU7bQ0yzlD qHciHL6Olwdx/psEo8dxjsRirEMYMcgvgTgQTIo78s2sbTjbnePUrQxZPffvFCNszIJy PJqbL69Az02KS4X8FYUr4EForjY+klRnOwSfP6R9mogBF+bgMb7sb3rGDgpLOR+CIrcR dAKUOqVf/EAnzGcYfrSdyU5UorkvclY6f6/t4EXGv4Up4IjrXorFiM3HNfEIfchX+h+y zQFRXzUg9aOmglgdn1I8Nzk2Lnyo332FL53jj5tUQcf6Tif0xKfM/zODaf5vWtCbuT31 G3hg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=Xzm5vKOK; arc=pass (i=1 spf=pass spfdomain=hpe.com dkim=pass dkdomain=hpe.com dmarc=pass fromdomain=hpe.com); spf=pass (google.com: domain of linux-kernel+bounces-117840-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117840-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.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 c7-20020a05620a200700b0078a5c8821a8si1496680qka.688.2024.03.25.12.42.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 12:42:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117840-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; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=Xzm5vKOK; arc=pass (i=1 spf=pass spfdomain=hpe.com dkim=pass dkdomain=hpe.com dmarc=pass fromdomain=hpe.com); spf=pass (google.com: domain of linux-kernel+bounces-117840-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117840-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hpe.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 62BEC1C61E5F for ; Mon, 25 Mar 2024 19:42:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 024863F8D4; Mon, 25 Mar 2024 19:42:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=hpe.com header.i=@hpe.com header.b="Xzm5vKOK" Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) (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 B5E2D18638; Mon, 25 Mar 2024 19:41:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.147.86 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711395720; cv=none; b=MCru+VP6N0bssK425stkelMxLGgCYwqLGSbiYImxD2Jy95mTA2gTVfm99WLYB2PuR1qm/SAaKzFqN9WM/WTpWONVh+vXjXTprrJPKyzQSSErUnRPHE2eDLa4Jd++63rRAuyoHf2EoR0s6TjupH6/+O4j8Sb8JUTl6D9WvOdHhdw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711395720; c=relaxed/simple; bh=EUp+UMeeB6aN+5adxNqSMTZOVLIznmtp/NgpGnt8gJs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=I3EW5xTe9ioyuNvSLi/gtyRmiCNJr6QcLJxhyQ5qWwEMexKq+erDOQX0MwYsmXx6s1qSfAech5xCFCMVmkIEntsgn2RAnc/4Dky9zLd4oDHHDa1+7FUtQzEsC5V6W5K7M9PR8SqiH8IpTpR/ofgjyCrh9RTuT81xQB5QTEQsoE4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hpe.com; spf=pass smtp.mailfrom=hpe.com; dkim=pass (2048-bit key) header.d=hpe.com header.i=@hpe.com header.b=Xzm5vKOK; arc=none smtp.client-ip=148.163.147.86 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hpe.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hpe.com Received: from pps.filterd (m0150241.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 42PIWvXv009035; Mon, 25 Mar 2024 19:41:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pps0720; bh=Vd0x2s1s8A1eG1ZZUcTHg8PDO3Hnu/HCp1lniIrhfVc=; b=Xzm5vKOKDGhfPyk3b6/O2bDDB5/86VsfF9KI8DpOIf+MiXcE7zzwD5sc8gKkt6m8AL4m BSvKksShMjoTOyZhVXrqmccNYyTmBD1UvN/Uw7cneP8AweuKbRdtKFCTRxDz8s16ASwq 5HT6jTI5xImDMaggDY9LPBFJOOS+LR5ioEYSKXSnV0NlmcGAdJUx4+zGn+t0Q0d7VxS7 jr5Fc9s/XWg1JHmoUZJqP7o8wfj5t1VN1UNae04aXieJLYTkl0d5MRbZx1kRW/FFJaSe TAdmKyeuQlBqW0T1bXvCgACU0VTqkPFvlDO/Apgxglgmfg3fgbiV++UZC+eDwM+OlUG6 3Q== Received: from p1lg14879.it.hpe.com ([16.230.97.200]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 3x37pscaq3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Mar 2024 19:41:24 +0000 Received: from p1lg14886.dc01.its.hpecorp.net (unknown [10.119.18.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14879.it.hpe.com (Postfix) with ESMTPS id 5005E130DB; Mon, 25 Mar 2024 19:41:23 +0000 (UTC) Received: from swahl-home.5wahls.com (unknown [16.231.227.39]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by p1lg14886.dc01.its.hpecorp.net (Postfix) with ESMTPS id 90A2F802A5B; Mon, 25 Mar 2024 19:41:20 +0000 (UTC) Date: Mon, 25 Mar 2024 14:41:18 -0500 From: Steve Wahl To: "Eric W. Biederman" Cc: Russ Anderson , Ingo Molnar , Steve Wahl , 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 Subject: Re: [PATCH] x86/mm/ident_map: Use full gbpages in identity maps except on UV platform. Message-ID: References: <20240322162135.3984233-1-steve.wahl@hpe.com> <20240325020334.GA10309@hpe.com> <87o7b273p2.fsf@email.froward.int.ebiederm.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87o7b273p2.fsf@email.froward.int.ebiederm.org> X-Proofpoint-ORIG-GUID: tZl88hOSGq0zIbXaZ64Wt72pbBs_sQRp X-Proofpoint-GUID: tZl88hOSGq0zIbXaZ64Wt72pbBs_sQRp X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-25_16,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxlogscore=999 priorityscore=1501 mlxscore=0 clxscore=1015 adultscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 impostorscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2403210000 definitions=main-2403250118 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. --> Steve Wahl -- Steve Wahl, Hewlett Packard Enterprise