linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Use privileged SPR number for MMCR2
@ 2016-05-12 11:29 Thomas Huth
  2016-05-13  3:36 ` Paul Mackerras
  2016-05-31 10:17 ` Michael Ellerman
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Huth @ 2016-05-12 11:29 UTC (permalink / raw)
  To: Michael Ellerman, Paul Mackerras, linuxppc-dev
  Cc: Benjamin Herrenschmidt, kvm-ppc, Alexander Graf,
	Madhavan Srinivasan

We are already using the privileged versions of MMCR0, MMCR1
and MMCRA in the kernel, so for MMCR2, we should better use
the privileged versions, too, to be consistent.

Suggested-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 arch/powerpc/include/asm/reg.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h
index ce3e1b7..166d863 100644
--- a/arch/powerpc/include/asm/reg.h
+++ b/arch/powerpc/include/asm/reg.h
@@ -715,7 +715,7 @@
 #define   MMCR0_FCWAIT	0x00000002UL /* freeze counter in WAIT state */
 #define   MMCR0_FCHV	0x00000001UL /* freeze conditions in hypervisor mode */
 #define SPRN_MMCR1	798
-#define SPRN_MMCR2	769
+#define SPRN_MMCR2	785
 #define SPRN_MMCRA	0x312
 #define   MMCRA_SDSYNC	0x80000000UL /* SDAR synced with SIAR */
 #define   MMCRA_SDAR_DCACHE_MISS 0x40000000UL
-- 
1.8.3.1

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

* Re: [PATCH] powerpc: Use privileged SPR number for MMCR2
  2016-05-12 11:29 [PATCH] powerpc: Use privileged SPR number for MMCR2 Thomas Huth
@ 2016-05-13  3:36 ` Paul Mackerras
  2016-05-31 10:17 ` Michael Ellerman
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Mackerras @ 2016-05-13  3:36 UTC (permalink / raw)
  To: Thomas Huth
  Cc: Michael Ellerman, linuxppc-dev, Benjamin Herrenschmidt, kvm-ppc,
	Alexander Graf, Madhavan Srinivasan

On Thu, May 12, 2016 at 01:29:11PM +0200, Thomas Huth wrote:
> We are already using the privileged versions of MMCR0, MMCR1
> and MMCRA in the kernel, so for MMCR2, we should better use
> the privileged versions, too, to be consistent.
> 
> Suggested-by: Paul Mackerras <paulus@ozlabs.org>
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Acked-by: Paul Mackerras <paulus@ozlabs.org>

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

* Re: powerpc: Use privileged SPR number for MMCR2
  2016-05-12 11:29 [PATCH] powerpc: Use privileged SPR number for MMCR2 Thomas Huth
  2016-05-13  3:36 ` Paul Mackerras
@ 2016-05-31 10:17 ` Michael Ellerman
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Ellerman @ 2016-05-31 10:17 UTC (permalink / raw)
  To: Thomas Huth, Paul Mackerras, linuxppc-dev
  Cc: Madhavan Srinivasan, Alexander Graf, kvm-ppc

On Thu, 2016-12-05 at 11:29:11 UTC, Thomas Huth wrote:
> We are already using the privileged versions of MMCR0, MMCR1
> and MMCRA in the kernel, so for MMCR2, we should better use
> the privileged versions, too, to be consistent.
> 
> Suggested-by: Paul Mackerras <paulus@ozlabs.org>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> Acked-by: Paul Mackerras <paulus@ozlabs.org>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/8dd75ccb571f3c92c48014b3da

cheers

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

end of thread, other threads:[~2016-05-31 10:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-12 11:29 [PATCH] powerpc: Use privileged SPR number for MMCR2 Thomas Huth
2016-05-13  3:36 ` Paul Mackerras
2016-05-31 10:17 ` Michael Ellerman

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