From owner-svn-src-head@FreeBSD.ORG Tue Jul 5 20:05:07 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03D26106564A; Tue, 5 Jul 2011 20:05:07 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E93EA8FC14; Tue, 5 Jul 2011 20:05:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p65K567x083790; Tue, 5 Jul 2011 20:05:06 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p65K56PC083788; Tue, 5 Jul 2011 20:05:06 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <201107052005.p65K56PC083788@svn.freebsd.org> From: Marius Strobl Date: Tue, 5 Jul 2011 20:05:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r223806 - head/sys/sparc64/sparc64 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2011 20:05:07 -0000 Author: marius Date: Tue Jul 5 20:05:06 2011 New Revision: 223806 URL: http://svn.freebsd.org/changeset/base/223806 Log: Remove the IDR_CHEETAH_MAX_BN_PAIRS limit from cheetah_ipi_selected(). This is just a simple approach. For reasons unknown OpenSolaris uses a more sophisticated one involving IPIing the remaining CPUs in reverse order after the first batch of 32. Modified: head/sys/sparc64/sparc64/mp_machdep.c Modified: head/sys/sparc64/sparc64/mp_machdep.c ============================================================================== --- head/sys/sparc64/sparc64/mp_machdep.c Tue Jul 5 19:48:57 2011 (r223805) +++ head/sys/sparc64/sparc64/mp_machdep.c Tue Jul 5 20:05:06 2011 (r223806) @@ -139,8 +139,6 @@ static cpu_ipi_single_t spitfire_ipi_sin SYSINIT(cpu_mp_unleash, SI_SUB_SMP, SI_ORDER_FIRST, cpu_mp_unleash, NULL); -CTASSERT(MAXCPU <= IDR_CHEETAH_MAX_BN_PAIRS); - void mp_init(u_int cpu_impl) { @@ -696,6 +694,8 @@ cheetah_ipi_selected(cpuset_t cpus, u_lo ASI_SDB_INTR_W, 0); membar(Sync); bnp++; + if (bnp == IDR_CHEETAH_MAX_BN_PAIRS) + break; } } while (((ids = ldxa(0, ASI_INTR_DISPATCH_STATUS)) &