[PATCH] powerpc: Use privileged SPR number for MMCR2

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE3730d

3 messages, 3 authors, 2016-05-31 · open the first message on its own page

[PATCH] powerpc: Use privileged SPR number for MMCR2

From: Thomas Huth <hidden>
Date: 2016-05-12 11:29:16

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 <redacted>
Signed-off-by: Thomas Huth <redacted>
---
 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

Re: [PATCH] powerpc: Use privileged SPR number for MMCR2

From: Paul Mackerras <hidden>
Date: 2016-05-13 03:36:29

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 <redacted>
Signed-off-by: Thomas Huth <redacted>
Acked-by: Paul Mackerras <redacted>

Re: powerpc: Use privileged SPR number for MMCR2

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2016-05-31 10:17:14

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 <redacted>
Signed-off-by: Thomas Huth <redacted>
Acked-by: Paul Mackerras <redacted>
Applied to powerpc fixes, thanks.

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

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help