1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-15 15:06:42 +00:00
freebsd/sys
Jayachandran C. a3a6167448 x86/acpica/srat.c: Add API for parsing proximity tables
The SLIT and SRAT ACPI tables needs to be parsed on arm64 as well, on
systems that use UEFI/ACPI firmware and support NUMA. To do this, we
need to move most of the logic of x86/acpica/srat.c to dev/acpica and
provide an API that architectures can use to parse and configure ACPI
NUMA information.

This commit adds the API in srat.c as a first step, without making any
functional changes. We will move the common code to sys/dev/acpica
as the next step.

The functions added are:
  * int acpi_pxm_init(int ncpus, vm_paddr_t maxphys) - to allocate and
    initialize data structures used
  * void acpi_pxm_parse_tables(void) - parse SRAT/SLIT, save the cpu and
    memory proximity information
  * void acpi_pxm_set_mem_locality(void) - use the saved data to set
    memory locality
  * void acpi_pxm_set_cpu_locality(void) - use the saved data to set cpu
    locality
  * void acpi_pxm_free(void) - free data structures allocated by init

On arm64, we do not have an cpu APIC id that can be used as index to
store CPU data, we need to use the Processor Uid. To help with this,
define internal functions cpu_add, cpu_find, cpu_get_info to store
and get CPU proximity information.

Reviewed by:	markj, jhb (previous version)
Differential Revision:	https://reviews.freebsd.org/D17940
2018-12-08 18:34:05 +00:00
..
amd64 amd64: stop re-reading curpc on subyte/suword 2018-12-08 04:53:08 +00:00
arm Fix cut&paste typo in atomic_fetchadd_64(). 2018-12-07 11:10:27 +00:00
arm64 Build the dtb for the rock64 board. 2018-12-02 19:36:20 +00:00
bsm
cam daprobedone: announce if a disk is write-protected 2018-12-07 12:02:31 +00:00
cddl zfs: we can boot from dataset with large_dnode enabled 2018-12-03 19:35:21 +00:00
compat Regen. 2018-12-07 15:19:00 +00:00
conf Fix LINT build after r341572. 2018-12-05 15:42:31 +00:00
contrib Remove an ugly Ultrix hack. Ultrix has been AWOL since the last ice 2018-12-06 20:15:54 +00:00
crypto
ddb
dev Even though they are reserved, cdw2 and cdw3 can be set via nvme-cli 2018-12-07 21:58:08 +00:00
dts arm64: allwinner: Add 792Mhz frequency to sun50i-a64-opp 2018-11-30 10:31:30 +00:00
fs Plug memory disclosures via ptrace(2). 2018-12-03 20:54:17 +00:00
gdb
geom gmirror: Evaluate mirror components against newest metadata copy 2018-12-07 02:44:04 +00:00
gnu
i386 Plug memory disclosures via ptrace(2). 2018-12-03 20:54:17 +00:00
isa
kern umtx: avoid umtxshm locking on object termination if possible 2018-12-08 14:04:57 +00:00
kgssapi
libkern
mips
modules mlx5fpga_tools initial code import. 2018-12-05 14:17:22 +00:00
net netmap.h: include stdatomic.h 2018-12-05 15:38:52 +00:00
net80211
netgraph
netinet Clamp the INPCB port hash tables to IPPORT_MAX + 1 chains. 2018-12-05 17:06:00 +00:00
netinet6 Clamp the INPCB port hash tables to IPPORT_MAX + 1 chains. 2018-12-05 17:06:00 +00:00
netipsec
netpfil pfsync: Performance improvement 2018-12-06 19:27:15 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed ipoib: Notify on modify QP failure only when relevant 2018-12-05 13:27:17 +00:00
opencrypto
powerpc powerpc: Set very low priority mode while waiting for AP unleash event 2018-12-06 04:36:02 +00:00
riscv Update the description of the address space layout on RISC-V. 2018-12-07 15:56:40 +00:00
rpc
security audit: predict AUDITING_TD as false 2018-11-29 09:19:48 +00:00
sparc64 Plug memory disclosures via ptrace(2). 2018-12-03 20:54:17 +00:00
sys Provide SDT_PROBES_ENABLED macro. 2018-12-08 06:30:41 +00:00
teken
tests
tools
ufs If the vfs.ffs.dotrimcons sysctl option is enabled while a file 2018-12-06 01:04:56 +00:00
vm vm: use fcmpset for vmspace reference counting 2018-12-07 16:22:54 +00:00
x86 x86/acpica/srat.c: Add API for parsing proximity tables 2018-12-08 18:34:05 +00:00
xdr
xen
Makefile