The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=87b21f30d3fe114de3a110c277d516927ec7756d
commit 87b21f30d3fe114de3a110c277d516927ec7756d Author: Gleb Smirnoff <[email protected]> AuthorDate: 2026-08-11 14:40:46 +0000 Commit: Gleb Smirnoff <[email protected]> CommitDate: 2026-08-11 14:40:46 +0000 SYSINIT: add SI_SUB_NUMA This allows to parse ACPI tables and initialize VM domains before SI_SUB_VM w/o a hack. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D58713 --- sys/sys/kernel.h | 1 + sys/x86/acpica/srat.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/sys/kernel.h b/sys/sys/kernel.h index 2e1b1bd537cd..01673ac3395e 100644 --- a/sys/sys/kernel.h +++ b/sys/sys/kernel.h @@ -97,6 +97,7 @@ enum sysinit_sub_id { SI_SUB_FIRST = 0x0600000, /* mp_maxid, etc... */ SI_SUB_TUNABLES = 0x0700000, /* establish tunable values */ SI_SUB_COPYRIGHT = 0x0800001, /* first use of console */ + SI_SUB_NUMA = 0x0810000, /* initialize NUMA topology */ SI_SUB_VM = 0x1000000, /* virtual memory system init */ SI_SUB_COUNTER = 0x1100000, /* counter(9) is initialized */ SI_SUB_KMEM = 0x1800000, /* kernel memory */ diff --git a/sys/x86/acpica/srat.c b/sys/x86/acpica/srat.c index ad112dc3e741..a0fb7fd996dc 100644 --- a/sys/x86/acpica/srat.c +++ b/sys/x86/acpica/srat.c @@ -51,7 +51,7 @@ parse_acpi_tables(void *dummy) acpi_pxm_parse_tables(); acpi_pxm_set_mem_locality(); } -SYSINIT(parse_acpi_tables, SI_SUB_VM - 1, SI_ORDER_FIRST, parse_acpi_tables, +SYSINIT(parse_acpi_tables, SI_SUB_NUMA, SI_ORDER_FIRST, parse_acpi_tables, NULL); #endif /* MAXMEMDOM > 1 */
