xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@globallogic.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	jinsong.liu@alibaba-inc.com, Tim Deegan <tim@xen.org>,
	xen-devel <xen-devel@lists.xen.org>,
	Jan Beulich <jbeulich@suse.com>,
	jacob.shin@amd.com,
	Andrii Tseglytskyi <andrii.tseglytskyi@globallogic.com>
Subject: Re: cpufreq implementation for OMAP under xen hypervisor.
Date: Tue, 30 Sep 2014 13:28:42 +0300	[thread overview]
Message-ID: <CAN58jivhHPdkmo82H5q_bJojLvLPJDPRsT0GF3UpwBiJn8dzTg@mail.gmail.com> (raw)
In-Reply-To: <20140929151829.GA31554@laptop.dumpdata.com>

On Mon, Sep 29, 2014 at 6:18 PM, Konrad Rzeszutek Wilk
<konrad.wilk@oracle.com> wrote:
>
> On Mon, Sep 29, 2014 at 12:45:36PM +0300, Oleksandr Dmytryshyn wrote:
> > On Fri, Sep 26, 2014 at 9:13 PM, Konrad Rzeszutek Wilk
> > <konrad.wilk@oracle.com> wrote:
> > >
> > > > > The architecture looks sane to me. As Konrad pointed out, the difficulty
> > > > > here is to be able to upstream the changes to the Linux driver in 2),
> > > > > that you later in the thread identified as
> > > > > drivers/cpufreq/cpufreq-cpu0.c.
> > > > I'll write driver drivers/xen/xen-cpufreq.c and it replace original
> > > > drivers/cpufreq/cpufreq.c
> > > > And in the original cpufreq-cpu0 driver I'll chande only one string -
> > > > path in the device tree
> > > > with the settings for the CPUs opp:
> > > > string
> > > > np = of_find_node_by_path("/cpus/cpu@0");
> > > > will changed to:
> > > > np = of_find_node_by_path("/cpus/cpu@0/private_data/cpu@0");
> > > >
> > > > > If the changes are not invasive and you manage to upstream them in
> > > > > Linux, I am all for this solution.
> > > > In Linux kernel I should make few changes:
> > > > 1. Enable CONFIG_CPU_FREQ_TABLE
> > > > with disabled CONFIG_CPU_FREQ
> > > > 2. Enable CONFIG_GENERIC_CPUFREQ_CPU0
> > > > with disabled CONFIG_CPU_FREQ
> > > >
> > > > I mean make those configs dependent on
> > > > CONFIG_CPU_FREQ or CONFIX_XEN_DOM0
> > > > instead of
> > > > CONFIG_CPU_FREQ
> > >
> > > Gosh no. Please make it work runtime.
> > Sorry, Konrad, could You please explain what did You mean.
>
> Don't make XEN options disable other options.
>
> Distributions want one kernel that can satisfi a variety of platforms - not just specifc ones.
XEN option will not disable other options. On the contrary, it will
extend them. In my case XEN option
will allow to select more options.

Please, see example
diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
index cbcb21e..4531e04 100644
--- a/drivers/cpufreq/Kconfig
+++ b/drivers/cpufreq/Kconfig
@@ -15,11 +15,15 @@ config CPU_FREQ

          If in doubt, say N.

-if CPU_FREQ
+if CPU_FREQ || XEN_DOM0

 config CPU_FREQ_TABLE
        tristate

@@ -184,6 +188,10 @@ config CPU_FREQ_GOV_CONSERVATIVE

          If in doubt, say N.

