public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Da Xue <da@libre.computer>, Tom Rini <trini@konsulko.com>,
	U-Boot Mailing List <u-boot@lists.denx.de>,
	Alexander Graf <agraf@csgraf.de>,
	Adarsh Babu Kalepalli <opensource.kab@gmail.com>
Subject: Re: Pull request for efi-2021-07-rc5-2
Date: Sat, 3 Jul 2021 22:24:30 +0300	[thread overview]
Message-ID: <YOC5bo9d/74AAFMp@enceladus> (raw)
In-Reply-To: <d96345aa-499b-a51b-770b-01bf15185a0e@gmx.de>

> >      >EFI stub: Booting Linux Kernel...

[...]

> >      >EFI stub: Using DTB from configuration table
> >      >...
> >      >[?? ?? 0.000000] Linux version 5.10.45 (dxue@build-server)
> >      >(aarch64-buildroot-linux-musl-gcc.br_real (Buildroot
> >      >2019.08-10705-g7cb51d4843-dirty) 10.3.0, GNU ld (GNU Binutils) 2.36.1)
> >      >#21
> >      >[?? ?? 0.000000] Machine model: Libre Computer AML-S805X-AC
> >      >...
> >      >[?? ?? 0.000000] efi: ESRT=0x3aeea040 RTPROP=0x3aee8040
> >     SMBIOS=0x3aee4000
> >      >RNG=0x394ee040 MEMRESERVE=0x394ed040
> >      >
> >      >/sys/firmware/devicetree/base/smbios/smbios # grep -r . *
> >      >baseboard/manufacturer:libre-computer
> >      >baseboard/product:aml-s805x-ac
> >      >baseboard/name:baseboard
> >      >chassis/manufacturer:libre-computer
> >      >chassis/product:aml-s805x-ac
> >      >chassis/name:chassis
> > 
> >     This matces the device tree segment below.
> > 
> >      >name:smbios
> >      >system/manufacturer:libre-computer
> >      >system/product:aml-s805x-ac
> >      >system/name:system
> >      >/sys/firmware/devicetree/base/smbios/smbios # cd
> >      >/sys/devices/virtual/dmi/id
> >      >/sys/devices/virtual/dmi/id # grep -r . *
> >      >bios_date:07/03/2021
> >      >bios_release:21.7
> >      >bios_vendor:U-Boot
> >      >bios_version:2021.07-rc5+
> >      >board_name:Unknown Product
> >      >board_vendor:Unknown
> >      >chassis_type:3
> >      >chassis_vendor:Unknown
> > 
> >     All that is marked unknown is not in your device-tree below.
> > 
> >     What are you expecting here?
> >     Was it here before the pull request?
> > 
> >     Best regards
> > 
> >     Heinrich
> > 
> >      >modalias:dmi:bvnU-Boot:bvr2021.07-rc5+:bd07/03/2021:br21.7:svnUnknown:pnUnknownProduct:pvr:rvnUnknown:rnUnknownProduct:rvr:cvnUnknown:ct3:cvr:
> >      >power/runtime_active_time:0
> >      >power/runtime_status:unsupported
> >      >power/runtime_suspended_time:0
> >      >power/control:auto
> >      >product_name:Unknown Product
> >      >sys_vendor:Unknown
> >      >uevent:MODALIAS=dmi:bvnU-Boot:bvr2021.07-rc5+:bd07/03/2021:br21.7:svnUnknown:pnUnknownProduct:pvr:rvnUnknown:rnUnknownProduct:rvr:cvnUnknown:ct3:cvr:
> >      >
> >      >diff --git a/arch/arm/dts/meson-gxl-s805x-libretech-ac-u-boot.dtsi
> >      >b/arch/arm/dts/meson-gxl-s805x-libretech-ac-u-boot.dtsi
> >      >index 39270ea71c..02177c64a6 100644
> >      >--- a/arch/arm/dts/meson-gxl-s805x-libretech-ac-u-boot.dtsi
> >      >+++ b/arch/arm/dts/meson-gxl-s805x-libretech-ac-u-boot.dtsi
> >      >@@ -5,3 +5,26 @@
> >      >?? */
> >      >
> >      > #include "meson-gxl-u-boot.dtsi"
> >      >+
> >      >+/ {
> >      >+?? ?? ?? ??smbios {
> >      >+?? ?? ?? ?? ?? ?? ?? ??compatible = "u-boot,sysinfo-smbios";
> >      >+
> >      >+?? ?? ?? ?? ?? ?? ?? ??smbios {
> >      >+?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??system {
> >      >+?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??manufacturer = "libre-computer";
> >      >+?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??product = "aml-s805x-ac";
> >      >+?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??};
> >      >+
> >      >+?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??baseboard {
> >      >+?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??manufacturer = "libre-computer";
> >      >+?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??product = "aml-s805x-ac";
> >      >+?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??};
> >      >+
> >      >+?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??chassis {
> >      >+?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??manufacturer = "libre-computer";
> >      >+?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ??};
> >      >+?? ?? ?? ?? ?? ?? ?? ??};
> >      >+?? ?? ?? ??};
> >      >+};
> >      >
> >      >Any ideas?
> >      >
> >      >Best,
> >      >Da
> > 
> > There's two issues:
> > 
> > 1) I just saw this patch: "x86: Provide default SMBIOS
> > manufacturer/product". Should we add the same thing for ARM or maybe
> > generically across the board?
> > 
> > 2) The DMI entries previously took CONFIG_SYS_VENDOR and
> > CONFIG_SYS_BOARD entries as manufacturer and product respectively. Now
> > those entries become Unknown and Unknown Product.

Which version was that? My patch changed nothing in that regard.
The only thing my patch did was fix e4f8e543f1a9 which removed some Kconfig
options. Removing those made the strings "" which is against the spec. 
Heinrich fixed a similar issue with 00a871d34e2f back when we had 
CONFIG_SMBIOS_MANUFACTURER and CONFIG_SMBIOS_PRODUCT_NAME. Any chance that 
was your working version and those values were used?

> 
> Having file smbios.dtsi in an x86 specific path (arch/x86/dts/) does not
> make much sense. There is nothing architecture specific in it.
> 
> Maybe where Ilias now has filled the missing properties with 'Unknown'
> he should have opted for CONFIG_SYS* instead if available. This would
> make smbios.dtsi superfluous.

We discussed this with Simon and I'll send a follow up patch. The idea is to
try and use CONFIG_SYS* and if those are not available, pop a warning and use
Unknown

Cheers
/Ilias
> 
> Best regards
> 
> Heinrich

  reply	other threads:[~2021-07-03 19:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-28 19:47 Pull request for efi-2021-07-rc5-2 Heinrich Schuchardt
2021-06-30 12:06 ` Tom Rini
2021-07-03 12:46   ` Da Xue
2021-07-03 13:36     ` Heinrich Schuchardt
2021-07-03 15:25       ` Da Xue
2021-07-03 16:06         ` Heinrich Schuchardt
2021-07-03 19:24           ` Ilias Apalodimas [this message]
2021-07-03 19:43             ` Heinrich Schuchardt
2021-07-05  5:56               ` Ilias Apalodimas
  -- strict thread matches above, loose matches on Subject: below --
2021-06-21  7:10 Heinrich Schuchardt
2021-06-21 21:22 ` 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=YOC5bo9d/74AAFMp@enceladus \
    --to=ilias.apalodimas@linaro.org \
    --cc=agraf@csgraf.de \
    --cc=da@libre.computer \
    --cc=opensource.kab@gmail.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox