Johnny Lin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40308 )
Change subject: drivers/ocp/dmi: Add OCP_DMI driver for populating SMBIOS from IPMI FRU data
......................................................................
Patch Set 52:
(1 comment)
https://review.coreboot.org/c/coreboot/+/40308/51/src/drivers/ocp/dmi/smbios...
File src/drivers/ocp/dmi/smbios.c:
https://review.coreboot.org/c/coreboot/+/40308/51/src/drivers/ocp/dmi/smbios...
PS51, Line 176: *p+
Why do we double null terminate here?
I simply use the same smbios_add_string() in arch/x86/smbios.c
https://review.coreboot.org/c/coreboot/+/42029/18/src/arch/x86/smbios.c#77
but removed the if condition at L98 because that doesn't allow me to add duplicate strings.
From the SMBIOS Spec DSP0134 Version 3.0.0, section 6.1.3:
"Each string is terminated with a null (00h) BYTE and the set of strings is terminated with an additional null (00h) BYTE."
I think always adding two null bytes can be used for both terminating an individual string and a set of strings.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/40308
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I08c958dfad83216cd12545760a19d205efc2515b
Gerrit-Change-Number: 40308
Gerrit-PatchSet: 52
Gerrit-Owner: Johnny Lin
Johnny_Lin@wiwynn.com
Gerrit-Reviewer: Andrey Petrov
anpetrov@fb.com
Gerrit-Reviewer: Christian Walter
christian.walter@9elements.com
Gerrit-Reviewer: David Hendricks
david.hendricks@gmail.com
Gerrit-Reviewer: Jingle Hsu
jingle_hsu@wiwynn.com
Gerrit-Reviewer: Jonathan Zhang
jonzhang@fb.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Maxim Polyakov
max.senia.poliak@gmail.com
Gerrit-Reviewer: Morgan Jang
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: Philipp Deppenwiese
zaolin.daisuki@gmail.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Andrey Petrov
andrey.petrov@gmail.com
Gerrit-CC: HAOUAS Elyes
ehaouas@noos.fr
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Wed, 01 Jul 2020 06:52:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Christian Walter
christian.walter@9elements.com
Gerrit-MessageType: comment