[PATCH 0/4] powerpc/perf: IMC Cleanups

Anju T Sudhakar anju at linux.vnet.ibm.com
Mon Apr 9 19:00:21 AEST 2018


This patch series includes some cleanups and Unregistration of                  
thread-imc pmu, if the kernel does not have core-imc registered.                
                                                                                
The entire patch set has been verified using the static checker smatch.         
Command used:                                                                   
$ make ARCH=powerpc CHECK="<path>/smatch -p=kernel"  C=1 vmlinux | tee warns.txt
                                                                                
Tests Done:                                                                     
                                                                                
* Fail core-imc at init:                                                        
nest-imc - working                                                              
cpuhotplug - works as expected                                                  
thread-imc - not registered                                                     
                                                                                
* Fail thread-imc at init:                                                      
nest-imc - works                                                                
core-imc - works                                                                
cpuhotplug - works                                                              
                                                                                
* Fail nest-imc at init                                                         
                                                                                
core-imc - works                                                                
thread-imc -works                                                               
cpuhotplug - works                                                              
                                                                                
* Fail only one nest unit (say for mcs23)                                       
                                                                                
Other nest-units - works                                                        
core-imc - works                                                                
thread-imc - works                                                              
cpuhotplug - works.                                                             
                                                                                
                                                                                
* Kexec works                                                                   
                                                                                
The first three patches in this series addresses the comments by Dan Carpenter. 


Anju T Sudhakar (4):
  powerpc/perf: Rearrange memory freeing in imc init
  powerpc/perf: Replace the direct return with goto statement
  powerpc/perf: Return appropriate value for unknown domain
  powerpc/perf: Unregister thread-imc if core-imc not supported

 arch/powerpc/include/asm/imc-pmu.h        |  1 +
 arch/powerpc/perf/imc-pmu.c               | 64 +++++++++++++++++++------------
 arch/powerpc/platforms/powernv/opal-imc.c | 22 +++++++++--
 3 files changed, 60 insertions(+), 27 deletions(-)

-- 
2.7.4



More information about the Linuxppc-dev mailing list