intel/skylake: do not save MRC data in recovery mode
If the system is in recovery don't bother saving MRC training data. BRANCH=None BUG=chrome-os-partner:48534 TEST=Built for kunimitsu. Results show MRC data is not saved in recovery mode. Change-Id: I236b7fe1860ac86722562c9a749067496dfe98f8 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: acca68bb5fece58549d762bfaef3e9f2eb0d3066 Original-Change-Id: Idb0cd7d7c789a58d05160968f6448cb59882056c Original-Signed-off-by: haridhar <haridhar.kalvala@intel.com> Original-Signed-off-by: Somayaji, Vishwanath <vishwanath.somayaji@intel.com> Original-Reviewed-on: https://chromium-review.googlesource.com/319221 Original-Commit-Ready: Haridhar Kalvala <haridhar.kalvala@intel.com> Original-Tested-by: Haridhar Kalvala <haridhar.kalvala@intel.com> Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Reviewed-by: Subrata Banik <subrata.banik@intel.com> Original-Reviewed-by: Haridhar Kalvala <haridhar.kalvala@intel.com> Reviewed-on: https://review.coreboot.org/13001 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
fefce18533
commit
07e9e6f737
|
@ -24,6 +24,7 @@
|
||||||
#include <soc/romstage.h>
|
#include <soc/romstage.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <timestamp.h>
|
#include <timestamp.h>
|
||||||
|
#include <bootmode.h>
|
||||||
|
|
||||||
void raminit(struct romstage_params *params)
|
void raminit(struct romstage_params *params)
|
||||||
{
|
{
|
||||||
|
@ -287,7 +288,8 @@ void raminit(struct romstage_params *params)
|
||||||
if (mrc_hob == NULL)
|
if (mrc_hob == NULL)
|
||||||
printk(BIOS_DEBUG,
|
printk(BIOS_DEBUG,
|
||||||
"Memory Configuration Data Hob not present\n");
|
"Memory Configuration Data Hob not present\n");
|
||||||
else {
|
else if (!recovery_mode_enabled()) {
|
||||||
|
/* Do not save MRC data in recovery path */
|
||||||
pei_ptr->data_to_save = GET_GUID_HOB_DATA(mrc_hob);
|
pei_ptr->data_to_save = GET_GUID_HOB_DATA(mrc_hob);
|
||||||
pei_ptr->data_to_save_size = ALIGN(
|
pei_ptr->data_to_save_size = ALIGN(
|
||||||
((u32)GET_HOB_LENGTH(mrc_hob)), 16);
|
((u32)GET_HOB_LENGTH(mrc_hob)), 16);
|
||||||
|
|
Loading…
Reference in New Issue