From patchwork Wed Feb 25 09:26:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Russell King - ARM Linux X-Patchwork-Id: 5878991 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 83D44BF440 for ; Wed, 25 Feb 2015 09:30:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B99AD2037B for ; Wed, 25 Feb 2015 09:30:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8ADE12034F for ; Wed, 25 Feb 2015 09:30:17 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YQYFn-0008V4-Tz; Wed, 25 Feb 2015 09:27:39 +0000 Received: from pandora.arm.linux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YQYFk-0008SV-9z for linux-arm-kernel@lists.infradead.org; Wed, 25 Feb 2015 09:27:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=arm.linux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=OBA7+UMSOkAEe98yQ3h3i1bN8ZPgjLtSAeljqN2iRGE=; b=Uz0ML+GINArBqaiO/DJooyHdEJtFDP4laDEpPlVaGyN2VdW47M2H6KSVku8Jh/D3cQsoCVLYUTy0EZNvbr60LGYXATlsNTiVMZQUHcY8d5ZawxKF5WGY5fPxe3u5G4Aj4N9ZpeQCOdLTcc+RkCWmM0fEFDBNsLGpewAWkr1I2Ks=; Received: from n2100.arm.linux.org.uk ([2002:4e20:1eda:1:214:fdff:fe10:4f86]:34821) by pandora.arm.linux.org.uk with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1YQYFB-0007l0-3P; Wed, 25 Feb 2015 09:27:01 +0000 Received: from linux by n2100.arm.linux.org.uk with local (Exim 4.76) (envelope-from ) id 1YQYF8-00039N-18; Wed, 25 Feb 2015 09:26:58 +0000 Date: Wed, 25 Feb 2015 09:26:57 +0000 From: Russell King - ARM Linux To: Dinh Nguyen Subject: Re: [BUG] ARM: socfpga: L2 cache init Message-ID: <20150225092657.GU8656@n2100.arm.linux.org.uk> References: <20150206110557.GY8656@n2100.arm.linux.org.uk> <20150209155314.GA7994@pengutronix.de> <54D8E3BB.3060505@opensource.altera.com> <20150209185820.GB7994@pengutronix.de> <20150209213017.GC7994@pengutronix.de> <54DD2BB3.3090507@opensource.altera.com> <20150213080106.GD7994@pengutronix.de> <20150217222817.GS8656@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150225_012736_802338_8A01A1A9 X-CRM114-Status: GOOD ( 11.76 ) X-Spam-Score: -0.1 (/) Cc: Dinh Nguyen , Steffen Trumtrar , kernel@pengutronix.de, "linux-arm-kernel@lists.infradead.org" X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Tue, Feb 24, 2015 at 05:55:05PM -0600, Dinh Nguyen wrote: > Do you have a recommendation on what should be done? Please try this: arch/arm/mach-socfpga/socfpga.c | 5 +++++ 1 file changed, 5 insertions(+) Tested-by: Dinh Nguyen Tested-by: Steffen Trumtrar diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c index 383d61e138af..f5e597c207b9 100644 --- a/arch/arm/mach-socfpga/socfpga.c +++ b/arch/arm/mach-socfpga/socfpga.c @@ -23,6 +23,7 @@ #include #include #include +#include #include "core.h" @@ -73,6 +74,10 @@ void __init socfpga_sysmgr_init(void) (u32 *) &socfpga_cpu1start_addr)) pr_err("SMP: Need cpu1-start-addr in device tree.\n"); + /* Ensure that socfpga_cpu1start_addr is visible to other CPUs */ + smp_wmb(); + sync_cache_w(&socfpga_cpu1start_addr); + sys_manager_base_addr = of_iomap(np, 0); np = of_find_compatible_node(NULL, NULL, "altr,rst-mgr");