]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
acpica: support parsing of arm64 affinity in acpi_pxm.c
authorjchandra <jchandra@FreeBSD.org>
Sat, 8 Dec 2018 19:32:23 +0000 (19:32 +0000)
committerjchandra <jchandra@FreeBSD.org>
Sat, 8 Dec 2018 19:32:23 +0000 (19:32 +0000)
commit6fd503bd865fc626f87a090e3ab8418b679b4d19
tree3f02350ff5336cc8e839c64aab72ede50ac36ef1
parent2d1461899d3ddba5d6b0285bb4ce85ecf8dea9b7
acpica: support parsing of arm64 affinity in acpi_pxm.c

ACPI SRAT table on arm64 uses GICC entries to provide CPU locality
information. These entries use an AcpiProcessorUid to identify the
CPU (unlike on x86 where the entries have an APIC ID).

Update acpi_pxm.c to extend the cpu_add/cpu_find/cpu_get_info
functions to handle AcpiProcessorUid. Use the updated functions
while parsing ACPI_SRAT_GICC_AFFINITY entry for arm64.

Also update sys/conf/files.arm64 to build acpi_pxm.c when ACPI is
enabled.

Reviewed by: markj (previous version)
Differential Revision: https://reviews.freebsd.org/D17942
sys/conf/files.arm64
sys/dev/acpica/acpi_pxm.c