coreboot-kgpe-d16/src
Subrata Banik 3306f37fd6 lib: Add new argument as `ddr_type` to smbios_bus_width_to_spd_width()
Add DDR5 and LPDDR5 memory type checks while calculating bus width
extension (in bits).

Additionally, update all caller functions of
smbios_bus_width_to_spd_width() to pass `MemoryType` as argument.

Update `test_smbios_bus_width_to_spd_width()` to accommodate
different memory types.

Create new macro to fix incorrect bus width reporting
on platform with DDR5 and LPDDR5 memory.

With this code changes, on DDR5 system with 2 Ch per DIMM, 32 bit
primary bus width per Ch showed the Total width as:

Handle 0x000F, DMI type 17, 40 bytes
Memory Device
	Array Handle: 0x0009
	Error Information Handle: Not Provided
	Total Width: 80 bits
	Data Width: 64 bits
	Size: 16 GB
	...

BUG=b:194659789
Tested=On Alder Lake DDR5 RVP, SMBIOS type 17 shows expected `Total Width`.

Change-Id: I79ec64c9d522a34cb44b3f575725571823048380
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58601
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Rob Barnes <robbarnes@google.com>
2021-11-02 08:13:25 +00:00
..
acpi acpi/acpigen.c: Remove weak gpio definition 2021-10-29 00:52:50 +00:00
arch arch/x86: fix a wrong variable in ioapic_set_max_vectors() 2021-10-23 16:33:58 +00:00
commonlib commonlib/region: Add rdev_readat_full helper method 2021-11-01 18:01:53 +00:00
console src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
cpu src/cpu: drop CPU_X86_CACHE_HELPER and x86_enable_cache wrapper function 2021-10-26 20:27:22 +00:00
device src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
drivers drivers/intel/fsp2_0: Check return type against CB_SUCCESS 2021-10-30 13:12:43 +00:00
ec ec/google/chromeec: Register USB-C mux operations 2021-10-06 22:20:32 +00:00
include lib: Add new argument as `ddr_type` to smbios_bus_width_to_spd_width() 2021-11-02 08:13:25 +00:00
lib lib: Add new argument as `ddr_type` to smbios_bus_width_to_spd_width() 2021-11-02 08:13:25 +00:00
mainboard mb/google/zork/var/vilboz: Generate new SPD ID for new memory parts 2021-11-02 08:12:22 +00:00
northbridge AGESA binaryPI: Use common acpi_fill_madt() 2021-10-22 14:28:27 +00:00
security security/intel/txt: Get addr bits at runtime 2021-11-01 15:59:54 +00:00
soc lib: Add new argument as `ddr_type` to smbios_bus_width_to_spd_width() 2021-11-02 08:13:25 +00:00
southbridge arch/x86/ioapic: Select IOAPIC with SMP 2021-10-22 14:18:45 +00:00
superio src/soc to src/superio: Fix spelling errors 2021-10-05 18:07:08 +00:00
vendorcode vc/mediatek/mt8195: Remove unused code and comments 2021-11-01 15:57:11 +00:00
Kconfig arch/x86/ioapic: Select IOAPIC with SMP 2021-10-22 14:18:45 +00:00