From: Heinrich Schuchardt <xypron.glpk@gmx.de>
To: Simon Glass <sjg@chromium.org>, Raymond Mao <raymond.mao@linaro.org>
Cc: "U-Boot Mailing List" <u-boot@lists.denx.de>,
"Nobuhiro Iwamatsu" <iwamatsu@nigauri.org>,
"Marek Vasut" <marek.vasut+renesas@mailbox.org>,
"Tom Rini" <trini@konsulko.com>,
"Tuomas Tynkkynen" <tuomas.tynkkynen@iki.fi>,
"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
"Marek Behún" <kabel@kernel.org>, "Stefan Roese" <sr@denx.de>,
"Alexander Gendin" <agendin@matrox.com>,
"Michal Simek" <michal.simek@amd.com>,
"Jonas Karlman" <jonas@kwiboo.se>,
"Caleb Connolly" <caleb.connolly@linaro.org>,
"Wan Yee Lau" <wan.yee.lau@intel.com>,
"Masahisa Kojima" <kojima.masahisa@socionext.com>,
"Max Krummenacher" <max.krummenacher@toradex.com>,
"Francesco Dolcini" <francesco.dolcini@toradex.com>,
"Peter Robinson" <pbrobinson@gmail.com>
Subject: Re: [PATCH v2 6/8] armv8: Add generic smbios information into the device tree
Date: Fri, 01 Nov 2024 07:02:32 +0100 [thread overview]
Message-ID: <6BCB1F10-588F-4BAB-9FED-1DBFF9273DB4@gmx.de> (raw)
In-Reply-To: <CAFLszTijXQCcFo5k5y6G8KUYvQQOLGAYZzNe5GQkt9fpGBam1Q@mail.gmail.com>
Am 29. Oktober 2024 16:45:44 MEZ schrieb Simon Glass <sjg@chromium.org>:
>On Mon, 28 Oct 2024 at 21:00, Raymond Mao <raymond.mao@linaro.org> wrote:
>>
>> Hi Simon,
>>
>> On Mon, 28 Oct 2024 at 13:05, Simon Glass <sjg@chromium.org> wrote:
>>>
>>> Hi Raymond,
>>>
>>> On Tue, 22 Oct 2024 at 22:07, Raymond Mao <raymond.mao@linaro.org> wrote:
>>> >
>>> > Add common smbios information that can be used by all armv8
>>> > platforms and set it as default for qemu-arm64.
>>> > From now smbios library can load values from here for those fields
>>> > doesn't exist in the sysinfo driver.
>>> >
>>> > To run this with QEMU arm64, please dump the generated DTB
>>> > from QEMU first, merge it with the one we build and then re-run
>>> > QEMU with the merged DTB.
>>> > ```
>>> > qemu-system-arm -machine virt -machine dumpdtb=qemu.dtb
>>> > cat <(dtc -I dtb qemu.dtb) <(dtc -I dtb ./dts/dt.dtb | \
>>> > grep -v /dts-v1/) | dtc - -o merged.dtb
>>> > qemu-system-arm -machine virt -nographic -bios u-boot.bin \
>>> > -dtb merged.dtb
>>>
>>> and please talk to Peter about accepting my patch[1]
>>>
>>>
>>> > ```
>>> > For details please take reference on dt_qemu.rst
>>> >
>>> > Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
>>> > ---
>>> > Changes in v2
>>> > - Initial patch.
>>> >
>>> > arch/arm/dts/qemu-arm64.dts | 4 ++
>>> > arch/arm/dts/smbios_generic.dtsi | 82 ++++++++++++++++++++++++++++++++
>>> > 2 files changed, 86 insertions(+)
>>> > create mode 100644 arch/arm/dts/smbios_generic.dtsi
>>> >
>>> > diff --git a/arch/arm/dts/qemu-arm64.dts b/arch/arm/dts/qemu-arm64.dts
>>> > index 096b3910728..95fcf53ed74 100644
>>> > --- a/arch/arm/dts/qemu-arm64.dts
>>> > +++ b/arch/arm/dts/qemu-arm64.dts
>>> > @@ -7,5 +7,9 @@
>>> >
>>> > /dts-v1/;
>>> >
>>> > +#if defined(CONFIG_SYSINFO_SMBIOS) && !defined(QFW_SMBIOS)
>>> > +#include "smbios_generic.dtsi"
>>> > +#endif
>>> > +
>>> > / {
>>> > };
>>> > diff --git a/arch/arm/dts/smbios_generic.dtsi b/arch/arm/dts/smbios_generic.dtsi
>>> > new file mode 100644
>>> > index 00000000000..c9f07283403
>>> > --- /dev/null
>>> > +++ b/arch/arm/dts/smbios_generic.dtsi
>>> > @@ -0,0 +1,82 @@
>>> > +// SPDX-License-Identifier: GPL-2.0+
>>> > +/*
>>> > + * Default SMBIOS information for Arm64 platforms
>>> > + *
>>> > + * Copyright (c) 2024 Linaro Limited
>>> > + * Author: Raymond Mao <raymond.mao@linaro.org>
>>> > + */
>>> > +#include <config.h>
>>> > +#include <smbios_def.h>
>>> > +
>>> > +/ {
>>> > + smbios {
>>> > + compatible = "u-boot,sysinfo-smbios";
>>> > +
>>> > + smbios {
>>> > + system {
>>> > + manufacturer = CONFIG_SYS_VENDOR;
>>> > + product = CONFIG_SYS_BOARD;
>>> > + version = "Not Specified";
>>> > + serial = "Not Specified";
>>>
>>> Does it make sense to add these strings? Perhaps if the property is missing in the DT, it should be missing in the SMBIOS table? Is 'Not Specified' a special string in the SMBIO spec?
>>
The spec says:
"If a string field references no string, a null (0) is placed in that string field."
Please, remove the 'Not specified' values from the patch and do not provide any property value in the device-tree instead.
Best regards
Heinrich
>>
>> This is not defined in the spec and actually those strings can be anything.
>> As currently this is for qemu_arm64 only and we don't have real vendor-defined values,
>> "Not Specified" is used as a placeholder to show an example for other vendors if they
>> want to add similar properties.
>
>OK I see.
>
>Reviewed-by: Simon Glass <sjg@chromium.org>
next prev parent reply other threads:[~2024-11-01 6:03 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-22 20:05 [PATCH v2 0/8] SMBIOS improvements Raymond Mao
2024-10-22 20:05 ` [PATCH v2 1/8] smbios: Refactor the smbios headfile Raymond Mao
2024-10-28 17:03 ` Simon Glass
2024-10-22 20:05 ` [PATCH v2 2/8] sysinfo: Add sysinfo API for accessing data area Raymond Mao
2024-10-28 17:04 ` Simon Glass
2024-10-22 20:05 ` [PATCH v2 3/8] sysinfo: Add sysinfo driver and data structure for smbios Raymond Mao
2024-10-28 17:04 ` Simon Glass
2024-10-28 19:43 ` Raymond Mao
2024-10-29 15:45 ` Simon Glass
2024-12-05 17:28 ` Raymond Mao
2024-12-06 15:31 ` Simon Glass
2024-12-06 15:54 ` Raymond Mao
2024-12-06 23:43 ` Simon Glass
2024-12-09 15:36 ` Raymond Mao
2024-10-22 20:05 ` [PATCH v2 4/8] smbios: Refactor smbios library Raymond Mao
2024-10-28 17:04 ` Simon Glass
2024-10-22 20:05 ` [PATCH v2 5/8] armv8: Add arch-specific sysinfo platform driver Raymond Mao
2024-10-28 17:04 ` Simon Glass
2024-10-28 19:53 ` Raymond Mao
2024-10-22 20:05 ` [PATCH v2 6/8] armv8: Add generic smbios information into the device tree Raymond Mao
2024-10-28 17:04 ` Simon Glass
2024-10-28 20:00 ` Raymond Mao
2024-10-29 15:45 ` Simon Glass
2024-11-01 5:28 ` Heinrich Schuchardt
2024-11-01 6:02 ` Heinrich Schuchardt [this message]
2024-11-01 16:23 ` Raymond Mao
2024-10-22 20:05 ` [PATCH v2 7/8] cmd: update smbios cmd Raymond Mao
2024-10-28 17:04 ` Simon Glass
2024-10-28 20:02 ` Raymond Mao
2024-10-22 20:05 ` [PATCH v2 8/8] configs: Enable sysinfo for QEMU Arm64 Raymond Mao
2024-10-28 17:05 ` Simon Glass
2024-10-24 0:22 ` [PATCH v2 0/8] SMBIOS improvements Tom Rini
2024-10-24 13:35 ` Raymond Mao
2024-10-24 14:10 ` Tom Rini
2024-10-24 14:19 ` Raymond Mao
2024-10-24 15:20 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6BCB1F10-588F-4BAB-9FED-1DBFF9273DB4@gmx.de \
--to=xypron.glpk@gmx.de \
--cc=agendin@matrox.com \
--cc=caleb.connolly@linaro.org \
--cc=francesco.dolcini@toradex.com \
--cc=ilias.apalodimas@linaro.org \
--cc=iwamatsu@nigauri.org \
--cc=jonas@kwiboo.se \
--cc=kabel@kernel.org \
--cc=kojima.masahisa@socionext.com \
--cc=marek.vasut+renesas@mailbox.org \
--cc=max.krummenacher@toradex.com \
--cc=michal.simek@amd.com \
--cc=pbrobinson@gmail.com \
--cc=raymond.mao@linaro.org \
--cc=sjg@chromium.org \
--cc=sr@denx.de \
--cc=trini@konsulko.com \
--cc=tuomas.tynkkynen@iki.fi \
--cc=u-boot@lists.denx.de \
--cc=wan.yee.lau@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.