tation are made to make the printed
info looks tidy.
Signed-off-by: Wei Wang
---
changes in v6:
No big change in this version, since we did not get any comments from the
maintainers
in the previous version.
tools/misc/xenpm.c | 116 +++--
1 fi
rt future Intel CPUs
(e.g. the HWP feature on Skylake+), intel_pstate changes to tune P-state
based on percentage values.
The xenpm tool is also upgraded to support the intel_pstate driver. If
intel_pstate is used, "get-cpufreq-para" displays percentage value based
feedback. If
he failure loading of
intel_pstate.
Also, adding the intel_pstate booting parameter to
xen-command-line.markdown.
Signed-off-by: Wei Wang
---
changes in v6:
1) move the declaration of intel_pstate_init() to this patch.
docs/misc/xen-command-line.markdown | 7 +++
xen/arch/x86/ac
Introduce a simple internal_governor struct to manage internal
governor related variables. Also, add a condition check in
cpufreq_del_cpu to avoid going through the old ACPI governor
framework when an internal governor is in use.
Signed-off-by: Wei Wang
---
changes in v6:
1) create this patch
The added calculation related functions will be used in the intel_pstate.c.
They are copied from the Linux kernel(commit 2418f4f2, f3002134, eb18cba7).
Signed-off-by: Wei Wang
---
changes in v6:
1) #define clamp() - remove the typecast on the result of max();
2) add some comments to explain
Add support in the pmstat.c so that the xenpm tool can request to
access the intel_pstate driver.
Signed-off-by: Wei Wang
---
changes in v6:
1) add the NON_INTERNAL_GOV macro to replace literal 0;
2) code consolidation (e.g. merging some code into if/else, as required in v5);
3) somewhere
ser interacts with it via xenpm.
The new xen/include/asm-x86/cpufreq.h header file is added.
Signed-off-by: Wei Wang
---
changes in v6:
1) change some of the unnecessary signed types to be unsigned, as requested by
Jan in v2;
2) remove "__ready_mostly" from the local varia
he failure loading of
intel_pstate.
Also, adding the intel_pstate booting parameter to
xen-command-line.markdown.
Signed-off-by: Wei Wang
---
docs/misc/xen-command-line.markdown | 7 +++
xen/arch/x86/acpi/cpufreq/cpufreq.c | 9 ++---
xen/arch/x86/acpi/cpufreq/intel_pstate.c |
Add support in the pmstat.c so that the xenpm tool can request to
access the intel_pstate driver.
Signed-off-by: Wei Wang
---
tools/libxc/xc_pm.c | 15 ++--
xen/drivers/acpi/pmstat.c | 179 +---
xen/include/public/sysctl.h | 29 ---
3
he failure loading of
intel_pstate.
Also, adding the intel_pstate booting parameter to
xen-command-line.markdown.
Signed-off-by: Wei Wang
---
docs/misc/xen-command-line.markdown | 7 +++
xen/arch/x86/acpi/cpufreq/cpufreq.c | 9 ++---
xen/arch/x86/acpi/cpufreq/intel_pstate.c |
ser interacts with it via xenpm.
The new xen/include/asm-x86/cpufreq.h header file is added.
Signed-off-by: Wei Wang
---
xen/arch/x86/acpi/cpufreq/Makefile | 1 +
xen/arch/x86/acpi/cpufreq/intel_pstate.c | 880 +++
xen/include/acpi/cpufreq/cpufreq.h |
npm tool is also upgraded to support the intel_pstate driver. If
intel_pstate is used, "get-cpufreq-para" displays percentage value based
feedback. If the intel_pstate driver is not enabled, xenpm will work in
the old style.
Wei Wang (9):
x86/intel_pstate: add some calculation rela
The added calculation related functions will be used in the intel_pstate.c.
They are copied from the Linux kernel(commit 2418f4f2, f3002134, eb18cba7).
Signed-off-by: Wei Wang
---
xen/arch/x86/oprofile/op_model_athlon.c | 9
xen/include/asm-x86/div64.h | 79
.
Signed-off-by: Wei Wang
---
xen/drivers/cpufreq/utility.c | 3 +++
xen/include/acpi/cpufreq/cpufreq.h | 14 ++
2 files changed, 17 insertions(+)
changes in v5:
1) delay the addition of the structures that are used in later patches.
diff --git a/xen/drivers/cpufreq/utility.c b/xen
tation are made to make the printed
info looks tidy.
Signed-off-by: Wei Wang
---
tools/libxc/include/xenctrl.h | 21
tools/libxc/xc_pm.c | 5 +-
tools/misc/xenpm.c| 116 ++
3 files changed, 108 insertions(+), 34
Move the driver register function to
the cpufreq.c.
Signed-off-by: Wei Wang
---
xen/drivers/cpufreq/cpufreq.c | 15 +++
xen/include/acpi/cpufreq/cpufreq.h | 27 +--
2 files changed, 16 insertions(+), 26 deletions(-)
changes in v5:
1) keep
We change to NULL the cpufreq_cpu_policy pointer after the call of
cpufreq_driver->exit, because the pointer is still needed in
intel_pstate_set_pstate().
Signed-off-by: Wei Wang
---
xen/drivers/cpufreq/cpufreq.c | 6 +++---
xen/include/acpi/cpufreq/cpufreq.h | 7 +++
2 files chan
Add support to detect the APERF/MPERF feature. Also, remove the identical
code in cpufreq.c and powernow.c. This patch is independent of the
earlier patches.
Signed-off-by: Wei Wang
---
xen/arch/x86/acpi/cpufreq/cpufreq.c | 6 ++
xen/arch/x86/acpi/cpufreq/powernow.c | 6 ++
xen/arch
.
Signed-off-by: Wei Wang
---
xen/arch/x86/acpi/cpufreq/cpufreq.c | 6 ++
xen/arch/x86/acpi/cpufreq/powernow.c | 6 ++
xen/arch/x86/cpu/common.c| 4
xen/include/asm-x86/cpufeature.h | 4
4 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/xen/arch
Signed-off-by: Wei Wang
---
tools/libxc/include/xenctrl.h | 14 -
tools/libxc/xc_pm.c | 17 ---
tools/misc/xenpm.c| 116 +-
3 files changed, 115 insertions(+), 32 deletions(-)
diff --git a/tools/libxc/include/xenctrl.h b/t
identation to be a "Tab" (same as Linux intel_pstate),
instead of 4 "+$";
2) added a new header file, xen/include/asm-x86/cpufreq.h.
Signed-off-by: Wei Wang
---
xen/arch/x86/acpi/cpufreq/Makefile | 1 +
xen/arch/x86/acpi/cpufreq/intel_pstate.c | 870 +++
.markdown", into this one.
Signed-off-by: Wei Wang
---
docs/misc/xen-command-line.markdown | 7 +++
xen/arch/x86/acpi/cpufreq/cpufreq.c | 9 ++---
xen/arch/x86/acpi/cpufreq/intel_pstate.c | 6 ++
3 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/docs/mis
Add support in the pmstat.c so that the xenpm tool can request to
access the intel_pstate driver.
v4 changes:
1) changed to use the "internal_governor struct";
2) coding style change (indentation of "gov_num++").
Signed-off-by: Wei Wang
---
tools/libxc/xc_pm.c |
We change to NULL the cpufreq_cpu_policy pointer after the call of
cpufreq_driver->exit, because the pointer is still needed in
intel_pstate_set_pstate().
v4 changes:
None.
Signed-off-by: Wei Wang
---
xen/drivers/cpufreq/cpufreq.c | 6 +++---
1 file changed, 3 insertions(+), 3 deleti
Add support to detect the APERF/MPERF feature. Also, remove the identical
code in cpufreq.c and powernow.c.
v4 changes:
1) this is a new consolidated patch dealing with the APERF/MPERF feature
detection.
Signed-off-by: Wei Wang
---
xen/arch/x86/acpi/cpufreq/cpufreq.c | 6 ++
xen/arch/x86
Register the CPU hotplug notifier when the driver is
registered, and move the driver register function to
the cpufreq.c.
v4 changes:
1) Coding style change (the position of "||").
Signed-off-by: Wei Wang
---
xen/drivers/cpufreq/cpufreq.c | 14 +++---
xen/include/ac
cpufreq_add_cpu() is already called in the hypercall code path
(the bottom of set_px_pminfo() and inside cpufreq_cpu_init()).
So, we remove the redundant calling here.
v4 changes:
None.
Signed-off-by: Wei Wang
---
xen/drivers/cpufreq/cpufreq.c | 2 --
1 file changed, 2 deletions(-)
diff --git
The added calculation related functions will be used in the intel_pstate.c.
They are copied from the Linux kernel(commit 2418f4f2, f3002134, eb18cba7).
v4 changes:
1) in commit message, "kernel" changed to "Linux kernel"
2) if-else coding style change.
Signed-off-by: Wei Wa
#x27;s not
used anymore;
4) renamed "CPUFREQ_POLICY_xx" to "INTERNAL_GOV_xx". "INTERNAL_GOV_xx"
are macros for internal governors. Future other new internally
implemented governors are expected to be added here;
5) no_turbo and turbo_disabled, were changed to be the &
Add a common interface for matching the current cpu against an
array of x86_cpu_ids. Also change mwait-idle.c to use it.
v4 changes:
None.
Signed-off-by: Wei Wang
---
xen/arch/x86/cpu/common.c | 38 ++
xen/arch/x86/cpu/mwait-idle.c | 28
e.g. the HWP feature on Skylake+), intel_pstate changes to tune P-state
based on percentage values.
The xenpm tool is also upgraded to support the intel_pstate driver. If
intel_pstate is used, "get-cpufreq-para" displays percentage value based
feedback. If the intel_pstate driver is not ena
The intel_pstate driver receives percentage values to set the
performance limits. This patch adds interfaces to support the
input of percentage values to control the intel_pstate driver.
Also, the "get-cpufreq-para" is modified to show percentage
based feedback info.
Signed-off-by
Add support in the pmstat.c so that the xenpm tool can request to
access the intel_pstate driver.
Signed-off-by: Wei Wang
---
tools/libxc/xc_pm.c| 4 +-
xen/drivers/acpi/pmstat.c | 130 +++--
xen/include/acpi/cpufreq/cpufreq.h | 2
Adding the intel_pstate booting parameter to xen-command-line.markdown.
Signed-off-by: Wei Wang
---
docs/misc/xen-command-line.markdown | 7 +++
1 file changed, 7 insertions(+)
diff --git a/docs/misc/xen-command-line.markdown
b/docs/misc/xen-command-line.markdown
index 4889e27..249bf65
he failure loading of
intel_pstate.
Signed-off-by: Wei Wang
---
xen/arch/x86/acpi/cpufreq/cpufreq.c | 8 +---
xen/arch/x86/acpi/cpufreq/intel_pstate.c | 6 ++
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/xen/arch/x86/acpi/cpufreq/cpufreq.c
b/xen/arch/x86/ac
cpufreq_cpu_policy is used in intel_pstate_set_pstate(), so we change
to NULL it after the call of cpufreq_driver->exit. Otherwise, a
calltrace will show up on your screen due to the reference of a NULL
pointer when you power down the system.
Signed-off-by: Wei Wang
---
xen/drivers/cpuf
e kernel, a user can adjust the limits via sysfs
(limits.min_sysfs_pct/max_sysfs_pct). In Xen, the
policy->limits.min_perf_pct/max_perf_pct acts as the transit station.
A user interacts with it via xenpm.
Signed-off-by: Wei Wang
---
xen/arch/x86/acpi/cpufreq/Makefile | 1 +
xe
intel_pstate internal policy. The __cpufreq_set_policy
needs to be intercepted to use the setpolicy driver if it exists.
The perf_limts struct is included in the per-CPU policy struct, so
that each CPU can be managed individually by the xenpm tool.
Signed-off-by: Wei Wang
---
xen/drivers/cpufreq/utilit
Register the CPU hotplug notifier when the driver is
registered, and move the driver register function to
the cpufreq.c.
Signed-off-by: Wei Wang
---
xen/drivers/cpufreq/cpufreq.c | 15 ---
xen/include/acpi/cpufreq/cpufreq.h | 28 ++--
2 files changed, 14
cpufreq_add_cpu() is already called in the hypercall code path
(the bottom of set_px_pminfo() and inside cpufreq_cpu_init()).
So, we remove the redundant calling here.
Signed-off-by: Wei Wang
---
xen/drivers/cpufreq/cpufreq.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/xen/drivers
Add a common interface for matching the current cpu against an
array of x86_cpu_ids. Also change mwait-idle.c to use it.
Signed-off-by: Wei Wang
---
xen/arch/x86/cpu/common.c | 38 ++
xen/arch/x86/cpu/mwait-idle.c | 28
The added calculation related functions will be used in the intel_pstate.c.
They are copied from the kernel(commit 2418f4f2, f3002134, eb18cba7).
Signed-off-by: Wei Wang
---
xen/include/asm-x86/div64.h | 72 +
xen/include/xen/kernel.h| 12
feature on Skylake+), intel_pstate changes to tune P-state
based on percentage values.
The xenpm tool is also upgraded to support the intel_pstate driver. If
intel_pstate is used, "get-cpufreq-para" displays percentage value based
feedback. If the intel_pstate driver is not enabled,
The intel_pstate driver receives percentage values to set the
performance limits. This patch adds interfaces to support the
input of percentage values to control the intel_pstate driver.
Also, the "get-cpufreq-para" is modified to show percentage
based feedback info.
Signed-off-by
ned-off-by: Wei Wang
---
xen/arch/x86/acpi/cpufreq/Makefile | 1 +
xen/arch/x86/acpi/cpufreq/intel_pstate.c | 852 +++
xen/include/acpi/cpufreq/cpufreq.h | 6 +
xen/include/asm-x86/acpi.h | 2 +
xen/include/asm-x86/cpufeature.h |
due to the failure loading of
intel_pstate.
Signed-off-by: Wei Wang
---
xen/arch/x86/acpi/cpufreq/cpufreq.c | 9 ++---
xen/arch/x86/acpi/cpufreq/intel_pstate.c | 21 +++--
xen/include/asm-x86/acpi.h | 2 ++
3 files changed, 27 insertions(+), 5 deletion
Add support in the pmstat.c so that the xenpm tool can request to
access the intel_pstate driver.
Signed-off-by: Wei Wang
---
tools/libxc/xc_pm.c | 4 +-
xen/drivers/acpi/pmstat.c | 106 +++-
xen/include/public/sysctl.h | 16 ++-
3 files
intel_pstate internal policy. The __cpufreq_set_policy
needs to be intercepted to use the setpolicy driver if it exists.
Signed-off-by: Wei Wang
---
xen/drivers/cpufreq/utility.c | 5 +
xen/include/acpi/cpufreq/cpufreq.h | 11 +++
2 files changed, 16 insertions(+)
diff --git a/xen/dr
The unregister notifier function is needed to support cpu hotplug.
Signed-off-by: Wei Wang
---
xen/common/cpu.c | 7 +++
xen/include/xen/cpu.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/xen/common/cpu.c b/xen/common/cpu.c
index 47e8b5b..508cee5 100644
--- a/xen/common/cpu.c
Register/unregister the CPU hotplug notifier when the driver is
registered, and move the driver register/unregister function to
the cpufreq.c.
Signed-off-by: Wei Wang
---
xen/drivers/cpufreq/cpufreq.c | 27 +++
xen/include/acpi/cpufreq/cpufreq.h | 28
Add a common interface for matching the current cpu against an
array of x86_cpu_ids. Also change mwait-idle.c to use it.
Signed-off-by: Wei Wang
---
xen/arch/x86/cpu/common.c | 39 +++
xen/arch/x86/cpu/mwait-idle.c | 30
The added calculation related functions will be used in the intel_pstate.c.
Signed-off-by: Wei Wang
---
xen/include/asm-x86/div64.h | 68 +
xen/include/xen/kernel.h| 30
2 files changed, 98 insertions(+)
diff --git a/xen
The intel_pstate driver receives percentage values to set the
performance limits. This patch adds interfaces to support the
input of percentage values to control the intel_pstate driver.
Also, the "get-cpufreq-para" is modified to show percentage
based feedback info.
Signed-off-by
The unregister notifier function is needed to support cpu hotplug.
Signed-off-by: Wei Wang
---
xen/common/cpu.c | 7 +++
xen/include/xen/cpu.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/xen/common/cpu.c b/xen/common/cpu.c
index 47e8b5b..508cee5 100644
--- a/xen/common/cpu.c
By default, the intel_pstate driver is loaded.a If
"intel_pstate=disable" is added to the Xen booting param list,
the old pstate driver will be loaded.
Signed-off-by: Wei Wang
---
xen/arch/x86/acpi/cpufreq/cpufreq.c | 9 ++---
xen/arch/x86/acpi/cpufreq/intel_psta
Add support in the pmstat.c so that the xenpm tool can request to
access the intel_pstate driver.
Signed-off-by: Wei Wang
---
tools/libxc/xc_pm.c | 8 +++
xen/drivers/acpi/pmstat.c | 57 +++--
xen/include/public/sysctl.h | 22
ned-off-by: Wei Wang
---
xen/arch/x86/acpi/cpufreq/Makefile| 1 +
xen/arch/x86/acpi/cpufreq/intel_pstate.c | 843 ++
xen/include/acpi/cpufreq/cpufreq.h| 6 +
xen/include/acpi/cpufreq/processor_perf.h | 1 +
xen/include/asm-x86/cpufeatur
intel_pstate internal policy. The __cpufreq_set_policy
needs to be intercepted to use the setpolicy driver if it exists.
Signed-off-by: Wei Wang
---
xen/drivers/cpufreq/utility.c | 5 +
xen/include/acpi/cpufreq/cpufreq.h | 10 ++
2 files changed, 15 insertions(+)
diff --git a/xen/dr
The added calculation related functions will be used in the intel_pstate.c.
Signed-off-by: Wei Wang
---
xen/include/asm-x86/div64.h | 68 +
xen/include/xen/kernel.h| 30
2 files changed, 98 insertions(+)
diff --git a/xen
Register/unregister the CPU hotplug notifier when the driver is registered, and
move the driver register/unregister function to the cpufreq.c.
Signed-off-by: Wei Wang
---
xen/drivers/cpufreq/cpufreq.c | 27 +++
xen/include/acpi/cpufreq/cpufreq.h | 28
Re-organize the cpu matching code in the mwait-idle.c, so that it can be
re-used in the intel_pstate.c.
Signed-off-by: Wei Wang
---
xen/arch/x86/cpu/common.c | 39 +++
xen/arch/x86/cpu/mwait-idle.c | 30 +-
xen/include/asm
pct: 54
turbo mode : enabled
Wei Wang (9):
x86/acpi: add a common interface for matching the current cpu against
an array of x86_cpu_ids
x86/intel_pstate: add some calculation related support
x86/cpu_hotplug: add the unregister_cpu_notifier function to support
CPU hotpl
62 matches
Mail list logo