Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47618 )
Change subject: [WIP] nb/intel/sandybridge: Add debug prints on fine rcven ......................................................................
[WIP] nb/intel/sandybridge: Add debug prints on fine rcven
Change-Id: Icad4db68b738d30d4b450b32af8ea7557f20a454 Signed-off-by: Angel Pons th3fanbus@gmail.com --- M src/northbridge/intel/sandybridge/raminit_common.c 1 file changed, 21 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/18/47618/1
diff --git a/src/northbridge/intel/sandybridge/raminit_common.c b/src/northbridge/intel/sandybridge/raminit_common.c index ec45a8e..9e60cf8 100644 --- a/src/northbridge/intel/sandybridge/raminit_common.c +++ b/src/northbridge/intel/sandybridge/raminit_common.c @@ -1281,6 +1281,17 @@ } } } + + printk(BIOS_ERR, "Channel %d results:\n", channel); + printk(BIOS_ERR, "Delay\t01234567%c\n", ctrl->lanes == NUM_LANES ? '8' : ' '); + for (i = -25; i <= 25; i++) { + printk(BIOS_ERR, "% 5d\t", i); + FOR_ALL_LANES { + printk(BIOS_ERR, "%c", statistics[lane][i + 25] ? '#' : '.'); + } + printk(BIOS_ERR, "\n"); + } + FOR_ALL_LANES { int last_zero, first_all;
@@ -2424,6 +2435,16 @@ } }
+ printk(BIOS_ERR, "Channel %d results:\n", channel); + printk(BIOS_ERR, "DqsPI\t01234567%c\n", ctrl->lanes == NUM_LANES ? '8' : ' '); + for (dqs_pi = 0; dqs_pi <= MAX_EDGE_TIMING; dqs_pi++) { + printk(BIOS_ERR, "% 5d\t", dqs_pi); + FOR_ALL_LANES { + printk(BIOS_ERR, "%c", stats[lane][dqs_pi] ? '#' : '.'); + } + printk(BIOS_ERR, "\n"); + } + FOR_ALL_LANES { struct run rn = get_longest_zero_run(stats[lane], MAX_EDGE_TIMING + 1); edges[lane] = rn.middle;