diff options
author | Patrick Rudolph <siro@das-labor.org> | 2016-11-25 15:40:07 +0100 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-04-04 18:50:57 +0200 |
commit | 413edc8f7a0cfbdee45077ecd8717e53e4124d47 (patch) | |
tree | e7a7a6926218bd265285099ca3d9daa11383bb54 /src/northbridge/intel | |
parent | cab4d3df3924c7679286e4048ada056b02cc3fa1 (diff) | |
download | coreboot-413edc8f7a0cfbdee45077ecd8717e53e4124d47.tar.xz |
nb/intel/sandybridge/raminit: Add debugging output
Add debugging output to normalize_training.
Tested on Lenovo T420.
Change-Id: I1d787f7ead6cf35ee142a8848837840c91cb6967
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/17608
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/northbridge/intel')
-rw-r--r-- | src/northbridge/intel/sandybridge/raminit_common.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/northbridge/intel/sandybridge/raminit_common.c b/src/northbridge/intel/sandybridge/raminit_common.c index 9d8e34960f..8baa0f25d1 100644 --- a/src/northbridge/intel/sandybridge/raminit_common.c +++ b/src/northbridge/intel/sandybridge/raminit_common.c @@ -3029,9 +3029,15 @@ void normalize_training(ramctr_timing * ctrl) int delta; FOR_ALL_LANES mat = max(ctrl->timings[channel][slotrank].lanes[lane].timA, mat); - delta = (mat >> 6) - ctrl->timings[channel][slotrank].val_4028; - ctrl->timings[channel][slotrank].val_4024 += delta; - ctrl->timings[channel][slotrank].val_4028 += delta; + printram("normalize %d, %d, %d: mat %d\n", + channel, slotrank, lane, mat); + + delta = (mat >> 6) - ctrl->timings[channel][slotrank].val_4028; + printram("normalize %d, %d, %d: delta %d\n", + channel, slotrank, lane, delta); + + ctrl->timings[channel][slotrank].val_4024 += delta; + ctrl->timings[channel][slotrank].val_4028 += delta; } FOR_ALL_POPULATED_CHANNELS { |