Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Smbios improvement v3 #10

Open
wants to merge 8 commits into
base: next
Choose a base branch
from
Open

Commits on Jul 29, 2024

  1. sysinfo: Add sysinfo API for accessing data area

    Add interface for sysinfo to access a data area from the platform.
    This is useful to save/read a memory region of platform-specific
    data.
    
    Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
    raymo200915 committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    01d52bf View commit details
    Browse the repository at this point in the history
  2. sysinfo: Add sysinfo driver and data structure for SMBIOS

    Add sysinfo interface and definitions to support SMBIOS type 0 to
    type 4.
    
    Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
    raymo200915 committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    db34b5c View commit details
    Browse the repository at this point in the history
  3. smbios: Refactor SMBIOS library

    Current SMBIOS library does not fully match to the specification.
    It hardcodes values instead of exposing values from the device.
    It does not support dynamic length for contained object handles
    or elements and misses the handling of a few fields.
    
    The refactoring of this patch includes:
    1. Expose values from device via sysinfo interface.
    2. Replace smbios_add_prop with smbios_add_prop_si to allow getting
       string values from sysinfo.
    3. Add smbios_get_val_si to get int values from sysinfo.
    4. Use sysinfo_get_data to get data area like contained object
       handles, elements or processor id.
    5. Refactor SMBIOS cmd print functions to match the command output
       with the specification
    6. Add new print functions for Type 0, 3 and 4.
    7. Miscellaneous fixes in SMBIOS.
    
    Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
    raymo200915 committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    daa3393 View commit details
    Browse the repository at this point in the history
  4. armv8: Add arch-specific sysinfo driver

    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>
    raymo200915 committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    10366e9 View commit details
    Browse the repository at this point in the history
  5. sysinfo: Add sysinfo driver for SMBIOS type 7

    Add sysinfo interface and data structures for cache information
    required by SMBIOS type 7.
    
    Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
    raymo200915 committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    167b82d View commit details
    Browse the repository at this point in the history
  6. smbios: Add support to SMBIOS type 7

    Add SMBIOS type 7 (cache information) write functions.
    Link cache handles from type 7 to type 4.
    Add SMBIOS command print functions for type 7.
    
    Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
    raymo200915 committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    3c03dfd View commit details
    Browse the repository at this point in the history
  7. armv8: Add sysinfo driver for cache information

    Add cache information sysinfo driver containing necessary information
    required by SMBIOS type 7 for all armv8 platforms.
    
    Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
    raymo200915 committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    20e703a View commit details
    Browse the repository at this point in the history
  8. configs: Enable sysinfo for QEMU Arm64

    Enable sysinfo smbios by default for Arm64.
    Do not enable QFW if SYSINFO_SMBIOS is defined.
    
    Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
    raymo200915 committed Jul 29, 2024
    Configuration menu
    Copy the full SHA
    80f5e03 View commit details
    Browse the repository at this point in the history