+if CPU_FREQ || XEN_DOM0
+
 config GENERIC_CPUFREQ_CPU0
        tristate "Generic CPU0 cpufreq driver"
        depends on HAVE_CLK && REGULATOR && PM_OPP && OF

  reply	other threads:[~2014-09-30 10:28 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-12 10:57 cpufreq implementation for OMAP under xen hypervisor Oleksandr Dmytryshyn
2014-08-12 12:15 ` Stefano Stabellini
2014-08-12 12:19   ` Oleksandr Dmytryshyn
2014-08-19 14:02   ` Vitaly V. Ch
2014-08-21 23:05     ` Stefano Stabellini
2014-08-22 14:21       ` Vitaly Chernooky
2014-08-22 16:20         ` Stefano Stabellini
2014-08-21 11:00   ` Oleksandr Dmytryshyn
2014-08-21 23:31     ` Stefano Stabellini
2014-08-22  9:02       ` Oleksandr Dmytryshyn
2014-08-22 16:31         ` Stefano Stabellini
2014-08-22 16:51           ` Ian Campbell
2014-08-29 13:25           ` Oleksandr Dmytryshyn
2014-08-29 15:08             ` Andrii Tseglytskyi
2014-09-02  1:00               ` Stefano Stabellini
2014-09-02  9:06                 ` Vitaly Chernooky
2014-09-02 15:43                 ` Andrii Tseglytskyi
2014-09-02 18:39                   ` Stefano Stabellini
2014-09-02 18:46                     ` Andrii Tseglytskyi
2014-09-04 14:43                       ` Oleksandr Dmytryshyn
2014-09-04 21:56                         ` Stefano Stabellini
2014-09-09 10:19                           ` Oleksandr Dmytryshyn
2014-09-09 21:52                             ` Stefano Stabellini
2014-09-09 10:32                           ` Ian Campbell
2014-09-09 21:41                             ` Stefano Stabellini
2014-09-10  9:42                               ` Ian Campbell
2014-09-10 10:19                                 ` Andrii Tseglytskyi
2014-09-10 18:35                                   ` Stefano Stabellini
2014-09-10 19:31                                     ` Konrad Rzeszutek Wilk
2014-09-16 13:49                                       ` Oleksandr Dmytryshyn
2014-09-17 17:06                                         ` Konrad Rzeszutek Wilk
2014-09-18  9:38                                           ` Oleksandr Dmytryshyn
2014-09-18 14:59                                             ` Konrad Rzeszutek Wilk
2014-09-19  9:38                                               ` Oleksandr Dmytryshyn
2014-09-24 14:36                                         ` Stefano Stabellini
2014-09-24 14:46                                           ` Konrad Rzeszutek Wilk
2014-09-25  9:13                                             ` Oleksandr Dmytryshyn
2014-09-25  9:08                                           ` Oleksandr Dmytryshyn
2014-09-25 10:14                                             ` Stefano Stabellini
2014-09-25 11:15                                               ` Oleksandr Dmytryshyn
2014-09-26 18:13                                             ` Konrad Rzeszutek Wilk
2014-09-29  9:45                                               ` Oleksandr Dmytryshyn
2014-09-29 15:18                                                 ` Konrad Rzeszutek Wilk
2014-09-30 10:28                                                   ` Oleksandr Dmytryshyn [this message]
2014-09-30 17:37                                                     ` Konrad Rzeszutek Wilk
2014-09-11  9:43                                     ` Ian Campbell
2014-09-09 13:25                           ` Vitaly Chernooky
2014-09-09 21:58                             ` Stefano Stabellini
2014-09-10 10:15                               ` Andrii Tseglytskyi
2014-09-10 10:24                                 ` Vitaly Chernooky
2014-09-10 11:18                                   ` Andrii Tseglytskyi
2014-09-10 18:37                                   ` Stefano Stabellini
2014-09-11  7:51                                     ` Vitaly Chernooky
2014-09-10 11:24                                 ` Vitaly Chernooky
2014-09-10 14:28                               ` Vitaly Chernooky
2014-09-10 18:41                                 ` Stefano Stabellini
2014-09-11  7:48                                   ` Vitaly Chernooky

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=CAN58jivhHPdkmo82H5q_bJojLvLPJDPRsT0GF3UpwBiJn8dzTg@mail.gmail.com \
    --to=oleksandr.dmytryshyn@globallogic.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=andrii.tseglytskyi@globallogic.com \
    --cc=jacob.shin@amd.com \
    --cc=jbeulich@suse.com \
    --cc=jinsong.liu@alibaba-inc.com \
    --cc=konrad.wilk@oracle.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.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).