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

Add ACPI NUMA support for RISC-V #705

Closed
wants to merge 6 commits into from
Closed

Commits on Mar 25, 2024

  1. ACPICA: SRAT: Add RISC-V RINTC affinity structure

    ACPICA commit 93caddbf2f620769052c59ec471f018281dc3a24
    
    Add definition of RISC-V Interrupt Controller(RINTC)
    affinity structure which was approved by UEFI forum
    and will be part of next ACPI spec version(6.6).
    
    Link: acpica/acpica@93caddbf
    Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
    Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
    xiaobo55x authored and Björn Töpel committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    b86990f View commit details
    Browse the repository at this point in the history
  2. ACPI: RISCV: Add NUMA support based on SRAT and SLIT

    Add acpi_numa.c file to enable parse NUMA information from
    ACPI SRAT and SLIT tables. SRAT table provide CPUs(Hart) and
    memory nodes to proximity domain mapping, while SLIT table
    provide the distance metrics between proximity domains.
    
    Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
    Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
    xiaobo55x authored and Björn Töpel committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    f7512cf View commit details
    Browse the repository at this point in the history
  3. ACPI: NUMA: Add handler for SRAT RINTC affinity structure

    Add RINTC affinity structure handler during parsing SRAT table.
    
    Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
    Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
    xiaobo55x authored and Björn Töpel committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    ab0f4e5 View commit details
    Browse the repository at this point in the history
  4. ACPI: NUMA: Make some NUMA related parse functions common

    The acpi_numa_slit_init(), acpi_numa_memory_affinity_init()
    and acpi_parse_cfmws() functions are common enough to be used
    on platforms that support ACPI_NUMA(x86/arm64/loongarch).
    Remove the condition to avoid long defined(CONFIG_ARCH) check
    when new platform(riscv) support was enabled.
    
    Suggested-by: Sunil V L <sunilvl@ventanamicro.com>
    Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
    Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
    xiaobo55x authored and Björn Töpel committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    e62b148 View commit details
    Browse the repository at this point in the history
  5. ACPI: NUMA: Remove ARCH depends option in ACPI_NUMA Kconfig

    x86/arm64/loongarch would select ACPI_NUMA by default and riscv
    would do the same thing, so the dependency is no longer needed
    since these are the four architectures that support ACPI.
    
    Suggested-by: Arnd Bergmann <arnd@arndb.de>
    Suggested-by: Sunil V L <sunilvl@ventanamicro.com>
    Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
    Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
    xiaobo55x authored and Björn Töpel committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    1be1f83 View commit details
    Browse the repository at this point in the history
  6. ACPI: RISCV: Enable ACPI based NUMA

    Enable ACPI based NUMA for RISCV in Kconfig.
    
    Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
    Signed-off-by: Björn Töpel <bjorn@rivosinc.com>
    xiaobo55x authored and Björn Töpel committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    f9f26dc View commit details
    Browse the repository at this point in the history