Re: [PATCH v7 0/4] Add perf interface to expose nvdimm

2022-03-06 Thread Madhavan Srinivasan
IBM pseries platform nmem* device performance stats using this interface. Result from power9 pseries lpar with 2 nvdimm device: Patchset looks fine to me. Reviewed-by: Madhavan Srinivasan Ex: List all event by perf list command:# perf list nmem nmem0/cache_rh_cnt

Re: [PATCH V2 1/5] powerpc/perf: Expose processor pipeline stage cycles using PERF_SAMPLE_WEIGHT_STRUCT

2021-03-26 Thread Madhavan Srinivasan
On 3/25/21 6:36 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Mar 24, 2021 at 10:05:23AM +0530, Madhavan Srinivasan escreveu: On 3/22/21 8:27 PM, Athira Rajeev wrote: Performance Monitoring Unit (PMU) registers in powerpc provides information on cycles elapsed between different stages

Re: [PATCH V2 1/5] powerpc/perf: Expose processor pipeline stage cycles using PERF_SAMPLE_WEIGHT_STRUCT

2021-03-23 Thread Madhavan Srinivasan
structure. Changes looks fine to me. Reviewed-by: Madhavan Srinivasan Signed-off-by: Athira Rajeev --- arch/powerpc/include/asm/perf_event_server.h | 2 +- arch/powerpc/perf/core-book3s.c | 4 ++-- arch/powerpc/perf/isa207-common.c| 29

Re: [PATCH 1/3] perf/core: Flush PMU internal buffers for per-CPU events

2020-11-23 Thread Madhavan Srinivasan
On 11/24/20 10:21 AM, Namhyung Kim wrote: Hello, On Mon, Nov 23, 2020 at 8:00 PM Michael Ellerman wrote: Namhyung Kim writes: Hi Peter and Kan, (Adding PPC folks) On Tue, Nov 17, 2020 at 2:01 PM Namhyung Kim wrote: Hello, On Thu, Nov 12, 2020 at 4:54 AM Liang, Kan wrote: On

Re: [PATCH? v2] powerpc: Hard wire PT_SOFTE value to 1 in gpr_get() too

2020-06-11 Thread Madhavan Srinivasan
On 6/10/20 8:37 PM, Oleg Nesterov wrote: Hi, looks like this patch was forgotten. yep, I missed this. But mpe did have comments for the patch. https://lkml.org/lkml/2019/9/19/107 Maddy Do you think this should be fixed or should we document that PTRACE_GETREGS is not consistent with

Re: [PATCH V3 2/2] tools/perf: Add perf tools support for extended register capability in powerpc

2020-05-26 Thread Madhavan Srinivasan
to the kernel to capture the extended registers in each sample. Hence decide the mask value based on the processor version. Signed-off-by: Anju T Sudhakar [Decide extended mask at run time based on platform] Signed-off-by: Athira Rajeev Reviewed-by: Madhavan Srinivasan --- tools/arch/powerpc/include

Re: [PATCH V3 1/2] powerpc/perf: Add support for outputting extended regs in perf intr_regs

2020-05-26 Thread Madhavan Srinivasan
except for couple minor nits (extra tabs and newline issue). Reviewed-by: Madhavan Srinivasan --- arch/powerpc/include/asm/perf_event_server.h | 8 +++ arch/powerpc/include/uapi/asm/perf_regs.h| 14 +++- arch/powerpc/perf/core-book3s.c | 1 + arch/powerpc/perf

Re: [PATCH V2] powerpc/perf: Add support for outputting extended regs in perf intr_regs

2020-05-19 Thread Madhavan Srinivasan
On 5/19/20 11:45 AM, Athira Rajeev wrote: From: Anju T Sudhakar Add support for perf extended register capability in powerpc. The capability flag PERF_PMU_CAP_EXTENDED_REGS, is used to indicate the PMU which support extended registers. The generic code define the mask of extended registers

Re: [PATCH 2/2] powerpc/perf: Add support for outputting extended regs in perf intr_regs

2020-05-05 Thread Madhavan Srinivasan
On 4/29/20 11:34 AM, Anju T Sudhakar wrote: The capability flag PERF_PMU_CAP_EXTENDED_REGS, is used to indicate the PMU which support extended registers. The generic code define the mask of extended registers as 0 for non supported architectures. Add support for extended registers in POWER9

Re: [PATCH v7 5/5] powerpc/hv-24x7: Update post_mobility_fixup() to handle migration

2020-04-29 Thread Madhavan Srinivasan
ips values. Changes looks fine to me. Reviewed-by: Madhavan Srinivasan Signed-off-by: Kajol Jain --- arch/powerpc/platforms/pseries/mobility.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/powerpc/platforms/pseries/mobility.c b/arch/powerpc/platforms/pseries/mobili

Re: [PATCH v7 3/5] powerpc/hv-24x7: Add sysfs files inside hv-24x7 device to show processor details

2020-04-29 Thread Madhavan Srinivasan
On 3/27/20 12:06 PM, Kajol Jain wrote: To expose the system dependent parameter like total number of sockets and numbers of chips per socket, patch adds two sysfs files. "sockets" and "chips" are added to /sys/devices/hv_24x7/interface/ of the "hv_24x7" pmu. Signed-off-by: Kajol Jain ---

Re: [PATCH v7 1/5] powerpc/perf/hv-24x7: Fix inconsistent output values incase multiple hv-24x7 events run

