From patchwork Thu Nov 15 15:11:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 10684587 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BA03B17EE for ; Thu, 15 Nov 2018 15:12:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A564C2CAAB for ; Thu, 15 Nov 2018 15:12:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 999972CA5D; Thu, 15 Nov 2018 15:12:50 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 28ED32CAAB for ; Thu, 15 Nov 2018 15:12:50 +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=4HVMIfdEqyFi4BbsbypWDSeQy0kTgY2V0BmDUkXTmiE=; b=Q9kGK4e+tOPEsuiqsx2HE3bwTD Ik3WLbYG+kdjF/hCCaB6CC9010ii/amYOS4J4/7tMvfrgOFtq15gC8aT7n4fS3Yikgv8pOzxPTgEY pW5u4e8eXDWLyaQjwkIvwB5HPSDdRyXdAKfvc0puG0uGdqjCsj4JmsQA7ZvVFTpAeR/nVLCrA1UDO HfuFDAh+h2ksUoMNCeMJAhyLRjausbBzHhQJSJyvdbXY42+P5RLwL7+SNRl1rjmngAfNUzZ+3bkrf aNz/cfXzHHSrnJp2o3qG8q6RxcZPk1f4rmgOjCEtNY9RsjGjvTb75xvuZdMhSXvjbuD+r8Usb32I+ hW85OnDQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNJK4-0007Gl-QV; Thu, 15 Nov 2018 15:12:48 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNJJz-00077d-Rs for linux-arm-kernel@bombadil.infradead.org; Thu, 15 Nov 2018 15:12:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-reply-to:Message-id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fwr7eg+826CJd5XoKqdnGmWJiDrlNkTW8iv/lAOZXKE=; b=oZHLY0/q2bhdn6HtHVybAspwO k2NNaeMK2ZKcvgWfmWJTxX3U2AOyx7KeaKYwh4M/WRI2qPrq6HUafcjF98DkXdPcJxcWUaSXZDv5+ I7ePyYrKIvvrHpOEBGr4QFnyG3G60xWtd1UCYuPT3FZMAfki0fnTXQsnd/NT7nfh/RcZR9KIgPHaG lG0nZovD9mqnZqqiY5ZVPjVrK3onYE4658GOEOo6fsyvdZ/piIP3PuYvBUAWg7lXPz8TQ04wJFP9F KFjeqDVvofj/NqvdBVm2gJWhmFNx8Ulqw9+/R62fBYl+kzOQiRS8S7T+COBWxtzToEVCk7WW5A7WX r723h6KoQ==; Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNJJw-000444-OO for linux-arm-kernel@lists.infradead.org; Thu, 15 Nov 2018 15:12:42 +0000 Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20181115151214epoutp0273fe3d85d7e7cca1f2537c1f1cc23251~nVOO3D96-2710927109epoutp02g; Thu, 15 Nov 2018 15:12:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20181115151214epoutp0273fe3d85d7e7cca1f2537c1f1cc23251~nVOO3D96-2710927109epoutp02g DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1542294734; bh=fwr7eg+826CJd5XoKqdnGmWJiDrlNkTW8iv/lAOZXKE=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=S8psAK/X4FGv/8c0wTzlGf4zaDiudGAEfrSDGp/ULS5cfFfLH47gxLz2HZWq2v8L1 9MiXOk+xUMrwruybJiJzfXnpzo71GH16/gzF8IbpAvTEZRXrb9Mj8KOW6ApptElaI9 yDxi1EXF7kmgaG16QrH+WyLQ801VH/rGp9RJBs70= Received: from epsmges2p2.samsung.com (unknown [182.195.42.70]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20181115151213epcas2p453f12062298bb318f64cbc352b6791bd~nVONmNbjn0103801038epcas2p4U; Thu, 15 Nov 2018 15:12:13 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id FB.0C.04407.CCC8DEB5; Fri, 16 Nov 2018 00:12:12 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20181115151211epcas2p4fdc719d354f2a732f70667ccbd8f1bae~nVOMN5m880889608896epcas2p4f; Thu, 15 Nov 2018 15:12:11 +0000 (GMT) X-AuditID: b6c32a46-7a1ff70000001137-23-5bed8ccc8a07 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 91.28.03702.BCC8DEB5; Fri, 16 Nov 2018 00:12:11 +0900 (KST) Received: from AMDC3058.DIGITAL.local ([106.120.53.102]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PI8006WJQ7YQ380@mmp2.samsung.com>; Fri, 16 Nov 2018 00:12:11 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Krzysztof Kozlowski Subject: [PATCH 1/9] ARM: EXYNOS: remove secondary startup initialization from smp_prepare_cpus Date: Thu, 15 Nov 2018 16:11:30 +0100 Message-id: <1542294698-17470-2-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1542294698-17470-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWRb0gTcRjH++1uu3M5u6bULw1fDIKUNBsGZ5n0QuSCoojepJQd7pjSpms3 TQ1USNKWZBmZlIWV9mc5p3PmsjLclkuzmbk0V+vfwGFlEo6UiZnnzXef5/t8H55/OCJ1odF4 Xr6O0ebTKplIjD62x5EJQzXTWUk+awrpaXMJycW6fozsaDAJyfGAX0jerr8PyFrfT4QcHm7H SLNvTEiO9jSKyIbhXgE55ZgHpNHhxcg7XQFsr4RaCNYByvOpnDIbzouozuZyaqb3vYi6aDEA atYcewjLFKcqGFVeEaPdnnZCnBuo7MM0HknxV+OSqALcWKsHYTgkkuGM6Z5QD8S4lLAC+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o8vAblb6OFWBPLiitzDzFK cDArifC61QGFeFMSK6tSi/Lji0pzUosPMUpzsCiJ8/LnH4sUEkhPLEnNTk0tSC2CyTJxcEo1 MNbH8X7pbmbcvHHB25zpqqyX0p61JH4pYbp5cf5MJs2GDYyrpcIvPGq/71EmJvjqVuCKvx80 D0Xu/xd2JfR3UwmLgrO1u2OPR/Oc+TNcW2c7brpXobH2/v9V2vX+/CsEjtQrNEoY86fwBdx5 feGe5CuZWY18XBdehen/2r/ZW1Xy1DJOWS7uQCWW4oxEQy3mouJEALTMJKRFAgAA X-CMS-MailID: 20181115151211epcas2p4fdc719d354f2a732f70667ccbd8f1bae X-Msg-Generator: CA CMS-TYPE: 102P X-CMS-RootMailID: 20181115151211epcas2p4fdc719d354f2a732f70667ccbd8f1bae References: <1542294698-17470-1-git-send-email-b.zolnierkie@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181115_101241_216175_64D62F97 X-CRM114-Status: GOOD ( 17.76 ) 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: linux-samsung-soc@vger.kernel.org, Arnd Bergmann , Chanwoo Choi , Pankaj Dubey , b.zolnierkie@samsung.com, Javier Martinez Canillas , linux-kernel@vger.kernel.org, Markus Reichl , Andrzej Hajda , Kukjin Kim , linux-arm-kernel@lists.infradead.org, Marek Szyprowski 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 From: Pankaj Dubey 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 Signed-off-by: Bartlomiej Zolnierkiewicz --- 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 6a1e682..c39ffd2 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@ -397,38 +397,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) exynos_scu_enable(); - - /* - * 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