From patchwork Thu Oct 18 09:57:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10646963 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 55B6A1508 for ; Thu, 18 Oct 2018 10:01:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A134287E0 for ; Thu, 18 Oct 2018 10:01:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2DC6128880; Thu, 18 Oct 2018 10:01:29 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 B1C85287E0 for ; Thu, 18 Oct 2018 10:01:28 +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=97BxDP5X8T7a4xao4GiakLYgdJi9MS8cw1YbmBg6iEs=; b=XiIHhB58PnkowkZBAHnbwBqs1u A/O0D6vQzEB9pv/iz4mXWSaWzIR9GpXckD2p5VG9NKShobyezLIEt8X4WgBz0kgkpSh3/tuYeutYI tOXOR/kHk1O/Zu3Be7qnHZ4JejgwX9r44EVT+Nu9KxLwzlN5DWCVBDAFjFmDhqFvBkF7xcXXQTZV0 uj2HY4gjqgHcDKcRlFTaR5y+SKzlIEqabpH6MMH30R1r7OOlvk9oc708L8EpfFvAchLxFM8ZCQhcM dxpqK2aGAyCqdjmVFUj1vmKJ24CGpeWwG4VmHihH1qqQ0fP4th9qpxsajfWL5gJmNbGmOd4M+/g6g XxDeov7Q==; 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 1gD578-0007z6-IU; Thu, 18 Oct 2018 10:01:10 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gD53Z-0005Af-OH for linux-arm-kernel@lists.infradead.org; Thu, 18 Oct 2018 09:57:33 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181018095717euoutp0111210dd8069639dc7b4488c71f5a1527~eq3QTbLOQ0107701077euoutp01Z; Thu, 18 Oct 2018 09:57:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181018095717euoutp0111210dd8069639dc7b4488c71f5a1527~eq3QTbLOQ0107701077euoutp01Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539856637; bh=zJetpoNhW01GT4Xt0gk6SKTpHAA/tdY/kH9zyQ9f4Ok=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=aTgk1rfPeEW8tqfWTdwSg4TZQyK0mLQm3GVknpbI4DBOGG3NTEGMKLpylEnTksvV/ CVhXhn0S/KQgn+iD8KChOBSjDnCd2GxjMJsqmDUT2rw7p7sAlXfQaXUOtN3aEjB0ZI QTeXf7NYERUX/YClBqN1+KjwT+ZVGdSHIM636Wfw= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181018095717eucas1p2f656677dcc7d03550eb6c8ca5f12f8a5~eq3PyTstY2351323513eucas1p2E; Thu, 18 Oct 2018 09:57:17 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 9D.D1.04294.CF858CB5; Thu, 18 Oct 2018 10:57:16 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181018095716eucas1p192004241424d1cf581f715558b2e67a4~eq3O6tUM92351723517eucas1p1G; Thu, 18 Oct 2018 09:57:16 +0000 (GMT) X-AuditID: cbfec7f4-835ff700000010c6-fb-5bc858fcf29a Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id AB.D2.04284.CF858CB5; Thu, 18 Oct 2018 10:57:16 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGS00GLZGZA2H50@eusync3.samsung.com>; Thu, 18 Oct 2018 10:57:16 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/6] clocksource: exynos_mct: Remove dead code Date: Thu, 18 Oct 2018 11:57:03 +0200 Message-id: <20181018095708.1527-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181018095708.1527-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCIsWRmVeSWpSXmKPExsWy7djP87p/Ik5EG/xeYWCxccZ6Vov3y3oY La5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8SS6APYrLJiU1 J7MstUjfLoErY9cq24LJfBV7GhvYGhgfcncxcnJICJhIrHi2nbmLkYtDSGAJo8SWif1sEE4T k0TXzkYWkCo2AUOJrrddbCC2iEC2xPy93ewgRcwCJ5klLj1+B1YkLOAo8eT2WzCbRUBV4tnZ FnYQm1fARuLYzDdMEOvkJVZvOMAMYnMK2EqcmQ/RKwRU0/1nPfsERp4FjAyrGEVSS4tz03OL DfWKE3OLS/PS9ZLzczcxAkNy27Gfm3cwXtoYfIhRgINRiYf3QerxaCHWxLLiytxDjBIczEoi vNVmJ6KFeFMSK6tSi/Lji0pzUosPMUpzsCiJ8543qIwSEkhPLEnNTk0tSC2CyTJxcEo1MKZq PuTX/TtZ9fS+w/scdumf6dGIScmIV647EvDz06voB3KCcRa5Yj8UD7Y+stQRKGEycHr/xOy+ /EznnJCDeq+9NinrTRQ5vjgrvfPftdMzzOcs9Evf+71P9duDx1G376iF7PWSTHr7vLVE6m/+ hMVbDh42l/Dfl8DxJnrJr5cObtNOKVc7hCqxFGckGmoxFxUnAgBdwqAyRQIAAA== X-CMS-MailID: 20181018095716eucas1p192004241424d1cf581f715558b2e67a4 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181018095716eucas1p192004241424d1cf581f715558b2e67a4 References: <20181018095708.1527-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181018_025729_972515_5121E6B9 X-CRM114-Status: GOOD ( 14.67 ) 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: Mark Rutland , Bartlomiej Zolnierkiewicz , Marc Zyngier , Catalin Marinas , Daniel Lezcano , Will Deacon , Krzysztof Kozlowski , Inki Dae , Chanwoo Choi , Thomas Gleixner , 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 Exynos Multi-Core Timer driver is used only on device-tree based systems, so remove non-dt related code. In case of !CONFIG_OF the code is anyway equal because of_irq_count() has a stub returning 0. Device node pointer is always provided when driver has been probed from device tree. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi --- drivers/clocksource/exynos_mct.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 7a244b681876..ef18bbf8d20c 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -507,13 +507,12 @@ static int __init exynos4_timer_resources(struct device_node *np, void __iomem * int err, cpu; struct clk *mct_clk, *tick_clk; - tick_clk = np ? of_clk_get_by_name(np, "fin_pll") : - clk_get(NULL, "fin_pll"); + tick_clk = of_clk_get_by_name(np, "fin_pll"); if (IS_ERR(tick_clk)) panic("%s: unable to determine tick clock rate\n", __func__); clk_rate = clk_get_rate(tick_clk); - mct_clk = np ? of_clk_get_by_name(np, "mct") : clk_get(NULL, "mct"); + mct_clk = of_clk_get_by_name(np, "mct"); if (IS_ERR(mct_clk)) panic("%s: unable to retrieve mct clock instance\n", __func__); clk_prepare_enable(mct_clk); @@ -581,11 +580,7 @@ static int __init mct_init_dt(struct device_node *np, unsigned int int_type) * timer irqs are specified after the four global timer * irqs are specified. */ -#ifdef CONFIG_OF nr_irqs = of_irq_count(np); -#else - nr_irqs = 0; -#endif for (i = MCT_L0_IRQ; i < nr_irqs; i++) mct_irqs[i] = irq_of_parse_and_map(np, i); From patchwork Thu Oct 18 09:57:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10646967 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 BB3EB14E2 for ; Thu, 18 Oct 2018 10:11:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F58128585 for ; Thu, 18 Oct 2018 10:11:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8DED228692; Thu, 18 Oct 2018 10:11:17 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 D3BAA28585 for ; Thu, 18 Oct 2018 10:11:16 +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=bYLYo3yh9xO+jsNYtbZ8S9X8KoaVpq6dFO3Xh4jwa/k=; b=gRZtu1HrdIx7rdtlx09A2EJYip oRHNMlKaNCb6CdjBbU/VGdBSyIlPhq2n/L3heLwgnZmLn3ACnmJiueAqRsIQPJLC7E1bODTi1FYcR dIFPXBXEtHsmvrRzxBCcUfSNekZITVaVlMrZuIgowRRftFcQfOa7n9yBzBWkvnJSXlwc3MJ0B9IVX u6mEcQIMg1KkFXS+jLcEdOa2kQ35CK+RRWWny1rJOlT4CCT0asmZb9fusoVDZhBUNjdGP5Fw0VtMq clqcuKEMvgUbun5YJVkyEjCvNprByHK0d4fjSZH7qNaDYDFFiwg8UofPpSmlgXvuBruzu0MoaXlHo IfylUeCQ==; 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 1gD5Gs-0003hW-N5; Thu, 18 Oct 2018 10:11:14 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gD53Y-0005Ah-6e for linux-arm-kernel@lists.infradead.org; Thu, 18 Oct 2018 09:57:32 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181018095717euoutp0244b3117ec04057e0f96e184197362be3~eq3QpAt2j3210732107euoutp02q; Thu, 18 Oct 2018 09:57:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181018095717euoutp0244b3117ec04057e0f96e184197362be3~eq3QpAt2j3210732107euoutp02q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539856638; bh=23R/J6B8yoCfPOWlxldxP5D7mXL7n7ZMaMuWjzEhIWQ=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=dBrHmwsUvh/Emgqaf1MT1jV5kIXzQO2P6ajX08nU9XWBCn7i/oLIvaOFBmfKIs+8z XnmkVvViXf2k0RVF2f94zd2fUKIL1c+fK+PrxaJy0kkSicn/CWdco5Y3UpAeob0iJl 3Th9Mx2gj+GRBruGfl7aGxD7IWkutIzZA1VfcOno= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181018095717eucas1p1d3672ab28cff9ac1551d45b80ea4a18a~eq3QKIJ891223412234eucas1p10; Thu, 18 Oct 2018 09:57:17 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 8E.D1.04294.DF858CB5; Thu, 18 Oct 2018 10:57:17 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181018095716eucas1p103fb0d1a19c6122e885b15526c176967~eq3Pc6OL01224112241eucas1p1j; Thu, 18 Oct 2018 09:57:16 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-fc-5bc858fd08bb Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id FC.D2.04284.CF858CB5; Thu, 18 Oct 2018 10:57:16 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGS00GLZGZA2H50@eusync3.samsung.com>; Thu, 18 Oct 2018 10:57:16 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/6] clocksource: exynos_mct: Fix error path in timer resources initialization Date: Thu, 18 Oct 2018 11:57:04 +0200 Message-id: <20181018095708.1527-3-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181018095708.1527-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGIsWRmVeSWpSXmKPExsWy7djPc7p/I05EG2yawW2xccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOzWHr9IpPF 5k1TmS1efjzB4sDnsWbeGkaPTas62TzuXNvD5vHu3Dl2j81L6j36tqxi9Pi8SS6APYrLJiU1 J7M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ElmiUuP34EVCQskS9y6d5cVxGYRUJXY vOA5E4jNK2AjcXvNVUaIbfISqzccYAaxOQVsJc7Mh+gVAqrp/rOefQIjzwJGhlWMIqmlxbnp ucWGesWJucWleel6yfm5mxiBIbnt2M/NOxgvbQw+xCjAwajEw/sg9Xi0EGtiWXFl7iFGCQ5m JRHearMT0UK8KYmVValF+fFFpTmpxYcYpTlYlMR5zxtURgkJpCeWpGanphakFsFkmTg4pRoY ZdONLE6G+S/kfSnou2mOeSDPJO9XrHmWP+dlZvBduq7+7Y9hcnvOux+P7uUkiP7OkbrMkFye KP1Hf///+ksx0S+tvc89zJjpfF71xZ5E9QDXD6+WOqiutO5kNkg6oSW+IVPbLaVeQVU0vXj3 GV+HXlaeR5t691mrGM1fUr73y4vc8y4J+68osRRnJBpqMRcVJwIAH9crDEUCAAA= X-CMS-MailID: 20181018095716eucas1p103fb0d1a19c6122e885b15526c176967 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181018095716eucas1p103fb0d1a19c6122e885b15526c176967 References: <20181018095708.1527-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181018_025728_408861_7658E8E6 X-CRM114-Status: GOOD ( 16.16 ) 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: Mark Rutland , Bartlomiej Zolnierkiewicz , Marc Zyngier , Catalin Marinas , Daniel Lezcano , Will Deacon , Krzysztof Kozlowski , Inki Dae , Chanwoo Choi , Thomas Gleixner , 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 While freeing interrupt handlers in error path, don't assume that all requested interrupts are per-processor interrupts and properly release standard interrupts too. Reported-by: Krzysztof Kozlowski Fixes: 56a94f13919c ("clocksource: exynos_mct: Avoid blocking calls in the cpu hotplug notifier") Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi --- drivers/clocksource/exynos_mct.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index ef18bbf8d20c..49413900b24c 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -561,7 +561,19 @@ static int __init exynos4_timer_resources(struct device_node *np, void __iomem * return 0; out_irq: - free_percpu_irq(mct_irqs[MCT_L0_IRQ], &percpu_mct_tick); + if (mct_int_type == MCT_INT_PPI) { + free_percpu_irq(mct_irqs[MCT_L0_IRQ], &percpu_mct_tick); + } else { + for_each_possible_cpu(cpu) { + struct mct_clock_event_device *pcpu_mevt = + per_cpu_ptr(&percpu_mct_tick, cpu); + + if (pcpu_mevt->evt.irq != -1) { + free_irq(pcpu_mevt->evt.irq, pcpu_mevt); + pcpu_mevt->evt.irq = -1; + } + } + } return err; } From patchwork Thu Oct 18 09:57:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10646947 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 882CD17D4 for ; Thu, 18 Oct 2018 10:00:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C7BE28803 for ; Thu, 18 Oct 2018 10:00:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5FCDE28895; Thu, 18 Oct 2018 10:00: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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable 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 DB81828803 for ; Thu, 18 Oct 2018 10:00: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=QNab8280c2coYa0nJAZ6kj7FB9RqK+/QmNjmRv8kMjA=; b=SHykt+QabmA4MqVNaVXTYfVrqe VS3VYmit4yzJCu5sIYKpcqvwy7d4ClJnmk+65P5xXBlDBzbthlJIl0q9Dz/Kkz3tRRE5SHVmHbBGZ b1vcoLhGrPBtCsx42iezU8OkY77LXcnM/SWMsRa5dIWBmxW20fyaoAakF6/b6S7b8zy338ocp5/FK PQL4pVVvEmPAY6eKHVlepxe+8fRxOsTpBsclVktWjYP9w4nBZ+/itPg9aTrjnjjgzYxpP7QRdZq02 KrtDTVKleDJIxdPQVLs+TbWcku2kXA0xf3qiu2WFVl3lvZ0XBbas3restT6sQvnm4iN8+jquowCGF lCQIDhHQ==; 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 1gD55n-0006DW-Io; Thu, 18 Oct 2018 09:59:47 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gD53Z-0005BD-OH for linux-arm-kernel@lists.infradead.org; Thu, 18 Oct 2018 09:57:33 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181018095718euoutp016bd5895d743845253d7ac83a534641e4~eq3RMLqty0160201602euoutp01e; Thu, 18 Oct 2018 09:57:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181018095718euoutp016bd5895d743845253d7ac83a534641e4~eq3RMLqty0160201602euoutp01e DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539856638; bh=h+DAgBMdXW66D9M3iwDYly4siSxPNHVl5qlT4WELpzU=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=V5zlImZNTBoF+5jKjEMp5FDCDd6LAvSutQu31bA9QQZGzNEJGBwReABn2gqZgK1TH d1pAltluS1FUVCgqmTJW78et/NyL0iJrsLFHmoiUGJkyCnx8XmAc0Nwnx9AwDolk4a n1+DbKkZ3JuoxeGa27MCVSeKbRt1wc21JPw3LBB0= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181018095718eucas1p2b97a0fec37fbcae0686cce9e833d94d3~eq3QxUv492884828848eucas1p2X; Thu, 18 Oct 2018 09:57:18 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id DB.63.04441.DF858CB5; Thu, 18 Oct 2018 10:57:17 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181018095717eucas1p2c89f6e71642e6db62676e1af5514529f~eq3QCyEdV0201302013eucas1p2p; Thu, 18 Oct 2018 09:57:17 +0000 (GMT) X-AuditID: cbfec7f2-a1ae89c000001159-6a-5bc858fdcc2f Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id CB.C2.04128.DF858CB5; Thu, 18 Oct 2018 10:57:17 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGS00GLZGZA2H50@eusync3.samsung.com>; Thu, 18 Oct 2018 10:57:17 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 3/6] clocksource: exynos_mct: Refactor resources allocation Date: Thu, 18 Oct 2018 11:57:05 +0200 Message-id: <20181018095708.1527-4-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181018095708.1527-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGIsWRmVeSWpSXmKPExsWy7djP87p/I05EG2y+ZWKxccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOzWHr9IpPF 5k1TmS1efjzB4sDnsWbeGkaPTas62TzuXNvD5vHu3Dl2j81L6j36tqxi9Pi8SS6APYrLJiU1 J7MstUjfLoEr49zZbvaCXxIVz24+Z29g3CXSxcjJISFgIrHs4DbmLkYuDiGBFYwSj378Zodw PjNK7L4ykQWmatuLpywQiWWMEne+z2KDcBqYJHa2PgarYhMwlOh628UGYosIZEt0Pn7ACFLE LHCSWeLfzU3sIAlhgQCJ67s/g9ksAqoSx1umMoPYvAI2Ev3rj7BCrJOXWL3hAFicU8BW4sz8 d1BnHGGT+PWCA8J2kZi7axczhC0s8er4FnYIW0bi8uRusFMlBJoZJdpnzGKHcHoYJbbO2cEG UWUtcfj4RbBtzAJ8EpO2TQeaxAEU55XoaBOCKPGQ2HxiKSvEm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+6rByaWXalu6b6u/uv1RabbSKUbifJSL6y7W985ctPvWkTfRLQfhK h2q2yozbihIP16wQswkudVOU33zKNSH3WpYSS3FGoqEWc1FxIgA8uj/eRgIAAA== X-CMS-MailID: 20181018095717eucas1p2c89f6e71642e6db62676e1af5514529f X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181018095717eucas1p2c89f6e71642e6db62676e1af5514529f References: <20181018095708.1527-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181018_025729_981304_C8CAFEEC X-CRM114-Status: GOOD ( 16.84 ) 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: Mark Rutland , Bartlomiej Zolnierkiewicz , Marc Zyngier , Catalin Marinas , Daniel Lezcano , Will Deacon , Krzysztof Kozlowski , Inki Dae , Chanwoo Choi , Thomas Gleixner , 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 Move interrupts allocation from exynos4_timer_resources() into separate function together with the interrupt number parsing code from mct_init_dt(), so the code for managing interrupts is kept together. While touching exynos4_timer_resources() function, move of_iomap() to it. No functional changes. Signed-off-by: Marek Szyprowski Reviewed-by: Chanwoo Choi Tested-by: Chanwoo Choi Reviewed-by: Krzysztof Kozlowski --- drivers/clocksource/exynos_mct.c | 50 +++++++++++++++++++------------- 1 file changed, 30 insertions(+), 20 deletions(-) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 49413900b24c..4c886ff2941a 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -502,11 +502,14 @@ static int exynos4_mct_dying_cpu(unsigned int cpu) return 0; } -static int __init exynos4_timer_resources(struct device_node *np, void __iomem *base) +static int __init exynos4_timer_resources(struct device_node *np) { - int err, cpu; struct clk *mct_clk, *tick_clk; + reg_base = of_iomap(np, 0); + if (!reg_base) + panic("%s: unable to ioremap mct address space\n", __func__); + tick_clk = of_clk_get_by_name(np, "fin_pll"); if (IS_ERR(tick_clk)) panic("%s: unable to determine tick clock rate\n", __func__); @@ -517,9 +520,27 @@ static int __init exynos4_timer_resources(struct device_node *np, void __iomem * panic("%s: unable to retrieve mct clock instance\n", __func__); clk_prepare_enable(mct_clk); - reg_base = base; - if (!reg_base) - panic("%s: unable to ioremap mct address space\n", __func__); + return 0; +} + +static int __init exynos4_timer_interrupts(struct device_node *np, + unsigned int int_type) +{ + int nr_irqs, i, err, cpu; + + mct_int_type = int_type; + + /* This driver uses only one global timer interrupt */ + mct_irqs[MCT_G0_IRQ] = irq_of_parse_and_map(np, MCT_G0_IRQ); + + /* + * Find out the number of local irqs specified. The local + * timer irqs are specified after the four global timer + * irqs are specified. + */ + nr_irqs = of_irq_count(np); + for (i = MCT_L0_IRQ; i < nr_irqs; i++) + mct_irqs[i] = irq_of_parse_and_map(np, i); if (mct_int_type == MCT_INT_PPI) { @@ -579,24 +600,13 @@ static int __init exynos4_timer_resources(struct device_node *np, void __iomem * static int __init mct_init_dt(struct device_node *np, unsigned int int_type) { - u32 nr_irqs, i; int ret; - mct_int_type = int_type; - - /* This driver uses only one global timer interrupt */ - mct_irqs[MCT_G0_IRQ] = irq_of_parse_and_map(np, MCT_G0_IRQ); - - /* - * Find out the number of local irqs specified. The local - * timer irqs are specified after the four global timer - * irqs are specified. - */ - nr_irqs = of_irq_count(np); - for (i = MCT_L0_IRQ; i < nr_irqs; i++) - mct_irqs[i] = irq_of_parse_and_map(np, i); + ret = exynos4_timer_resources(np); + if (ret) + return ret; - ret = exynos4_timer_resources(np, of_iomap(np, 0)); + ret = exynos4_timer_interrupts(np, int_type); if (ret) return ret; From patchwork Thu Oct 18 09:57:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10646949 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 8F7FB17D4 for ; Thu, 18 Oct 2018 10:00:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74F9028895 for ; Thu, 18 Oct 2018 10:00:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6974B288A2; Thu, 18 Oct 2018 10:00:39 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 14A0B28895 for ; Thu, 18 Oct 2018 10:00:39 +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=GCuZ/lj4S+4RgBJ3KPlOhLm3XUbbuWaRZe42aWSnB8c=; b=fr2mAaG7xCyzt99Jag2wcm4arw r5F2quQCdHku67NhBQSsSgqNhWwa30YBsv0w1t+QoiRGMu5HPIbPWzGO1wAzzbO5V3XmP0FGJTvgU tLwmhwhAN2X+qZpLKjx6cNsPLuShvYUcF5FKneGm1Thpef4hgcJY4GiRDDPZsviXfYtzqBYUE20GK NDcHV7HGRgCUibtbl8geKIon8eqr28CX1qVVqphUQCO6tnpkxmlTYdDY47K/tXdNdPYweIyA+cpdE Lyx1pKuM9utrVlnMXhdd2jL9AlQY5CVk+p1EZDSjzUqSP8iAJSkMS9jqVZrd4PGSob3ydTRBp9GkA 3IsS23+w==; 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 1gD56X-0007bH-I7; Thu, 18 Oct 2018 10:00:33 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gD53Z-0005Ai-OE for linux-arm-kernel@lists.infradead.org; Thu, 18 Oct 2018 09:57:33 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181018095719euoutp011b840002f9645bdc3babcb8f38f7bdc4~eq3R1SW150108101081euoutp01U; Thu, 18 Oct 2018 09:57:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181018095719euoutp011b840002f9645bdc3babcb8f38f7bdc4~eq3R1SW150108101081euoutp01U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539856639; bh=7RzFxofNGfgWBQtiHbTFe9TEVqpCi1g2karnmb1X59I=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=krfirxAzO7Qq5s/ssVN+WwSU3qIg0R/JW2QqcVPuuVdbjb6OZgXY+JXsg/etwYgza spT2ReJCudf3/zRXmgQNZCwri4td8ZebkrQIx0Au62PDD5jkGVu8LLuph2IggccQlW VjMWdDmrMWh0V8+B8+BeD3DoXHRuPBgadnre/9GU= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181018095718eucas1p195d0397d91b2620e70fb24d070d38f04~eq3RR8IuI2351723517eucas1p1L; Thu, 18 Oct 2018 09:57:18 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id A3.B1.04806.EF858CB5; Thu, 18 Oct 2018 10:57:18 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181018095717eucas1p20a7d2d2b1b18ae60a4893a8e3d8c19f9~eq3Qh5W422119521195eucas1p2U; Thu, 18 Oct 2018 09:57:17 +0000 (GMT) X-AuditID: cbfec7f5-34dff700000012c6-b4-5bc858fe9a3d Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id EC.C2.04128.DF858CB5; Thu, 18 Oct 2018 10:57:17 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGS00GLZGZA2H50@eusync3.samsung.com>; Thu, 18 Oct 2018 10:57:17 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 4/6] clocksource: exynos_mct: Add arch_timer cooperation mode for ARM64 Date: Thu, 18 Oct 2018 11:57:06 +0200 Message-id: <20181018095708.1527-5-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181018095708.1527-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMIsWRmVeSWpSXmKPExsWy7djPc7r/Ik5EG9w6IGaxccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6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YrLJiU1 J7MstUjfLoEro3lVcMFC7opt1/cxNjCu5Oxi5OSQEDCRWD/zDUsXIxeHkMASRokpb3czQjhN TBJX3qxlB6liEzCU6HrbxQZiiwhkS8zf280OUsQscJJZ4tLjd0DtHBzCAjESb/bHgNSwCKhK rHo/iRkkzCtgIzG/zQdimbzE6g0HmEFsTgFbiTPzQTo5gXbZSHT/Wc8+gZFnASPDKkaR1NLi 3PTcYiO94sTc4tK8dL3k/NxNjMBw3Hbs55YdjF3vgg8xCnAwKvHwPkg9Hi3EmlhWXJl7iFGC g1lJhLfa7ES0EG9KYmVValF+fFFpTmrxIUZpDhYlcd7zBpVRQgLpiSWp2ampBalFMFkmDk6p Bkb3bVcfTa+Zu+WtUOMefcEJOj9uTDpg6nNZXTs+4jj7wcP/9qS926Dk7P5E9Puchh72m5es +H7u8OqUkGj7Wa/Ump90s7riQMirQ1VPGUubHXe5mN4+/O5idjvjl6OZihEVUyWO2517V2l5 rObTAtmyNXW+qTpfa+0C9vXN2eHT/3DFg2sNub5KLMUZiYZazEXFiQC2MYxoQwIAAA== X-CMS-MailID: 20181018095717eucas1p20a7d2d2b1b18ae60a4893a8e3d8c19f9 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181018095717eucas1p20a7d2d2b1b18ae60a4893a8e3d8c19f9 References: <20181018095708.1527-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181018_025729_951554_94E3C8F7 X-CRM114-Status: GOOD ( 16.58 ) 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: Mark Rutland , Bartlomiej Zolnierkiewicz , Marc Zyngier , Catalin Marinas , Daniel Lezcano , Will Deacon , Krzysztof Kozlowski , Inki Dae , Chanwoo Choi , Thomas Gleixner , 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 To get ARM Architected Timers working on Samsung Exynos SoCs, one has to first configure and enable Exynos Multi-Core Timer, because they both share some common hardware blocks (global system counter). This patch adds a mode of cooperation with arch_timer driver, so kernel can use CP15 based timer interface via arch_timer driver, which is mandatory on ARM64. In such mode MCT driver only enables its clocks and starts global timer. Everything else will be handled by arch_timer driver. Signed-off-by: Marek Szyprowski Reviewed-by: Chanwoo Choi Tested-by: Chanwoo Choi Reviewed-by: Krzysztof Kozlowski --- drivers/clocksource/exynos_mct.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 4c886ff2941a..1f5249fb25fd 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -606,6 +606,16 @@ static int __init mct_init_dt(struct device_node *np, unsigned int int_type) if (ret) return ret; + if (IS_ENABLED(CONFIG_ARM64) && IS_ENABLED(CONFIG_ARM_ARCH_TIMER)) { + struct device_node *np = of_find_compatible_node(NULL, NULL, + "arm,armv8-timer"); + if (np) { + of_node_put(np); + exynos4_mct_frc_start(); + return 0; + } + } + ret = exynos4_timer_interrupts(np, int_type); if (ret) return ret; From patchwork Thu Oct 18 09:57:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10646945 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 BAE6617D4 for ; Thu, 18 Oct 2018 09:59:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9EB952871E for ; Thu, 18 Oct 2018 09:59:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9222128803; Thu, 18 Oct 2018 09:59:15 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 3AF2D2871E for ; Thu, 18 Oct 2018 09:59:15 +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=cSe98D+WogMeA/S5HVcyN1umsxsHg3ZI9IUPBwpiyQI=; b=P0b/FO0rLRLnt7opxL7sDhLFgT XNlRMCbW5TCPrf4GAbqUzOGHpNdUVFlXLu8PZ7ou/cKczbzxHX3W2bDiRwlG8RKukIR8JPPtcfEns GY/ShF/bphWF59bXFZD00FzTWJO+3oZOgJ16k48yKXR8aBvg6w0ZSetpI8Xgxf5SOqb5A5Wqx0vSX WjvzaPFkvWCTlYaeWv8Cb0DMiiruE06m8xRLuMRItVaujMbrUbcbUU0tdMpPNiYNrneYkq3MwweNa azXq+vyYt7GTBoiGxgvptRlf7eledINFSFVx5qAY8rIdsrGIJSNN1QJaPq97KbOg906AMP4iXNJQd C8BgW+cg==; 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 1gD559-0005wK-UW; Thu, 18 Oct 2018 09:59:07 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gD53Z-0005Aj-OG for linux-arm-kernel@lists.infradead.org; Thu, 18 Oct 2018 09:57:33 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20181018095719euoutp01d2838277dbccbd78b006fbc20c19f301~eq3SUf2Um0160201602euoutp01f; Thu, 18 Oct 2018 09:57:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181018095719euoutp01d2838277dbccbd78b006fbc20c19f301~eq3SUf2Um0160201602euoutp01f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539856639; bh=Flm64HIKyGpGJJ++WR5bD05/fn6GV6v+Pg40dM+Jxdg=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=NN7YGIRJweT4UFtrUkfKqB5tJlwsnweWLCiT3wX8uX25NLZEp+vq4Mwab1+oTfadf UG+y6ozmaSBSNsz2eV2aJb+ftj2w6y/5bEPrilkRFVC0snUVpavFKHCXC/7LzMo3Yu JbIDFn6fNfXjUCJJ5EOPk/mB8+w3OAIXix4LvYvc= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181018095719eucas1p2b2edc39c08bc260229864241c6467a29~eq3R4Et2y0201302013eucas1p2u; Thu, 18 Oct 2018 09:57:19 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 30.E1.04294.EF858CB5; Thu, 18 Oct 2018 10:57:19 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181018095718eucas1p17799dfba088b0ea412687dd5f1dad78f~eq3RFN3X91872818728eucas1p15; Thu, 18 Oct 2018 09:57:18 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-02-5bc858fe7559 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 20.E2.04284.EF858CB5; Thu, 18 Oct 2018 10:57:18 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGS00GLZGZA2H50@eusync3.samsung.com>; Thu, 18 Oct 2018 10:57:18 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 5/6] arm64: dts: exynos: Move arch-timer node to right place Date: Thu, 18 Oct 2018 11:57:07 +0200 Message-id: <20181018095708.1527-6-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181018095708.1527-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzVRa0hTYRju2zk757haHTbDz1uXQReCLEXiQy0N+nFAyKR+ZAty5Wma7kx2 3MoiXFama5YZMgnTChWdhrqZqZjUGk1LHWIqoqZh0MUbNvsxqVXz6L/neZ/neS+8FCb7iIdQ GVwOq+NUWQpCgre987r3/z3dozzY3y5CLeVNYrRYawZodPmrGFV6wlHpVAmO3O5mEtlmRsRo qLOCQOXubhF67pwk0Z8JH4FqRgdFyG4rw9D3pR48YTPTWNkIGJu1iGAmRroIZmFggGTs1XnM vVYrYDy2bSfIM5K4NDYrw8DqDhxJlaT3DhWA7DrpFW+Z2ggWJSYQQEE6Gr5/bCRNQELJ6DoA 68dr1ogHwA7HJ7DuMltWcEGoBdB7/5lYIEYRHB6ZXHURdCQ0zZsIPw6kM2HRzDT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MkpIID2xJDU7NbUgtQgmy8TBKdXA 2P7OQZxhDqPeDYGHk4Nn+yo52Ho1H3R4sFzTrUd8WcoFRh3/6U5+3ooM//eyqwuvzovg6O2e +i1z/vq0ePMPavJeGzyKNObazSiYn/qF858w97w7Oduzd92+u2K9eb/pgpgZli9a98blTytY 8uSJwoHHuU+CZd5ePrdQ6722leMrwWeVM/6+VWIpzkg01GIuKk4EANyZ4zZEAgAA X-CMS-MailID: 20181018095718eucas1p17799dfba088b0ea412687dd5f1dad78f X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181018095718eucas1p17799dfba088b0ea412687dd5f1dad78f References: <20181018095708.1527-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181018_025729_946468_795E3ED2 X-CRM114-Status: GOOD ( 13.53 ) 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: Mark Rutland , Bartlomiej Zolnierkiewicz , Marc Zyngier , Catalin Marinas , Daniel Lezcano , Will Deacon , Krzysztof Kozlowski , Inki Dae , Chanwoo Choi , Thomas Gleixner , 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 Move ARM architected timer device-tree node to the beginning of 'soc' node, to group it together with other ARM CPU core devices (like PMU). Signed-off-by: Marek Szyprowski Reviewed-by: Chanwoo Choi Tested-by: Chanwoo Choi --- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 23 +++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index 2131f12364cb..fa20eb3495b3 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi @@ -255,6 +255,18 @@ interrupt-affinity = <&cpu4>, <&cpu5>, <&cpu6>, <&cpu7>; }; + timer: timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + chipid@10000000 { compatible = "samsung,exynos4210-chipid"; reg = <0x10000000 0x100>; @@ -1750,17 +1762,6 @@ }; }; - timer: timer { - compatible = "arm,armv8-timer"; - interrupts = , - , - , - ; - }; }; #include "exynos5433-bus.dtsi" From patchwork Thu Oct 18 09:57:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10646943 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 573EF17DE for ; Thu, 18 Oct 2018 09:58:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3844728668 for ; Thu, 18 Oct 2018 09:58:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 250142869D; Thu, 18 Oct 2018 09:58:20 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 B832328668 for ; Thu, 18 Oct 2018 09:58:19 +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=K6At3Tdhwzz+595CVQgaRko7w3XlhSuH/eD1PN6oYpk=; b=oMKLFl5bbFtXnJ59TYHbC55mex WvtusKxmjFWZltnkRiJeEWyaR0Tmeo21N3WneMPZX/bE5DioY0QQ1ulbs0JHMSjZQ81oWgwnDRa73 EybKVbLLQXBVmnbVb1uU5GzWdvhkl/yw5BCj/IhqjzViKua4m3EhZcCxO4mlaI4NvnXh7jg1PJG9E TP0fqabb6wRTr31Dhvy02oodsndZr01iGriHG5BOEu7xLRG9AavLTNC49oZ355yF1sNc9iIZiQWSl BYFVuLtpOOe37j84nkxax0fGe9z4qn0onA5w0/Nh77O5MTMRats1M6ABMp/7e1+ZW7/+CoNbHZ7PE FovoBpLA==; 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 1gD54J-0005YX-5V; Thu, 18 Oct 2018 09:58:15 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gD53Y-0005Ak-6d for linux-arm-kernel@lists.infradead.org; Thu, 18 Oct 2018 09:57:30 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181018095720euoutp022f9f0a605126b1e654091eaf692e6b50~eq3Sz2mcQ3210532105euoutp02z; Thu, 18 Oct 2018 09:57:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181018095720euoutp022f9f0a605126b1e654091eaf692e6b50~eq3Sz2mcQ3210532105euoutp02z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539856640; bh=JbawqqnuJmBPjDcr8q+jVFNwx8wHm3+63GETfeiWmM0=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=Q9uYZdYFUvMcis5O22jtqppTl7hl/4CPrsdlGYPX0URfloFk26eZCwnEJw5lmb+78 8nLVFA3PtHRvCUkYYj4ns3Yy5LKQw4Z30eUoSGUYQnmozeBOH8L7d8MjPVA6N2m8k4 mQkST35PGi229BZYqUpFFtdGTd3oUNxAF9D1wT44= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181018095719eucas1p14a5ba239fba9a472368332262f9acb53~eq3SYkGck1223012230eucas1p1s; Thu, 18 Oct 2018 09:57:19 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id BF.63.04441.FF858CB5; Thu, 18 Oct 2018 10:57:19 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20181018095719eucas1p27732208abef3397d28640c4e519d5bca~eq3RuB4RF2701327013eucas1p2o; Thu, 18 Oct 2018 09:57:19 +0000 (GMT) X-AuditID: cbfec7f2-a1ae89c000001159-75-5bc858ffa2b4 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id FE.C2.04128.FF858CB5; Thu, 18 Oct 2018 10:57:19 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGS00GLZGZA2H50@eusync3.samsung.com>; Thu, 18 Oct 2018 10:57:19 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 6/6] arm64: platform: Add enable Exynos Multi-Core Timer driver Date: Thu, 18 Oct 2018 11:57:08 +0200 Message-id: <20181018095708.1527-7-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20181018095708.1527-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMIsWRmVeSWpSXmKPExsWy7djPc7r/I05EG/x+rmyxccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOzWHr9IpPF 5k1TmS1efjzB4sDnsWbeGkaPTas62TzuXNvD5vHu3Dl2j81L6j36tqxi9Pi8SS6APYrLJiU1 J7MstUjfLoEr49CWW2wFc9gr/vz/ytTAOImti5GTQ0LARGLuk3MsXYxcHEICKxglunpvskI4 nxklrqy/zQJT1fDzHRNEYhmjxOEFrVBVDUwSz38cA6tiEzCU6HrbBTZXRCBbovPxA0aQImaB k8wS/25uYu9i5OAQFgiRuPGnBsRkEVCVmH5OG6ScV8BGouXzFqiT5CVWbzjADGJzCthKnJn/ Duw8CYEjbBJrb2+CushF4sDsh0wQtrDEq+Nb2CFsGYnLk7uhGpoZJdpnzGKHcHoYJbbO2QG1 wlri8PGLrCA2swCfxKRt05lBLpIQ4JXoaBOCMD0kLn6sA6kQEpjAKLFhds4ERskFjAyrGMVT S4tz01OLDfNSy/WKE3OLS/PS9ZLzczcxAqP69L/jn3Ywfr2UdIhRgINRiYf3QerxaCHWxLLi ytxDjBIczEoivNVmJ6KFeFMSK6tSi/Lji0pzUosPMUpzsCiJ8y6btzFaSCA9sSQ1OzW1ILUI JsvEwSnVwMh+TObeAZNv5ac3qXzUfcH7fvp5y8uClbPdCo5WbBYWld20ZdKOeWfnmpzZmnGx 5v2Dk6+mbQzZIGhvfyHZUkdtr3pG5P0J0U0uS/yr3t3zthM84byhseSr9HEtA+Vkr4wgNbnC 0wFqbXt/7Z15rbrPIGCzVEud04/lnvmmH58tylm+67DxnW4lluKMREMt5qLiRADwoTuc5gIA AA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrILMWRmVeSWpSXmKPExsVy+t/xq7r/I05EG+yZwmKxccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOzWHr9IpPF 5k1TmS1efjzB4sDnsWbeGkaPTas62TzuXNvD5vHu3Dl2j81L6j36tqxi9Pi8SS6APYrLJiU1 J7MstUjfLoEr49CWW2wFc9gr/vz/ytTAOImti5GTQ0LARKLh5zumLkYuDiGBJYwSM1r+skM4 TUwSrbeuMoFUsQkYSnS97QLrEBHIlpi/txusiFngJLPEpcfvWLoYOTiEBUIkbvypATFZBFQl pp/TBinnFbCRaPm8BWqZvMTqDQeYQWxOAVuJM/NBOjmBdtlIdP9Zzz6BkWcBI8MqRpHU0uLc 9NxiI73ixNzi0rx0veT83E2MwIDcduznlh2MXe+CDzEKcDAq8fA+SD0eLcSaWFZcmXuIUYKD WUmEt9rsRLQQb0piZVVqUX58UWlOavEhRmkOFiVx3vMGlVFCAumJJanZqakFqUUwWSYOTqkG RnPuqkuXVWfXr+m2enPt4Ou3U4/fTvzWLJ7qvUqgukS5olRw2u9qk+pl7yy1i2Nm7I6sFHhz TvArZ8UGyVutJ288CYzr3bDmxnVftT6P6cYi3NG6O5LPr+heWqZ20C565lq13F31Sye4ZdWU s33XkVr8sGiqYZjRmd9vympOdDxSm6KulPHMU4mlOCPRUIu5qDgRAN3coEBEAgAA X-CMS-MailID: 20181018095719eucas1p27732208abef3397d28640c4e519d5bca X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181018095719eucas1p27732208abef3397d28640c4e519d5bca References: <20181018095708.1527-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181018_025728_388417_10ABA4DB X-CRM114-Status: GOOD ( 13.75 ) 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: Mark Rutland , Bartlomiej Zolnierkiewicz , Marc Zyngier , Catalin Marinas , Daniel Lezcano , Will Deacon , Krzysztof Kozlowski , Inki Dae , Chanwoo Choi , Thomas Gleixner , 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 On Exynos SoCs enabling MCT driver is required even if ARM Architected Timer driver is used to for managing timer hardware and clock source events. Signed-off-by: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Reviewed-by: Chanwoo Choi Tested-by: Chanwoo Choi --- arch/arm64/Kconfig.platforms | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 51bc479334a4..7cc687580fad 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -62,6 +62,7 @@ config ARCH_BRCMSTB config ARCH_EXYNOS bool "ARMv8 based Samsung Exynos SoC family" select COMMON_CLK_SAMSUNG + select CLKSRC_EXYNOS_MCT select EXYNOS_PM_DOMAINS if PM_GENERIC_DOMAINS select EXYNOS_PMU select HAVE_S3C2410_WATCHDOG if WATCHDOG