From owner-freebsd-arm@FreeBSD.ORG Tue Nov 26 12:10:57 2013 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4A047115 for ; Tue, 26 Nov 2013 12:10:57 +0000 (UTC) Received: from kanar.ci0.org (kanar.ci0.org [88.191.150.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E419928B8 for ; Tue, 26 Nov 2013 12:10:56 +0000 (UTC) Received: from kanar.ci0.org (pluxor@localhost [127.0.0.1]) by kanar.ci0.org (8.14.5/8.14.5) with ESMTP id rAQCAZP6053876; Tue, 26 Nov 2013 13:10:35 +0100 (CET) (envelope-from cognet@ci0.org) Received: (from doginou@localhost) by kanar.ci0.org (8.14.5/8.14.5/Submit) id rAQCAYOA053875; Tue, 26 Nov 2013 13:10:34 +0100 (CET) (envelope-from cognet@ci0.org) X-Authentication-Warning: kanar.ci0.org: doginou set sender to cognet@ci0.org using -f Date: Tue, 26 Nov 2013 13:10:34 +0100 From: Olivier Houchard To: Wojciech Macek Subject: Re: arm SMP fix Message-ID: <20131126121034.GA53847@ci0.org> References: <20131122000457.GA44039@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Nov 2013 12:10:57 -0000 On Tue, Nov 26, 2013 at 10:36:02AM +0100, Wojciech Macek wrote: > Hi, > > Applying the patch is causing a failure on systems with more than 2 cores. > get_pcpu() macro is masking cpuid with incorrect value, since the only last > two bits of cp15 register contain the right value. Simple fix attached > below. > > Regards, > Wojtek Hi Wojtek, Oops that's true, there I meant 0xf and not 0x15. Does that mean that with your fix, you get it to work ? Regards, Olivier