diff options
| author | Colin Percival <cperciva@FreeBSD.org> | 2026-11-25 04:16:31 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2026-11-25 19:53:48 +0000 |
| commit | 276085c192993e68aca41e2402f94436f99aa33b (patch) | |
| tree | 07f4f3b012d43eeb39f1bf416abd86e452f77799 /sys/dev/netmap/netmap_kloop.c | |
| parent | 59e24c3c54c13b159298091bce7ac9a316f6c8fc (diff) | |
acpica: Fix SRAT memory region insertion sort
The SRAT table can list memory regions in any order, but we need them
sorted. There is an insertion sort to accomplish this when building
the mem_info array, but instead of inserting the new region before
the *first* higher-base-address region, it was inserting the new
region before the *last* higher-base-address region; i.e. if the array
already held "1 3 4" then inserting "2" would produce "1 3 2 4".
Break out of the insertion-location-finding loop when we find the right
spot to insert the new memory region into the list, rather than looking
further.
Reviewed by: jhb
Fixes: dd540b46236b ("Add a parser for the ACPI SRAT table...")
MFC after: 1 day
Sponsored by: Amazon
Tested on: c5n.9xlarge, c6a.24xlarge, c6a.metal, c7a.metal-48xl
c7i.metal-24xl, c7i.metal-48xl, c8a.metal-24xl
c8i.metal-48xl, c8i.metal-96xl, c8in.96xlarge
c8in.metal-48xl, c8in.metal-96xl, m8azn.metal-24xl
Differential Revision: https://reviews.freebsd.org/D62059
Diffstat (limited to 'sys/dev/netmap/netmap_kloop.c')
0 files changed, 0 insertions, 0 deletions
