2021-06-13 11:05:18 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
|
2020-10-11 13:00:27 +02:00
|
|
|
#ifndef CPU_INTEL_MSR_H
|
|
|
|
#define CPU_INTEL_MSR_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Common MSRs for Intel CPUs
|
|
|
|
*/
|
|
|
|
|
2020-10-11 14:05:32 +02:00
|
|
|
#define MSR_PIC_MSG_CONTROL 0x2e
|
2020-10-20 14:27:09 +02:00
|
|
|
#define TPR_UPDATES_DISABLE (1 << 10)
|
2020-10-11 14:05:32 +02:00
|
|
|
|
2020-10-15 16:11:19 +02:00
|
|
|
#define MSR_PLATFORM_INFO 0xce
|
|
|
|
|
2019-11-08 17:05:04 +01:00
|
|
|
#define MSR_BC_PBEC 0x139
|
|
|
|
#define B_STOP_PBET (1 << 0)
|
|
|
|
|
2021-05-10 09:23:31 +02:00
|
|
|
#define MSR_BOOT_GUARD_SACM_INFO 0x13a
|
|
|
|
#define V_TPM_PRESENT_MASK 0x06
|
|
|
|
#define B_BOOT_GUARD_SACM_INFO_NEM_ENABLED (1 << 0)
|
|
|
|
#define B_BOOT_GUARD_SACM_INFO_TPM_SUCCESS (1 << 3)
|
|
|
|
#define B_BOOT_GUARD_SACM_INFO_MEASURED_BOOT (1 << 5)
|
|
|
|
#define B_BOOT_GUARD_SACM_INFO_VERIFIED_BOOT (1 << 6)
|
|
|
|
#define B_BOOT_GUARD_SACM_INFO_REVOKED (1 << 7)
|
|
|
|
#define B_BOOT_GUARD_SACM_INFO_BTG_CAPABILITY (1ull << 32)
|
|
|
|
#define B_BOOT_GUARD_SACM_INFO_TXT_CAPABILITY (1ull << 34)
|
|
|
|
|
2021-06-13 11:24:11 +02:00
|
|
|
#define MSR_FEATURE_CONFIG 0x13c
|
|
|
|
#define AESNI_DISABLE (1 << 1)
|
|
|
|
#define AESNI_LOCK (1 << 0)
|
|
|
|
|
2021-03-25 13:02:22 +01:00
|
|
|
#define MSR_SPCL_CHIPSET_USAGE 0x1fe
|
|
|
|
|
2021-01-01 21:04:37 +01:00
|
|
|
#define MSR_PKG_C10_RESIDENCY 0x632
|
|
|
|
|
2020-10-11 13:00:27 +02:00
|
|
|
#endif /* CPU_INTEL_MSR_H */
|