linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Anju T Sudhakar <anju@linux.vnet.ibm.com>
To: mpe@ellerman.id.au
Cc: linuxppc-dev@lists.ozlabs.org, maddy@linux.vnet.ibm.com,
	anju@linux.vnet.ibm.com
Subject: [PATCH v2 0/4] powerpc/perf: IMC Cleanups
Date: Tue, 22 May 2018 14:42:33 +0530	[thread overview]
Message-ID: <1526980357-25385-1-git-send-email-anju@linux.vnet.ibm.com> (raw)

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. 

Patch series is based on:
https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git (merge branch)


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

             reply	other threads:[~2018-05-22  9:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-22  9:12 Anju T Sudhakar [this message]
2018-05-22  9:12 ` [PATCH v2 1/4] powerpc/perf: Rearrange memory freeing in imc init Anju T Sudhakar
2018-06-04 14:11   ` [v2,1/4] " Michael Ellerman
2018-05-22  9:12 ` [PATCH v2 2/4] powerpc/perf: Replace the direct return with goto statement Anju T Sudhakar
2018-05-22  9:12 ` [PATCH v2 3/4] powerpc/perf: Return appropriate value for unknown domain Anju T Sudhakar
2018-05-22  9:12 ` [PATCH v2 4/4] powerpc/perf: Unregister thread-imc if core-imc not supported Anju T Sudhakar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1526980357-25385-1-git-send-email-anju@linux.vnet.ibm.com \
    --to=anju@linux.vnet.ibm.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=maddy@linux.vnet.ibm.com \
    --cc=mpe@ellerman.id.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).