linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/e6500: add TMCFG0 register definition
@ 2015-09-23 15:06 Laurentiu Tudor
  2015-09-24 22:18 ` Scott Wood
  2015-10-15  5:29 ` Paul Mackerras
  0 siblings, 2 replies; 3+ messages in thread
From: Laurentiu Tudor @ 2015-09-23 15:06 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Laurentiu Tudor, Scott Wood, kvm-ppc

The register is not currently used in the base kernel
but will be in a forthcoming kvm patch.

Signed-off-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com>
---
 arch/powerpc/include/asm/reg_booke.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/powerpc/include/asm/reg_booke.h b/arch/powerpc/include/asm/reg_booke.h
index 16547ef..2fef74b 100644
--- a/arch/powerpc/include/asm/reg_booke.h
+++ b/arch/powerpc/include/asm/reg_booke.h
@@ -742,6 +742,12 @@
 #define MMUBE1_VBE4		0x00000002
 #define MMUBE1_VBE5		0x00000001
 
+#define TMRN_TMCFG0      16	/* Thread Management Configuration Register 0 */
+#define TMRN_TMCFG0_NPRIBITS       0x003f0000 /* Bits of thread priority */
+#define TMRN_TMCFG0_NPRIBITS_SHIFT 16
+#define TMRN_TMCFG0_NATHRD         0x00003f00 /* Number of active threads */
+#define TMRN_TMCFG0_NATHRD_SHIFT   8
+#define TMRN_TMCFG0_NTHRD          0x0000003f /* Number of threads */
 #define TMRN_IMSR0	0x120	/* Initial MSR Register 0 (e6500) */
 #define TMRN_IMSR1	0x121	/* Initial MSR Register 1 (e6500) */
 #define TMRN_INIA0	0x140	/* Next Instruction Address Register 0 */
-- 
1.8.3.1

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

* Re: [PATCH] powerpc/e6500: add TMCFG0 register definition
  2015-09-23 15:06 [PATCH] powerpc/e6500: add TMCFG0 register definition Laurentiu Tudor
@ 2015-09-24 22:18 ` Scott Wood
  2015-10-15  5:29 ` Paul Mackerras
  1 sibling, 0 replies; 3+ messages in thread
From: Scott Wood @ 2015-09-24 22:18 UTC (permalink / raw)
  To: Laurentiu Tudor; +Cc: linuxppc-dev, Laurentiu Tudor, kvm-ppc

On Wed, 2015-09-23 at 18:06 +0300, Laurentiu Tudor wrote:
> The register is not currently used in the base kernel
> but will be in a forthcoming kvm patch.
> 
> Signed-off-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com>
> ---
>  arch/powerpc/include/asm/reg_booke.h | 6 ++++++
>  1 file changed, 6 insertions(+)

Acked-by: Scott Wood <scottwood@freescale.com>

-Scott

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

* Re: [PATCH] powerpc/e6500: add TMCFG0 register definition
  2015-09-23 15:06 [PATCH] powerpc/e6500: add TMCFG0 register definition Laurentiu Tudor
  2015-09-24 22:18 ` Scott Wood
@ 2015-10-15  5:29 ` Paul Mackerras
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Mackerras @ 2015-10-15  5:29 UTC (permalink / raw)
  To: Laurentiu Tudor; +Cc: linuxppc-dev, Laurentiu Tudor, Scott Wood, kvm-ppc

On Wed, Sep 23, 2015 at 06:06:22PM +0300, Laurentiu Tudor wrote:
> The register is not currently used in the base kernel
> but will be in a forthcoming kvm patch.
> 
> Signed-off-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com>

Thanks, applied to my kvm-ppc-next branch.

Paul.

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

end of thread, other threads:[~2015-10-15  5:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-23 15:06 [PATCH] powerpc/e6500: add TMCFG0 register definition Laurentiu Tudor
2015-09-24 22:18 ` Scott Wood
2015-10-15  5:29 ` Paul Mackerras

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