From owner-cvs-src@FreeBSD.ORG Mon May 2 15:21:57 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1477A16A4CF for ; Mon, 2 May 2005 15:21:57 +0000 (GMT) Received: from mail25.sea5.speakeasy.net (mail25.sea5.speakeasy.net [69.17.117.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CC6343D4C for ; Mon, 2 May 2005 15:21:56 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 2271 invoked from network); 2 May 2005 15:21:56 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 2 May 2005 15:21:55 -0000 Received: from [10.50.41.242] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j42FLiwI084638; Mon, 2 May 2005 11:21:50 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Doug White Date: Mon, 2 May 2005 11:21:57 -0400 User-Agent: KMail/1.8 References: <200504302001.j3UK10XF086196@repoman.freebsd.org> In-Reply-To: <200504302001.j3UK10XF086196@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505021121.58544.jhb@FreeBSD.org> X-Spam-Status: No, score=-102.8 required=4.2 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/amd64/amd64 mp_machdep.c trap.c src/sys/amd64/conf NOTES src/sys/amd64/include smp.h src/sys/conf options.amd64 options.i386 src/sys/i386/conf NOTES src/sys/i386/i386 mp_machdep.c trap.c src/sys/i386/include smp.h... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2005 15:21:57 -0000 On Saturday 30 April 2005 04:01 pm, Doug White wrote: > dwhite 2005-04-30 20:01:00 UTC > > FreeBSD src repository > > Modified files: > sys/amd64/amd64 mp_machdep.c trap.c > sys/amd64/conf NOTES > sys/amd64/include smp.h > sys/conf options.amd64 options.i386 > sys/i386/conf NOTES > sys/i386/i386 mp_machdep.c trap.c > sys/i386/include smp.h > sys/kern subr_kdb.c subr_smp.c > sys/sys smp.h > Log: > Implement an alternate method to stop CPUs when entering DDB. Normally we > use a regular IPI vector, but this vector is blocked when interrupts are > disabled. With "options KDB_STOP_NMI" and debug.kdb.stop_cpus_with_nmi set, > KDB will send an NMI to each CPU instead. The code also has a > context-stuffing feature which helps ddb extract the state of processes > running on the stopped CPUs. > > KDB_STOP_NMI is only useful with SMP and complains if SMP is not defined. > This feature only applies to i386 and amd64 at the moment, but could be > used on other architectures with the appropriate MD bits. > > Submitted by: ups Is there any reason to not just be using the NMI for all IPI_STOP IPIs? Changing how ipi_foo(IPI_STOP) works would isolate the change to the MD code and wouldn't affect the MI interface at all. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org