[PATCH] Please test SMP changes

Peter Schultz pmes at btinet.net
Wed Nov 19 08:16:49 PST 2003

John Baldwin wrote:
> [ Bcc'd to various arch mailing lists ]
> Please test the patch at http://www.FreeBSD.org/~jhb/patches/smp.patch
> You can apply it to a sys/ check out by using patch -p6.  It moves
> the setting of mp_maxid into a separate function (cpu_mp_setmaxid())
> that is called before loader tunables so that UMA and others can use
> it.  cpu_mp_probe() is now called at SI_SUB_CPU / SI_ORDER_SECOND like
> it used to be.  This is necessay to re-enable the ACPI module on i386.
> I have tested it on i386 but not on other archs.  Please be sure to
> test that a normal SMP kernel works as well as booting an SMP kernel
> with 'kern.smp.disabled'.  cpu_mp_probe() is no longer called if SMP
> is disabled in the loader using the tunable.  Thanks.
What all do I need to adjust on my end, other patches?  I took 'device 
acpi' out of my kernel, but if I try to boot with the acpi module 
loaded, the kernel still uses MPTable for interrupts:

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
         The Regents of the University of California. All rights reserved.
FreeBSD 5.1-CURRENT #0: Wed Nov 19 08:55:07 CST 2003
     root at
Preloaded elf kernel "/boot/kernel/kernel" at 0xc07d8000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc07d8250.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium II/Pentium II Xeon/Celeron (350.80-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x652  Stepping = 2
real memory  = 402587648 (383 MB)
avail memory = 385548288 (367 MB)
MPTable: <INTEL    440GX       >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
ioapic0: Assuming intbase of 0
ioapic0 <Version 1.1> irqs 0-23 on motherboard
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <TYANCP TYANTBLE> on motherboard
     ACPI-0168: *** Error: Could not transition to ACPI mode.
acpi0: Could not enable ACPI: AE_NO_HARDWARE_RESPONSE
device_probe_and_attach: acpi0 attach returned 6


More information about the freebsd-current mailing list