From ac6bd5b037269a85eb67f444b81818618c88b33f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 29 Apr 2016 01:40:30 -0500 Subject: [PATCH] nb/amd/mct_ddr3: Warn if MaxRdLatency training fails on Family 15h Change-Id: Idb948acd1a508379f600fbd2fd40fb26b7571d7c Signed-off-by: Timothy Pearson Reviewed-on: https://review.coreboot.org/14545 Tested-by: build bot (Jenkins) Tested-by: Raptor Engineering Automated Test Stand Reviewed-by: Martin Roth --- src/northbridge/amd/amdmct/mct_ddr3/mctsrc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/northbridge/amd/amdmct/mct_ddr3/mctsrc.c b/src/northbridge/amd/amdmct/mct_ddr3/mctsrc.c index 77ae4838cc..be956476b8 100644 --- a/src/northbridge/amd/amdmct/mct_ddr3/mctsrc.c +++ b/src/northbridge/amd/amdmct/mct_ddr3/mctsrc.c @@ -1690,6 +1690,9 @@ static void dqsTrainMaxRdLatency_SW_Fam15(struct MCTStatStruc *pMCTstat, break; Set_NB32_index_wait_DCT(dev, Channel, index_reg, 0x00000050, 0x13131313); } + dword = Get_NB32_DCT(dev, Channel, 0x268) & 0x3ffff; + if (dword) + printk(BIOS_ERR, "WARNING: MaxRdLatency training FAILED! Attempting to continue but your system may be unstable...\n"); /* 2.10.5.8.5.1.5 */ nb_pstate = 0;