From patchwork Fri Feb 15 12:52:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 158516 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp669053jaa; Fri, 15 Feb 2019 04:52:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IZMZ3O/Eeq9lbcCir0nzL2S+laLr0/9fWtt1xfTKmjIQZ7lBBOfDSB/TCQN7dt/bsQI8xUg X-Received: by 2002:a63:1063:: with SMTP id 35mr5264886pgq.133.1550235162876; Fri, 15 Feb 2019 04:52:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550235162; cv=none; d=google.com; s=arc-20160816; b=fcNof20WfgP9T26IRFPl5a3qjLlso3T3TygqRJPAuYtaeuMbSxWJqtECAeeOZ0N3yu auNm5DLumgUXXtAlDjhFq+/clgM05K7TpdK1/mwoLuCOpTBLO9J6LYTzCR4L+vrU7nqB DNrVquLUvgh1rImnwAjhZ+LcYyeH4jUOZkjgtf2sKQOxYpnjkDovMrfd6tLIxI/jfKll y6pYuEdNRM0qsHfRl6zjwWGLcvt3ruzBFbjFqpgiaz4s1Ny4+M7yi9liqebot0iyJgXT DMqQCU1jLCBozoQoKDOF/14IlyeQVV6QZAIU5okH1j4869Wbtz8631htnCMeDA/T6L2c 8mHQ== 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=AmZKpaQJcCRJYjglpjOPbLazFEnUnkpKaFbP4Z2GDfw=; b=eaDjoSUxufH+Z9lbDrF3tuC3itpo9ormqLB4Td1p1fVYh5bPxVUkvziOqlsST6FxYA QOSIbHDk5h78K00aOtt4rPptwBd7KW5bpXnly+yiB5E3aEuqEhYBpwaYyMgAERpSv5WN 8yiTPYA32jePq3t1iYkLUAGsASCv+5Q/woksBwm4o+qIppynkApQ96+X1z/GkTfCSGeQ AYOsQTGzEf9OXvOKIPIQLhgrKCeHRoYsdZcaAc0WKP0FJaTworvoOsQ340exkivRWZt5 iTZ9tpR1L2SIXEiFN6C6FZ5bD1B0728vCxKoevTzXASCN1SMCI84Uw5MOax6nJhBVBIO Ps4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=T5gkn+of; 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 i16si5357287pfi.192.2019.02.15.04.52.42; Fri, 15 Feb 2019 04:52:42 -0800 (PST) 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=T5gkn+of; 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 S2394729AbfBOMwm (ORCPT + 3 others); Fri, 15 Feb 2019 07:52:42 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:48455 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389229AbfBOMwl (ORCPT ); Fri, 15 Feb 2019 07:52:41 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190215125240euoutp020a9af8cf471e93f070703eee78555780~DiqoqgfrB0814508145euoutp02D; Fri, 15 Feb 2019 12:52:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190215125240euoutp020a9af8cf471e93f070703eee78555780~DiqoqgfrB0814508145euoutp02D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1550235160; bh=AmZKpaQJcCRJYjglpjOPbLazFEnUnkpKaFbP4Z2GDfw=; h=From:To:Cc:Subject:Date:References:From; b=T5gkn+of6KW4xhHaFgCaBut1uCPRMkDrGfoJcsLyrbJgZNzls/w7Jn8678ihcFujL Di8VbcbuxviW9NXOJMZdTd0k3T0vcTOYjkbXdlTB0DqiBBangifSVWpNtVXXw6E/XS VobmBmptEApUVzXZiYDgHEr/ZR9WW24RXRL4bvro= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190215125239eucas1p12eae520f3e6d215dd076179ffbabb2d3~DiqoFmzUY2445424454eucas1p1I; Fri, 15 Feb 2019 12:52:39 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id A2.AB.04294.716B66C5; Fri, 15 Feb 2019 12:52:39 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190215125238eucas1p2f56fe48600aedcec048bc378ed184419~DiqnYNNRI2420224202eucas1p2p; Fri, 15 Feb 2019 12:52:38 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-da-5c66b617dc23 Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 72.C7.04128.616B66C5; Fri, 15 Feb 2019 12:52:38 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PMY00LS8X3MCB70@eusync4.samsung.com>; Fri, 15 Feb 2019 12:52:38 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Marek Szyprowski , Thomas Gleixner , Daniel Lezcano , Krzysztof Kozlowski , Chanwoo Choi , Bartlomiej Zolnierkiewicz Subject: [PATCH 0/5] Exynos SoCs: enable support for ARM Architected Timers Date: Fri, 15 Feb 2019 13:52:24 +0100 Message-id: <20190215125229.30180-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJIsWRmVeSWpSXmKPExsWy7djP87ri29JiDGbNELTYOGM9q8X1L89Z LeZ9lrU4f34Du8Wmx9dYLWac38dksfbIXXaLzZumMjtweGxa1cnmcefaHjaPd+fOsXtsXlLv 0bdlFaPH501yAWxRXDYpqTmZZalF+nYJXBlLj29iKzjGU/H3yC/GBsa5XF2MnBwSAiYSp/9e ZOti5OIQEljBKPFn5kQ2kISQwGdGiUnX/LoYOcCKTj1mhahZxiixu/EfE4TTwCSxf+4zJpAG NgFDia63XWDNIgLeEpPP/GUHKWIW6GKSuL3wADtIQhgocff7PrAGFgFViWtTtzKD2LwCthK7 GqeyQ5wkL7F6wwFmkGYJgZ+sEpdOH2GESLhInDzxlQXClpG4PLmbBaKomVGifcYsdginh1Fi 65wdbBBV1hKHj19kBbGZBfgkJm2bzgzxEK9ER5sQRImHRFfnbiaIn2MlNjx6zDKBUXwBI8Mq RvHU0uLc9NRio7zUcr3ixNzi0rx0veT83E2MwAg7/e/4lx2Mu/4kHWIU4GBU4uFdkZEaI8Sa WFZcmXuIUYKDWUmEl3NNWowQb0piZVVqUX58UWlOavEhRmkOFiVx3mqGB9FCAumJJanZqakF qUUwWSYOTqkGRo+llmuypWv2rt9twvRtZ/2rTeVzp7MsT+7ksJj6+WP5xla1PIZjNq3e15Ka eGeJu/ZPMbVrX+py0K7G/KDm/C2btGtm3umcGNNwNV4l5V+h1q608rkflq2VmGq37H36l8Z8 XiFH4e7ucJYfLcusnB5bPrq7VWhhdauezLQYDp4VCc3B67ZeVGIpzkg01GIuKk4EAHBGBiGs AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOJMWRmVeSWpSXmKPExsVy+t/xa7pi29JiDH7dUrDYOGM9q8X1L89Z LeZ9lrU4f34Du8Wmx9dYLWac38dksfbIXXaLzZumMjtweGxa1cnmcefaHjaPd+fOsXtsXlLv 0bdlFaPH501yAWxRXDYpqTmZZalF+nYJXBlLj29iKzjGU/H3yC/GBsa5XF2MHBwSAiYSpx6z djFycQgJLGGUWLXjKpTTxCSx8e8VIIeTg03AUKLrbRcbiC0i4C0x+cxfdpAiZoEeJon2q7/Z QRLCQIm73/cxgdgsAqoS16ZuZQaxeQVsJXY1TgWrkRCQl1i94QDzBEauBYwMqxhFUkuLc9Nz i430ihNzi0vz0vWS83M3MQKDY9uxn1t2MHa9Cz7EKMDBqMTDuyIjNUaINbGsuDL3EKMEB7OS CC/nmrQYId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rznDSqjhATSE0tSs1NTC1KLYLJMHJxSDYxK 4n1fthzZ1mg4MY15W/rvly8/Pj78ZF5sbofrgmTlJDPGEh9LK7P+VazV0yfyi+zZfX8BY6P7 8kWqH2adfL+x8uw1dWnOAtWvwS8mSu728ywOjqvuzZiyOstQj30xY1cVewDPI7sT09ryprGl qoubXS2zEi+fKbvnpMgrlj+//5wrrny3aZUSS3FGoqEWc1FxIgAMIyrlCgIAAA== X-CMS-MailID: 20190215125238eucas1p2f56fe48600aedcec048bc378ed184419 CMS-TYPE: 201P X-CMS-RootMailID: 20190215125238eucas1p2f56fe48600aedcec048bc378ed184419 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Dear All, ARM Architected Timers are present in all CortexA7/A15 based Samsung Exynos SoCs. So far they were not enabled, because there were some issues related to their initialization. Samsung Exynos SoCs used custom timer hardware - Exynos MultiCore Timer. It turned out that enabling MCT it is also needed to get ARM Architected Timers working, because they both share some common hardware blocks (global system counter). This patchset enables support for ARM Architected Timer driver together with a standard Exynos MultiCore Timer driver, which is kept as a default timer source on ARM 32bit platforms. Support for ARM architected timers is essential for enabling proper KVM support on those platforms. Some of the MCT cleanup patches were earlier a part of the similar patchset for ARM64-based Exynos5433 SoC. Best regards Marek Szyprowski Samsung R&D Institute Poland Marek Szyprowski (5): clocksource: exynos_mct: Remove dead code clocksource: exynos_mct: Fix error path in timer resources initialization clocksource: exynos_mct: Increase priority over ARM arch timer ARM: dts: exynos: Add support ARM architected timers ARM: exynos: Enable support for ARM architected timers arch/arm/boot/dts/exynos3250.dtsi | 10 ++++++++++ arch/arm/boot/dts/exynos5250.dtsi | 1 + arch/arm/boot/dts/exynos54xx.dtsi | 10 ++++++++++ arch/arm/mach-exynos/Kconfig | 1 + drivers/clocksource/exynos_mct.c | 27 +++++++++++++++++---------- include/linux/cpuhotplug.h | 2 +- 6 files changed, 40 insertions(+), 11 deletions(-) -- 2.17.1