Page MenuHomeFreeBSD

PLATFORM arm honor hw.ncpu tunable
ClosedPublic

Authored by manu on Apr 29 2016, 4:06 PM.
Tags
Referenced Files
Unknown Object (File)
Wed, Nov 27, 9:35 AM
Unknown Object (File)
Oct 4 2024, 3:17 PM
Unknown Object (File)
Oct 3 2024, 7:12 PM
Unknown Object (File)
Oct 2 2024, 8:14 PM
Unknown Object (File)
Sep 29 2024, 6:01 PM
Unknown Object (File)
Sep 24 2024, 2:18 PM
Unknown Object (File)
Sep 24 2024, 3:53 AM
Unknown Object (File)
Sep 23 2024, 5:33 AM

Details

Summary

For PLATFORM setmaxid, check if tunable hw.ncpu is set and valid (>= 1 and <= real ncores) and set mp_ncpus to it.

Test Plan

Test on multicore PLATFORM-aware SMP board with different value of hw.ncpu set by ubldr.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

manu retitled this revision from to PLATFORM arm honor hw.ncpu tunable.
manu updated this object.
manu edited the test plan for this revision. (Show Details)
manu added a reviewer: ARM.
manu set the repository for this revision to rS FreeBSD src repository - subversion.
manu added a project: ARM.

You should probably remove the (now redundant) hw.ncpu handling in arm/freescale/imx/imx6_mp.c and arm/altera/socfpga/socfpga_mp.c

You should probably remove the (now redundant) hw.ncpu handling in arm/freescale/imx/imx6_mp.c and arm/altera/socfpga/socfpga_mp.c

They haven't been converted to PLATFORM_SMP

In D6151#130970, @manu wrote:

They haven't been converted to PLATFORM_SMP

Thanks, I missed that.

andrew added a reviewer: andrew.

I have something similar in a larger patch that also looks at the DTB to see if it has any cpu nodes & used this to count the cpus.

This revision is now accepted and ready to land.Apr 30 2016, 4:19 PM
This revision was automatically updated to reflect the committed changes.