From owner-freebsd-current@FreeBSD.ORG Mon Jul 26 15:01:54 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87C7F1065672; Mon, 26 Jul 2010 15:01:54 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 5BAB18FC16; Mon, 26 Jul 2010 15:01:54 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 0CA5946B7E; Mon, 26 Jul 2010 11:01:54 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 44DE08A04F; Mon, 26 Jul 2010 11:01:53 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org, sbruno@freebsd.org Date: Mon, 26 Jul 2010 10:43:59 -0400 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20100217; KDE/4.4.5; amd64; ; ) References: <20100722213836.GH15227@martini.nu> <7573B69C-3C37-449A-A27F-5B0B2ED84757@mac.com> <1280090933.14823.2.camel@localhost.localdomain> In-Reply-To: <1280090933.14823.2.camel@localhost.localdomain> MIME-Version: 1.0 Message-Id: <201007261044.00126.jhb@freebsd.org> Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 26 Jul 2010 11:01:53 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Subject: Re: [patch and review please] 64 CPU Support X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 26 Jul 2010 15:01:54 -0000 On Sunday, July 25, 2010 4:48:53 pm Sean Bruno wrote: > Reposting from -stable. > > Kind of a large patch, but in order to make an omlette, you need to > break a few servers. > > This is a diff against -CURRENT, not stable-8 as I didn't get a chance > to test it. It is directly based off of changes that peter@ made to the > Yahoo FreeBSD 7 tree. > > I have compile and boot tested this on my local machines, but I don't > have 64 CPU machines to test upon. I think IPI_AST in the first hunk should be using ipi_cpu(). I would perhaps tackle ipi_cpu() as a first step: introduce ipi_cpu() on both i386 and amd64 (it should be ok to add a real version for i386 rather than the current macro, it should be a copy of the amd64 code). Other folks can help with other architectures. ipi_selected() should generally be a good clue as to how to implement ipi_cpu(). -- John Baldwin