[PATCH v2 5/8] armv8: Add arch-specific sysinfo platform driver

Raymond Mao raymond.mao at linaro.org
Mon Oct 28 20:53:14 CET 2024


Hi Simon,

On Mon, 28 Oct 2024 at 13:04, Simon Glass <sjg at chromium.org> wrote:

> Hi Raymond,
>
> On Tue, 22 Oct 2024 at 22:07, Raymond Mao <raymond.mao at linaro.org> wrote:
> >
> > Add sysinfo platform driver for all armv8 platforms to retrieve
> > hardware information on processor and cache.
> >
> > Signed-off-by: Raymond Mao <raymond.mao at linaro.org>
> > ---
> > Changes in v2
> > - Combine with #8(v1) patch.
> > - Remove the handling of the common strings and values.
> >
> >  arch/arm/cpu/armv8/Makefile  |   2 +
> >  arch/arm/cpu/armv8/sysinfo.c | 292 +++++++++++++++++++++++++++++++++++
> >  2 files changed, 294 insertions(+)
> >  create mode 100644 arch/arm/cpu/armv8/sysinfo.c
>
> Reviewed-by: Simon Glass <sjg at chromium.org>
>
> I have to wonder who wants this information. Doesn't Linux know it
> already, based on the compatible string?
>
> Not all platforms have those compatible strings, so this patch provides
those register-based
common values for all arm64 platforms.
The idea is to read SMBIOS values following below sequence of priority:
1. sysinfo driver if it exists (for arch register-based values).
2. sysinfo-smbios subnode if it exists (for common strings or enum values).
3. search in the entire DTB (for those ones expected to exist in DTB like
memory or slot type,
   which is WIP and not included in this patch set yet).

Regards,
Raymond


More information about the U-Boot mailing list