2020-04-29 Thread Madhavan Srinivasan
69997 22 hv_24x7/PM_MCS01_128B_RD_DISP_PORT01,chip=0/ Signed-off-by: Kajol Jain Suggested-by: Sukadev Bhattiprolu Tested-by: Madhavan Srinivasan --- arch/powerpc/perf/hv-24x7.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/

Re: [PATCH v7 2/5] powerpc/hv-24x7: Add rtas call in hv-24x7 driver to get processor details

2020-04-29 Thread Madhavan Srinivasan
values like number of sockets and chips per socket. Rtas_call with token "PROCESSOR_MODULE_INFO" is used to get these values. Patch looks good to me. Reviewed-by: Madhavan Srinivasan Sub-sequent patch exports these values via sysfs. Patch also make these parameters default to 1.

Re: [PATCH 2/2] powerpc/perf: Fix mmcra corruption by bhrb_filter

2019-05-21 Thread Madhavan Srinivasan
called by any path other than power_pmu_add(), ppmu->config_bhrb(-1) will set mmcra to -1. Reviewed-by: Madhavan Srinivasan Signed-off-by: Ravi Bangoria --- arch/powerpc/perf/core-book3s.c | 6 -- arch/powerpc/perf/power8-pmu.c | 3 +++ arch/powerpc/perf/power9-pmu.c | 3 +++

Re: [PATCH v2 5/5] powerpc/perf: Trace imc PMU functions

2018-12-18 Thread Madhavan Srinivasan
On 14/12/18 2:41 PM, Anju T Sudhakar wrote: Add PMU functions to support trace-imc. Reviewed-by: Madhavan Srinivasan Signed-off-by: Anju T Sudhakar --- arch/powerpc/perf/imc-pmu.c | 175 1 file changed, 175 insertions(+) diff --git a/arch/powerpc

Re: [PATCH v2 4/5] powerpc/perf: Trace imc events detection and cpuhotplug

2018-12-18 Thread Madhavan Srinivasan
On 14/12/18 2:41 PM, Anju T Sudhakar wrote: Patch detects trace-imc events, does memory initilizations for each online cpu, and registers cpuhotplug call-backs. Reviewed-by: Madhavan Srinivasan Signed-off-by: Anju T Sudhakar --- arch/powerpc/perf/imc-pmu.c | 91

Re: [PATCH v2 2/5] powerpc/perf: Rearrange setting of ldbar for thread-imc

2018-12-18 Thread Madhavan Srinivasan
, the mode bit of ldbar should be set to 'trace'. So to accommodate trace-mode of IMC, reposition setting of ldbar for thread-imc to thread_imc_event_add(). Also reset ldbar at thread_imc_event_del(). Changes looks fine to me. Reviewed-by: Madhavan Srinivasan Signed-off-by: Anju T Sudhakar

Re: [PATCH v2 1/5] powerpc/include: Add data structures and macros for IMC trace mode

2018-12-18 Thread Madhavan Srinivasan
opal-calls for IMC. Reviewed-by: Madhavan Srinivasan Signed-off-by: Anju T Sudhakar --- arch/powerpc/include/asm/imc-pmu.h | 39 + arch/powerpc/include/asm/opal-api.h | 1 + 2 files changed, 40 insertions(+) diff --git a/arch/powerpc/include/asm/imc-pmu

Re: [PATCH v3 09/12] powerpc: perf/core: use PERF_PMU_CAP_NO_EXCLUDE for exclude incapable PMUs

2018-12-09 Thread Madhavan Srinivasan
for exclusion flags. Reviewed-by: Madhavan Srinivasan Signed-off-by: Andrew Murray --- arch/powerpc/perf/hv-24x7.c | 10 +- arch/powerpc/perf/hv-gpci.c | 10 +- arch/powerpc/perf/imc-pmu.c | 19 +-- 3 files changed, 3 insertions(+), 36 deletions(-) diff

Re: [PATCH] powerpc/perf: Fix oops when grouping different pmu events

2017-11-30 Thread Madhavan Srinivasan
belongs to 'perf_hw_context' in collect_events(). Reviewed-By: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> Signed-off-by: Ravi Bangoria <ravi.bango...@linux.vnet.ibm.com> --- arch/powerpc/perf/core-book3s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/

Re: [PATCH] powerpc/perf: Fix oops when grouping different pmu events

2017-11-30 Thread Madhavan Srinivasan
belongs to 'perf_hw_context' in collect_events(). Reviewed-By: Madhavan Srinivasan Signed-off-by: Ravi Bangoria --- arch/powerpc/perf/core-book3s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/perf/core-book3s.c b/arch/powerpc/perf/core-book3s.c index

Re: [PATCH] powerpc/powernv: Fix IMC_MAX_PMU macro

2017-11-09 Thread Madhavan Srinivasan
On Friday 10 November 2017 02:32 AM, Michael Ellerman wrote: Anju T Sudhakar writes: IMC_MAX_PMU is used for static storage (per_nest_pmu_arr) which holds nest pmu information. Current value for the macro is 32 based on the initial number of nest pmu units supported

Re: [PATCH] powerpc/powernv: Fix IMC_MAX_PMU macro

2017-11-09 Thread Madhavan Srinivasan
On Friday 10 November 2017 02:32 AM, Michael Ellerman wrote: Anju T Sudhakar writes: IMC_MAX_PMU is used for static storage (per_nest_pmu_arr) which holds nest pmu information. Current value for the macro is 32 based on the initial number of nest pmu units supported by the nest microcode.

