Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp44044lqf; Thu, 25 Apr 2024 21:25:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVaHfZc4QJKyPtHRji8MWnc/RCNXLOex5HD8uQ9+oQiLQNknvuhiFIv6I4CQ3ZMWIJZ4aGSO/OOyXm41kDid7+3o519teT0APGCX5nK3g== X-Google-Smtp-Source: AGHT+IG+l9MZ1J23Wh1Pi4b9pb4cKSEMFmcODvtWzdm6ANtOKdkD/XFztBgkHez40l1c0pmPo2I+ X-Received: by 2002:a05:6e02:b4b:b0:36c:c6d:54ba with SMTP id f11-20020a056e020b4b00b0036c0c6d54bamr2222181ilu.9.1714105504410; Thu, 25 Apr 2024 21:25:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714105504; cv=pass; d=google.com; s=arc-20160816; b=V8J2Zj+gORqv7OxjWXTvcoff0VNnzBPkTna1U8d1AGUTp0q1uSh4ml/o6WKbsjsYr2 p4IVSB6U+3Uw5pWrVBH3BXz7pRQ6Vy+URVnxQ7Q3SsNg8z72yJanY3R41P+fN51xnDcI kpynlYR3Wnj8GyHP3bhb4efNhoDtyQ4TOYDGXn0K/xWTOGPeXQwdf1qebbMZPH6e2Q5W E3u98/yTc7406al3jL3RpPpBnBNcdMyks+PD0mMw9ZhyJ0/3BPSi2k9jR/CgSuWUSpW1 k/MRU98J6x8450HA0AtIWnC0KMDACG23yG7As/GU1eh9DKni+3NHCwhA3Y/YO8O2q8my MelQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=8jir5QcLv39404bohTVlVI9D00trVqCg/7wRg832+WA=; fh=O/rJ+8JWHwq403yEMntx8jHf9XigoWwYEQ3YkF8mAdw=; b=EJWEmR68SScmOrPsJjtdoKnlEfn7rLC8fcxsIld5hVgeFMtoCYbmSq0/+kixjleZeJ b9vaRwXXcZbO+wHnyCcTEuq7CGev2c9aBf3bVJozwwXH1VjHtYdSC8c5N+alMJUsKtyR 2q30nN4KcHmQBZVER8jvEWwQHe83CcOrKmGM2yxrPr5e5DenMO0oH3r60/7KzQVnkC0M 0sEbhWRS/Va0VNQFGfvWZnavJVpAKLG7OHjVzovqLwp6DXspWMiDiJ7ygNpcQaiJbAMZ YdrywA4d/VA0FSLXNEJvWMUXH9J9tGlBQkVbVS0ZvWP1nunWtRpyenX1rXTIhjzHGV/4 xj3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TZve51dG; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-159498-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159498-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s18-20020a63ff52000000b005cd90b47495si13863029pgk.264.2024.04.25.21.25.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 21:25:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159498-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TZve51dG; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-159498-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159498-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 0AD04283480 for ; Fri, 26 Apr 2024 04:25:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AFD94824AA; Fri, 26 Apr 2024 04:24:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TZve51dG" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 D942E8473 for ; Fri, 26 Apr 2024 04:24:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714105497; cv=none; b=CT2Sz6eZGWesP3Jjn1xLxdb4UEeXZlkihKPhL7Kv4gCcaC328T35qJ9LIONEO+wJ0Ok8B3UL3gc3Q9SL2Nn19uiZlqSJ6RCgHbnbQMiMDktNg8nIqfZhc8i4Iq1if/+WH9qOzneLfEwhlFIk5CNNZLo291m+9GNBtVk6w7WtWWg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714105497; c=relaxed/simple; bh=5l0mKCDLVS99Sq0Y98eODuHG+rgoENHP4YgrcPrSjws=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=sFgCnZ5tmZ2VvfcY+9TOt3iQfxPvUHsF3kPsRNjlxpYgOHLI1ZIsDKmkdmjsO14zB5Y5jI9BJJqmeVKeowQshJpfPyvkeIX0SepSzFqdMhI2cC5CXJHHTR+Rnwwavi+T6WRq8YCzw9g1JBh6FR75W3ugiYd+L6sOm3FSwzTAdl4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=TZve51dG; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714105496; x=1745641496; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=5l0mKCDLVS99Sq0Y98eODuHG+rgoENHP4YgrcPrSjws=; b=TZve51dGrg99tQHqGUn4ZKcOduu22d/CXrh0jWPNLoVPWfW03MToqD6T gZf7IDwERyeqjsdljNp+ETgcWsE5xUgadgQPFvwKOJ8XZ+945teisG4cL kRDqrKcJV2oFiu1hI7i3AFUnqWrILHkz3g8H9nZFbuMfstTsdOzUueWCZ S7ls/Yn+yZ+B1rQ7cWI1RCgl60kW/iqSYqre5POqbdxMvAhw6MYoZvfsj 8qfbtoMjNPfPeRM2CvsF5QngbrI5EbzHwX6PTCrqUeXKXvqgLEbOX3bsz zD4ZPIbi0PPQSMo4wi0dYDHZNv9umROc4Lc5NafbAlQRqZGleYVuQv6h3 Q==; X-CSE-ConnectionGUID: MKOlzwYaTbqZ74jhsTzD0w== X-CSE-MsgGUID: LwRR7LGYS566m0OO9JQzvg== X-IronPort-AV: E=McAfee;i="6600,9927,11055"; a="13613161" X-IronPort-AV: E=Sophos;i="6.07,231,1708416000"; d="scan'208";a="13613161" Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2024 21:24:55 -0700 X-CSE-ConnectionGUID: Pg0AxfL3SAqXoEQUfLZ9cw== X-CSE-MsgGUID: wErNLG5lTVSKjzUBeQNOmg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,231,1708416000"; d="scan'208";a="30099318" Received: from aschofie-mobl2.amr.corp.intel.com (HELO localhost) ([10.252.128.24]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2024 21:24:55 -0700 From: alison.schofield@intel.com To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: Alison Schofield , "H. Peter Anvin" , "Kirill A. Shutemov" , Kai Huang , linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Remove unneeded MKTME detection Date: Thu, 25 Apr 2024 21:24:51 -0700 Message-Id: X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Alison Schofield MKTME detection was added in anticipation of full kernel support that never followed. Aside from just good housekeeping, this cleanup is inspired by users who are confused by the TME/MKTME messaging during boot. The first patch cleans up the TME & MKTME detection code and the second patch removes the unused pconfig code. Testing was done on a platform supporting MKTME using the BIOS option to enable/disable MKTME prior to boot. Alison Schofield (2): x86/cpu: Remove useless work in detect_tme_early() x86/pconfig: Remove unused MKTME pconfig code arch/x86/include/asm/intel_pconfig.h | 65 --------------------- arch/x86/kernel/cpu/Makefile | 2 +- arch/x86/kernel/cpu/intel.c | 71 ++++------------------- arch/x86/kernel/cpu/intel_pconfig.c | 84 ---------------------------- 4 files changed, 13 insertions(+), 209 deletions(-) delete mode 100644 arch/x86/include/asm/intel_pconfig.h delete mode 100644 arch/x86/kernel/cpu/intel_pconfig.c base-commit: 5a04007fb7a9a3f101fe551f0e47849f2cd1125b -- 2.37.3