From patchwork Mon Oct 8 12:50:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 148360 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp3607821lji; Mon, 8 Oct 2018 05:50:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV63DMShg7weBtAi7ZidtddjAGWnfdV4sXd9hQ0l8K8h1oEO+Y18YDzi3Kp8TwzP242UqajCw X-Received: by 2002:a17:902:4181:: with SMTP id f1-v6mr23324633pld.248.1539003050059; Mon, 08 Oct 2018 05:50:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539003050; cv=none; d=google.com; s=arc-20160816; b=cvvl+7h1mWzkCBhjsRa5xV0dg+NyRKIghDqUwwl3daehNw5zM4LxH8vQSggWTfqh3p pXUXRLptcWbvUs/P4863ML/cHUsCHMBprvcrkJDl0yU99Zh3EvX4dOMZhdiyVH4zKGT4 +lYXWrbwY6tVqH3gWiG/0srOFlUfCfkJnKKu4SzfIGsJjymNvgx/0C+EvhyXs0uTvIdu mj9y2/5npkgpr/bQ/Nff9/MfD1gvWrbOztrohFah1+n0kCgSLvJKH5qw8PJPtGd14GnK g6C+QcTQAdJyGxQkd14hTOWBUMavuOM7y/wxYPTqYqlscEneSNTjzCgJtzuv4Wtms2ue NRDw== 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=HCUBsc9AwGo3dSywBL3RuHpM6uxwP1dY2XsQRHygwAQ=; b=ZKKqarjP/IYPqY0JaOu08MovpPtt9qweY/PN6S5z885+QOSpgI6jctqWrAJ3tD7edR VG8HUHx/uBemdChoaarWKaf/7o+YqEz/8pPfX4bMqdrmo5hcqBV/O0Nn+8gVt4fZOZ3g hZF7zfzseCR/K/DHk0HcCdp4xSTrohwCcnvKDxqjXItOdQJOoW95QRbt4fxFY8+Je/oK OjZR5aF03tPE9usqj8MfAM0Y7qWyzHR+rFBXCLvxEJQ+Jj6P/vYI6Tn/dIzdejR3KpxH 8UtkKddftBU49DQkWzzI2VrBuNq/Xwj3eN8oeNjSZ/4bE5m3X/0aLdUYq3gATdJpsC7F aPfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=JMHNBcDv; 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 j22-v6si17751073pll.86.2018.10.08.05.50.49; Mon, 08 Oct 2018 05:50: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=JMHNBcDv; 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 S1726198AbeJHUCW (ORCPT + 3 others); Mon, 8 Oct 2018 16:02:22 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:51640 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbeJHUCW (ORCPT ); Mon, 8 Oct 2018 16:02:22 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20181008125047euoutp02f1b280e98ec8020d646c9f7986021419~box4n1I4H2603426034euoutp02T; Mon, 8 Oct 2018 12:50:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20181008125047euoutp02f1b280e98ec8020d646c9f7986021419~box4n1I4H2603426034euoutp02T DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1539003047; bh=HCUBsc9AwGo3dSywBL3RuHpM6uxwP1dY2XsQRHygwAQ=; h=From:To:Cc:Subject:Date:References:From; b=JMHNBcDv6A0x8BMRD/scZJzALKCwl8ZgSDz2DZzxSn33mSw6dQ8Y8XlNdGGOFcANo PQVoN0rvSCMRB5t/PvNe4Jbjo6p/s4SRyBcua8xiwNzA60IKjKYYbPBvq9Hx5dEclY 3jr/tCSkn38ydTCtRgaRJjL9B+uTChmswu1pYazA= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181008125046eucas1p135f0e2338464a70023df36939e5612d2~box358IeH1753817538eucas1p1d; Mon, 8 Oct 2018 12:50:46 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 14.21.04806.6A25BBB5; Mon, 8 Oct 2018 13:50:46 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20181008125045eucas1p12e1d77f5f605556d4cf6c3b87832fae3~box3E0PRa0610606106eucas1p1M; Mon, 8 Oct 2018 12:50:45 +0000 (GMT) X-AuditID: cbfec7f5-367ff700000012c6-76-5bbb52a630a9 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 2A.99.04284.5A25BBB5; Mon, 8 Oct 2018 13:50:45 +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 <0PGA006EA6BYW230@eusync1.samsung.com>; Mon, 08 Oct 2018 13:50:45 +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 0/7] Proper arch timer support for Exynos5433-based TM2(e) boards Date: Mon, 08 Oct 2018 14:50:02 +0200 Message-id: <20181008125009.3721-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrEIsWRmVeSWpSXmKPExsWy7djPc7rLgnZHGxyeKG+xccZ6Vov3y3oY La5/ec5qMe+zrMWk+xNYLM6f38BusenxNVaLy7vmsFnMOL+PyWLtkbvsFn/v/GOz2LxpKrPF y48nWBx4PdbMW8PosWlVJ5vHnWt72DzenTvH7rF5Sb1H35ZVjB6fN8kFsEdx2aSk5mSWpRbp 2yVwZZx4+IitYAp3xYw3zYwNjOc5uhg5OCQETCTWv/HqYuTiEBJYwSix8OIJFgjnM6PEievb mLoYOcGKTq+czAqRWMYosf5IG5TTwCRxfMFjsCo2AUOJrrddbCC2iEC2ROfjB4wgNrPAImaJ A8eEQWxhgWCJ3ev+sIGsZhFQlVjRYwwS5hWwkXjS9o4RYpm8xOoNB5hB5ksILGGTmNg6nRki 4SIxq2kDC4QtLPHq+BZ2CFtGorPjIBNEQzOjRPuMWewQTg+jxNY5O9ggqqwlDh+/yApxEZ/E pG0gU0EBwCvR0SYEUeIhsf7rCrArhARiJW5t6meawCixgJFhFaN4amlxbnpqsXFearlecWJu cWleul5yfu4mRmDMnv53/OsOxn1/kg4xCnAwKvHwBvjtihZiTSwrrsw9xCjBwawkwiu6HSjE m5JYWZValB9fVJqTWnyIUZqDRUmcd9m8jdFCAumJ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E: 201P X-CMS-RootMailID: 20181008125045eucas1p12e1d77f5f605556d4cf6c3b87832fae3 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 Patch summary: Marek Szyprowski (7): clocksource: exynos_mct: Remove dead code clocksource: exynos_mct: Add arch_timer cooperation mode for ARM64 clocksource: Change CPU hotplug priority of exynos_mct driver clocksource: arch_timer: Add support for not-fw-configured timer on ARM64 arm64: dts: exynos: Move arch-timer node to right place arm64: dts: exynos: Mark arch_timer device as not-fw-configured on TM2(e) arm64: platform: Add enable Exynos Multi-Core Timer driver arch/arm64/Kconfig.platforms | 1 + .../dts/exynos/exynos5433-tm2-common.dtsi | 1 + arch/arm64/boot/dts/exynos/exynos5433.dtsi | 23 ++++++------- drivers/clocksource/Kconfig | 11 +++++++ drivers/clocksource/arm_arch_timer.c | 15 +++++++-- drivers/clocksource/exynos_mct.c | 32 +++++++++++++------ include/linux/cpuhotplug.h | 2 +- 7 files changed, 60 insertions(+), 25 deletions(-) -- 2.17.1 Reviewed-by: Krzysztof Kozlowski