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: 9469301 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 01D2460234 for ; Sat, 10 Dec 2016 13:09:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DAA3D28425 for ; Sat, 10 Dec 2016 13:09:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD5FC2858C; Sat, 10 Dec 2016 13:09:10 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 530D128425 for ; Sat, 10 Dec 2016 13:09:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cFhND-0006uW-Fc; Sat, 10 Dec 2016 13:07:31 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cFhMW-0006eL-Lv for linux-arm-kernel@lists.infradead.org; Sat, 10 Dec 2016 13:06:50 +0000 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-arm-kernel@lists.infradead.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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161210_050648_991435_910338AF X-CRM114-Status: GOOD ( 11.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arnd@arndb.de, geert+renesas@glider.be, Pankaj Dubey , krzk@kernel.org, javier@osg.samsung.com, kgene@kernel.org, thomas.ab@samsung.com, m.szyprowski@samsung.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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