All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v3 0/8] xen_cpufreq implementation in kernel
@ 2014-10-23 15:08 Oleksandr Dmytryshyn
  2014-10-23 15:08 ` [RFC PATCH v3 1/8] PM / OPP: make cpufreq functions dependent on CONFIG_CPU_FREQ_TABLE Oleksandr Dmytryshyn
                   ` (8 more replies)
  0 siblings, 9 replies; 15+ messages in thread
From: Oleksandr Dmytryshyn @ 2014-10-23 15:08 UTC (permalink / raw)
  To: xen-devel; +Cc: Rafael J. Wysocki, Tim Deegan, Stefano Stabellini, Ian Campbell

Hi to all.

Next series of patches implements xen-cpufreq driver in kernel.

Cpufreq core and registered cpufreq governors are located in xen. Dom0 has CPU
driver which can only change frequency of the physical CPUs. In addition this
driver can change CPUs regulator voltage. At start time xen-cpufreq driver
in kernel uploads to Xen information about physical cpus.
Xen notifies Dom0 kernel using VIRQ_CPUFREQ interrupt. Then xen-cpufreq driver
in kernel uses XEN_SYSCTL_cpufreq_op operation from HYPERVISOR_sysctl hypercall
to get some parameters from Xen (frequency, relation and cpu number).
Then xen-cpufreq changes frequency on physical cpu and uses the same
XEN_SYSCTL_cpufreq_op operation ti give the result to Xen.

Next configs should be enabled to use xen-cpufreq driver:
CONFIG_GENERIC_CPUFREQ_CPU0
CONFIG_XEN_CPUFREQ

Changed since v1:
 * added cpufreq_drv_ops which allows to use more than one high-level
   cpufreq driver
 * reworked xen-cpufreq and drivers so the same kernel is able to run
   on bare metal and within Xen.

Changed since v2:
 * used VIRQ_CPUFREQ with number 14 instead of the 13
 * slightly reworked xen-cpufreq driver

Oleksandr Dmytryshyn (8):
  PM / OPP: make cpufreq functions dependent on CONFIG_CPU_FREQ_TABLE
  xen/arm: implement HYPERVISOR_sysctl
  xen/arm: implement HYPERVISOR_dom0_op
  xen/arm: add XEN_SYSCTL_cpufreq_op definition
  cpufreq: cpufreq-cpu0: change cpus data path in devtree for Dom0
    kernel
  cpufreq: introduce cpufreq_drv_ops
  cpufreq: make cpufreq low-level drivers visible for CPUFREQ_DRV_OPS
    config
  xen/arm: cpufreq: add xen-cpufreq driver

 arch/arm/include/asm/xen/hypercall.h |   2 +
 arch/arm/include/asm/xen/interface.h |   2 +
 arch/arm/xen/enlighten.c             |   2 +
 arch/arm/xen/hypercall.S             |   2 +
 drivers/Makefile                     |   2 +-
 drivers/base/power/opp.c             |   4 +-
 drivers/cpufreq/Kconfig              |  39 +-
 drivers/cpufreq/Makefile             |   2 +
 drivers/cpufreq/acpi-cpufreq.c       |   5 +-
 drivers/cpufreq/cpufreq-cpu0.c       |  10 +-
 drivers/cpufreq/cpufreq.c            | 116 +++--
 drivers/cpufreq/cpufreq_drv_ops.c    | 196 ++++++++
 drivers/cpufreq/cpufreq_drv_ops.h    |  54 +++
 drivers/cpufreq/cpufreq_governor.c   |   4 +-
 drivers/cpufreq/xen-cpufreq.c        | 889 +++++++++++++++++++++++++++++++++++
 include/linux/cpufreq.h              |   2 +-
 include/linux/opp.h                  |   2 +-
 include/xen/interface/platform.h     |   1 +
 include/xen/interface/sysctl.h       | 664 ++++++++++++++++++++++++++
 include/xen/interface/xen.h          |   7 +
 20 files changed, 1939 insertions(+), 66 deletions(-)
 create mode 100644 drivers/cpufreq/cpufreq_drv_ops.c
 create mode 100644 drivers/cpufreq/cpufreq_drv_ops.h
 create mode 100644 drivers/cpufreq/xen-cpufreq.c
 create mode 100644 include/xen/interface/sysctl.h

-- 
1.9.1

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-11-04 13:07 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-23 15:08 [RFC PATCH v3 0/8] xen_cpufreq implementation in kernel Oleksandr Dmytryshyn
2014-10-23 15:08 ` [RFC PATCH v3 1/8] PM / OPP: make cpufreq functions dependent on CONFIG_CPU_FREQ_TABLE Oleksandr Dmytryshyn
2014-10-23 15:08 ` [RFC PATCH v3 2/8] xen/arm: implement HYPERVISOR_sysctl Oleksandr Dmytryshyn
2014-10-23 15:08 ` [RFC PATCH v3 3/8] xen/arm: implement HYPERVISOR_dom0_op Oleksandr Dmytryshyn
2014-10-23 15:08 ` [RFC PATCH v3 4/8] xen/arm: add XEN_SYSCTL_cpufreq_op definition Oleksandr Dmytryshyn
2014-10-23 15:08 ` [RFC PATCH v3 5/8] cpufreq: cpufreq-cpu0: change cpus data path in devtree for hwdom kernel Oleksandr Dmytryshyn
2014-10-23 15:08 ` [RFC PATCH v3 6/8] cpufreq: introduce cpufreq_drv_ops Oleksandr Dmytryshyn
2014-10-23 15:08 ` [RFC PATCH v3 7/8] cpufreq: make cpufreq low-level drivers visible for CPUFREQ_DRV_OPS config Oleksandr Dmytryshyn
2014-10-23 15:08 ` [RFC PATCH v3 8/8] xen/arm: cpufreq: add xen-cpufreq driver Oleksandr Dmytryshyn
2014-10-23 16:03   ` Julien Grall
2014-10-24 10:38     ` Oleksandr Dmytryshyn
2014-10-24 11:29       ` Julien Grall
2014-10-24 12:28         ` Oleksandr Dmytryshyn
2014-10-26 17:38 ` [RFC PATCH v3 0/8] xen_cpufreq implementation in kernel Stefano Stabellini
2014-11-04 13:07   ` Oleksandr Dmytryshyn

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.