CFT: src/tools/tools/npcus



I need folks to test some code committed recently for identifying the number of cpu's on a machine. The plan is to use this code to choose an SMP or UP kernel during an install.

cd /usr/src/tools/tools/ncpus
make
su
./ncpus

You should get output like this:

trouble# ./ncpus
acpi0_check: nexus0 attached
acpi0_check: legacy0 not-present
acpi0_check: npx0 attached
acpi0_check: acpi0 attached
ncpus: MADT: Found CPU APIC ID 1 enabled
ncpus: MADT: Found CPU APIC ID 2 disabled
acpi: 1
ncpus: MPTable: Found CPU APIC ID 0 enabled
mptable: 1

acpi: 1 means checking ACPI configuration info we found 1 cpu. mptable: 1 means MPTable indicated there was 1 cpu. The rest of the stuff printed out is for debugging.

If you run this test and DON'T see the correct number of cpus for your machine please mail me (directly) with the output and dmesg output from booting your kernel. FWIW acpi info is considered more definitive than MPTable so if acpi gives you the right answer but MPTable does not that's ok.

Sam
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: CFT: src/tools/tools/npcus
    ... ncpus: MADT: Found CPU APIC ID 2 disabled ... acpi: 1 means checking ACPI configuration info we found 1 cpu. ... If you run this test and DON'T see the correct number of cpus for your machine please mail me with the output and dmesg output from booting your kernel. ... Object directory not changed from original ...
    (freebsd-current)
  • Re: panic: probing for non-PCI bus
    ... ACPI has worked before, and it still ... acpu_cpu is not the same thing as CPUs listed in the MADT. ... then FreeBSD won't find any APICs and won't be ... able to trust ACPI PCI interrupt routing. ...
    (freebsd-current)
  • panic: resource_list_add: resource entry is busy
    ... It boots fine with ACPI disabled. ... APIC: Using the MADT enumerator. ... CPU: IntelPentiumM processor 1.60GHz ... ioapic0: intpin 2 trigger: edge ...
    (freebsd-current)
  • Q: FreeBSD 6.0 install issue (probably hardware)...
    ... I managed to get the screen to pause and discerned an error message: ... MADT: ACPI Startup failed with AE_ERROR ... I assumed this was a hardware compatibility issue. ...
    (freebsd-stable)
  • Re: Problems with AMD64 and 8 GB RAM?
    ... On 03/30/05 23:49, Greg 'groggy' Lehey wrote: ... I can't see any reference to anything like an MADT ... Does that mean that there isn't one, or that ACPI can't find ... or does the section APIC refer to/dump the MADT? ...
    (freebsd-stable)