From owner-svn-src-projects@FreeBSD.ORG Tue Jan 31 15:46:30 2012 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3448F106564A; Tue, 31 Jan 2012 15:46:30 +0000 (UTC) (envelope-from gber@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 23A038FC0A; Tue, 31 Jan 2012 15:46:30 +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 q0VFkUJD042835; Tue, 31 Jan 2012 15:46:30 GMT (envelope-from gber@svn.freebsd.org) Received: (from gber@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q0VFkUoL042833; Tue, 31 Jan 2012 15:46:30 GMT (envelope-from gber@svn.freebsd.org) Message-Id: <201201311546.q0VFkUoL042833@svn.freebsd.org> From: Grzegorz Bernacki Date: Tue, 31 Jan 2012 15:46:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r230819 - projects/armv6/sys/arm/mv X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2012 15:46:30 -0000 Author: gber Date: Tue Jan 31 15:46:29 2012 New Revision: 230819 URL: http://svn.freebsd.org/changeset/base/230819 Log: mpic: Fix IPI sending - Change Target List Filter to All And Self from All No Self (val = 0x00000000), sending interrupt to core causing it should not be disabled by default - CPUISSET return 1 if core is present in cpuset structure, so should not be negated - Remove setting all cores as signal receivers (ipi | 0xf00) Submitted by: Lukasz Plachno Obtained from: Marvell, Semihalf Modified: projects/armv6/sys/arm/mv/mpic.c Modified: projects/armv6/sys/arm/mv/mpic.c ============================================================================== --- projects/armv6/sys/arm/mv/mpic.c Tue Jan 31 15:45:10 2012 (r230818) +++ projects/armv6/sys/arm/mv/mpic.c Tue Jan 31 15:46:29 2012 (r230819) @@ -271,14 +271,13 @@ pic_ipi_send(cpuset_t cpus, u_int ipi) { uint32_t val, i; - val = 0x01000000; + val = 0x00000000; for (i = 0; i < MAXCPU; i++) - if (!CPU_ISSET(i, &cpus)) + if (CPU_ISSET(i, &cpus)) val |= (1 << (8 + i)); - val |= ipi | 0xf00; + val |= ipi; bus_space_write_4(mv_mpic_sc->mpic_bst, mv_mpic_sc->mpic_bsh, MPIC_SOFT_INT, val); - } int