All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@globallogic.com>
Cc: Tim Deegan <tim@xen.org>,
	Stefano Stabellini <stefano.stabellini@citrix.com>,
	Jan Beulich <JBeulich@suse.com>,
	xen-devel <xen-devel@lists.xen.org>
Subject: Re: [RFC PATCH v2 10/12] cpufreq: add dom0-cpufreq driver
Date: Wed, 22 Oct 2014 15:00:45 +0100	[thread overview]
Message-ID: <1413986445.19198.20.camel@citrix.com> (raw)
In-Reply-To: <CAN58jitMBmaDpMydQu4F4yo2-7qyO5Kv_4Xv0PM7jt44-GGN0w@mail.gmail.com>

On Wed, 2014-10-22 at 16:24 +0300, Oleksandr Dmytryshyn wrote:
> On Wed, Oct 22, 2014 at 2:00 PM, Ian Campbell <Ian.Campbell@citrix.com> wrote:
> > On Wed, 2014-10-22 at 10:30 +0100, Jan Beulich wrote:
> >> >>> On 22.10.14 at 10:43, <oleksandr.dmytryshyn@globallogic.com> wrote:
> >> > On Fri, Oct 17, 2014 at 4:03 PM, Jan Beulich <JBeulich@suse.com> wrote:
> >> >>>>> On 16.10.14 at 13:27, <oleksandr.dmytryshyn@globallogic.com> wrote:
> >> >>> +static void notify_cpufreq_domains(void)
> >> >> Why "domains", not "hwdom"? You don't really want to send this
> >> >> to other than the hardware domain I hope.
> >> > All domains (not only hwdomain) should receive this interrupt.
> >> > In case is hwdomain is Linux kernel it can automaticaly recalculate
> >> > jiffies. But other domains should recalculate jiffies too. I'll
> >> > implement this mechanism a bit later.
> >>
> >> This needs more explanation then: If all domains need to do
> >> adjustments when the frequency changes, there's something
> >> wrong here imo. Such changes are supposed to be visible to
> >> the hypervisor only (with, in the case here, assistance - but
> >> nothing else - by the hardware domain).
> >
> > Guests should be using the arch/generic timers as their time source.
> > This is required by the hardware to increment at a fixed frequency, so
> > guests shouldn't need to be aware of the change to the underlying
> > processor clock, at least not for timekeeping/jiffies purposes.
> >
> > The timers are allowed to increment by larger amounts less frequency in
> > lower power modes, i.e. +=4 every 4 ticks. Guests shouldn't need to
> > adjust anything for this though IMHO.
> There are many functions which are using jiffies. What about them?
> All those functions will measure time not correctly if frequency
> of the microprocessor will change.

Jiffies is based on the timer tick, isn't it? Therefore it is ultimately
based on the arch timer.

Ian.

  reply	other threads:[~2014-10-22 14:00 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-16 11:26 [RFC PATCH v2 00/12] xen_cpufreq implementation in Xen hypervisor Oleksandr Dmytryshyn
2014-10-16 11:26 ` [RFC PATCH v2 01/12] cpufreq: move cpufreq.h file to the xen/include/xen location Oleksandr Dmytryshyn
2014-10-16 11:26 ` [RFC PATCH v2 02/12] pm: move processor_perf.h " Oleksandr Dmytryshyn
2014-10-16 11:26 ` [RFC PATCH v2 03/12] pmstat: move pmstat.c file to the xen/drivers/pm/stat.c location Oleksandr Dmytryshyn
2014-10-16 11:26 ` [RFC PATCH v2 04/12] cpufreq: make turbo settings to be configurable Oleksandr Dmytryshyn
2014-10-16 11:26 ` [RFC PATCH v2 05/12] pmstat: make pmstat functions more generalizable Oleksandr Dmytryshyn
2014-10-17 12:26   ` Jan Beulich
2014-10-22  8:38     ` Oleksandr Dmytryshyn
2014-10-16 11:27 ` [RFC PATCH v2 06/12] cpufreq: make cpufreq driver " Oleksandr Dmytryshyn
2014-10-17 12:31   ` Jan Beulich
2014-10-22  8:39     ` Oleksandr Dmytryshyn
2014-10-22  8:44       ` Oleksandr Dmytryshyn
2014-10-22  9:21       ` Jan Beulich
2014-10-22  9:51         ` Oleksandr Dmytryshyn
2014-10-22  9:57           ` Oleksandr Dmytryshyn
2014-10-22 10:09             ` Jan Beulich
2014-10-16 11:27 ` [RFC PATCH v2 07/12] arch/arm: create device tree nodes for Dom0 cpufreq cpu driver Oleksandr Dmytryshyn
2014-10-16 11:27 ` [RFC PATCH v2 08/12] xsm: enable xsm_platform_op hook for all architectures Oleksandr Dmytryshyn
2014-10-16 11:27 ` [RFC PATCH v2 09/12] xen: arm: implement platform hypercall Oleksandr Dmytryshyn
2014-10-17 12:44   ` Jan Beulich
2014-10-22  8:40     ` Oleksandr Dmytryshyn
2014-10-22  9:24       ` Jan Beulich
2014-10-22 10:36         ` Oleksandr Dmytryshyn
2014-10-16 11:27 ` [RFC PATCH v2 10/12] cpufreq: add dom0-cpufreq driver Oleksandr Dmytryshyn
2014-10-17 13:03   ` Jan Beulich
2014-10-22  8:43     ` Oleksandr Dmytryshyn
2014-10-22  9:30       ` Jan Beulich
2014-10-22 11:00         ` Ian Campbell
2014-10-22 13:24           ` Oleksandr Dmytryshyn
2014-10-22 14:00             ` Ian Campbell [this message]
2014-10-22 14:16               ` Oleksandr Dmytryshyn
2014-10-23  9:49               ` Oleksandr Dmytryshyn
2014-10-23 10:56                 ` Ian Campbell
2014-10-23 11:25                   ` Oleksandr Dmytryshyn
2014-10-16 11:27 ` [RFC PATCH v2 11/12] xen: arm: implement XEN_SYSCTL_cpufreq_op Oleksandr Dmytryshyn
2014-10-17 13:21   ` Jan Beulich
2014-10-22  8:46     ` Oleksandr Dmytryshyn
2014-10-22  9:34       ` Jan Beulich
2014-10-22 10:09         ` Oleksandr Dmytryshyn
2014-10-22 10:24           ` Jan Beulich
2014-10-22 10:39             ` Oleksandr Dmytryshyn
2014-10-16 11:27 ` [RFC PATCH v2 12/12] xen/arm: enable cpufreq functionality for ARM Oleksandr Dmytryshyn

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=1413986445.19198.20.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=oleksandr.dmytryshyn@globallogic.com \
    --cc=stefano.stabellini@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.