From patchwork Tue Feb 12 15:45:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 2129081 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id F1F21DF23E for ; Tue, 12 Feb 2013 15:42:31 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U5HxM-0003O5-B5; Tue, 12 Feb 2013 15:39:40 +0000 Received: from mail-pa0-f43.google.com ([209.85.220.43]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U5HxF-0003MQ-HD for linux-arm-kernel@lists.infradead.org; Tue, 12 Feb 2013 15:39:34 +0000 Received: by mail-pa0-f43.google.com with SMTP id bh2so146952pad.16 for ; Tue, 12 Feb 2013 07:39:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:date:message-id:in-reply-to:references :subject; bh=Cy/9jeJJLpv7O29BLEaSMAbJ9p+/0Vx/MmeHqxWAXH8=; b=WLF35obY+pPbK9I2Glro/H/69lUKhaZKGpkO9EYmKtx3swALBswCCdWlTt8am4+6Mp 1t01zdysXtHPw3l3ryMTMHaTgbMpng2gPAOu3n6bWBIOX2CUVGuWIPFinBLPp4wglAO3 ikKGDXftmV3dq5AA+ipjibb/rmzjUeusTHDDvimGx8hvYQYkapv5832o7HaJC9obrkRe PAgx/hZkXlVpKi7YNqLsHyMTYEj/GeAPxd+xIKosgQC3yumib1YMKt63pHKE3/nag5wY sijVBUjz1hjLwg8ENRfyTPgQc4lrNqPE8budY7VD2opYn4Ww+WJjS79Wttfk7YWGwM75 BsFw== X-Received: by 10.66.85.1 with SMTP id d1mr53201786paz.81.1360683571672; Tue, 12 Feb 2013 07:39:31 -0800 (PST) Received: from [127.0.0.1] (FL1-122-133-79-190.tky.mesh.ad.jp. [122.133.79.190]) by mx.google.com with ESMTPS id d1sm75890190pav.6.2013.02.12.07.39.28 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Feb 2013 07:39:30 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Date: Wed, 13 Feb 2013 00:45:06 +0900 Message-Id: <20130212154506.13067.19162.sendpatchset@w520> In-Reply-To: <20130212154438.13067.77359.sendpatchset@w520> References: <20130212154438.13067.77359.sendpatchset@w520> Subject: [PATCH 03/06] ARM: shmobile: Move EMEV2 CPU boot vector setup code X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130212_103933_667600_492B4696 X-CRM114-Status: GOOD ( 10.21 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.43 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (magnus.damm[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: horms@verge.net.au, Magnus Damm , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Magnus Damm Move the boot vector setup code for the EMEV2 SoC to match the sh73a0 and r8a7779 implementations. With this in place all SoC specific SMP implementations for mach-shmobile uses the ->smp_prepare_cpus() callback to setup the boot vector. Signed-off-by: Magnus Damm --- Tested on KZM9D hardware. arch/arm/mach-shmobile/smp-emev2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- 0006/arch/arm/mach-shmobile/smp-emev2.c +++ work/arch/arm/mach-shmobile/smp-emev2.c 2013-02-12 23:57:31.000000000 +0900 @@ -74,9 +74,6 @@ static int __cpuinit emev2_boot_secondar /* enable cache coherency */ modify_scu_cpu_psr(0, 3 << (cpu * 8)); - /* Tell ROM loader about our vector (in headsmp.S) */ - emev2_set_boot_vector(__pa(shmobile_secondary_vector)); - arch_send_wakeup_ipi_mask(cpumask_of(cpu)); return 0; } @@ -87,6 +84,9 @@ static void __init emev2_smp_prepare_cpu scu_enable(scu_base); + /* Tell ROM loader about our vector (in headsmp.S) */ + emev2_set_boot_vector(__pa(shmobile_secondary_vector)); + /* enable cache coherency on CPU0 */ modify_scu_cpu_psr(0, 3 << (cpu * 8)); }