switch-coreboot/src
Richard Spiegel bd65480593 src/arch/x86/smbios.c: Fix type 17 part number
Some DIMMs have invalid strings when it comes to device part number
(bytes 0x149-0x15c). From DDR4 SPD specs it should be ASCIIZ with unused
space filled with white spaces (ASCII 0x20). Byte 20 should be 0 (ASCIIZ),
all others should be ASCII.

Create a test that detects invalid strings and replace invalid
characters with *. If a replacement was made the output string then must
be <Invalid (replaced string)>.

BUG=b:73122207
TEST=Build, boot and record serial output for kahlee while injecting
different strings to dmi17->PartNumber. Use code to examine SMBIOS,
while testing different valid and invalid strings.
Remove string injection before committing.

Change-Id: Iead2a4cb14ff28d263d7214111b637e62ebd2921
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/23844
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
2018-02-26 15:06:58 +00:00
..
acpi arch/x86: Add common AMD ACPI hardware definitions 2017-11-10 19:15:38 +00:00
arch src/arch/x86/smbios.c: Fix type 17 part number 2018-02-26 15:06:58 +00:00
commonlib lib/stage_cache: Add save/get raw storage 2018-02-07 16:22:40 +00:00
console console: Introduce a way for mainboard to override the loglevel 2018-02-23 08:44:59 +00:00
cpu driver/uart: Introduce a way for mainboard to override the baudrate 2018-02-21 16:09:06 +00:00
device device/ddr2,ddr3: Rename and move a few things 2018-02-22 10:07:53 +00:00
drivers driver/uart: Introduce a way for mainboard to override the baudrate 2018-02-21 16:09:06 +00:00
ec ec/google/chromeec: Remove extra newline characters from printk 2018-02-26 15:05:08 +00:00
include src/arch/x86/smbios.c: Fix type 17 part number 2018-02-26 15:06:58 +00:00
lib lib/stage_cache: Add save/get raw storage 2018-02-07 16:22:40 +00:00
mainboard mb/siemens/mc_bdx1: Avoid dereferencing a NULL pointer 2018-02-26 05:35:58 +00:00
northbridge device/ddr2,ddr3: Rename and move a few things 2018-02-22 10:07:53 +00:00
security security/vboot: overwrite existing spaces during factory init for tpm2 2018-02-07 02:37:25 +00:00
soc soc/amd/common/block/pi/amd_late_init.c: Fix part number 2018-02-26 15:06:36 +00:00
southbridge drivers/spi: support cmd opcode deduction for spi_crop_chunk() 2018-01-30 05:37:47 +00:00
superio Intel i3100 boards & chips: Remove - using LATE_CBMEM_INIT 2018-01-15 23:25:12 +00:00
vendorcode intel/fsp: Update cannonlake fsp header 2018-02-14 17:01:25 +00:00
Kconfig arch/riscv: Don't set up virtual memory 2018-02-20 20:45:22 +00:00