From patchwork Thu Feb 22 18:39:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Hansen X-Patchwork-Id: 204997 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp139303dyb; Thu, 22 Feb 2024 10:46:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV/9NtSL+X0pjWI4be0TBChWcS/+InotivF9eHzWW3/VJDm7Q/a6IMoRxq/++0m57zO5Bxo5Ho3vtN+ZZ2ChMadU835qg== X-Google-Smtp-Source: AGHT+IEpK7YH2TNVJUtjRJgeTdx+tsJZfpOBV2NQA5YLH0ltDDkB919mmSHX3IANibaVH5HsyUP2 X-Received: by 2002:a05:620a:34a:b0:785:ab77:fe6c with SMTP id t10-20020a05620a034a00b00785ab77fe6cmr21201455qkm.6.1708627618603; Thu, 22 Feb 2024 10:46:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708627618; cv=pass; d=google.com; s=arc-20160816; b=HU9iekBRu0bLtdjbj8EMqECM56Q/7kmoZS8sUiayVILcgMHuOxCYp2+zaldgDFU+S5 cq15FJtqdVEVbkmln+h9tN3BpshlwKlLt8gpr10hL7k3lecgOQfr8KkcOJMFEGGsfTY+ iobKxCakueiqv8gyLjvRsuIToY0fv5UplI+nvmQMN3sayAgiZY26PJRuvP2TJIWudM33 bgO9yOB1DLBkM9m8Pm81IxnRN1d0ArCnIDZ+J6Clwtvq7pgYdwUX6Hq0i/i2J7mqM/R8 VKltLLMMmSWrDVgptP75DP5L/mTw9hJsnAqHnRNO4TUHMAUvekQA4IEryOy7WygsoUtJ jUWw== 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=boncQHFCDeP953DR1zfMekeDxZk8HQLgMTTkGBGFyiI=; fh=HUgOPOMLUPcroonsK10/uEWpbBCP57e0QFUoVmMwghQ=; b=kPWMGRPooCYD8omfW3l6qIQo48JAWYUJ4z9urVHUlnWKsfWPSXNYEhWD7dlPM6Q7zJ yBye1vqk/lUopJbvSwj/wOhoy34gRkIbOhhqhmBGvz6W8jBBSwHyXLbpxnpRXm+/nipj 1npjLtUG96yVEHnTU5F+X4AWdcAX9d8mNmCfMEZJ5X2jZuuyxucE3T3BlmyB+XJIMkdh 2GDyaL/5+fcpDvW2mBWx387ItMdb3ID90kcBiauUPsWE7ezfGeluJJQ3Q9IvxjVFZSH8 ywr9yBoDAj0Ij426vAoFYiEhxJ8pyNqjbiTd2L4Ee/mO7T0VQCPHtyHpO7UXrsV1YJLr DI3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U++5FIQ9; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-77169-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77169-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y7-20020a05620a44c700b00787281f8a9esi14794398qkp.653.2024.02.22.10.46.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 10:46:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77169-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U++5FIQ9; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-77169-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77169-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 17F7A1C25B1B for ; Thu, 22 Feb 2024 18:46:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9493C140371; Thu, 22 Feb 2024 18:39:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="U++5FIQ9" 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 02214137911 for ; Thu, 22 Feb 2024 18:39:46 +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=1708627189; cv=none; b=pvMoZ0xPoXiOZpUVjXR0wzpw403puUnQOlerVpPqqWxOUzz25E6aKfqSvYNBrIq0E4EHo/OwrENpp0ivkvIAsHG5u50fPrEPKqRDJd8dxlhTN15h+W+8GYnr9xM5MItv/JWXwliJ1sgAoYhNttcX0NH9R7nshD77aneIYB26+eU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708627189; c=relaxed/simple; bh=84dXCfycOCeIkvzfMQyuyX9PyM2pSN/8B8x9nVAoz80=; h=Subject:To:Cc:From:Date:References:In-Reply-To:Message-Id; b=JrJclWTTrqo05/ScCDvgA2d+eODfrp5XF0yl7UmwlC0Q2VOLpA4ruEAgWLZiO67sQD0kJQLkjpPk25XtQHRiYCiisbkP4GssrSWYDUpK4raRuVdM5UGgDQn099ZBw2Ceb/z5OKhTp5rbfPlwZ7qKNz1prkuOcYd7qn8jaojLmFU= 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=U++5FIQ9; 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=1708627188; x=1740163188; h=subject:to:cc:from:date:references:in-reply-to: message-id; bh=84dXCfycOCeIkvzfMQyuyX9PyM2pSN/8B8x9nVAoz80=; b=U++5FIQ9pj7EBpG9tDUwXemy+cPOItPwJD86d+n3jPf3dZW8mgdbvZJu sNLaQ41H8bzPexATwOxZ8HZ9AbKrGGMbGvAug7jB7pNbFp/p/5WXHmUlm mgUZv0kcSQvdSR1WQcbr4x8MhzjzA0TP+/8U/qIuIONEz5RcR754MPLyO q1oHcAZsnv/g2Ezok1JSCundSXworTrL2MKstSmPRvE/+aU0IVzMSGjih QlW3VNxNNUCHkubHyrok8MNZfOoIQUtqCHXGQQcMg+4xKevUpoOfq38SC AqeV3nzCnjYMouKLuIdxO8Yv8fBtQ5SvoYVGD+HqGnQSJDjJpVs9/CLut g==; X-IronPort-AV: E=McAfee;i="6600,9927,10992"; a="3031804" X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="3031804" 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:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="5975520" 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:47 -0800 Subject: [RFC][PATCH 15/34] x86/cpu: Remove default x86_phys_bits assignment 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:46 -0800 References: <20240222183926.517AFCD2@davehans-spike.ostc.intel.com> In-Reply-To: <20240222183926.517AFCD2@davehans-spike.ostc.intel.com> Message-Id: <20240222183946.76C864D3@davehans-spike.ostc.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791625914020107497 X-GMAIL-MSGID: 1791625914020107497 From: Dave Hansen This was presumably needed for *some* reason at some point. It is useless now. Remove it. Signed-off-by: Dave Hansen --- b/arch/x86/kernel/setup.c | 1 - 1 file changed, 1 deletion(-) diff -puN arch/x86/kernel/setup.c~no-early-max_phys_bits-assign arch/x86/kernel/setup.c --- a/arch/x86/kernel/setup.c~no-early-max_phys_bits-assign 2024-02-22 10:08:55.736738995 -0800 +++ b/arch/x86/kernel/setup.c 2024-02-22 10:08:55.740739152 -0800 @@ -752,7 +752,6 @@ void __init setup_arch(char **cmdline_p) __flush_tlb_all(); #else printk(KERN_INFO "Command line: %s\n", boot_command_line); - boot_cpu_data.x86_phys_bits = MAX_PHYSMEM_BITS; #endif /*