Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47626 )
Change subject: [WIP] plot TxDQ ......................................................................
[WIP] plot TxDQ
Change-Id: I72089ac4f4ff272731032e77f246a57a30051334 Signed-off-by: Angel Pons th3fanbus@gmail.com --- M src/northbridge/intel/sandybridge/raminit_common.c 1 file changed, 11 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/26/47626/1
diff --git a/src/northbridge/intel/sandybridge/raminit_common.c b/src/northbridge/intel/sandybridge/raminit_common.c index 1bf4673..8a2e7f7 100644 --- a/src/northbridge/intel/sandybridge/raminit_common.c +++ b/src/northbridge/intel/sandybridge/raminit_common.c @@ -1613,6 +1613,17 @@ stats[lane][tx_dq] = MCHBAR32(IOSAV_By_ERROR_COUNT_ch(channel, lane)); } } + + printk(BIOS_ERR, "Channel %d results:\n", channel); + printk(BIOS_ERR, "Delay\t01234567%c\n", ctrl->lanes == NUM_LANES ? '8' : ' '); + for (tx_dq = 0; tx_dq <= MAX_TIMC; tx_dq++) { + printk(BIOS_ERR, "% 5d\t", tx_dq); + FOR_ALL_LANES { + printk(BIOS_ERR, "%c", stats[lane][tx_dq] ? '#' : '.'); + } + printk(BIOS_ERR, "\n"); + } + FOR_ALL_LANES { struct run rn = get_longest_zero_run(stats[lane], ARRAY_SIZE(stats[lane]));