UPSTREAM: amd/mct/ddr3: Correctly program maximum read latency
The existing code inadvertently calculated the maximum read
latency for nonexistent channel 2 instead of for channels
0 and 1 as intended. Fix the calls to the maximum read latency
training function.
BUG=none
BRANCH=none
TEST=none
Change-Id: I020e2cf73a59d31d83ce63392f39419e714f0fd6
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 8fa624784e
Original-Found-by: Coverity Scan #1347354
Original-Change-Id: If34b204ac73cd20859102cc3b2f40bc99c2ce471
Original-Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
Original-Reviewed-on: https://review.coreboot.org/18072
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Martin Roth <martinroth@google.com>
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Original-Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
Reviewed-on: https://chromium-review.googlesource.com/428244
Commit-Ready: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
f827fada9d
commit
d806451951
1 changed files with 3 additions and 2 deletions
|
|
@ -1484,8 +1484,9 @@ static void dqsTrainRcvrEn_SW_Fam15(struct MCTStatStruc *pMCTstat,
|
|||
}
|
||||
}
|
||||
|
||||
/* Calculate and program MaxRdLatency */
|
||||
Calc_SetMaxRdLatency_D_Fam15(pMCTstat, pDCTstat, Channel, 0);
|
||||
/* Calculate and program MaxRdLatency for both channels */
|
||||
Calc_SetMaxRdLatency_D_Fam15(pMCTstat, pDCTstat, 0, 0);
|
||||
Calc_SetMaxRdLatency_D_Fam15(pMCTstat, pDCTstat, 1, 0);
|
||||
|
||||
if (_DisableDramECC) {
|
||||
mct_EnableDimmEccEn_D(pMCTstat, pDCTstat, _DisableDramECC);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue