
Hi Simon,
On Mon, 28 Oct 2024 at 13:04, Simon Glass sjg@chromium.org wrote:
Hi Raymond,
On Tue, 22 Oct 2024 at 22:07, Raymond Mao raymond.mao@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@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@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