Re: [PATCH] powerpc/perf: Fix core-imc hotplug callback failure during imc initialization

2017-11-02 Thread Madhavan Srinivasan
On Friday 03 November 2017 05:49 AM, Michael Ellerman wrote: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> writes: On Wednesday 01 November 2017 06:22 AM, Michael Ellerman wrote: Anju T Sudhakar <a...@linux.vnet.ibm.com> writes: Call trace observed during boot: What's the

Re: [PATCH] powerpc/perf: Fix core-imc hotplug callback failure during imc initialization

2017-11-02 Thread Madhavan Srinivasan
On Friday 03 November 2017 05:49 AM, Michael Ellerman wrote: Madhavan Srinivasan writes: On Wednesday 01 November 2017 06:22 AM, Michael Ellerman wrote: Anju T Sudhakar writes: Call trace observed during boot: What's the actual oops? I could recreate this in mambo with CPUS=2

Re: [PATCH] powerpc/perf: Fix core-imc hotplug callback failure during imc initialization

2017-11-01 Thread Madhavan Srinivasan
On Wednesday 01 November 2017 06:22 AM, Michael Ellerman wrote: Anju T Sudhakar writes: Call trace observed during boot: What's the actual oops? I could recreate this in mambo with CPUS=2 and THREAD=2 Here is the complete stack trace. [    0.045367] core_imc

Re: [PATCH] powerpc/perf: Fix core-imc hotplug callback failure during imc initialization

2017-11-01 Thread Madhavan Srinivasan
On Wednesday 01 November 2017 06:22 AM, Michael Ellerman wrote: Anju T Sudhakar writes: Call trace observed during boot: What's the actual oops? I could recreate this in mambo with CPUS=2 and THREAD=2 Here is the complete stack trace. [    0.045367] core_imc memory allocation for cpu 2

Re: [PATCH] powerpc/powernv: Add kernel cmdline parameter to disable imc

2017-10-12 Thread Madhavan Srinivasan
On Thursday 12 October 2017 01:21 PM, Stewart Smith wrote: Anju T Sudhakar writes: On Wednesday 11 October 2017 01:55 AM, Stewart Smith wrote: Michael Ellerman writes: Anju T Sudhakar writes: Add a kernel command

Re: [PATCH] powerpc/powernv: Add kernel cmdline parameter to disable imc

2017-10-12 Thread Madhavan Srinivasan
On Thursday 12 October 2017 01:21 PM, Stewart Smith wrote: Anju T Sudhakar writes: On Wednesday 11 October 2017 01:55 AM, Stewart Smith wrote: Michael Ellerman writes: Anju T Sudhakar writes: Add a kernel command line parameter option to disable In-Memory Collection (IMC) counters and

Re: [PATCH] powerpc/perf: Fix IMC initialization crash

2017-10-10 Thread Madhavan Srinivasan
fix is. mpe, We have just re-factored the code to handle the memory freeing and fixed a leak. This is minimal fix. And there are no risks in taking this in. Reviewed-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> Maddy cheers

Re: [PATCH] powerpc/perf: Fix IMC initialization crash

2017-10-10 Thread Madhavan Srinivasan
. This is minimal fix. And there are no risks in taking this in. Reviewed-by: Madhavan Srinivasan Maddy cheers

Re: [PATCH] powerpc/sysrq: Fix oops whem ppmu is not registered

2017-09-19 Thread Madhavan Srinivasan
On Tuesday 19 September 2017 03:30 PM, Michael Ellerman wrote: Ravi Bangoria writes: Kernel crashes if power pmu is not registered and user tries to dump regs with 'echo p > /proc/sysrq-trigger'. Sample log: Unable to handle kernel paging request for

Re: [PATCH] powerpc/sysrq: Fix oops whem ppmu is not registered

2017-09-19 Thread Madhavan Srinivasan
On Tuesday 19 September 2017 03:30 PM, Michael Ellerman wrote: Ravi Bangoria writes: Kernel crashes if power pmu is not registered and user tries to dump regs with 'echo p > /proc/sysrq-trigger'. Sample log: Unable to handle kernel paging request for data at address 0x0008

Re: [PATCH V8] perf: Add PERF_SAMPLE_PHYS_ADDR

2017-08-29 Thread Madhavan Srinivasan
o root or privileged user. Tested-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> Signed-off-by: Kan Liang <kan.li...@intel.com> --- This patch is kernel patch. The user space patch can be found here. https://urldefense.proofpoint.com/v2/url?u=https-3A__www.spinics.net_lists_kern

Re: [PATCH V8] perf: Add PERF_SAMPLE_PHYS_ADDR

2017-08-29 Thread Madhavan Srinivasan
. Tested-by: Madhavan Srinivasan Signed-off-by: Kan Liang --- This patch is kernel patch. The user space patch can be found here. https://urldefense.proofpoint.com/v2/url?u=https-3A__www.spinics.net_lists_kernel_msg2587093.html=DwIBaQ=jf_iaSHvJObTbx-siA1ZOg

Re: [PATCH v13 5/5] powerpc/perf: Add thread imc pmu support

2017-07-22 Thread Madhavan Srinivasan
my bad, missed to change the authership of this patch. From: Anju T Sudhakar <a...@linux.vnet.ibm.com> On Wednesday 19 July 2017 03:06 AM, Madhavan Srinivasan wrote: Add support to register Thread In-Memory Collection pmu counters. Patch adds thread imc specific data structures,

