xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org
Cc: Juergen Gross <jgross@suse.com>,
	jdelvare@suse.com, peterz@infradead.org, hpa@zytor.com,
	x86@kernel.org, mingo@redhat.com, david.vrabel@citrix.com,
	Douglas_Warzecha@dell.com, pali.rohar@gmail.com,
	boris.ostrovsky@oracle.com, tglx@linutronix.de,
	linux@roeck-us.net
Subject: [PATCH 0/6] Support calling functions on dedicated physical cpu
Date: Fri, 11 Mar 2016 12:59:28 +0100	[thread overview]
Message-ID: <1457697574-6710-1-git-send-email-jgross__1351.66681507162$1457697670$gmane$org@suse.com> (raw)

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


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

             reply	other threads:[~2016-03-11 11:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-11 11:59 Juergen Gross [this message]
     [not found] <1457697574-6710-1-git-send-email-jgross@suse.com>
2016-03-11 12:25 ` [PATCH 0/6] Support calling functions on dedicated physical cpu Peter Zijlstra
     [not found] ` <20160311122514.GA6344@twins.programming.kicks-ass.net>
2016-03-11 12:28   ` Pali Rohár
2016-03-11 13:15   ` One Thousand Gnomes
2016-03-11 13:19     ` Peter Zijlstra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='1457697574-6710-1-git-send-email-jgross__1351.66681507162$1457697670$gmane$org@suse.com' \
    --to=jgross@suse.com \
    --cc=Douglas_Warzecha@dell.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=david.vrabel@citrix.com \
    --cc=hpa@zytor.com \
    --cc=jdelvare@suse.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=mingo@redhat.com \
    --cc=pali.rohar@gmail.com \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).