[PATCH] Please test SMP changes

2003-11-19 Thread John Baldwin
[ 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.

-- 

John Baldwin [EMAIL PROTECTED]http://www.FreeBSD.org/~jhb/
Power Users Use the Power to Serve!  -  http://www.FreeBSD.org/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [PATCH] Please test SMP changes

2003-11-19 Thread Peter Schultz
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
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/MAXKERNEL_DEBUG
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
Features=0x183fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real memory  = 402587648 (383 MB)
avail memory = 385548288 (367 MB)
MPTable: INTEL440GX   
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
Pete...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [PATCH] Please test SMP changes

2003-11-19 Thread John Baldwin

On 19-Nov-2003 Peter Schultz wrote:
 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:

No, please.  Don't disable ACPI.  This is not all the patches to do that.
Mostly I just want to mkae sure that I don't break SMP probing on all
the different architectures.  i386 seems to be working fine, I'm primarily
after testing on the other archs: alpha, amd64, ia64, and sparc64 in
particular to make sure I didn't break SMP probing on those archs.

To be clear: ACPI needs _more_ patches in addition to smp.patch
before it will work as a module again.

-- 

John Baldwin [EMAIL PROTECTED]http://www.FreeBSD.org/~jhb/
Power Users Use the Power to Serve!  -  http://www.FreeBSD.org/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]