* [PATCH v3 0/6] Support calling functions on dedicated physical cpu
@ 2016-04-01 7:14 Juergen Gross
0 siblings, 0 replies; 3+ messages in thread
From: Juergen Gross @ 2016-04-01 7:14 UTC (permalink / raw)
To: linux-kernel, xen-devel
Cc: Juergen Gross, jeremy, jdelvare, peterz, hpa, akataria, x86,
rusty, virtualization, chrisw, mingo, david.vrabel,
Douglas_Warzecha, pali.rohar, boris.ostrovsky, tglx, linux
Some hardware (e.g. Dell Studio laptops) require special functions to
be called on physical cpu 0 in order to avoid occasional hangs. When
running as dom0 under Xen this could be achieved only via special boot
parameters (vcpu pinning) limiting the hypervisor in it's scheduling
decisions.
This patch series is adding a generic function to be able to temporarily
pin a (virtual) cpu to a dedicated physical cpu for executing above
mentioned functions on that specific cpu. The drivers (dcdbas and i8k)
requiring this functionality are modified accordingly.
Changes in V3:
- use get_cpu()/put_cpu() as suggested by David Vrabel
Changes in V2:
- instead of manipulating the allowed set of cpus use cpu specific
workqueue as requested by Peter Zijlstra
- add include/linux/hypervisor.h to hide architecture specific stuff
from generic kernel code
Juergen Gross (6):
xen: sync xen header
smp: add function to execute a function synchronously on a physical
cpu
dcdbas: make use of smp_call_sync_on_phys_cpu()
hwmon: use smp_call_sync_on_phys_cpu() for dell-smm i8k
virt, sched: add cpu pinning to smp_call_sync_on_phys_cpu()
xen: add xen_pin_vcpu() to support calling functions on a dedicated
pcpu
MAINTAINERS | 1 +
arch/x86/include/asm/hypervisor.h | 9 ++++
arch/x86/xen/enlighten.c | 40 +++++++++++++++
drivers/firmware/dcdbas.c | 46 ++++++++----------
drivers/hwmon/dell-smm-hwmon.c | 27 +++++-----
include/linux/hypervisor.h | 17 +++++++
include/linux/smp.h | 2 +
include/xen/interface/sched.h | 100 +++++++++++++++++++++++++++++++-------
kernel/smp.c | 50 +++++++++++++++++++
kernel/up.c | 18 +++++++
10 files changed, 251 insertions(+), 59 deletions(-)
create mode 100644 include/linux/hypervisor.h
--
2.6.2
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v3 0/6] Support calling functions on dedicated physical cpu
@ 2016-04-01 7:14 ` Juergen Gross
0 siblings, 0 replies; 3+ messages in thread
From: Juergen Gross @ 2016-04-01 7:14 UTC (permalink / raw)
To: linux-kernel, xen-devel
Cc: konrad.wilk, boris.ostrovsky, david.vrabel, mingo, peterz,
Douglas_Warzecha, pali.rohar, jdelvare, linux, tglx, hpa, jeremy,
chrisw, akataria, rusty, virtualization, x86, Juergen Gross
Some hardware (e.g. Dell Studio laptops) require special functions to
be called on physical cpu 0 in order to avoid occasional hangs. When
running as dom0 under Xen this could be achieved only via special boot
parameters (vcpu pinning) limiting the hypervisor in it's scheduling
decisions.
This patch series is adding a generic function to be able to temporarily
pin a (virtual) cpu to a dedicated physical cpu for executing above
mentioned functions on that specific cpu. The drivers (dcdbas and i8k)
requiring this functionality are modified accordingly.
Changes in V3:
- use get_cpu()/put_cpu() as suggested by David Vrabel
Changes in V2:
- instead of manipulating the allowed set of cpus use cpu specific
workqueue as requested by Peter Zijlstra
- add include/linux/hypervisor.h to hide architecture specific stuff
from generic kernel code
Juergen Gross (6):
xen: sync xen header
smp: add function to execute a function synchronously on a physical
cpu
dcdbas: make use of smp_call_sync_on_phys_cpu()
hwmon: use smp_call_sync_on_phys_cpu() for dell-smm i8k
virt, sched: add cpu pinning to smp_call_sync_on_phys_cpu()
xen: add xen_pin_vcpu() to support calling functions on a dedicated
pcpu
MAINTAINERS | 1 +
arch/x86/include/asm/hypervisor.h | 9 ++++
arch/x86/xen/enlighten.c | 40 +++++++++++++++
drivers/firmware/dcdbas.c | 46 ++++++++----------
drivers/hwmon/dell-smm-hwmon.c | 27 +++++-----
include/linux/hypervisor.h | 17 +++++++
include/linux/smp.h | 2 +
include/xen/interface/sched.h | 100 +++++++++++++++++++++++++++++++-------
kernel/smp.c | 50 +++++++++++++++++++
kernel/up.c | 18 +++++++
10 files changed, 251 insertions(+), 59 deletions(-)
create mode 100644 include/linux/hypervisor.h
--
2.6.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v3 0/6] Support calling functions on dedicated physical cpu
@ 2016-04-01 7:14 ` Juergen Gross
0 siblings, 0 replies; 3+ messages in thread
From: Juergen Gross @ 2016-04-01 7:14 UTC (permalink / raw)
To: linux-kernel, xen-devel
Cc: Juergen Gross, jeremy, jdelvare, konrad.wilk, peterz, hpa,
akataria, x86, virtualization, chrisw, mingo, david.vrabel,
Douglas_Warzecha, pali.rohar, boris.ostrovsky, tglx, linux
Some hardware (e.g. Dell Studio laptops) require special functions to
be called on physical cpu 0 in order to avoid occasional hangs. When
running as dom0 under Xen this could be achieved only via special boot
parameters (vcpu pinning) limiting the hypervisor in it's scheduling
decisions.
This patch series is adding a generic function to be able to temporarily
pin a (virtual) cpu to a dedicated physical cpu for executing above
mentioned functions on that specific cpu. The drivers (dcdbas and i8k)
requiring this functionality are modified accordingly.
Changes in V3:
- use get_cpu()/put_cpu() as suggested by David Vrabel
Changes in V2:
- instead of manipulating the allowed set of cpus use cpu specific
workqueue as requested by Peter Zijlstra
- add include/linux/hypervisor.h to hide architecture specific stuff
from generic kernel code
Juergen Gross (6):
xen: sync xen header
smp: add function to execute a function synchronously on a physical
cpu
dcdbas: make use of smp_call_sync_on_phys_cpu()
hwmon: use smp_call_sync_on_phys_cpu() for dell-smm i8k
virt, sched: add cpu pinning to smp_call_sync_on_phys_cpu()
xen: add xen_pin_vcpu() to support calling functions on a dedicated
pcpu
MAINTAINERS | 1 +
arch/x86/include/asm/hypervisor.h | 9 ++++
arch/x86/xen/enlighten.c | 40 +++++++++++++++
drivers/firmware/dcdbas.c | 46 ++++++++----------
drivers/hwmon/dell-smm-hwmon.c | 27 +++++-----
include/linux/hypervisor.h | 17 +++++++
include/linux/smp.h | 2 +
include/xen/interface/sched.h | 100 +++++++++++++++++++++++++++++++-------
kernel/smp.c | 50 +++++++++++++++++++
kernel/up.c | 18 +++++++
10 files changed, 251 insertions(+), 59 deletions(-)
create mode 100644 include/linux/hypervisor.h
--
2.6.2
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-04-01 7:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-01 7:14 [PATCH v3 0/6] Support calling functions on dedicated physical cpu Juergen Gross
2016-04-01 7:14 Juergen Gross
2016-04-01 7:14 ` Juergen Gross
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.