Re: [PATCH v13 5/5] powerpc/perf: Add thread imc pmu support

2017-07-22 Thread Madhavan Srinivasan
my bad, missed to change the authership of this patch. From: Anju T Sudhakar On Wednesday 19 July 2017 03:06 AM, Madhavan Srinivasan wrote: Add support to register Thread In-Memory Collection pmu counters. Patch adds thread imc specific data structures, along with memory init functions

Re: [PATCH v13 4/5] powerpc/perf: Add core imc pmu support

2017-07-22 Thread Madhavan Srinivasan
my bad, missed to change the authership of this patch. From: Anju T Sudhakar <a...@linux.vnet.ibm.com> On Wednesday 19 July 2017 03:06 AM, Madhavan Srinivasan wrote: Add support to register Core In-Memory Collection pmu counters. Patch adds core imc specific data structures, along with

Re: [PATCH v13 4/5] powerpc/perf: Add core imc pmu support

2017-07-22 Thread Madhavan Srinivasan
my bad, missed to change the authership of this patch. From: Anju T Sudhakar On Wednesday 19 July 2017 03:06 AM, Madhavan Srinivasan wrote: Add support to register Core In-Memory Collection pmu counters. Patch adds core imc specific data structures, along with memory init functions

Re: [PATCH v13 3/5] powerpc/perf: Add nest imc pmu support

2017-07-22 Thread Madhavan Srinivasan
my bad, missed to change the authership of this patch. From: Anju T Sudhakar <a...@linux.vnet.ibm.com> On Wednesday 19 July 2017 03:06 AM, Madhavan Srinivasan wrote: Add support to register Nest In-Memory Collection pmu counters. Patch adds a new device file called "imc-pmu.c&quo

Re: [PATCH v13 3/5] powerpc/perf: Add nest imc pmu support

2017-07-22 Thread Madhavan Srinivasan
my bad, missed to change the authership of this patch. From: Anju T Sudhakar On Wednesday 19 July 2017 03:06 AM, Madhavan Srinivasan wrote: Add support to register Nest In-Memory Collection pmu counters. Patch adds a new device file called "imc-pmu.c" under powerpc/perf folder to c

[PATCH v13 4/5] powerpc/perf: Add core imc pmu support

2017-07-18 Thread Madhavan Srinivasan
; Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/perf/imc-pmu.c | 303 +++- include/linux/cpuhotplug.h | 1 + 2 files changed, 299 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/perf/imc-pmu.c b/arch/powerpc/pe

[PATCH v13 4/5] powerpc/perf: Add core imc pmu support

2017-07-18 Thread Madhavan Srinivasan
Add support to register Core In-Memory Collection pmu counters. Patch adds core imc specific data structures, along with memory init functions and cpuhotplug support. Signed-off-by: Anju T Sudhakar Signed-off-by: Hemant Kumar Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/imc-pmu.c

[PATCH v13 1/5] powerpc/platform/powernv: Update IMC OPAL APIs

2017-07-18 Thread Madhavan Srinivasan
/skiboot/blob/master/doc/opal-api/opal-imc-counters.rst Patch updates the kernel side powernv platform code to support the new OPAL APIs Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> Signed-off-by: Anju T Sudhakar <a...@linux.vnet.ibm.com> Signed-off-by: Madhavan Sr

[PATCH v13 1/5] powerpc/platform/powernv: Update IMC OPAL APIs

2017-07-18 Thread Madhavan Srinivasan
/skiboot/blob/master/doc/opal-api/opal-imc-counters.rst Patch updates the kernel side powernv platform code to support the new OPAL APIs Signed-off-by: Hemant Kumar Signed-off-by: Anju T Sudhakar Signed-off-by: Madhavan Srinivasan --- arch/powerpc/include/asm/opal-api.h| 11

[PATCH v13 5/5] powerpc/perf: Add thread imc pmu support

2017-07-18 Thread Madhavan Srinivasan
; Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/perf/imc-pmu.c | 269 +++- include/linux/cpuhotplug.h | 1 + 2 files changed, 266 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/perf/imc-pmu.c b/arch/powerpc/pe

[PATCH v13 2/5] powerpc/platform/powernv: Detect and create IMC device

2017-07-18 Thread Madhavan Srinivasan
inux.vnet.ibm.com> Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/imc-pmu.h| 128 + arch/powerpc/platforms/powernv/Makefile | 2 +- arch/powerpc/platforms/powernv/opal-imc.c | 221 ++ arch/powe

[PATCH v13 5/5] powerpc/perf: Add thread imc pmu support

2017-07-18 Thread Madhavan Srinivasan
Add support to register Thread In-Memory Collection pmu counters. Patch adds thread imc specific data structures, along with memory init functions and cpuhotplug support. Signed-off-by: Anju T Sudhakar Signed-off-by: Hemant Kumar Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/imc

[PATCH v13 2/5] powerpc/platform/powernv: Detect and create IMC device

2017-07-18 Thread Madhavan Srinivasan
as device memory sizes, event nodes information, base address for reserve memory access (if any) and so on. Simple bare-minimum sutdown function added which only "stops" the engines. Signed-off-by: Anju T Sudhakar Signed-off-by: Hemant Kumar Signed-off-by: Madhavan Srinivasan --- arch/pow

