From 992066a427238f0d5eda379857388b2f45eea179 Mon Sep 17 00:00:00 2001 From: Tobias Diedrich Date: Mon, 10 Nov 2014 22:21:58 +0100 Subject: spd_cache debug: Log invalid CRC checksum "SPD has a invalid or zero-valued CRC" is not a very useful message, so show the actual and expected values. Change-Id: I31a1cdacc82240c699627769d490b94f5d378e86 Signed-off-by: Tobias Diedrich Reviewed-on: http://review.coreboot.org/7393 Reviewed-by: Edward O'Callaghan Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel --- src/northbridge/amd/agesa/common/common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/northbridge') diff --git a/src/northbridge/amd/agesa/common/common.c b/src/northbridge/amd/agesa/common/common.c index 91c58e3bd8..29b4c2e677 100644 --- a/src/northbridge/amd/agesa/common/common.c +++ b/src/northbridge/amd/agesa/common/common.c @@ -64,7 +64,8 @@ AGESA_STATUS common_ReadCbfsSpd (UINT32 Func, UINT32 Data, VOID *ConfigPtr) if (((info->Buffer[SPD_CRC_LO] == 0) && (info->Buffer[SPD_CRC_HI] == 0)) || (info->Buffer[SPD_CRC_LO] != (crc & 0xff)) || (info->Buffer[SPD_CRC_HI] != (crc >> 8))) { - printk(BIOS_WARNING, "SPD has a invalid or zero-valued CRC\n"); + printk(BIOS_WARNING, "SPD CRC %02x%02x is invalid, should be %04x\n", + info->Buffer[SPD_CRC_HI], info->Buffer[SPD_CRC_LO], crc); info->Buffer[SPD_CRC_LO] = crc & 0xff; info->Buffer[SPD_CRC_HI] = crc >> 8; u16 i; -- cgit v1.2.3