[v4,0/6] Proper arch timer support for Exynos5433-based TM2(e) boards

Message ID 20181018095708.1527-1-m.szyprowski@samsung.com
Headers show
Series
  • Proper arch timer support for Exynos5433-based TM2(e) boards
Related show

Message

Marek Szyprowski Oct. 18, 2018, 9:57 a.m.
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:

v4:
- fixes lack of fixup in patch #3, pointed by Krzysztof Kozlowski

v3:
- added patch, which splits resources and interrupts allocation
- simplified arch timer cooperation mode
- dropped CPU hotplug priority change patch, it is not really needed
- removed more non-dt dead code

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: Refactor resources allocation
  clocksource: exynos_mct: Add arch_timer cooperation mode for ARM64
  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           | 81 ++++++++++++++--------
 3 files changed, 67 insertions(+), 38 deletions(-)

-- 
2.17.1

Comments

Krzysztof Kozlowski Oct. 19, 2018, 7:44 a.m. | #1
On Thu, 18 Oct 2018 at 11:57, Marek Szyprowski <m.szyprowski@samsung.com> wrote:
>

> 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 <m.szyprowski@samsung.com>

> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>

> Tested-by: Chanwoo Choi <cw00.choi@samsung.com>

> ---

>  drivers/clocksource/exynos_mct.c | 10 ++++++++++

>  1 file changed, 10 insertions(+)


Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>


Best regards,
Krzysztof