[PATCH v13 3/5] powerpc/perf: Add nest imc pmu support

2017-07-18 Thread Madhavan Srinivasan
-by: Anju T Sudhakar <a...@linux.vnet.ibm.com> Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/perf/Makefile| 1 + arch/powerpc/perf/imc-pmu.c | 748

[PATCH v13 3/5] powerpc/perf: Add nest imc pmu support

2017-07-18 Thread Madhavan Srinivasan
Sudhakar Signed-off-by: Hemant Kumar Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/Makefile| 1 + arch/powerpc/perf/imc-pmu.c | 748 ++ arch/powerpc/platforms/powernv/opal-imc.c | 5 + include/linux/cpuhotplug.h

[PATCH v13 0/5] In-Memory Collection Counter instrumentation Support

2017-07-18 Thread Madhavan Srinivasan
. This patchset enables the nest IMC, core IMC and thread IMC PMUs and is based on the initial work done by Madhavan Srinivasan. "Nest Instrumentation Support" : https://lists.ozlabs.org/pipermail/linuxppc-dev/2015-August/132078.html v1 for this patchset can be found here : https://lwn.net/Artic

[PATCH v13 0/5] In-Memory Collection Counter instrumentation Support

2017-07-18 Thread Madhavan Srinivasan
. This patchset enables the nest IMC, core IMC and thread IMC PMUs and is based on the initial work done by Madhavan Srinivasan. "Nest Instrumentation Support" : https://lists.ozlabs.org/pipermail/linuxppc-dev/2015-August/132078.html v1 for this patchset can be found here : https://lwn.net/Artic

Re: [PATCH v11 07/10] powerpc/perf: PMU functions for Core IMC and hotplugging

