Page MenuHomeFreeBSD

[PPC64] pseries: fix realmaxaddr calculation
ClosedPublic

Authored by luporl on Jul 4 2019, 7:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 6, 8:47 PM
Unknown Object (File)
Wed, Jun 24, 4:29 PM
Unknown Object (File)
Sun, Jun 21, 4:13 PM
Unknown Object (File)
Tue, Jun 16, 3:21 PM
Unknown Object (File)
Jun 5 2026, 3:13 PM
Unknown Object (File)
May 31 2026, 4:27 AM
Unknown Object (File)
May 4 2026, 2:31 AM
Unknown Object (File)
May 1 2026, 10:34 PM
Subscribers

Details

Summary

On POWER9/pseries, QEMU passes several regions of memory,
instead of a single region containing all memory, as the
code was expecting.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25202
Build 23882: arc lint + arc unit

Event Timeline

Makes sense to me. That's the same sort of thing that chrp_mem_regions() is doing to determine it for its own purposes.

Looks good overall. Just a couple nits..

sys/powerpc/aim/slb.c
419

This looks to be a different patch altogether. I don't think it belongs in this change.

sys/powerpc/pseries/platform_chrp.c
151

realmaxaddr = MAX(off, realmaxaddr) should do the same thing.

sys/powerpc/aim/slb.c
419

Ok, I'll commit this part separately.

sys/powerpc/pseries/platform_chrp.c
151

Right, I'll change this part to use MAX.

luporl edited the summary of this revision. (Show Details)
  • Addressed jhibbits' comments
This revision is now accepted and ready to land.Jul 8 2019, 4:24 PM
This revision was automatically updated to reflect the committed changes.