Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp911409lqh; Fri, 29 Mar 2024 00:15:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUN8kfd+f6o0CaUTebM1PNQPC0t00svE3BUz2P37ffAF3ykaeajrMK4TWVDtJfZ4Ne/dvEGS+i0xooemkGElhDT7+RoSrrCU2S39Gm2Hg== X-Google-Smtp-Source: AGHT+IEQbuGPArt9aSumPvSDIhlz5UgR6vHt5uEap7OoTuRB9XNfyd1LPKWfCfygk7kHapAD34uQ X-Received: by 2002:a0d:fbc5:0:b0:609:8ed6:c491 with SMTP id l188-20020a0dfbc5000000b006098ed6c491mr1785751ywf.26.1711696532270; Fri, 29 Mar 2024 00:15:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711696532; cv=pass; d=google.com; s=arc-20160816; b=H4PoLN/utLJJ8OI5zt/2mhUAscxJCfdi3/FSvIwISki7F4tvZ1COtRSnO+vICrQUEo 6ymUf4IhqCMdGbKKbdhPtuPrjzDu+RL8rmzI8u12mDrZ7/Xy2K7PGyGEbQiSAt2EZSrz 9/gCuMDPRfkuCoXCAXSO71KDCpNuTgzQFa/6uOx+CqybbUbGqFHuRiRUIF3vIR6UY9ej y72pC2qSowZgZeDJL9vunFY1fQmqRLZw1ckWUkVzT2FFQQeaNhHDujOXkNjgnan3f/Oh Xf+xTunRq4zQ3v7GvhYEWVSft9GwGJcJJSIckjQvKHIVCSMI9dO5Rm5h3A7YSX7mOt5h MVAg== 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:sender:dkim-signature; bh=mozfWZbRnnqWKHe9tnc7q0wOVsOmikcudgvgpeew1+E=; fh=McBwESzaJJb57/nrYa+YtAjJMOJOkfU7lhi6Tl8uaQk=; b=YqrIfvV84bpU8paDejR0RLGHXVZigkbayXr5PgTB5b0+GkkkvALfLoWhBJIHedMwx/ mIhafwjxSApo5VBH+lTUUgeeGOLNth7LsRGkDMrZK51Vljjf59rexZ4BFJY3ZUU0FdUR KSjR/J+60UM5EZdsJKYBp1Vd3NLDDnuO6zh+p6rp2BfDMr5G/ty5QnZ8oYRInuplh6cl Xr/wqHxSA8vZh3vrSHWgfFFthEZbtr5Cxhe/HbSKMLo+UEZ4g6IF0HC+9lL/G2mauC0z 92cfJWiXgb+Q8aJ6wIhJ2q2RPuo6xjgHNHqVXE8DSl01FUaUEGRTiWCMlfZKK3EkJ2/J AsQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=L5cLUHyK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-124222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124222-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bp13-20020a05622a1b8d00b00431620882b5si3034562qtb.450.2024.03.29.00.15.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 00:15:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124222-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=@gmail.com header.s=20230601 header.b=L5cLUHyK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-124222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124222-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 06B961C22A6C for ; Fri, 29 Mar 2024 07:15:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45D083FE2B; Fri, 29 Mar 2024 07:15:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="L5cLUHyK" Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D261B33CCC; Fri, 29 Mar 2024 07:15:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711696524; cv=none; b=CQPWGj4gTJY1j6zsURVgSV9q8UOy6vCOe7nwgOPWaZ+knZetcf7umNejlVHJWF42RLOHSz5t8ykhzqM9Z6L+QwZ/GaLETH+22DpLHcGlc6wD3r0TjjUak8/+oFEooUSxoWJIqPEY+G1Mfpnm86i3s/byxA9uSdZo+u8ES4TmeQI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711696524; c=relaxed/simple; bh=vcBZF75PvdSN87wejsi7pX6QTEy6uXjLbXwwfZFg3Eg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=k3Hjt6z+YPScPnfhV9akejUaJq1WnXQX1xLSINAn+e4DDyyX4hec32nIjZjhUytJnpJjOCz3Cr80JTT1maILdWY7CuO0fyiICpOYIbXeMGTkK1rO5as034ZzYHPx9QmAOiTybg+m2MzjSbvNZhCyQwxN8b/mBCJ8h/uX7I3nuAs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=L5cLUHyK; arc=none smtp.client-ip=209.85.208.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-565c6cf4819so4648950a12.1; Fri, 29 Mar 2024 00:15:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711696521; x=1712301321; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=mozfWZbRnnqWKHe9tnc7q0wOVsOmikcudgvgpeew1+E=; b=L5cLUHyKmOCGoBuiVuBONQS6/s6X03KM5eyFMbkZio5EjTMD/irf9oO2tThDtxSjTV +b6+IeCR63Fi3PcQVjVbmL8JxXdUpprIbpriIZnFql/KnzWQF7oQD9mE8dUbY1Tvsgzb CMV/7drs6iQjxFLjWBI9BHe+/fTohY3CfyCvWloFsBGMLAr+Y/NDE00sitj5fPEm4thi 5inKjvkgkMPOJVTpeMDN8s+WaLSF4ylsdfzr+sC7jTfWMgCX+xw0XFhbDyu4bR1PFDZu X+6bYak1MkhocVnAbrmara4k96F7iov4C35MfihsEDvxWH/gDuLHcfk4i4KEkdqsGfjM nsQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711696521; x=1712301321; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mozfWZbRnnqWKHe9tnc7q0wOVsOmikcudgvgpeew1+E=; b=eeMRNxO8wfchjfAxFtFpxDrji1/mlNIrN7xhqpuKaZ+i/ZvLZpZ+K2NT+N3EGevDWY kdN5T5GovpQ4izVMWbd4Tx/ZPGf0dTSx5H2eFChAKoz/VNJ36vpFTDpHdkb4qEpN3791 SuKvPp/drdCX17BoYRHuGnJf0z0PxM5oYXex/zQ/5IxLnGYonfgOOQ46DgruTsHhGP7f d0ykxCXf3A8ZqlEYWivMUGiGl4Mh48MUsPD+T8+VPHXoGewsc9Tn0vE9Vsf6MgfMjpTG xLvKmJwFIW8dwhydCIDtzMp+zB1i8fPeWJH8CHx+8YpSqv+HX6v2HPRSxraGICrId1j2 xaBQ== X-Forwarded-Encrypted: i=1; AJvYcCV+d/p0NmumbJumfbUxE4Ub8pmF2Yr6nhw7sYw95hPjPKywdOVBkWNzkRnRKL7vKyBtdglBlwAqmgff+oo0LtvPRiPtjhOGTfSG0qxa4G2XJ58vluOaDRR5GGqB7zDknN0sLb5n X-Gm-Message-State: AOJu0Yxav7rxMbpR3eVb1IN+0by8QyswwkQD5c924v7OusyJ9RJJED1d eHxTDvjLTvR8h1MCtsfZqBPm18hwpNOrBDWnS4jJCP9X3aGea7FmZawTU4RM1bQ= X-Received: by 2002:a50:8e1b:0:b0:568:b0f4:fe69 with SMTP id 27-20020a508e1b000000b00568b0f4fe69mr4049605edw.12.1711696520810; Fri, 29 Mar 2024 00:15:20 -0700 (PDT) Received: from gmail.com (195-38-112-2.pool.digikabel.hu. [195.38.112.2]) by smtp.gmail.com with ESMTPSA id ew12-20020a056402538c00b0056a033fa007sm1675741edb.64.2024.03.29.00.15.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 00:15:20 -0700 (PDT) Sender: Ingo Molnar Date: Fri, 29 Mar 2024 08:15:17 +0100 From: Ingo Molnar To: Steve Wahl Cc: 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 , Eric Biederman , Dave Young , Sarah Brofeldt , Russ Anderson , Dimitri Sivanich , Hou Wenlong , Andrew Morton , Baoquan He , Yuntao Wang , Bjorn Helgaas Subject: Re: [PATCH v4] x86/mm/ident_map: On UV systems, use gbpages only where full GB page should be mapped. Message-ID: References: <20240328160614.1838496-1-steve.wahl@hpe.com> 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: <20240328160614.1838496-1-steve.wahl@hpe.com> * Steve Wahl wrote: > When ident_pud_init() uses only gbpages to create identity maps, large > ranges of addresses not actually requested can be included in the > resulting table; a 4K request will map a full GB. On UV systems, this > ends up including regions that will cause hardware to halt the system > if accessed (these are marked "reserved" by BIOS). Even processor > speculation into these regions is enough to trigger the system halt. > And MTRRs cannot be used to restrict this speculation, there are not > enough MTRRs to cover all the reserved regions. Nor should MTRRs be (ab-)used for this really. > The fix for that would be to only use gbpages when map creation > requests include the full GB page of space, and falling back to using > smaller 2M pages when only portions of a GB page are included in the > request. > > But on some other systems, possibly due to buggy bios, that solution > leaves some areas out of the identity map that are needed for kexec > to succeed. It is believed that these areas are not marked properly > for map_acpi_tables() in arch/x86/kernel/machine_kexec_64.c to catch > and map them. The nogbpages kernel command line option also causes > these systems to fail even without these changes. Does the 'nogbpages' kernel command line option fail on these systems even outside of kexec (ie. regular boot), or only in combination with kexec? Thanks, Ingo