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
Conversation
Upstream branch: 886516f |
Upstream branch: 2b2ca35 |
da7a7a1
to
167552c
Compare
Upstream branch: 0f0cd0e |
167552c
to
71a8173
Compare
Upstream branch: eeb7a89 |
71a8173
to
89e65a2
Compare
Upstream branch: a9ad732 |
89e65a2
to
53af4f5
Compare
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>
Upstream branch: 4cece76 |
53af4f5
to
f9f26dc
Compare
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