soc/intel/apl: Call mca_configure() on cold boots only
By APL BIOS Spec, we must not do this on warm boots. The TODO comment seems stale and copied over. So the actual requirements for SGX are unknown and we add a guard for that case. Change-Id: I09b4a2fe22267d7318951aac20a3ea566403492e Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/c/31200 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
53229425c7
commit
aa4d9b94fd
|
@ -17,6 +17,7 @@
|
|||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <arch/acpi.h>
|
||||
#include <assert.h>
|
||||
#include <console/console.h>
|
||||
#include "chip.h"
|
||||
|
@ -70,9 +71,10 @@ static const struct reg_script core_msr_script[] = {
|
|||
void soc_core_init(struct device *cpu)
|
||||
{
|
||||
/* Clear out pending MCEs */
|
||||
/* TODO(adurbin): This should only be done on a cold boot. Also, some
|
||||
* of these banks are core vs package scope. For now every CPU clears
|
||||
* every bank. */
|
||||
/* TODO(adurbin): Some of these banks are core vs package
|
||||
scope. For now every CPU clears every bank. */
|
||||
if (IS_ENABLED(SOC_INTEL_COMMON_BLOCK_SGX) ||
|
||||
acpi_get_sleep_type() == ACPI_S5)
|
||||
mca_configure(NULL);
|
||||
|
||||
/* Set core MSRs */
|
||||
|
|
Loading…
Reference in New Issue