From owner-freebsd-current@FreeBSD.ORG Wed Nov 19 08:16:48 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBEDA16A4CE for ; Wed, 19 Nov 2003 08:16:48 -0800 (PST) Received: from smtp1.btinet.net (mail.gnda.com [216.235.160.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0124343FE1 for ; Wed, 19 Nov 2003 08:16:48 -0800 (PST) (envelope-from pmes@btinet.net) Received: from exim by smtp1.btinet.net with spam-scanned (Exim 4.24) id 1AMV0Z-0001ly-Bt for current@FreeBSD.org; Wed, 19 Nov 2003 10:16:47 -0600 Received: from ar11-bsmrnd.l1.btigate.com ([209.62.224.243] helo=btinet.net) by smtp1.btinet.net with esmtp (Exim 4.24) id 1AMV0U-0001k3-T4; Wed, 19 Nov 2003 10:16:43 -0600 Message-ID: <3FBB9768.6010503@btinet.net> Date: Wed, 19 Nov 2003 10:16:40 -0600 From: Peter Schultz User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6a) Gecko/20031104 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Baldwin References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on smtp1.btinet.net X-Spam-Status: No, hits=0.0 required=10.0 tests=none autolearn=no version=2.60 cc: current@FreeBSD.org Subject: Re: [PATCH] Please test SMP changes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2003 16:16:49 -0000 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@192.168.0.3:/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=0x183fbff real memory = 402587648 (383 MB) avail memory = 385548288 (367 MB) MPTable: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Assuming intbase of 0 ioapic0 irqs 0-23 on motherboard Pentium Pro MTRR support enabled npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: 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...