2017-06-29 Thread Madhavan Srinivasan
On Thursday 29 June 2017 01:11 AM, Thomas Gleixner wrote: On Thu, 29 Jun 2017, Anju T Sudhakar wrote: +static void cleanup_all_core_imc_memory(struct imc_pmu *pmu_ptr) +{ + struct imc_mem_info *ptr; + + for (ptr = pmu_ptr->mem_info; ptr; ptr++) { + if (ptr->vbase[0])

Re: [PATCH v11 07/10] powerpc/perf: PMU functions for Core IMC and hotplugging

2017-06-29 Thread Madhavan Srinivasan
On Thursday 29 June 2017 01:11 AM, Thomas Gleixner wrote: On Thu, 29 Jun 2017, Anju T Sudhakar wrote: +static void cleanup_all_core_imc_memory(struct imc_pmu *pmu_ptr) +{ + struct imc_mem_info *ptr; + + for (ptr = pmu_ptr->mem_info; ptr; ptr++) { + if (ptr->vbase[0])

[PATCH] powerpc/sysfs: Expose MMCR2 spr in sysfs

2017-06-25 Thread Madhavan Srinivasan
Monitor Mode Control Register 2 (MMCR2) is a 64-bit register that contains 9-bit control fields for controlling the operation of PMC1 - PMC6. Patch to expose the MMCR2 spr in sysfs. Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/kernel/sysfs.c | 8

[PATCH] powerpc/sysfs: Expose MMCR2 spr in sysfs

2017-06-25 Thread Madhavan Srinivasan
Monitor Mode Control Register 2 (MMCR2) is a 64-bit register that contains 9-bit control fields for controlling the operation of PMC1 - PMC6. Patch to expose the MMCR2 spr in sysfs. Signed-off-by: Madhavan Srinivasan --- arch/powerpc/kernel/sysfs.c | 8 1 file changed, 8 insertions

[PATCH] powerpc/perf: Fix branch event code for power9

2017-06-25 Thread Madhavan Srinivasan
quot;) Reported-by: Anton Blanchard <an...@samba.org> Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/perf/power9-events-list.h | 4 +++- arch/powerpc/perf/power9-pmu.c | 8 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/a

[PATCH] powerpc/perf: Fix branch event code for power9

2017-06-25 Thread Madhavan Srinivasan
Correct "branch" event code of Power9 is "r4d05e". Replace the current "branch" event code with "r4d05e" and add a hack to use "r10012" as event code for power9 dd1. Fixes: d89f473ff6f8 ("powerpc/perf: Fix PM_BRU_CMPL event code for power9&

Re: [PATCH v10 09/10] powerpc/perf: Thread IMC PMU functions

2017-06-12 Thread Madhavan Srinivasan
-ci/linux/commits/Madhavan-Srinivasan/IMC-Instrumentation-Support/20170609-183528 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next config: powerpc-defconfig (attached as .config) compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget

Re: [PATCH v10 09/10] powerpc/perf: Thread IMC PMU functions

2017-06-12 Thread Madhavan Srinivasan
-ci/linux/commits/Madhavan-Srinivasan/IMC-Instrumentation-Support/20170609-183528 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next config: powerpc-defconfig (attached as .config) compiler: powerpc64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget

Re: [PATCH v2 2/4] perf/x86: Fix data source decoding for Skylake

2017-06-09 Thread Madhavan Srinivasan
On Thursday 08 June 2017 01:45 PM, Peter Zijlstra wrote: On Wed, Jun 07, 2017 at 04:22:24PM -0700, Andi Kleen wrote: diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index b1c0b187acfe..95daade294d7 100644 --- a/include/uapi/linux/perf_event.h +++

Re: [PATCH v2 2/4] perf/x86: Fix data source decoding for Skylake

2017-06-09 Thread Madhavan Srinivasan
On Thursday 08 June 2017 01:45 PM, Peter Zijlstra wrote: On Wed, Jun 07, 2017 at 04:22:24PM -0700, Andi Kleen wrote: diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index b1c0b187acfe..95daade294d7 100644 --- a/include/uapi/linux/perf_event.h +++

[PATCH v10 10/10] powerpc/perf: Thread imc cpuhotplug support

2017-06-08 Thread Madhavan Srinivasan
ctions for thread_imc, a new state CPUHP_AP_PERF_POWERPC_THREAD_IMC_ONLINE is added to the list of existing states. Signed-off-by: Anju T Sudhakar <a...@linux.vnet.ibm.com> Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/p

[PATCH v10 10/10] powerpc/perf: Thread imc cpuhotplug support

2017-06-08 Thread Madhavan Srinivasan
CPUHP_AP_PERF_POWERPC_THREAD_IMC_ONLINE is added to the list of existing states. Signed-off-by: Anju T Sudhakar Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/imc-pmu.c | 42 +++--- include/linux/cpuhotplug.h | 1 + 2 files changed, 40 insertions

[PATCH v10 09/10] powerpc/perf: Thread IMC PMU functions

2017-06-08 Thread Madhavan Srinivasan
n when the task is scheduled on to different cpus. Signed-off-by: Anju T Sudhakar <a...@linux.vnet.ibm.com> Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/imc-pmu.h| 4

[PATCH v10 09/10] powerpc/perf: Thread IMC PMU functions

2017-06-08 Thread Madhavan Srinivasan
on to different cpus. Signed-off-by: Anju T Sudhakar Signed-off-by: Hemant Kumar Signed-off-by: Madhavan Srinivasan --- arch/powerpc/include/asm/imc-pmu.h| 4 + arch/powerpc/perf/imc-pmu.c | 219 +- arch/powerpc/platforms/powernv/opal-imc.c | 2

[PATCH v10 08/10] powerpc/powernv: Thread IMC events detection

2017-06-08 Thread Madhavan Srinivasan
ibm.com> Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/imc-pmu.h| 1 + arch/powerpc/include/asm/opal-api.h | 1 + arch/powerpc/perf/imc-pmu.c | 1 + arch/po

[PATCH v10 08/10] powerpc/powernv: Thread IMC events detection

2017-06-08 Thread Madhavan Srinivasan
From: Anju T Sudhakar Code to add support for detection of thread IMC events. It adds a new domain IMC_DOMAIN_THREAD and it is determined with the help of the "type" property in the imc device-tree. Signed-off-by: Anju T Sudhakar Signed-off-by: Hemant Kumar Signed-off-by: Madhavan

[PATCH v10 07/10] powerpc/perf: PMU functions for Core IMC and hotplugging

2017-06-08 Thread Madhavan Srinivasan
: Anju T Sudhakar <a...@linux.vnet.ibm.com> Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/imc-pmu.h| 1 + arch/powerpc/include/asm/opal-api.h | 1 + arch/powerpc/perf/imc-pmu.c | 265 ++

[PATCH v10 07/10] powerpc/perf: PMU functions for Core IMC and hotplugging

2017-06-08 Thread Madhavan Srinivasan
-by: Madhavan Srinivasan --- arch/powerpc/include/asm/imc-pmu.h| 1 + arch/powerpc/include/asm/opal-api.h | 1 + arch/powerpc/perf/imc-pmu.c | 265 +- arch/powerpc/platforms/powernv/opal-imc.c | 7 + include/linux/cpuhotplug.h

[PATCH v10 05/10] powerpc/perf: IMC pmu cpumask and cpuhotplug support

2017-06-08 Thread Madhavan Srinivasan
com> Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/opal-api.h| 14 +- arch/powerpc/include/asm/opal.h| 4 + arch/powerpc/perf/imc-pmu.c| 211 - arch/powerpc/platforms/power

[PATCH v10 05/10] powerpc/perf: IMC pmu cpumask and cpuhotplug support

2017-06-08 Thread Madhavan Srinivasan
(for nest units) is designated as new cpu to read counters. For this purpose, we introduce a new state : CPUHP_AP_PERF_POWERPC_NEST_IMC_ONLINE. Signed-off-by: Anju T Sudhakar Signed-off-by: Hemant Kumar Signed-off-by: Madhavan Srinivasan --- arch/powerpc/include/asm/opal-api.h| 14

[PATCH v10 06/10] powerpc/powernv: Core IMC events detection

2017-06-08 Thread Madhavan Srinivasan
emant Kumar <hem...@linux.vnet.ibm.com> Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/imc-pmu.h| 2 ++ arch/powerpc/include/asm/opal-api.h | 3 +++ arch/powerpc/perf/imc-pmu.c | 4 arch/powerpc/platf

[PATCH v10 06/10] powerpc/powernv: Core IMC events detection

2017-06-08 Thread Madhavan Srinivasan
This patch adds support for detection of core IMC events along with the Nest IMC events. It adds a new domain IMC_DOMAIN_CORE and its determined with the help of the "type" property in the IMC device tree. Signed-off-by: Anju T Sudhakar Signed-off-by: Hemant Kumar Signed-off-by

[PATCH v10 04/10] powerpc/perf: Add generic IMC pmu group and event functions

2017-06-08 Thread Madhavan Srinivasan
its. Signed-off-by: Anju T Sudhakar <a...@linux.vnet.ibm.com> Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/imc-pmu.h| 2 + arch/powerpc/perf/Makefile|

[PATCH v10 04/10] powerpc/perf: Add generic IMC pmu group and event functions

2017-06-08 Thread Madhavan Srinivasan
T Sudhakar Signed-off-by: Hemant Kumar Signed-off-by: Madhavan Srinivasan --- arch/powerpc/include/asm/imc-pmu.h| 2 + arch/powerpc/perf/Makefile| 3 + arch/powerpc/perf/imc-pmu.c | 268 ++ arch/powerpc/platforms/powernv/opal-i

[PATCH v10 03/10] powerpc/powernv: Detect supported IMC units and its events

2017-06-08 Thread Madhavan Srinivasan
y this PMU inherit the scale and unit properties of the PMU itself. For those events, we need to set the common unit and scale values. For failure to initialize any unit or any event, disable that unit and continue setting up the rest of them. Signed-off-by: Hemant Kumar <hem...@linux.vnet.i

[PATCH v10 03/10] powerpc/powernv: Detect supported IMC units and its events

2017-06-08 Thread Madhavan Srinivasan
y this PMU inherit the scale and unit properties of the PMU itself. For those events, we need to set the common unit and scale values. For failure to initialize any unit or any event, disable that unit and continue setting up the rest of them. Signed-off-by: Hemant Kumar Signed-off-by: Anju T Sudhak

[PATCH v10 02/10] powerpc/powernv: Autoload IMC device driver module

2017-06-08 Thread Madhavan Srinivasan
Anju T Sudhakar <a...@linux.vnet.ibm.com> Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/platforms/powernv/Kconfig| 10 + arch/powerpc/platforms/powernv/Makefile | 1 + arch/powerpc

[PATCH v10 02/10] powerpc/powernv: Autoload IMC device driver module

2017-06-08 Thread Madhavan Srinivasan
ar Signed-off-by: Madhavan Srinivasan --- arch/powerpc/platforms/powernv/Kconfig| 10 + arch/powerpc/platforms/powernv/Makefile | 1 + arch/powerpc/platforms/powernv/opal-imc.c | 73 +++ arch/powerpc/platforms/powernv/opal.c | 18 4 files ch

[PATCH v10 01/10] powerpc/powernv: Data structure and macros definitions for IMC

2017-06-08 Thread Madhavan Srinivasan
Create a new header file to add the data structures and macros needed for In-Memory Collection (IMC) counter support. Signed-off-by: Anju T Sudhakar <a...@linux.vnet.ibm.com> Signed-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> Signed-off-by: Madhavan Srinivasan <ma...@lin

[PATCH v10 01/10] powerpc/powernv: Data structure and macros definitions for IMC

2017-06-08 Thread Madhavan Srinivasan
Create a new header file to add the data structures and macros needed for In-Memory Collection (IMC) counter support. Signed-off-by: Anju T Sudhakar Signed-off-by: Hemant Kumar Signed-off-by: Madhavan Srinivasan --- arch/powerpc/include/asm/imc-pmu.h | 99

[PATCH v10 00/10] IMC Instrumentation Support

2017-06-08 Thread Madhavan Srinivasan
. This patchset enables the nest IMC, core IMC and thread IMC PMUs and is based on the initial work done by Madhavan Srinivasan. "Nest Instrumentation Support" : https://lists.ozlabs.org/pipermail/linuxppc-dev/2015-August/132078.html v1 for this patchset can be found here : https://lwn.net/Artic

[PATCH v10 00/10] IMC Instrumentation Support

2017-06-08 Thread Madhavan Srinivasan
. This patchset enables the nest IMC, core IMC and thread IMC PMUs and is based on the initial work done by Madhavan Srinivasan. "Nest Instrumentation Support" : https://lists.ozlabs.org/pipermail/linuxppc-dev/2015-August/132078.html v1 for this patchset can be found here : https://lwn.net/Artic

Re: [PATCH v9 10/10] powerpc/perf: Thread imc cpuhotplug support

2017-06-08 Thread Madhavan Srinivasan
On Tuesday 06 June 2017 03:57 PM, Thomas Gleixner wrote: On Mon, 5 Jun 2017, Anju T Sudhakar wrote: static void thread_imc_mem_alloc(int cpu_id) { - u64 ldbar_addr, ldbar_value; int phys_id = topology_physical_package_id(cpu_id); per_cpu_add[cpu_id] =

Re: [PATCH v9 10/10] powerpc/perf: Thread imc cpuhotplug support

2017-06-08 Thread Madhavan Srinivasan
On Tuesday 06 June 2017 03:57 PM, Thomas Gleixner wrote: On Mon, 5 Jun 2017, Anju T Sudhakar wrote: static void thread_imc_mem_alloc(int cpu_id) { - u64 ldbar_addr, ldbar_value; int phys_id = topology_physical_package_id(cpu_id); per_cpu_add[cpu_id] =

Re: [PATCH] Support POWER8+ PVR

2017-06-01 Thread Madhavan Srinivasan
On Thursday 01 June 2017 01:57 PM, Shriya wrote: Add support for POWER8+ PVR 004c0100 for Garrison patch title could have been, tools/perf/pmu-events: Support additional POWER8+ PVR in mapfile But other than that, Reviewed-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> Sign

Re: [PATCH] Support POWER8+ PVR

2017-06-01 Thread Madhavan Srinivasan
On Thursday 01 June 2017 01:57 PM, Shriya wrote: Add support for POWER8+ PVR 004c0100 for Garrison patch title could have been, tools/perf/pmu-events: Support additional POWER8+ PVR in mapfile But other than that, Reviewed-by: Madhavan Srinivasan Signed-off-by: Shriya --- tools

[PATCH] powerpc/perf: Fix Power9 test_adder field

2017-05-26 Thread Madhavan Srinivasan
ucture. Patch to fix the same. Fixes: 8d911904f3ce4 ('powerpc/perf: Add restrictions to PMC5 in power9 DD1') Reported-by: Shriya <shri...@linux.vnet.ibm.com> Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/perf/power9-pmu.c | 4 ++-- 1 file changed, 2 insertion

[PATCH] powerpc/perf: Fix Power9 test_adder field

2017-05-26 Thread Madhavan Srinivasan
ucture. Patch to fix the same. Fixes: 8d911904f3ce4 ('powerpc/perf: Add restrictions to PMC5 in power9 DD1') Reported-by: Shriya Signed-off-by: Madhavan Srinivasan --- arch/powerpc/perf/power9-pmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/perf/power9-pmu.c

Re: [PATCH v8 05/10] powerpc/perf: IMC pmu cpumask and cpuhotplug support

2017-05-15 Thread Madhavan Srinivasan
Sorry for delayed response. On Wednesday 10 May 2017 05:39 PM, Thomas Gleixner wrote: On Thu, 4 May 2017, Anju T Sudhakar wrote: +/* + * nest_init : Initializes the nest imc engine for the current chip. + * by default the nest engine is disabled. + */ +static void nest_init(int *cpu_opal_rc)

Re: [PATCH v8 05/10] powerpc/perf: IMC pmu cpumask and cpuhotplug support

2017-05-15 Thread Madhavan Srinivasan
Sorry for delayed response. On Wednesday 10 May 2017 05:39 PM, Thomas Gleixner wrote: On Thu, 4 May 2017, Anju T Sudhakar wrote: +/* + * nest_init : Initializes the nest imc engine for the current chip. + * by default the nest engine is disabled. + */ +static void nest_init(int *cpu_opal_rc)

Re: [PATCH v8 02/10] powerpc/powernv: Autoload IMC device driver module

2017-05-11 Thread Madhavan Srinivasan
hem...@linux.vnet.ibm.com> Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/platforms/powernv/Kconfig| 10 +++ arch/powerpc/platforms/powernv/Makefile | 1 + arch/powerpc/platforms/powernv/opal-imc.c | 140 ++ arch/powerpc/

Re: [PATCH v8 02/10] powerpc/powernv: Autoload IMC device driver module

2017-05-11 Thread Madhavan Srinivasan
evice tree parsing logic is separated from the PMU creation functions (which is done in subsequent patches). Patch also adds a CONFIG_HV_PERF_IMC_CTRS for the IMC driver. Signed-off-by: Anju T Sudhakar Signed-off-by: Hemant Kumar Signed-off-by: Madhavan Srinivasan --- arch/powerpc/platfor

Re: [PATCH v8 05/10] powerpc/perf: IMC pmu cpumask and cpuhotplug support

2017-05-11 Thread Madhavan Srinivasan
On Friday 12 May 2017 09:03 AM, Michael Ellerman wrote: Stewart Smith <stew...@linux.vnet.ibm.com> writes: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> writes: * in patch 9 should opal_imc_counters_init return something other than OPAL_SUCCESS in the cas

Re: [PATCH v8 05/10] powerpc/perf: IMC pmu cpumask and cpuhotplug support

2017-05-11 Thread Madhavan Srinivasan
On Friday 12 May 2017 09:03 AM, Michael Ellerman wrote: Stewart Smith writes: Madhavan Srinivasan writes: * in patch 9 should opal_imc_counters_init return something other than OPAL_SUCCESS in the case on invalid arguments? Maybe OPAL_PARAMETER? (I think you fix

Re: [PATCH v8 05/10] powerpc/perf: IMC pmu cpumask and cpuhotplug support

2017-05-11 Thread Madhavan Srinivasan
On Friday 12 May 2017 07:48 AM, Stewart Smith wrote: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> writes: * in patch 9 should opal_imc_counters_init return something other than OPAL_SUCCESS in the case on invalid arguments? Maybe OPAL_PARAMETER? (I think y

Re: [PATCH v8 05/10] powerpc/perf: IMC pmu cpumask and cpuhotplug support

2017-05-11 Thread Madhavan Srinivasan
On Friday 12 May 2017 07:48 AM, Stewart Smith wrote: Madhavan Srinivasan writes: * in patch 9 should opal_imc_counters_init return something other than OPAL_SUCCESS in the case on invalid arguments? Maybe OPAL_PARAMETER? (I think you fix this in a later patch anyway

Re: [PATCH v8 05/10] powerpc/perf: IMC pmu cpumask and cpuhotplug support

2017-05-09 Thread Madhavan Srinivasan
igned-off-by: Hemant Kumar <hem...@linux.vnet.ibm.com> Signed-off-by: Madhavan Srinivasan <ma...@linux.vnet.ibm.com> --- arch/powerpc/include/asm/imc-pmu.h | 4 + arch/powerpc/include/asm/opal-api.h| 12 +- arch/powerpc/include/asm/opal.h| 4

  1   2   3   4   5   6   7   >