From 1eff77bc59b77735872e675a8df4f059245e4be7 Mon Sep 17 00:00:00 2001 From: Jeremy Compostella Date: Thu, 7 Sep 2023 10:33:30 -0700 Subject: arch/x86: Reduce max phys address size for Intel TME capable SoCs On Intel SoCs, if TME is supported, TME key ID bits are reserved and should be subtracted from the maximum physical addresses available. BUG=288978352 TEST=Verified that DMAR ACPI table `Host Address Width` field on rex went from 45 to 41. Signed-off-by: Cliff Huang Signed-off-by: Jeremy Compostella Change-Id: I9504a489782ab6ef8950a8631c269ed39c63f34d Reviewed-on: https://review.coreboot.org/c/coreboot/+/77613 Tested-by: build bot (Jenkins) Reviewed-by: Wonkyu Kim Reviewed-by: Bora Guvendik Reviewed-by: Eric Lai --- src/include/cpu/intel/msr.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/cpu/intel') diff --git a/src/include/cpu/intel/msr.h b/src/include/cpu/intel/msr.h index 8efe4e2c62..75c12a8be9 100644 --- a/src/include/cpu/intel/msr.h +++ b/src/include/cpu/intel/msr.h @@ -33,4 +33,7 @@ #define MSR_PKG_C10_RESIDENCY 0x632 +#define MSR_TME_ACTIVATE 0x982 +#define TME_ACTIVATE_HI_KEYID_BITS_MASK 0xf + #endif /* CPU_INTEL_MSR_H */ -- cgit v1.2.3