From patchwork Tue May 13 13:05:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 4167551 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3DB3F9F271 for ; Tue, 13 May 2014 13:10:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2233020204 for ; Tue, 13 May 2014 13:10:07 +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 E646320266 for ; Tue, 13 May 2014 13:10:05 +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 1WkCQQ-00028H-Uu; Tue, 13 May 2014 13:07:18 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WkCQ7-0001p8-Oh for linux-arm-kernel@lists.infradead.org; Tue, 13 May 2014 13:07:00 +0000 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N5I00FF5KEZ8Y60@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 13 May 2014 22:06:35 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.113]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id B5.F2.11496.AD812735; Tue, 13 May 2014 22:06:35 +0900 (KST) X-AuditID: cbfee691-b7f3e6d000002ce8-af-537218dae101 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 01.E3.27725.AD812735; Tue, 13 May 2014 22:06:34 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.81.195]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N5I00LIPKEXC330@mmp1.samsung.com>; Tue, 13 May 2014 22:06:34 +0900 (KST) From: Chanwoo Choi To: kgene.kim@samsung.com, t.figa@samsung.com Subject: [PATCHv5 2/5] ARM: EXYNOS: Support secondary CPU boot of Exynos3250 Date: Tue, 13 May 2014 22:05:05 +0900 Message-id: <1399986308-23744-3-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1399986308-23744-1-git-send-email-cw00.choi@samsung.com> References: <1399986308-23744-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOIsWRmVeSWpSXmKPExsWyRsSkUPe2RFGwQf8bVou/k46xW0xad4DJ 4vJ+bYvrX56zWsw/co7V4vOHFqD4/QksFr0LrrJZnG16w26x6fE1VovLu+awWcw4v4/J4vZl Xou/d/6xWZy6/pnN4uSfXkaLJ4c/slrMmPySzWL9jNcsFsdmLGG0aP+7l81i787JjA5iHmvm rWH0aGnuYfP4/WsSo8ffVS+YPXbOusvucefaHjaPzUvqPa6caGL16NuyitHj8ya5AK4oLpuU 1JzMstQifbsErowdO6+xFVzgqpj/9TZ7A+Ntji5GTg4JAROJrj93mSBsMYkL99azgdhCAksZ JZa8LIKp+dH6EijOBRRfxCjRdvIbE4TTxCTRfmgdWAebgJbE/hc3wGwRAV2JKTPvsILYzAKt LBJ9W2pAbGEBH4nTT++zg9gsAqoSW/sbWUBsXgFXib93jjJCbJOT+LDnEVgNp4CbxK/bLewQ F7lKLDt7F2yxhMBSDokNH+ZADRKQ+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RFe909AId6UxMqq1KL8+KLSnNTiQ4zJQFdN ZJYSTc4HJqm8knhDYxMzI0sjc0MLI2Nz0oSVxHkPtFoHCgmkJ5akZqemFqQWwWxh4uCUamC0 YBJ8Fdpw2Ej+3uMX13ZxdakbNy7eL31LzTvj6R5TuVmiqZOa0sT+Zae+uG1x5v3hwN9r/KOD PjOoCVTezxN08Sz/M0c8cNb8zWkb5TglWKSnb9/Cq8rXZrfN87nChaCCeScTVwW+XdDROy0m W9VjsuK06XrH+u/vXL8zLNN8bsmyrRv4Sx2UWIozEg21mIuKEwE1VpOxSAMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140513_060700_019509_7D5392BD X-CRM114-Status: GOOD ( 11.05 ) X-Spam-Score: -5.7 (-----) Cc: sajjan.linux@gmail.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux@arm.linux.org.uk, arnd@arndb.de, marc.zyngier@arm.com, hyunhee.kim@samsung.com, sw0312.kim@samsung.com, linux-kernel@vger.kernel.org, yj44.cho@samsung.com, inki.dae@samsung.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, thomas.abraham@linaro.org, ben-linux@fluff.org, olof@lixom.net, chanho61.park@samsung.com, sachin.kamat@linaro.org, linux-arm-kernel@lists.infradead.org, tushar.behera@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 This patch fix the offset of CPU boot address and don't need to send smc call of SMC_CMD_CPU1BOOT command for secondary CPU boot because Exynos3250 removes WFE in secure mode. Signed-off-by: Chanwoo Choi Acked-by: Kyungmin Park Reviewed-by: Tomasz Figa --- arch/arm/mach-exynos/firmware.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/firmware.c b/arch/arm/mach-exynos/firmware.c index 739bdc8..eb91d23 100644 --- a/arch/arm/mach-exynos/firmware.c +++ b/arch/arm/mach-exynos/firmware.c @@ -30,6 +30,13 @@ static int exynos_do_idle(void) static int exynos_cpu_boot(int cpu) { /* + * Exynos3250 doesn't need to send smc command for secondary CPU boot + * because Exynos3250 removes WFE in secure mode. + */ + if (soc_is_exynos3250()) + return 0; + + /* * The second parameter of SMC_CMD_CPU1BOOT command means CPU id. * But, Exynos4212 has only one secondary CPU so second parameter * isn't used for informing secure firmware about CPU id. @@ -50,7 +57,7 @@ static int exynos_set_cpu_boot_addr(int cpu, unsigned long boot_addr) boot_reg = sysram_ns_base_addr + 0x1c; - if (!soc_is_exynos4212()) + if (!soc_is_exynos4212() && !soc_is_exynos3250()) boot_reg += 4*cpu; __raw_writel(boot_addr, boot_reg);