HomeFreeBSD

arm64: Teach bus_dma on arm64 about NUMA

Description

arm64: Teach bus_dma on arm64 about NUMA

When allocating memory we should try to allocate from the NUMA node
closest to the device to reduce cross domain memory traffic. Teach the
arm64 bus_dma code to do this.

While here use mallocarray to guard against an unlikely integer
overflow.

Reviewed by: markj
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D42187

Details

Provenance
andrewAuthored on Oct 12 2023, 4:01 PM
Reviewer
markj
Differential Revision
D42187: arm64: Teach bus_dma on arm64 about NUMA
Parents
rG26ac295c050d: arm64: Fix long lines in vm_machdep.c
Branches
Unknown
Tags
Unknown