From patchwork Sat Dec 10 13:08:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 9469295 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 021E460231 for ; Sat, 10 Dec 2016 13:06:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8EC0284F0 for ; Sat, 10 Dec 2016 13:06:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DDD2B2858C; Sat, 10 Dec 2016 13:06:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 905CD284F0 for ; Sat, 10 Dec 2016 13:06:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753210AbcLJNG2 (ORCPT ); Sat, 10 Dec 2016 08:06:28 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:51875 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753177AbcLJNG1 (ORCPT ); Sat, 10 Dec 2016 08:06:27 -0500 Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OHZ01LMM0EMG690@mailout2.samsung.com> for linux-samsung-soc@vger.kernel.org; Sat, 10 Dec 2016 22:06:26 +0900 (KST) X-AuditID: cbfee61a-f79916d0000062de-20-584bfdd1e297 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 8A.E3.25310.1DDFB485; Sat, 10 Dec 2016 22:06:26 +0900 (KST) Received: from pankaj.sisodomain.com ([107.108.83.125]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OHZ000990EAMM70@mmp1.samsung.com>; Sat, 10 Dec 2016 22:06:25 +0900 (KST) From: Pankaj Dubey To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: krzk@kernel.org, arnd@arndb.de, geert+renesas@glider.be, m.szyprowski@samsung.com, javier@osg.samsung.com, kgene@kernel.org, thomas.ab@samsung.com, Pankaj Dubey Subject: [PATCH v8 6/8] ARM: EXYNOS: remove secondary startup initialization from smp_prepare_cpus Date: Sat, 10 Dec 2016 18:38:41 +0530 Message-id: <1481375323-29724-7-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1481375323-29724-1-git-send-email-pankaj.dubey@samsung.com> References: <1481375323-29724-1-git-send-email-pankaj.dubey@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmkeLIzCtJLcpLzFFi42I5/e+xgO6lv94RBuvms1n8nXSM3WLu7EmM Fm/ermGy6H/8mtni/PkN7BabHl9jtZhxfh+Txdojd9ktFm39wm7RsYzRgcvj969JjB4Tz+p6 bFrVyeaxeUm9x5b+u+wefVtWMXp83iQXwB7lZpORmpiSWqSQmpecn5KZl26rFBripmuhpJCX mJtqqxSh6xsSpKRQlphTCuQZGaABB+cA92AlfbsEt4y1Pw6zFzziqeg+sI6tgXEVVxcjJ4eE gInE7XuXmCBsMYkL99azdTFycQgJLGWUmNR1ignC+ckosWPNE7AqNgFdiSfv5zKD2CIC3hKT z/xlByliFjjMKHHr5R2gdg4OYYEUiUtX2UBqWARUJbZP2M0OYvMKeEh8aT3ODLFNTuLmuU4w m1PAU+LB7Slg9UJANd/nbWSZwMi7gJFhFaNEakFyQXFSeq5hXmq5XnFibnFpXrpecn7uJkZw BDyT2sF4cJf7IUYBDkYlHl6HQ14RQqyJZcWVuYcYJTiYlUR4d//wjhDiTUmsrEotyo8vKs1J LT7EaAp02ERmKdHkfGB05pXEG5qYm5gbG1iYW1qaGCmJ8zbOfhYuJJCeWJKanZpakFoE08fE wSnVwDh9r0zla9HA8vrqX7dfzzq8effsu6f2Hrqy9L+/8q+7DdOenJwX2rtScdOXp/5ZLxzK pQzORmT7xyoeYJUy4Fvn0FLeHyUgU/Kp0Kans3XN9Tpupy9zEvV/bF3Y+mZ66myPt2oLl6/+ /9CVIZkxPVqy49bnnNhzy6XKAk/9V89Y0nGt7Y9MY4kSS3FGoqEWc1FxIgBFSHl8lgIAAA== X-MTR: 20000000000000000@CPGS Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We are taking care of setting secondary cpu boot address in exynos_boot_secondary just before sending ipi to secondary CPUs, so we can safely remove this setting from smp_prepare_cpus. Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/platsmp.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index 43eec10..4de254e 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@ -403,8 +403,6 @@ static int exynos_boot_secondary(unsigned int cpu, struct task_struct *idle) static void __init exynos_smp_prepare_cpus(unsigned int max_cpus) { - int i; - exynos_sysram_init(); exynos_set_delayed_reset_assertion(true); @@ -414,29 +412,6 @@ static void __init exynos_smp_prepare_cpus(unsigned int max_cpus) if (exynos_scu_enable()) return; } - /* - * Write the address of secondary startup into the - * system-wide flags register. The boot monitor waits - * until it receives a soft interrupt, and then the - * secondary CPU branches to this address. - * - * Try using firmware operation first and fall back to - * boot register if it fails. - */ - for (i = 1; i < max_cpus; ++i) { - unsigned long boot_addr; - u32 mpidr; - u32 core_id; - int ret; - - mpidr = cpu_logical_map(i); - core_id = MPIDR_AFFINITY_LEVEL(mpidr, 0); - boot_addr = virt_to_phys(exynos4_secondary_startup); - - ret = exynos_set_boot_addr(core_id, boot_addr); - if (ret) - break; - } } #ifdef CONFIG_HOTPLUG_CPU