[PATCH 2/3] powerpc/perf: IMC code cleanup with some code refactoring

2017-12-10 Thread Anju T Sudhakar
Factor out memory freeing part for attribute elements from imc_common_cpuhp_mem_free(). Signed-off-by: Anju T Sudhakar --- arch/powerpc/perf/imc-pmu.c | 31 --- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git

[PATCH 3/3] powerpc/perf: Passs struct imc_events as a parameter to imc_parse_event()

2017-12-10 Thread Anju T Sudhakar
Remove the allocation of struct imc_events from imc_parse_event(). Instead pass imc_events as a parameter to imc_parse_event(), which is a pointer to a slot in the array allocated in update_events_in_group(). Reported by: Dan Carpenter ("powerpc/perf: Fix a sizeof() typo so we allocate less

[PATCH 1/3] powerpc/perf: Remove thread_imc_pmu global variable from

2017-12-10 Thread Anju T Sudhakar
Remove the global variable 'thread_imc_pmu', since it is not used in the code. Signed-off-by: Anju T Sudhakar --- arch/powerpc/perf/imc-pmu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/perf/imc-pmu.c b/arch/powerpc/perf/imc-pmu.c index

[PATCH 0/3] IMC code clean up and refactoring

2017-12-10 Thread Anju T Sudhakar
The first patch removes the unused variable in the code for IMC(In-memory collection counters). The second patch does some code refactoring. The third patch in the series make struct imc_events as a parameter to the function imc_parse_event(). Anju T Sudhakar (3): powerpc/perf: Remove

Re: [v2 PATCH] cpufreq: powernv: Correctly parse the sign of pstates on POWER8 vs POWER9

2017-12-10 Thread Gautham R Shenoy
Hi Balbir, On Fri, Dec 08, 2017 at 02:44:40PM +1100, Balbir Singh wrote: > On Thu, Dec 7, 2017 at 4:59 PM, Gautham R. Shenoy > wrote: > > From: "Gautham R. Shenoy" > > > > On POWERNV platform, Pstates are 8-bit values. On POWER8 they are > >

[PATCH-next] powerpc: remove retired sbc834x support

2017-12-10 Thread Paul Gortmaker
I no longer have a functional version of this board for even the most basic sanity boot testing, and they have not been available for purchase for quite some years now. There is no point in adding a burden to testing coverage that does walk all the possible defconfigs, so with all the above in

Re: [PATCH 2/2] selftests/powerpc: Calculate spin time in tm-unavailable

2017-12-10 Thread Cyril Bur
On Mon, 2017-12-11 at 13:02 +1100, Michael Ellerman wrote: > Cyril Bur writes: > > > On Tue, 2017-11-21 at 11:31 -0200, Gustavo Romero wrote: > > > Hi Cyril, > > > > > > On 21-11-2017 05:17, Cyril Bur wrote: > > > > Currently the tm-unavailable test spins for a fixed

Re: [PATCH 2/2] selftests/powerpc: Calculate spin time in tm-unavailable

2017-12-10 Thread Michael Ellerman
Cyril Bur writes: > On Tue, 2017-11-21 at 11:31 -0200, Gustavo Romero wrote: >> Hi Cyril, >> >> On 21-11-2017 05:17, Cyril Bur wrote: >> > Currently the tm-unavailable test spins for a fixed amount of time in >> > an attempt to ensure the FPU/VMX/VSX facilities are off. This