From patchwork Thu Mar 30 13:16:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 9654109 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 6F82160349 for ; Thu, 30 Mar 2017 13:14:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6403927D0E for ; Thu, 30 Mar 2017 13:14:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58EBA2850D; Thu, 30 Mar 2017 13:14: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 05EA527D0E for ; Thu, 30 Mar 2017 13:14:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933254AbdC3NO2 (ORCPT ); Thu, 30 Mar 2017 09:14:28 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:53446 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933490AbdC3NO1 (ORCPT ); Thu, 30 Mar 2017 09:14:27 -0400 Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0ONM004K3Q41AR50@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 30 Mar 2017 22:14:25 +0900 (KST) Received: from epsmges5p1.samsung.com (unknown [182.195.42.44]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20170330131424epcas5p22092724f3dd827ead79e02b1b2bd61f6~wqyfxC9oM2440324403epcas5p2z; Thu, 30 Mar 2017 13:14:24 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p1.samsung.com (EPCPMTA) with SMTP id B6.CC.20983.0B40DD85; Thu, 30 Mar 2017 22:14:24 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20170330131424epcas5p4fccfab06e5d77d70d09c3835c3332ee5~wqyfQwSXS2027120271epcas5p4P; Thu, 30 Mar 2017 13:14:24 +0000 (GMT) X-AuditID: b6c32a2c-f79be6d0000051f7-f6-58dd04b0590c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 9D.1B.05013.FA40DD85; Thu, 30 Mar 2017 22:14:24 +0900 (KST) Received: from pankaj.com ([107.108.83.125]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0ONM009R0Q3AAC60@mmp2.samsung.com>; Thu, 30 Mar 2017 22:14:23 +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, m.szyprowski@samsung.com, kgene@kernel.org, m.reichl@fivetechno.de, a.hajda@samsung.com, cwchoi00@gmail.com, javier@osg.samsung.com, Pankaj Dubey Subject: [PATCH v9 03/12] ARM: EXYNOS: remove secondary startup initialization from smp_prepare_cpus Date: Thu, 30 Mar 2017 18:46:57 +0530 Message-id: <1490879826-16754-4-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 2.7.4 In-reply-to: <1490879826-16754-1-git-send-email-pankaj.dubey@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNIsWRmVeSWpSXmKP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3Hzll32T02repk89i8pN5jSz+Q17dlFaPH501yARxRbjYZqYkpqUUKqXnJ+SmZeem2 SqEhbroWSgp5ibmptkoRur4hQUoKZYk5pUCekQEacHAOcA9W0rdLcMtomt3GVrCDp2Lt6/2s DYxdXF2MnBwSAiYS/a/vMUHYYhIX7q1n62Lk4hASmMUocXbyLiYI5x2jREvfEkaQKjYBXYkn 7+cyg9giAt4Sk8/8ZQexmQWuMEocnZoJYgsLpEnsftcMVs8ioCqxfV432AZeAQ+JHau3sUFs k5O4ea4TbA6ngKfEyUfTwOJCQDXLTx5jnMDIu4CRYRWjRGpBckFxUnquUV5quV5xYm5xaV66 XnJ+7iZGcFQ8k97BeHiX+yFGAQ5GJR7eirW3I4RYE8uKK3MPMUpwMCuJ8C5kuhshxJuSWFmV WpQfX1Sak1p8iNEU6LCJzFKiyfnAiM0riTc0MTcxNzawMLe0NDFSEudtnP0sXEggPbEkNTs1 tSC1CKaPiYNTqoGxMWnBxdM3J63b/czzS7+r99SNefxl3EGXN6k4Xbry0UjQc01Pp97929M1 3lywVy9MXvygcHWn2fK9KhU1O8/qrD3nYXfuS7tt8NLrr4J3l/fHeYdsuOHG0nSgtu3rmm+6 52QaqpUbZYLNLt/flBe4dOb2/44nhGYkxK9fVM5lscZi7v5pkZ8XKrEUZyQaajEXFScCAH5A 6nqgAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170330131424epcas5p4fccfab06e5d77d70d09c3835c3332ee5 X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?7YyQ7Lm07KaIG1NTSVItVHVybiBLZXkgU29sdXRpb25zGw==?= =?UTF-8?B?7IK87ISx7KCE7J6QGy4vU2VuaW9yIENoaWVmIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?UEFOS0FKIEtVTUFSIERVQkVZG1NTSVItVHVybiBLZXkgU29s?= =?UTF-8?B?dXRpb25zG1NhbXN1bmcgRWxlY3Ryb25pY3MbLi9TZW5pb3IgQ2hpZWYgRW5n?= =?UTF-8?B?aW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG1NXQUhRG0MxMElEMDdJRDAxMDk5Nw==?= CMS-TYPE: 105P X-HopCount: 7 X-CMS-RootMailID: 20170330131424epcas5p4fccfab06e5d77d70d09c3835c3332ee5 X-RootMTR: 20170330131424epcas5p4fccfab06e5d77d70d09c3835c3332ee5 References: <1490879826-16754-1-git-send-email-pankaj.dubey@samsung.com> 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 Reviewed-by: Krzysztof Kozlowski --- arch/arm/mach-exynos/platsmp.c | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index 5a03bff..cb6d199 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@ -387,38 +387,12 @@ 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); if (read_cpuid_part() == ARM_CPU_PART_CORTEX_A9) scu_enable(scu_base_addr()); - - /* - * 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 = __pa_symbol(exynos4_secondary_startup); - - ret = exynos_set_boot_addr(core_id, boot_addr); - if (ret) - break; - } } #ifdef CONFIG_HOTPLUG_CPU