devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tomasz Figa <tomasz.figa@gmail.com>
To: Thomas Abraham <ta.omasab@gmail.com>,
	Lukasz Majewski <l.majewski@samsung.com>
Cc: devicetree@vger.kernel.org, kgene.kim@samsung.com,
	Viresh Kumar <viresh.kumar@linaro.org>,
	t.figa@samsung.com, cpufreq@vger.kernel.org,
	linux-samsung-soc@vger.kernel.org, thomas.ab@samsung.com,
	Shawn Guo <shawn.guo@linaro.org>,
	Lukasz Majewski <l.majewski@majess.pl>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 0/6] cpufreq: use cpufreq-cpu0 driver for exynos4210 based platforms
Date: Sun, 12 Jan 2014 03:26:51 +0100	[thread overview]
Message-ID: <52D1FD6B.9050503@gmail.com> (raw)
In-Reply-To: <CAJuA9ahCc7b=209Tmh-O_cx2aEhPY+s_TjHHnjGk1x3duE-P1g@mail.gmail.com>

On 10.01.2014 12:59, Thomas Abraham wrote:
> Hi Lukasz,
>
> On Fri, Jan 10, 2014 at 4:02 PM, Lukasz Majewski <l.majewski@samsung.com> wrote:
>> Hi Thomas,
>>
>> I've investigated the topic for a while, so if you don't mind I will
>> share my thoughts :-)
>
> Sure. Thanks for having a look at this patch series.
>
>>
>>> The patch series removes the use of Exynos4210 specific cpufreq driver
>>> and enables to use the cpufreq-cpu0 driver for Exynos4210 based
>>> platforms. This is being done for few reasons.
>>>
>>> (a) The Exynos4210 cpufreq driver reads/writes clock controller
>>> registers bypassing the Exynos4 CCF driver which is sort of
>>> problematic.
>>
>> Also other, already supported devices suffer from it. Namely -
>> Exynos4x12 and Exynos5250.
>>
>
> Right, I did check the cpufreq driver of these SoCs.
>
>> That's why the solution shall be as generic as possible to also work
>> with those two SoCs.
>
> The approach taken here is to encapsulate the source of the CPU domain
> clock in a single logical clock. The implementation of this logical
> clock can vary for different Exynos SoCs but the interface to register
> and use this clock is common for all Exynos SoCs. If the changes in
> the cpufreq-cpu0 driver are accepted, the combination of cpufreq-cpu0
> and the logical clock representing the CPU clock is sufficient to
> provide a generic solution for Exynos4x12 and Exynos5250 SoCs.

Well, looking at Exynos SoCs, the structure of core block is very 
similar on all of them. You have a single mux to select between MPLL and 
APLL and then a number of dividers that need to be configured 
quasi-atomically when CPU frequency is to be changed or, looking at 
higher level, a set of registers, which values need to be changed 
(possibly masked).

I'd say it wouldn't require much more effort to make this common at 
least for all currently supported Exynos SoCs (except 5440, which has 
completely different clock logic).

Best regards,
Tomasz

  reply	other threads:[~2014-01-12  2:26 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-09 15:59 [PATCH 0/6] cpufreq: use cpufreq-cpu0 driver for exynos4210 based platforms Thomas Abraham
2014-01-09 15:59 ` [PATCH 1/6] cpufreq: cpufreq-cpu0: allow optional safe voltage during frequency transitions Thomas Abraham
2014-01-10 12:03   ` Lukasz Majewski
2014-01-12 13:39   ` Tomasz Figa
2014-01-13  3:14   ` Shawn Guo
2014-01-13 14:21     ` Thomas Abraham
2014-01-13 14:28       ` Shawn Guo
2014-01-09 15:59 ` [PATCH 2/6] clk: samsung: add infrastructure to register CPU clocks Thomas Abraham
2014-01-10 12:04   ` Lukasz Majewski
2014-01-10 12:19     ` Thomas Abraham
2014-01-10 13:25       ` Lukasz Majewski
2014-01-11  4:43         ` Thomas Abraham
2014-01-12  1:47           ` Tomasz Figa
2014-01-12  8:04             ` Lukasz Majewski
2014-01-13 13:15             ` Thomas Abraham
2014-01-09 15:59 ` [PATCH 3/6] clk: samsung: register cpu clock provider for exynos4210 SoC Thomas Abraham
2014-01-10 12:04   ` Lukasz Majewski
2014-01-10 12:37     ` Thomas Abraham
2014-01-10 14:18       ` Lukasz Majewski
2014-01-11  5:25         ` Thomas Abraham
2014-01-12  2:19           ` Tomasz Figa
2014-01-12  8:23             ` Lukasz Majewski
2014-01-12 12:05               ` Tomasz Figa
2014-01-12 12:41                 ` Lukasz Majewski
2014-01-12 12:58                   ` Tomasz Figa
2014-01-13 14:12                     ` Thomas Abraham
2014-01-13 14:07             ` Thomas Abraham
2014-01-09 15:59 ` [PATCH 4/6] cpufreq: exynos: remove Exynos4210 specific cpufreq driver support Thomas Abraham
2014-01-10 10:20   ` Lukasz Majewski
2014-01-09 15:59 ` [PATCH 5/6] arm: exynos4-dt: statically add platform device for cpufreq-cpu0 platform driver Thomas Abraham
2014-01-10 10:23   ` Lukasz Majewski
2014-01-13  3:17   ` Shawn Guo
2014-01-09 15:59 ` [PATCH 6/6] arm: dts: add cpu nodes for Exynos4210 SoC Thomas Abraham
2014-01-10 10:32   ` Lukasz Majewski
2014-01-10 12:06     ` Thomas Abraham
2014-01-10 10:32 ` [PATCH 0/6] cpufreq: use cpufreq-cpu0 driver for exynos4210 based platforms Lukasz Majewski
2014-01-10 11:59   ` Thomas Abraham
2014-01-12  2:26     ` Tomasz Figa [this message]
2014-01-13 14:27       ` Thomas Abraham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52D1FD6B.9050503@gmail.com \
    --to=tomasz.figa@gmail.com \
    --cc=cpufreq@vger.kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kgene.kim@samsung.com \
    --cc=l.majewski@majess.pl \
    --cc=l.majewski@samsung.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=shawn.guo@linaro.org \
    --cc=t.figa@samsung.com \
    --cc=ta.omasab@gmail.com \
    --cc=thomas.ab@samsung.com \
    --cc=viresh.kumar@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).