[1/4] powerpc/perf: Initialise PMU related regs on POWER9
Michael Ellerman
mpe at ellerman.id.au
Fri Jun 17 23:18:22 AEST 2016
On Sat, 2016-11-06 at 07:18:12 UTC, Madhavan Srinivasan wrote:
> diff --git a/arch/powerpc/kernel/cpu_setup_power.S b/arch/powerpc/kernel/cpu_setup_power.S
> index 584e119fa8b0..a2080fde0cc5 100644
> --- a/arch/powerpc/kernel/cpu_setup_power.S
> +++ b/arch/powerpc/kernel/cpu_setup_power.S
> @@ -219,3 +223,16 @@ __init_PMU:
> mtspr SPRN_MMCR1,r5
> mtspr SPRN_MMCR2,r5
> blr
> +
> +__init_PMU_HV_300:
> + li r5,0
> + mtspr SPRN_MMCRC,r5
> + blr
> +
> +__init_PMU_300:
> + li r5,0
> + mtspr SPRN_MMCRA,r5
> + mtspr SPRN_MMCR0,r5
> + mtspr SPRN_MMCR1,r5
> + mtspr SPRN_MMCR2,r5
> + blr
With the exception of MMCRS, these are the same as the Power8 code. So there
should be able to be some common code.
cheers
More information about the Linuxppc-dev
mailing list