Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp634215rdb; Thu, 22 Feb 2024 14:45:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUVqbyi2t9DXbrLRj7UIO0lLfXwnckPbdgEgKXmlihHpM1ZlQGz1QlO7YP/wy1vgllzywVFxi7LsZoKFVQ6sZA1kniIoRtydBXqzeTOmw== X-Google-Smtp-Source: AGHT+IH5JWY7i9T8NykNxRt/hr8s30aUuTpt6k3fmqLFz2aEUmTUvhswzPhIuNQMsePSjleA/8Aq X-Received: by 2002:a9d:7547:0:b0:6e2:d93f:376 with SMTP id b7-20020a9d7547000000b006e2d93f0376mr450961otl.8.1708641904146; Thu, 22 Feb 2024 14:45:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708641904; cv=pass; d=google.com; s=arc-20160816; b=b0HEfYzPKVPv1C6sIlIOsM7prmckgKWebPreMWQop9tVZtry467/6GATBMzqAAw4WW +NuyqPALzJe5pK8CTboDUkTwx8UsFTezqQQuEEnGjRA8CqFbl55T9giFmGVsjH37erUR YMTCihKIDqbk2QpjkCf+0NMh/crbZC5qsMAh/NWM1qpBRpAhIPGnuAU9bwB89TFjV4nq 5fAKqEAoB+dmbL16H8wYSJ/JdigYScHp2dMtpbkmLcszM1yKZlRKJepClxrZ9Bz7NuKe dF1u6kjHlNMip3FwrASNXJErVkWAuE6aQzHM+qru2+/hvbqLhoW3eZRskik5L5zyFm8K iJqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id :in-reply-to:references:date:from:cc:to:subject:dkim-signature; bh=u0z8UH8mt4jvSoCLr8BlEBk5fkbd0rQ9j6hyH+Pq1YM=; fh=HUgOPOMLUPcroonsK10/uEWpbBCP57e0QFUoVmMwghQ=; b=vb5+Axsxh3J+5HnRB6NdDrXI2LgY12roXPjc8tlXc8wrDd0XQxvzRdylk+X1uQC1G1 HiPCzaRR/076q+XF+ZpOm3F5qYq3bBxIBWScfHM+1pc185qumQzWf5Z3hhcOz07TVCa0 f6mGNCkHutH+PY/8xL4o395N6FRSFqOdTX6qGjEs9zHTr66u6fAxvsIG+uImb4UiPoU0 z1Gi2bj//m9yrKOoNcmmq8wxi3bwiDlH7nf0BV5flLiNQF4PY1MRke9UBPtNxHLUaix4 WATcFzYrRPWaOX/PvLfDJ2buEpb5XdVR95pt5UcHO3w9CwGAzig+iC8bBCharrpAuvZx rhTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FcaNhyrb; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-77168-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a65-20020a639044000000b005dc8372020esi10964128pge.580.2024.02.22.14.45.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 14:45:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77168-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FcaNhyrb; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-77168-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3DDE228A395 for ; Thu, 22 Feb 2024 18:46:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ECE5D137931; Thu, 22 Feb 2024 18:39:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FcaNhyrb" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 BC6D112D20E for ; Thu, 22 Feb 2024 18:39:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708627187; cv=none; b=U3WJf2Q69u1ObdDMxB8LfbJAacf6kDSK9HjviHpncmdGz6TM/O+8yREYHCrWkISKO9ZVFN3x/bfv+8/YdwWLSq/csH8NQy7xsI2TrpHBqS73yiQMSU+VC1+pwpJH75SVVhsJyDs0Nukf/rvU9Qc0inacM86gHT2W/ZNhFb9icc4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708627187; c=relaxed/simple; bh=MxDsNdC/Re/7k1BR0zpTGqTAJuSw/SegugBpbmZ6QI8=; h=Subject:To:Cc:From:Date:References:In-Reply-To:Message-Id; b=K3UiVI9/ZGf9Gy4apX77bpfJuXmWWX9/Ffp2hh9wG6iH/14jeag+6AshZAsXcRe5KJ4kPh1PMT+9lbckSmenNBZjIfr/2QN628YorhrpyicQRcpoInu9mNoIEEIOxtQ+HO0A3bmMxp6ww9Z6FBnnxqNKkTz9tUNZ/udILWJlrK8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=FcaNhyrb; arc=none smtp.client-ip=198.175.65.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708627186; x=1740163186; h=subject:to:cc:from:date:references:in-reply-to: message-id; bh=MxDsNdC/Re/7k1BR0zpTGqTAJuSw/SegugBpbmZ6QI8=; b=FcaNhyrblZD/yxmmP1MJ/1bCBooha2xJU+c0BlVlTryNcSbp5mAfYOMI sIqktRSMzmCkAj0HnTbWh8mS3XfYP9Tp5SLy1o2D62x1ydc7IMT3C0Otp yLP1Y0CD29fbCD50o70DV3PRMUXmDLitvrG5sn5SwUqLvS2J2a7nF4y6d S4Jc3l9EOh7ypH0E7UvIZc2h2pwmEFYysYRb9zDTNTQpBc22SwSiArcF0 2KhlMNtV2qvLlniEyXwTu49gYtFLWV068vBVqsLANnnUVAO8n5Zkr/Lyi gHjhHD6bbHVt4Hc9jDBDcIF4MxGXPIhKIJB/qnL8OWAVx3XU3wJPMxhk6 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10992"; a="3031792" X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="3031792" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2024 10:39:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="5975510" Received: from davehans-spike.ostc.intel.com (HELO localhost.localdomain) ([10.165.164.11]) by orviesa008.jf.intel.com with ESMTP; 22 Feb 2024 10:39:46 -0800 Subject: [RFC][PATCH 14/34] x86/cpu: Remove default physical address space settings To: linux-kernel@vger.kernel.org Cc: kirill.shutemov@linux.intel.com,pbonzini@redhat.com,tglx@linutronix.de,x86@kernel.org,bp@alien8.de,Dave Hansen From: Dave Hansen Date: Thu, 22 Feb 2024 10:39:45 -0800 References: <20240222183926.517AFCD2@davehans-spike.ostc.intel.com> In-Reply-To: <20240222183926.517AFCD2@davehans-spike.ostc.intel.com> Message-Id: <20240222183945.877FCD8C@davehans-spike.ostc.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: From: Dave Hansen At this point, the secondary CPUs' c->x86_phys_bits should be unused. The boot CPU values were also established long before reaching here. This can only serve to sow chaos. Remove the twiddling. Signed-off-by: Dave Hansen --- b/arch/x86/kernel/cpu/common.c | 2 -- 1 file changed, 2 deletions(-) diff -puN arch/x86/kernel/cpu/common.c~no-default-bit-setting-phys arch/x86/kernel/cpu/common.c --- a/arch/x86/kernel/cpu/common.c~no-default-bit-setting-phys 2024-02-22 10:08:55.256720151 -0800 +++ b/arch/x86/kernel/cpu/common.c 2024-02-22 10:08:55.260720308 -0800 @@ -1827,12 +1827,10 @@ static void identify_cpu(struct cpuinfo_ c->topo.l2c_id = BAD_APICID; #ifdef CONFIG_X86_64 c->x86_clflush_size = 64; - c->x86_phys_bits = 36; c->x86_virt_bits = 48; #else c->cpuid_level = -1; /* CPUID not detected */ c->x86_clflush_size = 32; - c->x86_phys_bits = 32; c->x86_virt_bits = 32; #endif c->x86_cache_alignment = x86_clflush_size(); _