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: 9654135 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 8B98360349 for ; Thu, 30 Mar 2017 13:16:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E73228501 for ; Thu, 30 Mar 2017 13:16:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7345928510; Thu, 30 Mar 2017 13:16:01 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B0E0A28501 for ; Thu, 30 Mar 2017 13:16:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-reply-to:Message-id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=uCHQ2MU17ViaUX6uxQptXsVPivqDhKkBQMGClH3+OZM=; b=nhoqrOug+vhyqz7MLYon0aotui TasD2yw5RFa9umOVe55kRpOIMqqig1fDPFloRG16uvwW//pRc54Yno7ktNSezPMbuKUiAevbM91CR 5l6qeX1nK+JSgRLJSegGG4XNytsHsM68CbebNt3d6ihiRN689s2TPZ8wpnhcFrji0rbgcUizMJNmU m91fSMIqFJNqjr1kGslOR38H1cOwBJLXQj2TgY3HHhWl7I+Yla6FGA/ggQTcDMar3nhpE9J8k/6sc BvgjYyiGez2+gbw2lv9zYjZxuYnl3SatWpAQLDH6jjftGVoTIuGji1o09iMDuKFVXe6cMkKyUI99F hM3wQPog==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ctZvj-0002UD-7K; Thu, 30 Mar 2017 13:15:59 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ctZuZ-0000Jz-Oc for linux-arm-kernel@lists.infradead.org; Thu, 30 Mar 2017 13:14:49 +0000 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-arm-kernel@lists.infradead.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 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+NgFnrNIsWRmVeSWpSXmKPExsWy7bCmhu4GlrsRBltuqVvcWneO1eLvpGPs Fs+Oalu8ebuGyaL/8Wtmi/PnN7BbbHp8jdVixvl9TBYvj/xgtFh75C67xaKtX9gduD1+/5rE 6HHrTr3Hzll32T02repk89i8pN5jSz+Q17dlFaPH501yARxRXDYpqTmZZalF+nYJXBlNs9vY CnbwVKx9vZ+1gbGLq4uRk0NCwERiy+Sp7BC2mMSFe+vZuhi5OIQEljJKNL/exwLhtDNJ7O2d zwrT0f/6HhNEYg6jxO8ps6Ccd4wSd2fNBZvFJqAr8eT9XGYQW0TAW2Lymb/sIEXMAtcYJRZ2 rwBLCAukSXT2XwJrYBFQldg+r5sJxOYV8JDYsXobG8Q6OYmb5zrB6jkFPCVOPpoGFOcAii9i l1hhCWHKSmw6wAxR7SKx9lULI4QtLPHq+Bao16Ql/i69xQhygoRAN6PErOlXocavZ5S48DsJ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0NDFSEudtnP0sXEggPbEkNTs1 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170330_061447_994940_BDF5AE27 X-CRM114-Status: GOOD ( 11.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arnd@arndb.de, javier@osg.samsung.com, Pankaj Dubey , krzk@kernel.org, m.reichl@fivetechno.de, a.hajda@samsung.com, kgene@kernel.org, cwchoi00@gmail.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 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