From e9205d537ca92e0dfa882a76617e8e9fb664e108 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 6 Apr 2016 13:27:04 -0500 Subject: mb/asus/kgpe-d16|kcma-d8: Enable early MCE reporting Change-Id: I55e68c1dba2b5f1d086179af9b3bc30c5e471f6c Signed-off-by: Timothy Pearson Reviewed-on: https://review.coreboot.org/14266 Tested-by: build bot (Jenkins) Tested-by: Raptor Engineering Automated Test Stand Reviewed-by: Martin Roth --- src/mainboard/asus/kcma-d8/romstage.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mainboard/asus/kcma-d8/romstage.c') diff --git a/src/mainboard/asus/kcma-d8/romstage.c b/src/mainboard/asus/kcma-d8/romstage.c index 4552b1c37c..c217ff3db2 100644 --- a/src/mainboard/asus/kcma-d8/romstage.c +++ b/src/mainboard/asus/kcma-d8/romstage.c @@ -324,6 +324,7 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx) uint32_t bsp_apicid = 0, val; uint8_t byte; + uint8_t power_on_reset = 0; msr_t msr; int s3resume = acpi_is_wakeup_s3(); @@ -388,6 +389,10 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx) /* Setup sysinfo defaults */ set_sysinfo_in_ram(0); + if (!sb7xx_51xx_decode_last_reset()) + power_on_reset = 1; + + initialize_mca(1, power_on_reset); update_microcode(val); post_code(0x33); @@ -404,6 +409,7 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx) /* Setup any mainboard PCI settings etc. */ setup_mb_resource_map(); + initialize_mca(0, power_on_reset); post_code(0x36); /* Wait for all the APs core0 started by finalize_node_setup. */ -- cgit v1.2.3