From patchwork Fri Mar 22 11:48:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 160888 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp780111jan; Fri, 22 Mar 2019 05:56:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaAwOox0MLFbqDQb5Pj8wMX0T4K45KKg8ixIeZxgQ3C0J5W8Gl8yEvH0L7j/cRRntNNdW1 X-Received: by 2002:a17:902:7e46:: with SMTP id a6mr9502134pln.150.1553259410298; Fri, 22 Mar 2019 05:56:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553259410; cv=none; d=google.com; s=arc-20160816; b=jVpb9coeynmYiJym1LSmlWn7IYlBwe0cKZZNBA9Q2T3DC4JGh9/wEp7xvLaNram+H/ KKFfX6d3bV41yq3reN8cN8dKlh7BY3dE1S+75L5GcI6kk0XIk4cLtdTAI8bzaKZuTupk asWF1EIhwCE1hX6QtVSXpFKHXSl2g8hD8IhRKjMSwr3mSGngcaGcM6Q5zoeu7+hqZ3vL a9fLzxthyTAK059mL9AKhL5IuEZB7c07YLZghnNP0CGvwhunT+yiER72x5Y/+yqzntuy qlIopPecQWhZC2QhLBzngYK7McODrTzL8eZMREdMykUnI2TM8eIfZz4vEssw1Dm5g9AJ atOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=EZ3cSRxRFNptsnTd4HUwIWHPEwjkAF0h0Vpqlu3d7Gk=; b=QKY3wmj0jZ77wG4dVw2p+TeJqFvNKFZjaWtoP6qy7UpJvwrWXcC9nDWNZg3aFeM2gE +gL1RiBrX+uMl/BoqnlxewD5RU4z/ovQVRai566/3YXYGtzVjDL3c0tJFbulqNrGr65J 0EJoEt1+PF4NtyBrWak9ZMuf7D5W3h7DzXSIM9kGbxHuG8f8NaJjLuDEkTZ+Rdvm6nCZ wJ7qtR3VqPxay9EfnOlxDhkca9E7aVnOgzgdWoMGmXygztGogRnPDTJyinZcashkXZVU 7f3zusyPpwVE0L6S3zwxGXtgSGR+PVlhxxwBIuua9RcvwVsgS6wCW0lhS8LtrnWDFxc3 mjTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=N+wasyXZ; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13si5301036pgl.331.2019.03.22.05.56.49; Fri, 22 Mar 2019 05:56:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=N+wasyXZ; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732349AbfCVLss (ORCPT + 3 others); Fri, 22 Mar 2019 07:48:48 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:51569 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732184AbfCVLss (ORCPT ); Fri, 22 Mar 2019 07:48:48 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190322114846euoutp0106c35a596de91f72557f4a68cbfe0608~ORX1QPd8F2784327843euoutp01Y; Fri, 22 Mar 2019 11:48:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190322114846euoutp0106c35a596de91f72557f4a68cbfe0608~ORX1QPd8F2784327843euoutp01Y DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1553255326; bh=EZ3cSRxRFNptsnTd4HUwIWHPEwjkAF0h0Vpqlu3d7Gk=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=N+wasyXZshV15dM3NPdPh0h+Air0Ta7YFnK+Pi7+MTAu+5uOKeWMGk0AaZMyLkRd8 ibdLdKLV18G1eiWmKX8u9EhauKpqSAVke69n+92CiOO7C4SJ8R9uy+QxPgr6wXJyaB aliFHV5ABf2xvn1Z2FD11jwBabG2fI8V2hSwlXl4= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190322114845eucas1p2237f0ee3228780525c7cee372ea4613a~ORX00T__C0940009400eucas1p2h; Fri, 22 Mar 2019 11:48:45 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 8F.CC.04294.D9BC49C5; Fri, 22 Mar 2019 11:48:45 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190322114844eucas1p244c77dfdf2a88bd6806974f41e7c348b~ORX0M3Xcm0935109351eucas1p2g; Fri, 22 Mar 2019 11:48:44 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-e3-5c94cb9dc8a3 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 0C.1B.04284.C9BC49C5; Fri, 22 Mar 2019 11:48:44 +0000 (GMT) Received: from AMDC2765.digital.local ([106.120.51.73]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0POR007ESNH2J220@eusync3.samsung.com>; Fri, 22 Mar 2019 11:48:44 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH 1/3] ARM: exynos: Unify secondary CPU boot procedure a bit Date: Fri, 22 Mar 2019 12:48:31 +0100 Message-id: <20190322114833.12686-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20190322114833.12686-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjkeLIzCtJLcpLzFFi42LZduznOd25p6fEGMyeIGSxccZ6Vovz5zew W8w4v4/JYu2Ru+wOLB6bVnWyefRtWcXo8XmTXABzFJdNSmpOZllqkb5dAldG08vPTAVb2SoO r3zN0sC4grWLkZNDQsBEYkHvaZYuRi4OIYEVjBKdb44xQzifGSW2npwNVzV73mN2iMQyRonN W78wQTj/GSV2PFnJBFLFJmAo0fW2iw3EFhFQlfjctgCsg1mgj1Hi+t65zCAJYQEviRWzT7KA 2CxARY/uvwZbwStgK7H/4k0miHXyEqs3HACr5xSwk9i+8QAbRPwuq8S3K1EQtovEsWnLmCFs GYnOjoNgF0kINDNKPDy3lh3C6WGUuNw0gxGiylri8PGLYNuYBfgkJm2bDtTNARTnlehoE4Io 8ZC4d2cbI8RrExkljnZuZp/AKLGAkWEVo3hqaXFuemqxUV5quV5xYm5xaV66XnJ+7iZGYOyc /nf8yw7GXX+SDjEKcDAq8fBq9E6OEWJNLCuuzD3EKMHBrCTCuysaKMSbklhZlVqUH19UmpNa fIhRmoNFSZy3muFBtJBAemJJanZqakFqEUyWiYNTqoEx8qHZXNZp59qapwXG701IWhZ9xvP/ qzXM5keli4okXi9TcuMPb/Atzzs86+iRX2zKl3i9g1U3Bt8oyPkoujx37ydD9na5rClnhKf5 Baefust73eW3Sce5FO7/mlknvS/URzzYLX/bIviI2WGe9ZHiQtbXtBMz7t2ZdrjEM9l4o+jN c8svJ8krsRRnJBpqMRcVJwIA9zM84ZkCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPJMWRmVeSWpSXmKPExsVy+t/xq7pzTk+JMTj8S9Fi44z1rBbnz29g t5hxfh+Txdojd9kdWDw2repk8+jbsorR4/MmuQDmKC6blNSczLLUIn27BK6MppefmQq2slUc XvmapYFxBWsXIyeHhICJxOx5j9m7GLk4hASWMEp8+PoPymlkklg37xczSBWbgKFE19suNhBb REBV4nPbArAiZoEJjBKrF84CGyUs4CWxYvZJFhCbBajo0f3XYHFeAVuJ/RdvMkGsk5dYveEA 2FBOATuJ7RsPgA0VAqp5tHMx6wRGngWMDKsYRVJLi3PTc4sN9YoTc4tL89L1kvNzNzECg2Hb sZ+bdzBe2hh8iFGAg1GJh1ehbXKMEGtiWXFl7iFGCQ5mJRHeXdFAId6UxMqq1KL8+KLSnNTi Q4zSHCxK4rznDSqjhATSE0tSs1NTC1KLYLJMHJxSDYxVj/SWB9w5KpBaWfJq6h3e3YJZZjc2 Wd979j237PgUmcXz5sxZf+Oyr7RBj+0P01z+OV4VcSuiDeWOvN7/4+mKugUqqz8bvTtUveuf dflpoXqu2Q/U2bcLe/7ZmeLKWeD80rE+opLzn/phFQsGs8viE/44LRGf8XjV2dZc9sn3VJo7 Dl1e+S9KiaU4I9FQi7moOBEArkSG6AICAAA= X-CMS-MailID: 20190322114844eucas1p244c77dfdf2a88bd6806974f41e7c348b CMS-TYPE: 201P X-CMS-RootMailID: 20190322114844eucas1p244c77dfdf2a88bd6806974f41e7c348b References: <20190322114833.12686-1-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org On all supported Exynos SoC it is enough to call dsb_sev() like in the Exynos3250 case instead of the IPI, so simplify the code a bit. Signed-off-by: Marek Szyprowski --- arch/arm/mach-exynos/platsmp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.17.1 diff --git a/arch/arm/mach-exynos/platsmp.c b/arch/arm/mach-exynos/platsmp.c index 3cced9dfe963..65da13923b8f 100644 --- a/arch/arm/mach-exynos/platsmp.c +++ b/arch/arm/mach-exynos/platsmp.c @@ -361,10 +361,7 @@ static int exynos_boot_secondary(unsigned int cpu, struct task_struct *idle) call_firmware_op(cpu_boot, core_id); - if (soc_is_exynos3250()) - dsb_sev(); - else - arch_send_wakeup_ipi_mask(cpumask_of(cpu)); + dsb_sev(); if (exynos_pen_release == -1) break;