[PATCH v2 0/2] Remove unneeded MKTME detection

From: alison . schofield
Date: Tue May 07 2024 - 00:24:33 EST


From: Alison Schofield <alison.schofield@xxxxxxxxx>

Changes in v2:
- Print the phys_addr bits reduction when BIOS enables MKTME (Kai)
- Remove init of keyid_bits (Kirill)
- Pick up Acked-by tags (Kirill, Kai)
- Update Patch 1 commit message phys addr bits note
- Rebase to latest tiptree
- Add note in this cover letter saying patches are independent

Link to v1:
https://lore.kernel.org/all/cover.1713929290.git.alison.schofield@xxxxxxxxx/


Begin original cover letter:

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. There are no
dependencies between the 2 patches. The code that Patch 2 removes
is not used anywhere, not even pre-Patch 1.

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 | 72 ++++--------------------
arch/x86/kernel/cpu/intel_pconfig.c | 84 ----------------------------
4 files changed, 13 insertions(+), 210 deletions(-)
delete mode 100644 arch/x86/include/asm/intel_pconfig.h
delete mode 100644 arch/x86/kernel/cpu/intel_pconfig.c


base-commit: 89948cc11a08639df9f004e866e51f9be887de88
--
2.37.3