soc/intel: Fill DIMM serial number from SPD
Fill the DIMM serial number field for SMBIOS from the saved SPD
data that is returned by FSP.
BUG=b:132970635
TEST=This was tested on sarien to ensure that SMBIOS type 17
filled the serial number from the DIMM:
Handle 0x000B, DMI type 17, 40 bytes
Memory Device
Locator: DIMM-A
Serial Number: 41164beb
Change-Id: I85438bd1d581095ea3482dcf077a7f3389f1cd47
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32853
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lijian Zhao <lijian.zhao@intel.com>
This commit is contained in:
committed by
Duncan Laurie
parent
9beb52a17c
commit
46340d076a
@@ -22,7 +22,7 @@
|
||||
void dimm_info_fill(struct dimm_info *dimm, u32 dimm_capacity, u8 ddr_type,
|
||||
u32 frequency, u8 rank_per_dimm, u8 channel_id, u8 dimm_id,
|
||||
const char *module_part_num, size_t module_part_number_size,
|
||||
u16 data_width)
|
||||
const u8 *module_serial_num, u16 data_width)
|
||||
{
|
||||
dimm->dimm_size = dimm_capacity;
|
||||
dimm->ddr_type = ddr_type;
|
||||
@@ -34,6 +34,9 @@ void dimm_info_fill(struct dimm_info *dimm, u32 dimm_capacity, u8 ddr_type,
|
||||
module_part_num,
|
||||
min(sizeof(dimm->module_part_number),
|
||||
module_part_number_size));
|
||||
if (module_serial_num)
|
||||
memcpy(dimm->serial, module_serial_num,
|
||||
DIMM_INFO_SERIAL_SIZE);
|
||||
switch (data_width) {
|
||||
case 8:
|
||||
dimm->bus_width = MEMORY_BUS_WIDTH_8;
|
||||
|
||||
Reference in New Issue
Block a user