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)
Thu, Oct 9, 11:33 PM
Unknown Object (File)
Wed, Oct 8, 1:26 AM
Unknown Object (File)
Sun, Sep 14, 10:17 AM
Unknown Object (File)
Fri, Sep 12, 2:28 PM
Unknown Object (File)
Sep 10 2025, 6:28 PM
Unknown Object (File)
Aug 1 2025, 3:17 PM
Unknown Object (File)
Jul 29 2025, 8:59 AM
Unknown Object (File)
Jul 28 2025, 8:22 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