coreboot/src
Johnny Lin cfe15a2088 mb/ocp/deltalake: Fix SMBIOS type 9 bugs
1. Fix PCIe slot capabilities not being really read from an IIO root
   port device. The Hot-Plug capability of IIO root port cannot be
   enabled due to FSP limitation (v2.1-0.2.2.0), but the code should
   reflect the true capabilities by reading the root port device's CSR.

2. Initialize the characteristics flags to 0 in the for-loop to fix the
   issue of the flags values persists to the next iterations.

Tested=On OCP Delta Lake, dmidecode -t 9 shows the expected results.
For example without the fix it shows 'Hot-plug devices are supported'
but in fact it's not:
System Slot Information
        Designation: SSD1_M2_Data_Drive
        Type: x4 PCI Express 3 x4
        Current Usage: Available
        Length: Short
        ID: 1
        Characteristics:
                3.3 V is provided
                PME signal is supported
                Hot-plug devices are supported
        Bus Address: 0000:00:1d.0

With the fix it shows the correct result:
Handle 0x0016, DMI type 9, 19 bytes
System Slot Information
        Designation: SSD1_M2_Data_Drive
        Type: x4 PCI Express 3 x4
        Current Usage: Available
        Length: Short
        ID: 1
        Characteristics:
                3.3 V is provided
                PME signal is supported
        Bus Address: 0000:00:1d.0

Change-Id: Iea437cdf3da5410b6b7a749a1be970f0948d92d9
Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/58100
Reviewed-by: Johnny Lin <Johnny_Lin@wiwynn.com>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Jonathan Zhang <jonzhang@fb.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2021-10-11 12:51:31 +00:00
..
acpi src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
arch arch/x86,cpu/x86: Introduce new method for accessing cpu_info 2021-10-05 22:38:45 +00:00
commonlib src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
console src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
cpu arch/x86,cpu/x86: Introduce new method for accessing cpu_info 2021-10-05 22:38:45 +00:00
device src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
drivers drivers/intel/dptf: return package with value 2021-10-11 12:47:07 +00:00
ec ec/google/chromeec: Register USB-C mux operations 2021-10-06 22:20:32 +00:00
include acpi: add macros for MSR and unsupported register resource types 2021-10-08 05:21:21 +00:00
lib lib/thread: Remove thread stack alignment requirement 2021-10-05 22:40:25 +00:00
mainboard mb/ocp/deltalake: Fix SMBIOS type 9 bugs 2021-10-11 12:51:31 +00:00
northbridge src/mainboard to src/security: Fix spelling errors 2021-10-05 18:06:52 +00:00
security security/vboot: Remove vb2ex_hwcrypto stubs 2021-10-07 05:26:19 +00:00
soc soc/intel/tigerlake: Add ACPI addition for USB4/TBT latency optimization 2021-10-11 12:46:39 +00:00
southbridge src/soc to src/superio: Fix spelling errors 2021-10-05 18:07:08 +00:00
superio src/soc to src/superio: Fix spelling errors 2021-10-05 18:07:08 +00:00
vendorcode vc/mediatek/mt8195: fix misleading-indentation error 2021-10-08 03:41:37 +00:00
Kconfig lib/thread: Switch to using CPU_INFO_V2 2021-10-05 22:39:16 +00:00