[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1457697574-6710-1-git-send-email-jgross@suse.com>
Date: Fri, 11 Mar 2016 12:59:28 +0100
From: Juergen Gross <jgross@...e.com>
To: linux-kernel@...r.kernel.org, xen-devel@...ts.xenproject.org
Cc: konrad.wilk@...cle.com, boris.ostrovsky@...cle.com,
david.vrabel@...rix.com, mingo@...hat.com, peterz@...radead.org,
Douglas_Warzecha@...l.com, pali.rohar@...il.com, jdelvare@...e.com,
linux@...ck-us.net, tglx@...utronix.de, hpa@...or.com,
x86@...nel.org, Juergen Gross <jgross@...e.com>
Subject: [PATCH 0/6] Support calling functions on dedicated physical cpu
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.
Juergen Gross (6):
xen: sync xen header
sched: add function to execute a function synchronously on a physical
cpu
dcdbas: make use of call_sync_on_phys_cpu()
hwmon: use call_sync_on_phys_cpu() for dell-smm i8k
virt, sched: add cpu pinning to call_sync_on_phys_cpu()
xen: add xen_pin_vcpu() to support calling functions on a dedicated
pcpu
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/sched.h | 31 ++++++++++++
include/xen/interface/sched.h | 100 +++++++++++++++++++++++++++++++-------
kernel/sched/core.c | 30 ++++++++++++
7 files changed, 224 insertions(+), 59 deletions(-)
--
2.6.2
Powered by blists - more mailing lists