Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752697AbbHCKc2 (ORCPT ); Mon, 3 Aug 2015 06:32:28 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:58323 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752131AbbHCKc0 (ORCPT ); Mon, 3 Aug 2015 06:32:26 -0400 X-AuditID: cbfee61b-f79706d000001b96-57-55bf4337210f From: Bartlomiej Zolnierkiewicz To: Krzysztof Kozlowski Cc: Thomas Abraham , Sylwester Nawrocki , Michael Turquette , Kukjin Kim , Kukjin Kim , Viresh Kumar , Tomasz Figa , Lukasz Majewski , Heiko Stuebner , Chanwoo Choi , Kevin Hilman , Javier Martinez Canillas , Tobias Jakobi , Anand Moon , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Javier Martinez Canillas , Zhang Rui , Eduardo Valentin Subject: Re: [PATCH v3 3/5] ARM: Exynos: switch to using generic cpufreq driver for Exynos4x12 Date: Mon, 03 Aug 2015 12:31:32 +0200 Message-id: <59949991.607t9GcIyz@amdc1976> User-Agent: KMail/4.13.3 (Linux/3.13.0-57-generic; KDE/4.13.3; x86_64; ; ) In-reply-to: <55BC78BE.5020102@samsung.com> References: <1438368557-2352-1-git-send-email-b.zolnierkie@samsung.com> <1438368557-2352-4-git-send-email-b.zolnierkie@samsung.com> <55BC78BE.5020102@samsung.com> MIME-version: 1.0 Content-transfer-encoding: 7Bit Content-type: text/plain; charset=us-ascii X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFIsWRmVeSWpSXmKPExsVy+t9jQV1z5/2hBpufmFpc//Kc1WL+lWus Fv8fvWa1uPZ7BpvFm7drmCxevzC06F1wlc2i//FrZouvh1cwWrx5uJnRYtNjoNqPPfdYLS7v msNm8bn3CKPFjPP7mCzWbbzFbnHxlKvFk4d9bBaH37SzWnQsY7RoW/2B1WLVrj+MFhu/ejiI e7y/0cru8Xd2K7PHzll32T0W73nJ5LFpVSebx51re9g8Ni+p9/h3jN1jSz9Qrm/LKkaP7dfm MXt83iQXwBPFZZOSmpNZllqkb5fAlXHhjmfBDMmKu+u0GhhXinQxcnBICJhILFtm0sXICWSK SVy4t56ti5GLQ0hgFqPE7HMNzBDOV0aJL7t6WUGq2ASsJCa2r2IEsUUEDCUO7t7OBFLELHCP TWLj7l1gRcICCRKXD+9mB7FZBFQl+pf2MYHYvAJaEu8OfgeLiwp4SXz/BbKBk4NTQFti0Znr bCC2kMAyRomF7/gh6gUlfky+xwJiMwvIS+zbP5UVwtaSWL/zONMERqA7EcpmISmbhaRsASPz KkaJ1ILkguKk9FyjvNRyveLE3OLSvHS95PzcTYzgGH4mvYPx8C73Q4wCHIxKPLwfFuwLFWJN LCuuzD3EKMHBrCTC++M3UIg3JbGyKrUoP76oNCe1+BCjNAeLkjivvsmmUCGB9MSS1OzU1ILU IpgsEwenVANj0ca2tn+L7xqX7zu2rfMEx+qczQeMYtfJxEy41Xteo+aBkGm5XKddfNq8fVv4 sjt9J/77/3PBipMc5louPxTmy/xh917u1Htzq2hsYZXj7yMc+26G7cjRyL5TskP4rPJxs4NK FZVL67if7hEMdnT8cbmoKuaQk1/7/ftnVxsEd2i2PzjryaOnxFKckWioxVxUnAgAw/gnYd0C AAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3391 Lines: 85 [ added Zhang & Eduardo to Cc: ] Hi, On Saturday, August 01, 2015 04:43:58 PM Krzysztof Kozlowski wrote: > W dniu 01.08.2015 o 03:49, Bartlomiej Zolnierkiewicz pisze: > > The new CPU clock type allows the use of generic CPUfreq driver. > > Switch Exynos4x12 to using generic cpufreq driver. > > > > Also make CPUFREQ_DT config option select Exynos thermal driver > > if Exynos platform support is enabled. > > Why? I think this wasn't in your previous patch. Previous patch kept ARM_EXYNOS_CPU_FREQ_BOOST_SW config option which selected EXYNOS_THERMAL. After recent changes (boost support enabled in the cpufreq-dt driver when there are turbo OPPs in board's dts file) ARM_EXYNOS_CPU_FREQ_BOOST_SW config option become redundant and was removed. However we still would like to allow enabling boost support only if thermal support is also enabled for Exynos platforms. [ There may be a better way to do this in the future (runtime checking for thermal support being enabled) but currently there seems to be no thermal infrastructure to allow this. ] Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics > Best regards, > Krzysztof > > > > > > Please also note that the switch to use the generic cpufreq-dt > > driver fixes the minor issue present with the old code (support > > for 'boost' mode in the exynos-cpufreq driver was enabled for > > all supported SoCs even though 'boost' frequency was provided > > only for Exynos4x12 ones). > > > > Cc: Tomasz Figa > > Cc: Kukjin Kim > > Cc: Thomas Abraham > > Cc: Javier Martinez Canillas > > Signed-off-by: Bartlomiej Zolnierkiewicz > > --- > > arch/arm/mach-exynos/exynos.c | 2 ++ > > drivers/cpufreq/Kconfig | 1 + > > 2 files changed, 3 insertions(+) > > > > diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c > > index 77ac021..1c47aee 100644 > > --- a/arch/arm/mach-exynos/exynos.c > > +++ b/arch/arm/mach-exynos/exynos.c > > @@ -227,6 +227,8 @@ static void __init exynos_init_irq(void) > > static const struct of_device_id exynos_cpufreq_matches[] = { > > { .compatible = "samsung,exynos3250", .data = "cpufreq-dt" }, > > { .compatible = "samsung,exynos4210", .data = "cpufreq-dt" }, > > + { .compatible = "samsung,exynos4212", .data = "cpufreq-dt" }, > > + { .compatible = "samsung,exynos4412", .data = "cpufreq-dt" }, > > { .compatible = "samsung,exynos5250", .data = "cpufreq-dt" }, > > { /* sentinel */ } > > }; > > diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig > > index 659879a..bf6d596 100644 > > --- a/drivers/cpufreq/Kconfig > > +++ b/drivers/cpufreq/Kconfig > > @@ -191,6 +191,7 @@ config CPUFREQ_DT > > # if CPU_THERMAL is on and THERMAL=m, CPUFREQ_DT cannot be =y: > > depends on !CPU_THERMAL || THERMAL > > select PM_OPP > > + select EXYNOS_THERMAL if ARCH_EXYNOS > > help > > This adds a generic DT based cpufreq driver for frequency management. > > It supports both uniprocessor (UP) and symmetric multiprocessor (SMP) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/