Subject: Re: [PATCH 2/3] powerpc/perf: add 2 additional performance monitor counters for e6500 core

From: Scott Wood <[email-masked]>
Date: Tue, 4 Jun 2013 13:10:43 -0500

On 05/29/2013 05:12:41 PM, Lijun Pan wrote:
> diff --git a/arch/powerpc/kernel/cputable.c =20
> b/arch/powerpc/kernel/cputable.c
> index cc39139..2d4eee2 100644
> --- a/arch/powerpc/kernel/cputable.c
> +++ b/arch/powerpc/kernel/cputable.c
> @@ -2073,7 +2073,7 @@ static struct cpu_spec __initdata cpu_specs[] =3D =20
> {
>  			MMU_FTR_USE_TLBILX,
>  		.icache_bsize		=3D 64,
>  		.dcache_bsize		=3D 64,
> -		.num_pmcs		=3D 4,
> +		.num_pmcs		=3D 6,
>  		.oprofile_cpu_type	=3D "ppc/e6500",
>  		.oprofile_type		=3D PPC_OPROFILE_FSL_EMB,
>  		.cpu_setup		=3D __setup_cpu_e6500,

This will overflow MAX_HWEVENTS.  Please include "powerpc perf: =20
increase the perf HW events to 6" from our SDK tree before this patch =20
(be sure to change "powerpc perf" to "powerpc/perf" and remove the =20
gerrit tags when you do so).

-Scott=