LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Haren Myneni <haren@linux.vnet.ibm.com>
To: benh@kernel.crashing.org, paulus@samba.org, anton@samba.org,
	mikey@neuling.org
Cc: linuxppc-dev@ozlabs.org
Subject: [PATCH 0/6] powerpc: SMT priority (PPR) save and restore
Date: Sun, 09 Sep 2012 04:32:06 -0700	[thread overview]
Message-ID: <1347190326.3418.7.camel@hbabu-laptop> (raw)


On P7 systems, users can define SMT priority levels 2,3 and 4 for
processes so that some can run higher priority than the other ones.
In the current kernel, the default priority is set to 4 which prohibits
processes for using higher priority. Also the kernel boosts the priority to
4 during exceptions without saving the user defined priorities when
the task enters the kernel. So we will be loosing the process PPR value
and can not be restored it back when the task exits the kernel.

This patch set implements saving and restore the user defined PPR value
for all tasks.

Haren Myneni (6):
  powerpc: Move branch instruction from ACCOUNT_CPU_USER_ENTRY to caller
  powerpc: Add enable_ppr kernel parameter to enable PPR save/restore
  powerpc: Add ppr in thread_info struct
  powerpc: Increase exceptions arrays in paca struct to save PPR
  powerpc: Macros for saving/restore PPR
  powerpc: Implement PPR save/restore

 Documentation/kernel-parameters.txt      |    4 +++
 arch/powerpc/include/asm/cputable.h      |    6 ++--
 arch/powerpc/include/asm/exception-64s.h |   51 ++++++++++++++++++++++++++----
 arch/powerpc/include/asm/paca.h          |    6 ++--
 arch/powerpc/include/asm/ppc_asm.h       |    2 --
 arch/powerpc/include/asm/reg.h           |    1 +
 arch/powerpc/include/asm/thread_info.h   |   11 +++++++
 arch/powerpc/kernel/asm-offsets.c        |    1 +
 arch/powerpc/kernel/entry_64.S           |    7 +++-
 arch/powerpc/kernel/exceptions-64s.S     |   18 ++++++-----
 arch/powerpc/kernel/setup_64.c           |   14 ++++++++
 11 files changed, 99 insertions(+), 22 deletions(-)

-- 
1.7.10.4

             reply	other threads:[~2012-09-09 11:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-09 11:32 Haren Myneni [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-10-31  6:49 [PATCH 0/6] powerpc: SMT priority (PPR) save and restore Haren Myneni
2012-11-01  0:44 ` Michael Neuling
2012-11-02  1:20   ` Haren Myneni
2012-12-07  7:44 Haren Myneni

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=1347190326.3418.7.camel@hbabu-laptop \
    --to=haren@linux.vnet.ibm.com \
    --cc=anton@samba.org \
    --cc=benh@kernel.crashing.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=mikey@neuling.org \
    --cc=paulus@samba.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