From owner-freebsd-arm@FreeBSD.ORG Tue Nov 26 13:17:22 2013 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 75A6E293 for ; Tue, 26 Nov 2013 13:17:22 +0000 (UTC) Received: from mail-vb0-f45.google.com (mail-vb0-f45.google.com [209.85.212.45]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 372EE2D5A for ; Tue, 26 Nov 2013 13:17:21 +0000 (UTC) Received: by mail-vb0-f45.google.com with SMTP id p14so3934501vbm.32 for ; Tue, 26 Nov 2013 05:17:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=B+i7+bAmrBs9fZp5iffvt/Rortm4fuLMw6+4kAo4wGw=; b=dTDCrqsHlzKwh6tFgfi5/GbXVsTVPLsiJ+2heCHONf+r+JNPG92zbAL5LWHfzQuOm+ I1ZmheqWycmkBB923i5CpKCstf+WQc/wHZHUO3HQraiI1pmvVF0dHN8fBr0cKuAdBMNe Kd55ARv7No8Ay3jWkpbb2PzodXiw5cHqyZibAdu8PRAJWHBmGMYl2BTFxnoC87vQp+WF 4yzT5NxE4RwAhx5ewRR3i5J28X8ipema01h2kFmQPNyCB5m0eC0USCeoEbsd4yJPjKRB 9BSDaFLKoI0KVACjzMR6xC4K2aZKxxDSSN+fWQ6azgfXKmHpZEhkUeYxEWXs5D2BPBei P3kw== X-Gm-Message-State: ALoCoQna+i2KtgizlIr9R9Au4X9PD7UUdXkDyFcikRKw7+MzRkvuDC2hCK7asYpfPDdLQ00sozVA MIME-Version: 1.0 X-Received: by 10.52.116.74 with SMTP id ju10mr25518101vdb.20.1385471835603; Tue, 26 Nov 2013 05:17:15 -0800 (PST) Received: by 10.221.19.6 with HTTP; Tue, 26 Nov 2013 05:17:15 -0800 (PST) In-Reply-To: <20131126121034.GA53847@ci0.org> References: <20131122000457.GA44039@freebsd.org> <20131126121034.GA53847@ci0.org> Date: Tue, 26 Nov 2013 14:17:15 +0100 Message-ID: Subject: Re: arm SMP fix From: Wojciech Macek To: Olivier Houchard Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.16 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 13:17:22 -0000 Not realy... I'm only able to boot the 4-core Corex-A15, run world from SATA and perform some basic operations, including multithreaded compilation, if only takes less than ~5 minutes. Any more intensive stuff (creating/destroying a lot of processes at the same time, to be precise) results in kernel panic in pmap. We are trying to debug this issue, but have not found anything interesting so far. Regards, Wojtek 2013/11/26 Olivier Houchard > 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 >