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

Conversation

bjoto
Copy link

@bjoto bjoto commented Mar 7, 2024

Pull request for series with
subject: Add ACPI NUMA support for RISC-V
version: 2
url: https://patchwork.kernel.org/project/linux-riscv/list/?series=833260

@bjoto
Copy link
Author

bjoto commented Mar 7, 2024

Upstream branch: 886516f
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=833260
version: 2

@bjoto
Copy link
Author

bjoto commented Mar 14, 2024

Upstream branch: 2b2ca35
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=833260
version: 2

@bjoto
Copy link
Author

bjoto commented Mar 15, 2024

Upstream branch: 0f0cd0e
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=833260
version: 2

@bjoto
Copy link
Author

bjoto commented Mar 20, 2024

Upstream branch: eeb7a89
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=833260
version: 2

@bjoto
Copy link
Author

bjoto commented Mar 21, 2024

Upstream branch: a9ad732
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=833260
version: 2

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>
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>
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>
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>
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>
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>
@bjoto
Copy link
Author

bjoto commented Mar 25, 2024

Upstream branch: 4cece76
series: https://patchwork.kernel.org/project/linux-riscv/list/?series=833260
version: 2

@bjoto bjoto closed this Apr 2, 2024
@bjoto bjoto deleted the series/821517=>for-next branch April 4, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants