aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2013-04-25 15:28:22 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-04-26 02:11:06 -0400
commit240686c1368775b5dc80aae863301189b25f9bfa (patch)
treeff231854aed343e77fce506d9c93479861971be9 /arch/powerpc/include/asm
parent959c9bdd5828981d3d226873aba930019798fa65 (diff)
powerpc: Initialise PMU related regs on Power8
For both HV and guest kernels, intialise PMU regs to something sane. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Acked-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm')
-rw-r--r--arch/powerpc/include/asm/reg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h
index 4ae2d446dedb..5735ebbd5888 100644
--- a/arch/powerpc/include/asm/reg.h
+++ b/arch/powerpc/include/asm/reg.h
@@ -271,6 +271,7 @@
271#define SPRN_HFSCR 0xbe /* HV=1 Facility Status & Control Register */ 271#define SPRN_HFSCR 0xbe /* HV=1 Facility Status & Control Register */
272#define HFSCR_TAR (1 << (63-55)) /* Enable Target Address Register */ 272#define HFSCR_TAR (1 << (63-55)) /* Enable Target Address Register */
273#define HFSCR_TM (1 << (63-58)) /* Enable Transactional Memory */ 273#define HFSCR_TM (1 << (63-58)) /* Enable Transactional Memory */
274#define HFSCR_PM (1 << (63-60)) /* Enable prob/priv access to PMU SPRs */
274#define HFSCR_DSCR (1 << (63-61)) /* Enable Data Stream Control Register */ 275#define HFSCR_DSCR (1 << (63-61)) /* Enable Data Stream Control Register */
275#define HFSCR_VECVSX (1 << (63-62)) /* Enable VMX/VSX */ 276#define HFSCR_VECVSX (1 << (63-62)) /* Enable VMX/VSX */
276#define HFSCR_FP (1 << (63-63)) /* Enable Floating Point */ 277#define HFSCR_FP (1 << (63-63)) /* Enable Floating Point */
@@ -637,6 +638,7 @@
637#define MMCR0_FCWAIT 0x00000002UL /* freeze counter in WAIT state */ 638#define MMCR0_FCWAIT 0x00000002UL /* freeze counter in WAIT state */
638#define MMCR0_FCHV 0x00000001UL /* freeze conditions in hypervisor mode */ 639#define MMCR0_FCHV 0x00000001UL /* freeze conditions in hypervisor mode */
639#define SPRN_MMCR1 798 640#define SPRN_MMCR1 798
641#define SPRN_MMCR2 769
640#define SPRN_MMCRA 0x312 642#define SPRN_MMCRA 0x312
641#define MMCRA_SDSYNC 0x80000000UL /* SDAR synced with SIAR */ 643#define MMCRA_SDSYNC 0x80000000UL /* SDAR synced with SIAR */
642#define MMCRA_SDAR_DCACHE_MISS 0x40000000UL 644#define MMCRA_SDAR_DCACHE_MISS 0x40000000UL
@@ -655,6 +657,10 @@
655#define POWER7P_MMCRA_SIAR_VALID 0x10000000 /* P7+ SIAR contents valid */ 657#define POWER7P_MMCRA_SIAR_VALID 0x10000000 /* P7+ SIAR contents valid */
656#define POWER7P_MMCRA_SDAR_VALID 0x08000000 /* P7+ SDAR contents valid */ 658#define POWER7P_MMCRA_SDAR_VALID 0x08000000 /* P7+ SDAR contents valid */
657 659
660#define SPRN_MMCRH 316 /* Hypervisor monitor mode control register */
661#define SPRN_MMCRS 894 /* Supervisor monitor mode control register */
662#define SPRN_MMCRC 851 /* Core monitor mode control register */
663
658#define SPRN_PMC1 787 664#define SPRN_PMC1 787
659#define SPRN_PMC2 788 665#define SPRN_PMC2 788
660#define SPRN_PMC3 789 666#define SPRN_PMC3 789