{cpu,soc}/intel: replace AES-NI locking by common implemenation call

Deduplicate code by using the new common cpu code implementation of
AES-NI locking.

Change-Id: I7ab2d3839ecb758335ef8cc6a0c0c7103db0fa50
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46278
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Michael Niewöhner
2020-10-11 17:34:54 +02:00
parent 2ac743330c
commit 63032439f4
9 changed files with 12 additions and 46 deletions

View File

@@ -216,11 +216,7 @@ static void model_2065x_init(struct device *cpu)
/* Set virtualization based on Kconfig option */
set_vmx_and_lock();
if (!intel_ht_sibling()) {
/* Lock AES-NI only if supported */
if (cpuid_ecx(1) & (1 << 25))
msr_set(MSR_FEATURE_CONFIG, BIT(0));
}
set_aesni_lock();
/* Configure Enhanced SpeedStep and Thermal Sensors */
configure_misc();

View File

@@ -470,11 +470,7 @@ static void model_206ax_init(struct device *cpu)
/* Thermal throttle activation offset */
configure_thermal_target();
if (!intel_ht_sibling()) {
/* Lock AES-NI only if supported */
if (cpuid_ecx(1) & (1 << 25))
msr_set(MSR_FEATURE_CONFIG, BIT(0));
}
set_aesni_lock();
/* Enable Direct Cache Access */
configure_dca_cap();