linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] powerpc/booke: Modifications to fsl booke cpu setup code
@ 2012-07-09 12:52 Varun Sethi
  2012-07-27 12:57 ` Sethi Varun-B16395
  0 siblings, 1 reply; 2+ messages in thread
From: Varun Sethi @ 2012-07-09 12:52 UTC (permalink / raw)
  To: agraf, galak, benh, linuxppc-dev, kvm-ppc; +Cc: Varun Sethi

Modifications are aimed specifically at the e500mc/e5500 cpu setup code.
Following modifications are introduced by this patchset:
1. Move the E.HV check to the cpu setup code. Based on this check we manipulte the
   CPU_FTR_EMB_HV flag (added as a part of e500mc KVM support) in the cpu_spec 
   structure. We determine the presence of this feature based on the MMUCFG[LPIDSIZE]
   check and decide if we can setup the E.HV mode ivors.
2. Merge the 32 bit cpu setup code for e500mc/e5500 and define the "cpu_restore"
   routine (for e5500/e6500) only for the 64 bit case. The cpu_restore routine
   is used in the 64 bit case for setting up the secondary cores.
3. For the 64 bit case separate out e5500 cpu_setup and cpu_restore functions.
   The cpu_setup function (for the primary core) is passed the cpu_spec pointer,
   which is not there in case of the cpu_restore function. Also, in our case
   we will have to manipulate the CPU_FTR_EMB_HV flag on the the primary core.  
4. Added CPU_FTR_EMB_HV check for e5500.

Varun Sethi (4):
  Separate out E.HV check and ivor setup code.
  Merge the PPC 32 e5500 setup code with e500mc setup and don't define
  a restore routine for PPC 32.
  Separate out restore_e5500/setup_e5500 routines and check for E.HV
  mode before setting ivor setting code.
  Add CPU_FTR_EMB_HV check for e5500.

 arch/powerpc/kernel/cpu_setup_fsl_booke.S |   74 +++++++++++++++++++++++++----
 arch/powerpc/kernel/cputable.c            |    4 ++
 arch/powerpc/kernel/exceptions-64e.S      |   18 +------
 arch/powerpc/kernel/head_fsl_booke.S      |   18 ++-----
 4 files changed, 75 insertions(+), 39 deletions(-)

-- 
1.7.4.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-27 12:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-09 12:52 [PATCH 0/4] powerpc/booke: Modifications to fsl booke cpu setup code Varun Sethi
2012-07-27 12:57 ` Sethi Varun-B16395

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).