From: Michal Simek <michal.simek@amd.com>
To: Raymond Mao <raymond.mao@linaro.org>, u-boot@lists.denx.de
Cc: "Tom Rini" <trini@konsulko.com>,
"Tuomas Tynkkynen" <tuomas.tynkkynen@iki.fi>,
"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
"Simon Glass" <sjg@chromium.org>, "Bin Meng" <bmeng@tinylab.org>,
"Alper Nebi Yasak" <alpernebiyasak@gmail.com>,
"Stefan Roese" <sr@denx.de>,
"Kever Yang" <kever.yang@rock-chips.com>,
"Marek Behún" <kabel@kernel.org>,
"Jonas Karlman" <jonas@kwiboo.se>,
"Caleb Connolly" <caleb.connolly@linaro.org>,
"Wan Yee Lau" <wan.yee.lau@intel.com>,
"Alexander Gendin" <agendin@matrox.com>,
"Masahisa Kojima" <kojima.masahisa@socionext.com>,
"Francesco Dolcini" <francesco.dolcini@toradex.com>,
"Max Krummenacher" <max.krummenacher@toradex.com>,
"Oleksandr Suvorov" <oleksandr.suvorov@foundries.io>,
"Sean Anderson" <seanga2@gmail.com>,
"Peter Robinson" <pbrobinson@gmail.com>
Subject: Re: [PATCH 05/10] armv8: Add arch-specific sysinfo driver
Date: Mon, 26 Aug 2024 17:32:39 +0200 [thread overview]
Message-ID: <803e4d86-89da-46bb-99e7-b62daf4caa0e@amd.com> (raw)
In-Reply-To: <20240816154658.1866186-6-raymond.mao@linaro.org>
On 8/16/24 17:46, Raymond Mao wrote:
> Add common sysinfo driver for armv8 platforms containing all
> necessary SMBIOS information (Type 1 to 4).
>
> Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
> ---
> arch/arm/cpu/armv8/Makefile | 5 +
> arch/arm/cpu/armv8/sysinfo.c | 203 +++++++++++++++++++++++++++++++++++
> 2 files changed, 208 insertions(+)
> create mode 100644 arch/arm/cpu/armv8/sysinfo.c
>
> diff --git a/arch/arm/cpu/armv8/Makefile b/arch/arm/cpu/armv8/Makefile
> index bba4f570dbb..374f20d455d 100644
> --- a/arch/arm/cpu/armv8/Makefile
> +++ b/arch/arm/cpu/armv8/Makefile
> @@ -45,3 +45,8 @@ obj-$(CONFIG_TARGET_BCMNS3) += bcmns3/
> obj-$(CONFIG_XEN) += xen/
> obj-$(CONFIG_ARMV8_CE_SHA1) += sha1_ce_glue.o sha1_ce_core.o
> obj-$(CONFIG_ARMV8_CE_SHA256) += sha256_ce_glue.o sha256_ce_core.o
> +
> +ifndef CONFIG_SPL_BUILD
> +obj-$(CONFIG_SYSINFO_SMBIOS) += sysinfo.o
> +ccflags-$(CONFIG_SYSINFO_SMBIOS) += -I$(srctree)/drivers/sysinfo
I think this should be moved to generic location to avoid line above.
> +endif
> \ No newline at end of file
obviously wrong.
> diff --git a/arch/arm/cpu/armv8/sysinfo.c b/arch/arm/cpu/armv8/sysinfo.c
> new file mode 100644
> index 00000000000..a8e17d654be
> --- /dev/null
> +++ b/arch/arm/cpu/armv8/sysinfo.c
> @@ -0,0 +1,203 @@
> +// SPDX-License-Identifier: GPL-2.0+
> +/*
> + * Copyright (c) 2024 Linaro Limited
> + * Author: Raymond Mao <raymond.mao@linaro.org>
> + */
> +#include <dm.h>
> +#if CONFIG_IS_ENABLED(SYSINFO_SMBIOS)
> +#include <smbios_plat.h>
> +#endif
This also look weird.
M
next prev parent reply other threads:[~2024-08-26 15:32 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-16 15:46 [PATCH 00/10] SMBIOS improvements Raymond Mao
2024-08-16 15:46 ` [PATCH 01/10] sysinfo: Add sysinfo API for accessing data area Raymond Mao
2024-08-16 15:46 ` [PATCH 02/10] sysinfo: Add sysinfo driver and data structure for SMBIOS Raymond Mao
2024-08-26 9:01 ` Michal Simek
2024-08-26 9:52 ` Michal Simek
2024-08-29 14:05 ` Simon Glass
2024-08-16 15:46 ` [PATCH 03/10] smbios: Refactor SMBIOS library Raymond Mao
2024-08-26 9:34 ` Michal Simek
2024-09-09 15:30 ` Heinrich Schuchardt
2024-08-16 15:46 ` [PATCH 04/10] smbios: ignore the non-existence of platform sysinfo detect Raymond Mao
2024-08-26 9:39 ` Michal Simek
2024-08-16 15:46 ` [PATCH 05/10] armv8: Add arch-specific sysinfo driver Raymond Mao
2024-08-19 11:09 ` Caleb Connolly
2024-08-26 15:32 ` Michal Simek [this message]
2024-08-16 15:46 ` [PATCH 06/10] sysinfo: Add sysinfo driver for SMBIOS type 7 Raymond Mao
2024-08-16 15:46 ` [PATCH 07/10] smbios: Add support to " Raymond Mao
2024-08-16 15:46 ` [PATCH 08/10] armv8: Add sysinfo driver for cache information Raymond Mao
2024-08-16 15:46 ` [PATCH 09/10] configs: Enable sysinfo for QEMU Arm64 Raymond Mao
2024-08-16 15:46 ` [PATCH 10/10] tests: update smbios pytest Raymond Mao
2024-08-19 22:19 ` Tom Rini
2024-10-21 15:23 ` Raymond Mao
2024-10-21 17:23 ` Tom Rini
2024-08-17 15:58 ` [PATCH 00/10] SMBIOS improvements Simon Glass
2024-08-19 23:03 ` Caleb Connolly
2024-08-26 17:58 ` Simon Glass
2024-08-26 18:23 ` Tom Rini
2024-08-26 18:50 ` Heinrich Schuchardt
2024-08-26 19:12 ` Simon Glass
2024-08-26 19:59 ` Tom Rini
2024-09-15 17:57 ` Heinrich Schuchardt
2024-09-15 18:28 ` Tom Rini
2024-09-19 14:13 ` Simon Glass
2024-09-19 17:48 ` Tom Rini
2024-10-07 14:47 ` Raymond Mao
2024-09-03 16:06 ` Raymond Mao
2024-09-10 18:44 ` Simon Glass
2024-09-10 19:20 ` Raymond Mao
2024-09-10 20:15 ` Simon Glass
2024-08-19 11:56 ` Caleb Connolly
2024-09-09 13:37 ` Raymond Mao
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=803e4d86-89da-46bb-99e7-b62daf4caa0e@amd.com \
--to=michal.simek@amd.com \
--cc=agendin@matrox.com \
--cc=alpernebiyasak@gmail.com \
--cc=bmeng@tinylab.org \
--cc=caleb.connolly@linaro.org \
--cc=francesco.dolcini@toradex.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jonas@kwiboo.se \
--cc=kabel@kernel.org \
--cc=kever.yang@rock-chips.com \
--cc=kojima.masahisa@socionext.com \
--cc=max.krummenacher@toradex.com \
--cc=oleksandr.suvorov@foundries.io \
--cc=pbrobinson@gmail.com \
--cc=raymond.mao@linaro.org \
--cc=seanga2@gmail.com \
--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 \
--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