coreboot-kgpe-d16/src/arch
Raul E Rangel 99f54a60bf include/memory_info.h: Change serial number field from 5 bytes to 4
dimm_info.serial had a strange contract. The SPD spec defines a 4 byte
serial number. dimm_info.serial required a 4 character ascii string with
a null terminator.

This change makes the serial field so it matches the SPD spec.
smbios.c will then translate the byte array into hex and set it on the
smbios table.

There were only two callers that set the serial number:
* haswell/raminit.c: already does a memcpy(serial, spd->serial, 4), so
  it already matches the new contract.
* amd_late_init.c: Previously copied the last 4 characters. Requires
  decoding the serial number into a byte array.

google/cyan/spd/spd.c: This could be updated to pass the serial number,
but it uses a hard coded spd.bin.

Testing this on grunt, dmidecode now shows the full serial number:
        Serial Number: 00000000

BUG=b:65403853
TEST=tested on grunt

Change-Id: Ifc58ad9ea4cdd2abe06a170a39b1f32680e7b299
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-on: https://review.coreboot.org/25343
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2018-04-12 15:21:45 +00:00
..
arm Constify struct cpu_device_id instances 2017-11-23 05:00:17 +00:00
arm64 arch/arm64/armv8/mmu: Add support for 48bit VA 2018-03-23 04:09:50 +00:00
mips Constify struct cpu_device_id instances 2017-11-23 05:00:17 +00:00
power8 Constify struct cpu_device_id instances 2017-11-23 05:00:17 +00:00
riscv arch/riscv: Remove I/O space access functions (outb, etc.) 2018-04-11 09:30:08 +00:00
x86 include/memory_info.h: Change serial number field from 5 bytes to 4 2018-04-12 15:21:45 +00:00