Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32308
Change subject: [WIP]smbios: Walk over PCI devicetree to fill type 9 ......................................................................
[WIP]smbios: Walk over PCI devicetree to fill type 9
Use the devicetree values for type 9 slots.
Change-Id: I1961d8af2d21f755ff52ad58804ea9b31d2a5b9b Signed-off-by: Patrick Rudolph patrick.rudolph@9elements.com --- M src/arch/x86/smbios.c 1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/08/32308/1
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c index 10feb15..c565462 100644 --- a/src/arch/x86/smbios.c +++ b/src/arch/x86/smbios.c @@ -996,6 +996,19 @@ dev_name(dev)); len += dev->ops->get_smbios_data(dev, handle, current); } + if (dev->path.type == DEVICE_PATH_PCI) { + if (dev->smbios_slot_type || + dev->smbios_slot_data_width || + dev->smbios_slot_designation) { + len += smbios_write_type9(current, handle, + dev->smbios_slot_designation, + dev->smbios_slot_type, + 1, + 0, + dev->bus->secondary, + dev->path.pci.devfn); + } + } } return len; }