Page MenuHomeFreeBSD

arm, acpi: increase size of memory region arrays
ClosedPublic

Authored by jchandra on Mon, Feb 4, 4:14 AM.

Details

Summary

Bump up MAX_HWCNT and MAX_EXCNT to 32 when ACPI is enabled. These are
the sizes of the hwregions and exregions arrays respectively. ACPI
firmware typically has more memory regions and the current value of
16 is not sufficient for some platforms.

This commit fixes a failure seen with AMI firmware on Cavium's Sabre
ThunderX2 reference platforms. The platform needs 21 physical memory
regions and 18 excluded regions to boot correctly with the current
firmware release.

Test Plan

Boot on Cavium ThunderX2 with AMI firmware (latest label 25)

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jchandra created this revision.Mon, Feb 4, 4:14 AM
andrew accepted this revision.Mon, Feb 4, 9:17 AM
This revision is now accepted and ready to land.Mon, Feb 4, 9:17 AM
This revision was automatically updated to reflect the committed changes.