Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755350AbcCUMYx (ORCPT ); Mon, 21 Mar 2016 08:24:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:45141 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754604AbcCUMYq (ORCPT ); Mon, 21 Mar 2016 08:24:46 -0400 From: Juergen Gross To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Cc: konrad.wilk@oracle.com, boris.ostrovsky@oracle.com, david.vrabel@citrix.com, mingo@redhat.com, peterz@infradead.org, Douglas_Warzecha@dell.com, pali.rohar@gmail.com, jdelvare@suse.com, linux@roeck-us.net, tglx@linutronix.de, hpa@zytor.com, jeremy@goop.org, chrisw@sous-sol.org, akataria@vmware.com, rusty@rustcorp.com.au, virtualization@lists.linux-foundation.org, x86@kernel.org, Juergen Gross Subject: [PATCH v2 0/6] Support calling functions on dedicated physical cpu Date: Mon, 21 Mar 2016 13:24:29 +0100 Message-Id: <1458563075-30298-1-git-send-email-jgross@suse.com> X-Mailer: git-send-email 2.6.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1803 Lines: 43 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 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 cod 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