Page MenuHomeFreeBSD

powerpc: Bump maximum number of FDT reserved mem entries
ClosedPublic

Authored by sanastasio_raptorengineering.com on Feb 21 2024, 8:25 PM.
Tags
None
Referenced Files
F102031453: D44015.id.diff
Wed, Nov 6, 6:02 PM
Unknown Object (File)
Sat, Nov 2, 9:52 AM
Unknown Object (File)
Oct 7 2024, 2:27 PM
Unknown Object (File)
Oct 7 2024, 2:27 PM
Unknown Object (File)
Oct 7 2024, 2:26 PM
Unknown Object (File)
Oct 7 2024, 1:58 PM
Unknown Object (File)
Sep 27 2024, 12:47 AM
Unknown Object (File)
Sep 26 2024, 8:37 PM
Subscribers

Details

Summary
Newer firmware on POWER systems, including v2.10 of the Talos II and
Blackbird firmware can end up reserving more than 32 memory regions in
the device tree, which exceeded an assumption made by ofw_machdep.c's
excise_fdt_reserved(). Bump the maximum number of FDT reservations to
the next power of 2 in order to fix booting on newer firmware.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This means the function now uses more than 1kB stack space. We should be careful bumping it again in the future. It's called early enough that stack space shouldn't be an issue, but something to keep in mind, definitely.

Does this fix https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277097 ?

This revision is now accepted and ready to land.Feb 21 2024, 8:42 PM

This means the function now uses more than 1kB stack space. We should be careful bumping it again in the future. It's called early enough that stack space shouldn't be an issue, but something to keep in mind, definitely.

Does this fix https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277097 ?

As mentioned by Timothy in the linked bug report, this does allow FreeBSD to boot on Talos II/Blackbird systems running PNOR 2.10.

As such, I was wondering if there were plans for this patch to be backported to -RELEASE?

I'll MFC it in the next couple weeks, so it'll be in 14.1.