Page MenuHomeFreeBSD

arm, acpi: increase size of memory region arrays
ClosedPublic

Authored by jchandra on Feb 4 2019, 4:14 AM.
Tags
Referenced Files
Unknown Object (File)
Fri, May 15, 7:35 AM
Unknown Object (File)
Thu, May 14, 11:27 PM
Unknown Object (File)
Thu, May 14, 4:18 PM
Unknown Object (File)
Mon, May 11, 7:02 PM
Unknown Object (File)
Wed, Apr 29, 12:02 AM
Unknown Object (File)
Sat, Apr 25, 3:31 PM
Unknown Object (File)
Apr 23 2026, 8:10 AM
Unknown Object (File)
Apr 22 2026, 3:03 PM
Subscribers

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 - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable