From patchwork Mon Oct 15 12:31: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: 148821 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp3736770lji; Mon, 15 Oct 2018 05:31:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV62yn4BI+//JXCvlbm7frXhfxKwOfhZW3w3B4/3q4uIyB1ZFLvsy477ZZBB31ZlbzO21dBQd X-Received: by 2002:a62:60c1:: with SMTP id u184-v6mr17491137pfb.114.1539606697725; Mon, 15 Oct 2018 05:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539606697; cv=none; d=google.com; s=arc-20160816; b=UTWhMkPkQwcSMglKavynOiUWWOvo1Vj05FvRTO6QSI8ckqmy429Y7YedXM2NcQYqGa g0Rf4z8vWoYWyTaXsTmSrRmpJlkKBtkaaAD+IGk8Vf0dY0COnXk9fQbmufwGRf1s/t5h At5/h7XCG2Fb3pun913zgOOonKIq+ijtDP4SZMiiH9LSs1EKbTNQkjDXwK0L9SED1Wr0 J5GTZz1wInOjL1DxSDom1oYiBCrA7ez8VCb+uxrk6667OD+nqcBD+S4noI8mXCDB+jLP 6jFwL+US+Qwg4W268BIwu2NNzSCsql1hS7c5KilEOOvH1vhtW1DMqXXgqfXwkNKluXfN cVHw== 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:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=SJzIYScYhMdb8yzvDfWZurkp4BZWopiHhM4QbH2iS7A=; b=ePuu6ovsO8jgwgTxrvZNE9rVilG+vlSKHHQogXKHLNp5fdvMWt8aqqZSjJQqOCD45H 7F1EkawfM4TqGLfgbYl4I3MLMbAoLQQoh4iaQSKKyUpkN0Fe+jKiiXliKEw3HEepwINV B5DSI5GmshgutBwNAYpOS/KXF+i6f1Mu9kkaulwnFtj+AVXTQHWX13fak9cuNEmjJAnD 3inyay84MH8Pm1My2HFtKzzXz3P3Q2cpE0geUoBTxYdWEUZQsrx6usrnGmzTgqR4YPnq hanJb8n9Oih35DyScvk44ak1HsLvt/tt8EK/9C8FDpej0P3EQprUb6cnqQaKcMUHlN2h C/Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=dVCGq+xe; 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 v17-v6si10708939pgn.108.2018.10.15.05.31.37; Mon, 15 Oct 2018 05:31:37 -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=dVCGq+xe; 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 S1726530AbeJOUQm (ORCPT + 3 others); Mon, 15 Oct 2018 16:16:42 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:37092 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbeJOUQl (ORCPT ); Mon, 15 Oct 2018 16:16:41 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181015123135euoutp02f1b3169a6ac7952723ef79aa2987bf69~dyCHc_pQq0593805938euoutp02c; Mon, 15 Oct 2018 12:31:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181015123135euoutp02f1b3169a6ac7952723ef79aa2987bf69~dyCHc_pQq0593805938euoutp02c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539606695; bh=SJzIYScYhMdb8yzvDfWZurkp4BZWopiHhM4QbH2iS7A=; h=From:To:Cc:Subject:Date:References:From; b=dVCGq+xeOc1+lPhCfU16McJi5UUFq4NubTIUm0T3Ct/1VQ/QL1dNEB7m3HzxaU8mi D6jHdb++mwpIbA1D2WVYddOnOlk1+T5OpTHp6uPhZEbUBzNBQfSFR9w+I8EvoUJUYb w6k9bh8Lknp9qC7f/m3mQ9qW4VcgL2VVLEuafKUI= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181015123134eucas1p1e0acbffee2ac809c8152ea0e77002675~dyCHD-nQE1987519875eucas1p1e; Mon, 15 Oct 2018 12:31:34 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 4B.6F.04806.6A884CB5; Mon, 15 Oct 2018 13:31:34 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181015123134eucas1p1bdc005e0c46e9b1b7895bf2526ba1f2c~dyCGViKaJ1988219882eucas1p1d; Mon, 15 Oct 2018 12:31:34 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-8f-5bc488a67e80 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id C5.DE.04128.6A884CB5; Mon, 15 Oct 2018 13:31:34 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PGN00GZC4490K70@eusync1.samsung.com>; Mon, 15 Oct 2018 13:31:34 +0100 (BST) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Will Deacon , Catalin Marinas , Marc Zyngier , Thomas Gleixner , Daniel Lezcano , Krzysztof Kozlowski , Chanwoo Choi , Bartlomiej Zolnierkiewicz , Inki Dae Subject: [PATCH v2 0/6] Proper arch timer support for Exynos5433-based TM2(e) boards Date: Mon, 15 Oct 2018 14:31:06 +0200 Message-id: <20181015123112.9379-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMIsWRmVeSWpSXmKPExsWy7djPc7rLOo5EG+xYq2mxccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOz2LxpKrPF y48nWBx4PdbMW8PosWlVJ5vHnWt72DzenTvH7rF5Sb1H35ZVjB6fN8kFsEdx2aSk5mSWpRbp 2yVwZRw83MpS8JerYlbrT8YGxkccXYwcHBICJhLLzil1MXJxCAmsYJT4uOwLM4TzmVFi0tmT bF2MnGBFh299ZINILGOUuPFhOyOE08Akca/xDStIFZuAoUTX2y6wDhGBbInOxw8YQWxmgUXM EgeOCYPYwgJhEgtONDKB2CwCqhKNWzuZQWxeARuJtw+3s0Nsk5dYveEA2BkSAkvYJN5NvsAE kXCR6LjwGcoWlnh1fAtUg4zE5cndLBANzYwS7TNmsUM4PYwSW+fsgHrCWuLw8YusECfxSUza Np0ZEgK8Eh1tQhAlHhLzz60BKxcSiJVo3nyBaQKjxAJGhlWM4qmlxbnpqcXGeanlesWJucWl eel6yfm5mxiBUXv63/GvOxj3/Uk6xCjAwajEwyvAcyRaiDWxrLgy9xCjBAezkgivRMihaCHe lMTKqtSi/Pii0pzU4kOM0hwsSuK8y+ZtjBYSSE8sSc1OTS1ILYLJMnFwSjUwejCIfRRp3eb3 7bR3y7FTr+es1kj/ur9q6yP7a2+frcucftc8/mHhh1e704+LnHHNtK9Ii9rg+GXN7q8f07SX Xb84K+n9rOwJPwRyd0ifb85gM9kbciv2cZZM+vFt37buvb1/SupdIR33p/OcefNmd+zSTtU8 cohzQeECE4beW99Yf/j/mOtz76cSS3FGoqEWc1FxIgBipnAK1gIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprCLMWRmVeSWpSXmKPExsVy+t/xy7rLOo5EG+xexmmxccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOz2LxpKrPF y48nWBx4PdbMW8PosWlVJ5vHnWt72DzenTvH7rF5Sb1H35ZVjB6fN8kFsEdx2aSk5mSWpRbp 2yVwZRw83MpS8JerYlbrT8YGxkccXYycHBICJhKHb31k62Lk4hASWMIoMXXLP1aQhJBAE5NE xz4DEJtNwFCi620XG4gtIpAtMX9vNzuIzSywhFni5n0HEFtYIEzi09sVYDUsAqoSjVs7mUFs XgEbibcPt7NDLJOXWL3hAPMERq4FjAyrGEVSS4tz03OLjfSKE3OLS/PS9ZLzczcxAsNq27Gf W3Ywdr0LPsQowMGoxMMrwHMkWog1say4MvcQowQHs5IIr0TIoWgh3pTEyqrUovz4otKc1OJD jNIcLErivOcNKqOEBNITS1KzU1MLUotgskwcnFINjFLr925jEdwpKdpZtCtnzuS0zwK7Z1YZ fE7YEr48RZQjtcN1gUVSKsvu14n3LP0Ci6OevT+3KVQkJMXOe2Wqtmn3w+4nD25tdXiv1y/2 4PpnhSJ5144EPQbvt5Ps4gof95z9e/X+pfigvM9VMsbeKReltKPy9C9Wq8441HaX7ZeQ3oxE 1m4hJZbijERDLeai4kQAiAkygicCAAA= X-CMS-MailID: 20181015123134eucas1p1bdc005e0c46e9b1b7895bf2526ba1f2c X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20181015123134eucas1p1bdc005e0c46e9b1b7895bf2526ba1f2c References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Dear All, This patchset is an attempt to submit the last piece of missing code to have proper support for Exynos5433 SoCs based TM2(e) boards. It performs a cleanup of timer configuration, which so far needed various out-of-tree workarounds. The fixes provided by this patchset are also needed for add proper support for system suspend/resume. Best regards Marek Szyprowski Samsung R&D Institute Poland Changelog: v2: - dropped arch timer patch, it will be discussed separately - fixed issues pointed by Krzysztof Kozlowski v1: https://patchwork.kernel.org/project/linux-samsung-soc/list/?series=27965&state=*&archive=both - initial version Patch summary: Marek Szyprowski (6): clocksource: exynos_mct: Remove dead code clocksource: exynos_mct: Fix error path in timer resources initialization clocksource: exynos_mct: Add arch_timer cooperation mode for ARM64 clocksource: Change CPU hotplug priority of exynos_mct driver arm64: dts: exynos: Move arch-timer node to right place arm64: platform: Add enable Exynos Multi-Core Timer driver arch/arm64/Kconfig.platforms | 1 + arch/arm64/boot/dts/exynos/exynos5433.dtsi | 23 ++++---- drivers/clocksource/exynos_mct.c | 68 +++++++++++++++------- include/linux/cpuhotplug.h | 2 +- 4 files changed, 61 insertions(+), 33 deletions(-) -- 2.17.1 Reviewed-by: Krzysztof Kozlowski