Re: [PATCH] irqchip/gic-v3-its: Flush GICR caching for a cross node collection move of an irq

2017-12-20 Thread Ganapatrao Kulkarni
Hi Marc, On Wed, Dec 20, 2017 at 2:56 PM, Marc Zyngier wrote: > On 20/12/17 09:15, Ganapatrao Kulkarni wrote: >> When an interrupt is moved, it is possible that an implementation that >> supports caching might still have cached data for a previous >> (no longer valid) map

[PATCH] irqchip/gic-v3-its: Flush GICR caching for a cross node collection move of an irq

2017-12-20 Thread Ganapatrao Kulkarni
entries after cross node collection migration. Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- drivers/irqchip/irq-gic-v3-its.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 4

[PATCH] irqchip/gic-v3-its: Flush GICR caching for a cross node collection move of an irq

2017-12-20 Thread Ganapatrao Kulkarni
entries after cross node collection migration. Signed-off-by: Ganapatrao Kulkarni --- drivers/irqchip/irq-gic-v3-its.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 4039e64..ea849a1 100644 --- a/drivers/irqchip

[tip:perf/core] perf pmu: Add check for valid cpuid in perf_pmu__find_map()

2017-12-06 Thread tip-bot for Ganapatrao Kulkarni
Commit-ID: de3d0f12be476271d03f1ddb5a7c241c2f07f126 Gitweb: https://git.kernel.org/tip/de3d0f12be476271d03f1ddb5a7c241c2f07f126 Author: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> AuthorDate: Tue, 17 Oct 2017 00:02:22 +0530 Committer: Arnaldo Carvalho de Melo <a...@r

[tip:perf/core] perf pmu: Add check for valid cpuid in perf_pmu__find_map()

2017-12-06 Thread tip-bot for Ganapatrao Kulkarni
Commit-ID: de3d0f12be476271d03f1ddb5a7c241c2f07f126 Gitweb: https://git.kernel.org/tip/de3d0f12be476271d03f1ddb5a7c241c2f07f126 Author: Ganapatrao Kulkarni AuthorDate: Tue, 17 Oct 2017 00:02:22 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 5 Dec 2017 15:43:51 -0300 perf

[tip:perf/core] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events

2017-12-06 Thread tip-bot for Ganapatrao Kulkarni
Commit-ID: d3964221ea14690fe51cb57331b88b5c69e4d2cb Gitweb: https://git.kernel.org/tip/d3964221ea14690fe51cb57331b88b5c69e4d2cb Author: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> AuthorDate: Tue, 17 Oct 2017 00:02:21 +0530 Committer: Arnaldo Carvalho de Melo <a...@r

[tip:perf/core] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events

2017-12-06 Thread tip-bot for Ganapatrao Kulkarni
Commit-ID: d3964221ea14690fe51cb57331b88b5c69e4d2cb Gitweb: https://git.kernel.org/tip/d3964221ea14690fe51cb57331b88b5c69e4d2cb Author: Ganapatrao Kulkarni AuthorDate: Tue, 17 Oct 2017 00:02:21 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 5 Dec 2017 15:43:51 -0300 perf

[tip:perf/core] perf tools arm64: Add support for get_cpuid_str function.

2017-12-06 Thread tip-bot for Ganapatrao Kulkarni
Commit-ID: b57df28893543db3466172088786fae39b7fc3ad Gitweb: https://git.kernel.org/tip/b57df28893543db3466172088786fae39b7fc3ad Author: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> AuthorDate: Tue, 17 Oct 2017 00:02:19 +0530 Committer: Arnaldo Carvalho de Melo <a...@r

[tip:perf/core] perf tools arm64: Add support for get_cpuid_str function.

2017-12-06 Thread tip-bot for Ganapatrao Kulkarni
Commit-ID: b57df28893543db3466172088786fae39b7fc3ad Gitweb: https://git.kernel.org/tip/b57df28893543db3466172088786fae39b7fc3ad Author: Ganapatrao Kulkarni AuthorDate: Tue, 17 Oct 2017 00:02:19 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 5 Dec 2017 10:24:33 -0300 perf

[tip:perf/core] perf pmu: Pass pmu as a parameter to get_cpuid_str()

2017-12-06 Thread tip-bot for Ganapatrao Kulkarni
Commit-ID: 54e32dc0f89ec7fcb87df6c45b096e57f050f22b Gitweb: https://git.kernel.org/tip/54e32dc0f89ec7fcb87df6c45b096e57f050f22b Author: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> AuthorDate: Tue, 17 Oct 2017 00:02:18 +0530 Committer: Arnaldo Carvalho de Melo <a...@r

[tip:perf/core] perf pmu: Pass pmu as a parameter to get_cpuid_str()

2017-12-06 Thread tip-bot for Ganapatrao Kulkarni
Commit-ID: 54e32dc0f89ec7fcb87df6c45b096e57f050f22b Gitweb: https://git.kernel.org/tip/54e32dc0f89ec7fcb87df6c45b096e57f050f22b Author: Ganapatrao Kulkarni AuthorDate: Tue, 17 Oct 2017 00:02:18 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 5 Dec 2017 10:24:33 -0300 perf

[tip:perf/core] perf pmu: Add helper function is_pmu_core to detect PMU CORE devices

2017-12-06 Thread tip-bot for Ganapatrao Kulkarni
Commit-ID: 14b22ae028de56cca980171db625d1e9925c8fba Gitweb: https://git.kernel.org/tip/14b22ae028de56cca980171db625d1e9925c8fba Author: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> AuthorDate: Thu, 24 Aug 2017 16:30:58 +0530 Committer: Arnaldo Carvalho de Melo <a...@r

[tip:perf/core] perf pmu: Add helper function is_pmu_core to detect PMU CORE devices

2017-12-06 Thread tip-bot for Ganapatrao Kulkarni
Commit-ID: 14b22ae028de56cca980171db625d1e9925c8fba Gitweb: https://git.kernel.org/tip/14b22ae028de56cca980171db625d1e9925c8fba Author: Ganapatrao Kulkarni AuthorDate: Thu, 24 Aug 2017 16:30:58 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 5 Dec 2017 15:43:51 -0300 perf

Re: [PATCH v9 3/5] perf utils: use pmu->is_uncore to detect PMU UNCORE devices

2017-12-05 Thread Ganapatrao Kulkarni
>> > >> > I applied the diff but it's failed. >> > >> > jinyao@skl:~/skl-ws/perf-dev/lck-4594/src$ patch -p1 < 1.pat >> > patching file tools/perf/util/pmu.c >> > patch: malformed patch at line 41: *head, struct perf_pmu *pmu) >> > >>

Re: [PATCH v9 3/5] perf utils: use pmu->is_uncore to detect PMU UNCORE devices

2017-12-05 Thread Ganapatrao Kulkarni
he diff but it's failed. >> > >> > jinyao@skl:~/skl-ws/perf-dev/lck-4594/src$ patch -p1 < 1.pat >> > patching file tools/perf/util/pmu.c >> > patch: malformed patch at line 41: *head, struct perf_pmu *pmu) >> > >> > Could you send the patch

Re: [PATCH v9 3/5] perf utils: use pmu->is_uncore to detect PMU UNCORE devices

2017-12-04 Thread Ganapatrao Kulkarni
I run the 'perf stat'. > > With bisect checking, I locate to this patch. > > commit ad8737a08973f5dca632bdd63cf2abc99670e540 > Author: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> > Date: Tue Oct 17 00:02:20 2017 +0530 > > perf pmu: Use pmu->is_uncore to detect UNCORE devices &g

Re: [PATCH v9 3/5] perf utils: use pmu->is_uncore to detect PMU UNCORE devices

2017-12-04 Thread Ganapatrao Kulkarni
I locate to this patch. > > commit ad8737a08973f5dca632bdd63cf2abc99670e540 > Author: Ganapatrao Kulkarni > Date: Tue Oct 17 00:02:20 2017 +0530 > > perf pmu: Use pmu->is_uncore to detect UNCORE devices > > For example (on Intel skylake desktop), > > 1.

Re: [PATCH v9 0/5] Add support for ThunderX2 pmu events using json files

2017-12-03 Thread Ganapatrao Kulkarni
>> >> On Tue, Oct 17, 2017 at 12:02:17AM +0530, Ganapatrao Kulkarni wrote: >>> >>> Extending json/jevent framework for parsing arm64 event files. >>> Adding jevents for ThunderX2 implementation defined PMU events. >>> >>> v9: >>

Re: [PATCH v9 0/5] Add support for ThunderX2 pmu events using json files

2017-12-03 Thread Ganapatrao Kulkarni
7, 2017 at 12:02:17AM +0530, Ganapatrao Kulkarni wrote: >>> >>> Extending json/jevent framework for parsing arm64 event files. >>> Adding jevents for ThunderX2 implementation defined PMU events. >>> >>> v9: >>>- Rebased to [3] and resolve

Re: [PATCH] acpi, numa, ia64: Parse all entries of SRAT memory affinity table

2017-11-21 Thread Ganapatrao Kulkarni
On Tue, Nov 21, 2017 at 6:22 PM, Rafael J. Wysocki <raf...@kernel.org> wrote: > On Tue, Nov 21, 2017 at 5:16 AM, Ganapatrao Kulkarni <gklkm...@gmail.com> > wrote: >> On Thu, Nov 16, 2017 at 12:16 AM, Luck, Tony <tony.l...@intel.com> wrote: >>>> This c

Re: [PATCH] acpi, numa, ia64: Parse all entries of SRAT memory affinity table

2017-11-21 Thread Ganapatrao Kulkarni
On Tue, Nov 21, 2017 at 6:22 PM, Rafael J. Wysocki wrote: > On Tue, Nov 21, 2017 at 5:16 AM, Ganapatrao Kulkarni > wrote: >> On Thu, Nov 16, 2017 at 12:16 AM, Luck, Tony wrote: >>>> This check is already added in x86 and extending same to ia64. >>> >>

Re: [PATCH] acpi, numa, ia64: Parse all entries of SRAT memory affinity table

2017-11-20 Thread Ganapatrao Kulkarni
On Thu, Nov 16, 2017 at 12:16 AM, Luck, Tony wrote: >> This check is already added in x86 and extending same to ia64. > > Looks OK. > > Acked-by: Tony Luck thanks Tony. ACPI Maintainers, any comments on this patch? i can send rebasing to 4.15-rc1?

Re: [PATCH] acpi, numa, ia64: Parse all entries of SRAT memory affinity table

2017-11-20 Thread Ganapatrao Kulkarni
On Thu, Nov 16, 2017 at 12:16 AM, Luck, Tony wrote: >> This check is already added in x86 and extending same to ia64. > > Looks OK. > > Acked-by: Tony Luck thanks Tony. ACPI Maintainers, any comments on this patch? i can send rebasing to 4.15-rc1? thanks Ganapat

[PATCH] acpi, numa, ia64: Parse all entries of SRAT memory affinity table

2017-11-15 Thread Ganapatrao Kulkarni
in acpi driver code and let architecture code check for allowed memblocks count. This check is already added in x86 and extending same to ia64. Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- arch/ia64/kernel/acpi.c | 5 + drivers/acpi/numa.c | 3 +-- 2

[PATCH] acpi, numa, ia64: Parse all entries of SRAT memory affinity table

2017-11-15 Thread Ganapatrao Kulkarni
in acpi driver code and let architecture code check for allowed memblocks count. This check is already added in x86 and extending same to ia64. Signed-off-by: Ganapatrao Kulkarni --- arch/ia64/kernel/acpi.c | 5 + drivers/acpi/numa.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions

Re: [PATCH 3/4] iommu/arm-smmu-v3: Use NUMA memory allocations for stream tables and comamnd queues

2017-11-06 Thread Ganapatrao Kulkarni
On Wed, Oct 18, 2017 at 7:06 PM, Robin Murphy <robin.mur...@arm.com> wrote: > On 04/10/17 14:53, Ganapatrao Kulkarni wrote: >> Hi Robin, >> >> >> On Thu, Sep 21, 2017 at 5:28 PM, Robin Murphy <robin.mur...@arm.com> wrote: >>> [+Christoph and Marek

Re: [PATCH 3/4] iommu/arm-smmu-v3: Use NUMA memory allocations for stream tables and comamnd queues

2017-11-06 Thread Ganapatrao Kulkarni
On Wed, Oct 18, 2017 at 7:06 PM, Robin Murphy wrote: > On 04/10/17 14:53, Ganapatrao Kulkarni wrote: >> Hi Robin, >> >> >> On Thu, Sep 21, 2017 at 5:28 PM, Robin Murphy wrote: >>> [+Christoph and Marek] >>> >>> On 21/09/17 09:59, Ganapat

Re: [PATCH] perf vendor events arm64: Add hip08 implementation defined PMU core events

2017-10-25 Thread Ganapatrao Kulkarni
Hi John, On Thu, Oct 19, 2017 at 3:59 PM, John Garry wrote: >>> >>> #Family-model,Version,Filename,EventType >>> 0x420f5160,v1,cavium,core >>> 0x420f5161,v1,cavium,core >> >> >> certainly, there is Part number(PartNum, bits [15:4] ) change from >> thunderx2

Re: [PATCH] perf vendor events arm64: Add hip08 implementation defined PMU core events

2017-10-25 Thread Ganapatrao Kulkarni
Hi John, On Thu, Oct 19, 2017 at 3:59 PM, John Garry wrote: >>> >>> #Family-model,Version,Filename,EventType >>> 0x420f5160,v1,cavium,core >>> 0x420f5161,v1,cavium,core >> >> >> certainly, there is Part number(PartNum, bits [15:4] ) change from >> thunderx2 to thunderx3. >>

Re: [PATCH v9 0/5] Add support for ThunderX2 pmu events using json files

2017-10-18 Thread Ganapatrao Kulkarni
Hi Arnaldo, Will, can this be queued to next? On Tue, Oct 17, 2017 at 12:02 AM, Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> wrote: > Extending json/jevent framework for parsing arm64 event files. > Adding jevents for ThunderX2 implementation defined PMU events. > >

Re: [PATCH v9 0/5] Add support for ThunderX2 pmu events using json files

2017-10-18 Thread Ganapatrao Kulkarni
Hi Arnaldo, Will, can this be queued to next? On Tue, Oct 17, 2017 at 12:02 AM, Ganapatrao Kulkarni wrote: > Extending json/jevent framework for parsing arm64 event files. > Adding jevents for ThunderX2 implementation defined PMU events. > > v9: >- Rebased to [3] and re

Re: [PATCH] perf vendor events arm64: Add hip08 implementation defined PMU core events

2017-10-18 Thread Ganapatrao Kulkarni
/www.spinics.net/lists/arm-kernel/msg611895.html >>>>> >>>>> Signed-off-by: Shaokun Zhang <zhangshao...@hisilicon.com> >>>>> Cc: Peter Zijlstra <pet...@infradead.org> >>>>> Cc: Ingo Molnar <mi...@redhat.com> >>>>&

Re: [PATCH] perf vendor events arm64: Add hip08 implementation defined PMU core events

2017-10-18 Thread Ganapatrao Kulkarni
kernel/msg611895.html >>>>> >>>>> Signed-off-by: Shaokun Zhang >>>>> Cc: Peter Zijlstra >>>>> Cc: Ingo Molnar >>>>> Cc: Arnaldo Carvalho de Melo >>>>> Cc: Alexander Shishkin >>>>> Cc: Will Deaco

[PATCH v9 3/5] perf utils: use pmu->is_uncore to detect PMU UNCORE devices

2017-10-16 Thread Ganapatrao Kulkarni
t PMU") has introduced pmu->is_uncore, which is set to PMU UNCORE devices only. Adding changes to use pmu->is_uncore to identify UNCORE devices. Acked-by: Will Deacon <will.dea...@arm.com> Tested-by: Shaokun Zhang <zhangshao...@hisilicon.com> Signed-off-by: Ganapatra

[PATCH v9 3/5] perf utils: use pmu->is_uncore to detect PMU UNCORE devices

2017-10-16 Thread Ganapatrao Kulkarni
t PMU") has introduced pmu->is_uncore, which is set to PMU UNCORE devices only. Adding changes to use pmu->is_uncore to identify UNCORE devices. Acked-by: Will Deacon Tested-by: Shaokun Zhang Signed-off-by: Ganapatrao Kulkarni --- tools/perf/util/pmu.c | 11 +++ 1 file chang

[PATCH v9 5/5] perf utils: add check for valid cpuid in function perf_pmu__find_map

2017-10-16 Thread Ganapatrao Kulkarni
On some platforms(arm/arm64) which uses cpus map to get corresponding cpuid string, cpuid can be NULL for PMUs other than CORE PMUs. Adding check for NULL cpuid in function perf_pmu__find_map to avoid segmentation fault. Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.

[PATCH v9 5/5] perf utils: add check for valid cpuid in function perf_pmu__find_map

2017-10-16 Thread Ganapatrao Kulkarni
On some platforms(arm/arm64) which uses cpus map to get corresponding cpuid string, cpuid can be NULL for PMUs other than CORE PMUs. Adding check for NULL cpuid in function perf_pmu__find_map to avoid segmentation fault. Signed-off-by: Ganapatrao Kulkarni --- tools/perf/util/pmu.c | 6 ++ 1

[PATCH v9 1/5] perf utils: passing pmu as a parameter to function get_cpuid_str

2017-10-16 Thread Ganapatrao Kulkarni
t; Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- tools/perf/arch/powerpc/util/header.c | 2 +- tools/perf/arch/x86/util/header.c | 2 +- tools/perf/util/header.h | 3 ++- tools/perf/util/metricgroup.c | 4 ++-- tools/perf/util/pmu.c

[PATCH v9 1/5] perf utils: passing pmu as a parameter to function get_cpuid_str

2017-10-16 Thread Ganapatrao Kulkarni
cpuid string will not be same on all CPUs on heterogeneous platforms like ARM's big.LITTLE, adding provision(using pmu->cpus) to find cpuid string from associated CPUs of PMU CORE device. also optimise arguments to function pmu_add_cpu_aliases. Acked-by: Will Deacon Signed-off-by: Ganapat

[PATCH v9 4/5] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events

2017-10-16 Thread Ganapatrao Kulkarni
This is not a full event list, but a short list of useful events. Acked-by: Will Deacon <will.dea...@arm.com> Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- .../arch/arm64/cavium/thunderx2-imp-def.json | 62 ++ tools/perf/pmu-event

[PATCH v9 2/5] perf tools arm64: Add support for get_cpuid_str function.

2017-10-16 Thread Ganapatrao Kulkarni
function get_cpuid_str returns MIDR string of the first online cpu from the range of cpus associated with the PMU CORE device. Acked-by: Will Deacon <will.dea...@arm.com> Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- tools/perf/arch/arm64/util/Build|

[PATCH v9 4/5] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events

2017-10-16 Thread Ganapatrao Kulkarni
This is not a full event list, but a short list of useful events. Acked-by: Will Deacon Signed-off-by: Ganapatrao Kulkarni --- .../arch/arm64/cavium/thunderx2-imp-def.json | 62 ++ tools/perf/pmu-events/arch/arm64/mapfile.csv | 15 ++ 2 files changed, 77

[PATCH v9 2/5] perf tools arm64: Add support for get_cpuid_str function.

2017-10-16 Thread Ganapatrao Kulkarni
function get_cpuid_str returns MIDR string of the first online cpu from the range of cpus associated with the PMU CORE device. Acked-by: Will Deacon Signed-off-by: Ganapatrao Kulkarni --- tools/perf/arch/arm64/util/Build| 1 + tools/perf/arch/arm64/util/header.c | 65

[PATCH v9 0/5] Add support for ThunderX2 pmu events using json files

2017-10-16 Thread Ganapatrao Kulkarni
string from associated cpus of pmu core device. v1: Initial patchset. Ganapatrao Kulkarni (5): perf utils: passing pmu as a parameter to function get_cpuid_str perf tools arm64: Add support for get_cpuid_str function. perf utils: use pmu->is_uncore to detect PMU CORE/UNCORE devices p

[PATCH v9 0/5] Add support for ThunderX2 pmu events using json files

2017-10-16 Thread Ganapatrao Kulkarni
string from associated cpus of pmu core device. v1: Initial patchset. Ganapatrao Kulkarni (5): perf utils: passing pmu as a parameter to function get_cpuid_str perf tools arm64: Add support for get_cpuid_str function. perf utils: use pmu->is_uncore to detect PMU CORE/UNCORE devices p

Re: [PATCH v8 0/4] Add support for ThunderX2 pmu events using json files

2017-10-12 Thread Ganapatrao Kulkarni
On Thu, Oct 12, 2017 at 8:54 PM, Will Deacon <will.dea...@arm.com> wrote: > On Thu, Oct 12, 2017 at 07:41:12PM +0530, Ganapatrao Kulkarni wrote: >> Extending json/jevent framework for parsing arm64 event files. >> Adding jevents for ThunderX2 implementation defined

Re: [PATCH v8 0/4] Add support for ThunderX2 pmu events using json files

2017-10-12 Thread Ganapatrao Kulkarni
On Thu, Oct 12, 2017 at 8:54 PM, Will Deacon wrote: > On Thu, Oct 12, 2017 at 07:41:12PM +0530, Ganapatrao Kulkarni wrote: >> Extending json/jevent framework for parsing arm64 event files. >> Adding jevents for ThunderX2 implementation defined PMU events. >> >> v

[PATCH v8 4/4] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events

2017-10-12 Thread Ganapatrao Kulkarni
This is not a full event list, but a short list of useful events. Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- .../arch/arm64/cavium/thunderx2-imp-def.json | 62 ++ tools/perf/pmu-events/arch/arm64/mapfile.csv | 15 ++ 2

[PATCH v8 1/4] perf utils: passing pmu as a parameter to function get_cpuid_str

2017-10-12 Thread Ganapatrao Kulkarni
cpuid string will not be same on all CPUs on heterogeneous platforms like ARM's big.LITTLE, adding provision(using pmu->cpus) to find cpuid string from associated CPUs of PMU CORE device. also optimise arguments to function pmu_add_cpu_aliases. Signed-off-by: Ganapatrao Kulka

[PATCH v8 3/4] perf utils: Add helper function is_pmu_core to detect PMU CORE devices

2017-10-12 Thread Ganapatrao Kulkarni
y: Shaokun Zhang <zhangshao...@hisilicon.com> Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- tools/perf/util/pmu.c | 39 +++ 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/tools/perf/util/pmu.c b/tools/perf/util/

[PATCH v8 0/4] Add support for ThunderX2 pmu events using json files

2017-10-12 Thread Ganapatrao Kulkarni
suggestions. - Added provision for get_cpuid_str to get cpu id string from associated cpus of pmu core device. v1: Initial patchset. Ganapatrao Kulkarni (4): perf utils: passing pmu as a parameter to function get_cpuid_str perf tools arm64: Add support for get_cpuid_str function. perf utils

[PATCH v8 4/4] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events

2017-10-12 Thread Ganapatrao Kulkarni
This is not a full event list, but a short list of useful events. Signed-off-by: Ganapatrao Kulkarni --- .../arch/arm64/cavium/thunderx2-imp-def.json | 62 ++ tools/perf/pmu-events/arch/arm64/mapfile.csv | 15 ++ 2 files changed, 77 insertions(+) create mode

[PATCH v8 1/4] perf utils: passing pmu as a parameter to function get_cpuid_str

2017-10-12 Thread Ganapatrao Kulkarni
cpuid string will not be same on all CPUs on heterogeneous platforms like ARM's big.LITTLE, adding provision(using pmu->cpus) to find cpuid string from associated CPUs of PMU CORE device. also optimise arguments to function pmu_add_cpu_aliases. Signed-off-by: Ganapatrao Kulkarni --- tools/p

[PATCH v8 3/4] perf utils: Add helper function is_pmu_core to detect PMU CORE devices

2017-10-12 Thread Ganapatrao Kulkarni
On some platforms, PMU core devices sysfs name is not cpu. Adding function is_pmu_core to detect PMU core devices using core device specific hints in sysfs. For arm64 platforms, all core devices have file "cpus" in sysfs. Acked-by: Will Deacon Tested-by: Shaokun Zhang Signed-off-by:

[PATCH v8 0/4] Add support for ThunderX2 pmu events using json files

2017-10-12 Thread Ganapatrao Kulkarni
suggestions. - Added provision for get_cpuid_str to get cpu id string from associated cpus of pmu core device. v1: Initial patchset. Ganapatrao Kulkarni (4): perf utils: passing pmu as a parameter to function get_cpuid_str perf tools arm64: Add support for get_cpuid_str function. perf utils

[PATCH v8 2/4] perf tools arm64: Add support for get_cpuid_str function.

2017-10-12 Thread Ganapatrao Kulkarni
function get_cpuid_str returns MIDR string of the first online cpu from the range of cpus associated with the pmu core device. Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- tools/perf/arch/arm64/util/Build| 1 + tools/perf/arch/arm64/util/header.

[PATCH v8 2/4] perf tools arm64: Add support for get_cpuid_str function.

2017-10-12 Thread Ganapatrao Kulkarni
function get_cpuid_str returns MIDR string of the first online cpu from the range of cpus associated with the pmu core device. Signed-off-by: Ganapatrao Kulkarni --- tools/perf/arch/arm64/util/Build| 1 + tools/perf/arch/arm64/util/header.c | 65 + 2

Re: [PATCH v7 0/4] Add support for ThunderX2 pmu events using json files

2017-10-12 Thread Ganapatrao Kulkarni
On Thu, Oct 12, 2017 at 5:15 PM, Zhangshaokun <zhangshao...@hisilicon.com> wrote: > Hi Will, > > On 2017/10/12 18:58, Will Deacon wrote: >> On Thu, Oct 12, 2017 at 04:20:06PM +0530, Ganapatrao Kulkarni wrote: >>> Hi Robert, >>> >>> On Thu, Oct 12,

Re: [PATCH v7 0/4] Add support for ThunderX2 pmu events using json files

2017-10-12 Thread Ganapatrao Kulkarni
On Thu, Oct 12, 2017 at 5:15 PM, Zhangshaokun wrote: > Hi Will, > > On 2017/10/12 18:58, Will Deacon wrote: >> On Thu, Oct 12, 2017 at 04:20:06PM +0530, Ganapatrao Kulkarni wrote: >>> Hi Robert, >>> >>> On Thu, Oct 12, 2017 at 4:08 PM, Robert Richter wr

Re: [PATCH v7 0/4] Add support for ThunderX2 pmu events using json files

2017-10-12 Thread Ganapatrao Kulkarni
Hi Robert, On Thu, Oct 12, 2017 at 4:08 PM, Robert Richter <r...@kernel.org> wrote: > On 12.10.17 16:04:15, Ganapatrao Kulkarni wrote: > >> tools/perf/arch/arm64/util/Build | 1 + >> tools/perf/arch/arm64/util/header.c| 65 >> ++

Re: [PATCH v7 0/4] Add support for ThunderX2 pmu events using json files

2017-10-12 Thread Ganapatrao Kulkarni
Hi Robert, On Thu, Oct 12, 2017 at 4:08 PM, Robert Richter wrote: > On 12.10.17 16:04:15, Ganapatrao Kulkarni wrote: > >> tools/perf/arch/arm64/util/Build | 1 + >> tools/perf/arch/arm64/util/header.c| 65 >> ++ >

[PATCH v7 3/4] perf utils: Add helper function is_pmu_core to detect PMU CORE devices

2017-10-12 Thread Ganapatrao Kulkarni
y: Shaokun Zhang <zhangshao...@hisilicon.com> Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- tools/perf/util/pmu.c | 39 +++ 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/tools/perf/util/pmu.c b/tools/perf/util/

[PATCH v7 4/4] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events

2017-10-12 Thread Ganapatrao Kulkarni
This is not a full event list, but a short list of useful events. Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- tools/perf/pmu-events/arch/arm64/mapfile.csv | 15 ++ .../arch/arm64/thunderx2/thunderx2-imp-def.json| 62 ++ 2

[PATCH v7 3/4] perf utils: Add helper function is_pmu_core to detect PMU CORE devices

2017-10-12 Thread Ganapatrao Kulkarni
On some platforms, PMU core devices sysfs name is not cpu. Adding function is_pmu_core to detect PMU core devices using core device specific hints in sysfs. For arm64 platforms, all core devices have file "cpus" in sysfs. Acked-by: Will Deacon Tested-by: Shaokun Zhang Signed-off-by:

[PATCH v7 4/4] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events

2017-10-12 Thread Ganapatrao Kulkarni
This is not a full event list, but a short list of useful events. Signed-off-by: Ganapatrao Kulkarni --- tools/perf/pmu-events/arch/arm64/mapfile.csv | 15 ++ .../arch/arm64/thunderx2/thunderx2-imp-def.json| 62 ++ 2 files changed, 77 insertions(+) create mode

[PATCH v7 2/4] perf tools arm64: Add support for get_cpuid_str function.

2017-10-12 Thread Ganapatrao Kulkarni
function get_cpuid_str returns MIDR string of the first online cpu from the range of cpus associated with the pmu core device. Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- tools/perf/arch/arm64/util/Build| 1 + tools/perf/arch/arm64/util/header.

[PATCH v7 2/4] perf tools arm64: Add support for get_cpuid_str function.

2017-10-12 Thread Ganapatrao Kulkarni
function get_cpuid_str returns MIDR string of the first online cpu from the range of cpus associated with the pmu core device. Signed-off-by: Ganapatrao Kulkarni --- tools/perf/arch/arm64/util/Build| 1 + tools/perf/arch/arm64/util/header.c | 65 + 2

[PATCH v7 0/4] Add support for ThunderX2 pmu events using json files

2017-10-12 Thread Ganapatrao Kulkarni
to get cpu id string from associated cpus of pmu core device. v1: Initial patchset. Ganapatrao Kulkarni (4): perf utils: passing pmu as a parameter to function get_cpuid_str perf tools arm64: Add support for get_cpuid_str function. perf utils: Add helper function is_pmu_core to detect PMU

[PATCH v7 0/4] Add support for ThunderX2 pmu events using json files

2017-10-12 Thread Ganapatrao Kulkarni
to get cpu id string from associated cpus of pmu core device. v1: Initial patchset. Ganapatrao Kulkarni (4): perf utils: passing pmu as a parameter to function get_cpuid_str perf tools arm64: Add support for get_cpuid_str function. perf utils: Add helper function is_pmu_core to detect PMU

[PATCH v7 1/4] perf utils: passing pmu as a parameter to function get_cpuid_str

2017-10-12 Thread Ganapatrao Kulkarni
cpuid string will not be same on all CPUs on heterogeneous platforms like ARM's big.LITTLE, adding provision(using pmu->cpus) to find cpuid string from associated CPUs of PMU CORE device. also optimise arguments to function pmu_add_cpu_aliases. Signed-off-by: Ganapatrao Kulka

[PATCH v7 1/4] perf utils: passing pmu as a parameter to function get_cpuid_str

2017-10-12 Thread Ganapatrao Kulkarni
cpuid string will not be same on all CPUs on heterogeneous platforms like ARM's big.LITTLE, adding provision(using pmu->cpus) to find cpuid string from associated CPUs of PMU CORE device. also optimise arguments to function pmu_add_cpu_aliases. Signed-off-by: Ganapatrao Kulkarni --- tools/p

Re: [PATCH v6 2/4] perf tools arm64: Add support for get_cpuid_str function.

2017-10-11 Thread Ganapatrao Kulkarni
On Wed, Oct 11, 2017 at 5:43 PM, Will Deacon <will.dea...@arm.com> wrote: > On Thu, Aug 24, 2017 at 05:33:47PM +0530, Ganapatrao Kulkarni wrote: >> function get_cpuid_str returns MIDR string of the first online >> cpu from the range of cpus associated with the pmu core dev

Re: [PATCH v6 2/4] perf tools arm64: Add support for get_cpuid_str function.

2017-10-11 Thread Ganapatrao Kulkarni
On Wed, Oct 11, 2017 at 5:43 PM, Will Deacon wrote: > On Thu, Aug 24, 2017 at 05:33:47PM +0530, Ganapatrao Kulkarni wrote: >> function get_cpuid_str returns MIDR string of the first online >> cpu from the range of cpus associated with the pmu core device. >> >> Signed-

Re: [PATCH v6 4/4] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events

2017-10-11 Thread Ganapatrao Kulkarni
haokun, >> > > >> > > On 29.08.17 17:26:00, Zhangshaokun wrote: >> > > > On 2017/8/24 20:03, Ganapatrao Kulkarni wrote: >> > > > > This is not a full event list, but a short list of useful events. >> > > > > >> > &g

Re: [PATCH v6 4/4] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events

2017-10-11 Thread Ganapatrao Kulkarni
>> > > On 29.08.17 17:26:00, Zhangshaokun wrote: >> > > > On 2017/8/24 20:03, Ganapatrao Kulkarni wrote: >> > > > > This is not a full event list, but a short list of useful events. >> > > > > >> > > >

Re: [PATCH 3/4] iommu/arm-smmu-v3: Use NUMA memory allocations for stream tables and comamnd queues

2017-10-04 Thread Ganapatrao Kulkarni
Hi Robin, On Thu, Sep 21, 2017 at 5:28 PM, Robin Murphy <robin.mur...@arm.com> wrote: > [+Christoph and Marek] > > On 21/09/17 09:59, Ganapatrao Kulkarni wrote: >> Introduce smmu_alloc_coherent and smmu_free_coherent functions to >> allocate/free dma coherent memor

Re: [PATCH 3/4] iommu/arm-smmu-v3: Use NUMA memory allocations for stream tables and comamnd queues

2017-10-04 Thread Ganapatrao Kulkarni
Hi Robin, On Thu, Sep 21, 2017 at 5:28 PM, Robin Murphy wrote: > [+Christoph and Marek] > > On 21/09/17 09:59, Ganapatrao Kulkarni wrote: >> Introduce smmu_alloc_coherent and smmu_free_coherent functions to >> allocate/free dma coherent memory from NUMA node associated with

Re: [PATCH 4/4] iommu/dma, numa: Use NUMA aware memory allocations in __iommu_dma_alloc_pages

2017-09-22 Thread Ganapatrao Kulkarni
Hi Robin, On Thu, Sep 21, 2017 at 5:11 PM, Robin Murphy <robin.mur...@arm.com> wrote: > On 21/09/17 09:59, Ganapatrao Kulkarni wrote: >> Change function __iommu_dma_alloc_pages to allocate memory/pages >> for dma from respective device numa node. >> >> S

Re: [PATCH 4/4] iommu/dma, numa: Use NUMA aware memory allocations in __iommu_dma_alloc_pages

2017-09-22 Thread Ganapatrao Kulkarni
Hi Robin, On Thu, Sep 21, 2017 at 5:11 PM, Robin Murphy wrote: > On 21/09/17 09:59, Ganapatrao Kulkarni wrote: >> Change function __iommu_dma_alloc_pages to allocate memory/pages >> for dma from respective device numa node. >> >> Signed-off-by: Ganapatrao Kulkarni &

Re: [PATCH 2/4] numa, iommu/io-pgtable-arm: Use NUMA aware memory allocation for smmu translation tables

2017-09-22 Thread Ganapatrao Kulkarni
On Thu, Sep 21, 2017 at 4:41 PM, Robin Murphy <robin.mur...@arm.com> wrote: > On 21/09/17 09:59, Ganapatrao Kulkarni wrote: >> function __arm_lpae_alloc_pages is used to allcoated memory for smmu >> translation tables. updating function to allocate memory/pages >> from t

Re: [PATCH 2/4] numa, iommu/io-pgtable-arm: Use NUMA aware memory allocation for smmu translation tables

2017-09-22 Thread Ganapatrao Kulkarni
On Thu, Sep 21, 2017 at 4:41 PM, Robin Murphy wrote: > On 21/09/17 09:59, Ganapatrao Kulkarni wrote: >> function __arm_lpae_alloc_pages is used to allcoated memory for smmu >> translation tables. updating function to allocate memory/pages >> from the proximity domain of SM

[PATCH 3/4] iommu/arm-smmu-v3: Use NUMA memory allocations for stream tables and comamnd queues

2017-09-21 Thread Ganapatrao Kulkarni
Introduce smmu_alloc_coherent and smmu_free_coherent functions to allocate/free dma coherent memory from NUMA node associated with SMMU. Replace all calls of dmam_alloc_coherent with smmu_alloc_coherent for SMMU stream tables and command queues. Signed-off-by: Ganapatrao Kulkarni

[PATCH 3/4] iommu/arm-smmu-v3: Use NUMA memory allocations for stream tables and comamnd queues

2017-09-21 Thread Ganapatrao Kulkarni
Introduce smmu_alloc_coherent and smmu_free_coherent functions to allocate/free dma coherent memory from NUMA node associated with SMMU. Replace all calls of dmam_alloc_coherent with smmu_alloc_coherent for SMMU stream tables and command queues. Signed-off-by: Ganapatrao Kulkarni --- drivers

[PATCH 1/4] mm: move function alloc_pages_exact_nid out of __meminit

2017-09-21 Thread Ganapatrao Kulkarni
This function can be used on NUMA systems in place of alloc_pages_exact Adding code to export and to remove __meminit section tagging. Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- include/linux/gfp.h | 2 +- mm/page_alloc.c | 3 ++- 2 files changed, 3 inse

[PATCH 1/4] mm: move function alloc_pages_exact_nid out of __meminit

2017-09-21 Thread Ganapatrao Kulkarni
This function can be used on NUMA systems in place of alloc_pages_exact Adding code to export and to remove __meminit section tagging. Signed-off-by: Ganapatrao Kulkarni --- include/linux/gfp.h | 2 +- mm/page_alloc.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 2/4] numa, iommu/io-pgtable-arm: Use NUMA aware memory allocation for smmu translation tables

2017-09-21 Thread Ganapatrao Kulkarni
function __arm_lpae_alloc_pages is used to allcoated memory for smmu translation tables. updating function to allocate memory/pages from the proximity domain of SMMU device. Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- drivers/iommu/io-pgtable-arm.c | 4 +++-

[PATCH 4/4] iommu/dma, numa: Use NUMA aware memory allocations in __iommu_dma_alloc_pages

2017-09-21 Thread Ganapatrao Kulkarni
Change function __iommu_dma_alloc_pages to allocate memory/pages for dma from respective device numa node. Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- drivers/iommu/dma-iommu.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff

[PATCH 2/4] numa, iommu/io-pgtable-arm: Use NUMA aware memory allocation for smmu translation tables

2017-09-21 Thread Ganapatrao Kulkarni
function __arm_lpae_alloc_pages is used to allcoated memory for smmu translation tables. updating function to allocate memory/pages from the proximity domain of SMMU device. Signed-off-by: Ganapatrao Kulkarni --- drivers/iommu/io-pgtable-arm.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH 4/4] iommu/dma, numa: Use NUMA aware memory allocations in __iommu_dma_alloc_pages

2017-09-21 Thread Ganapatrao Kulkarni
Change function __iommu_dma_alloc_pages to allocate memory/pages for dma from respective device numa node. Signed-off-by: Ganapatrao Kulkarni --- drivers/iommu/dma-iommu.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/iommu/dma-iommu.c b/drivers

[PATCH 0/4] numa, iommu/smmu: IOMMU/SMMU driver optimization for NUMA systems

2017-09-21 Thread Ganapatrao Kulkarni
Adding numa aware memory allocations used for iommu dma allocation and memory allocated for SMMU stream tables, page walk tables and command queues. With this patch, iperf testing on ThunderX2, with 40G NIC card on NODE 1 PCI shown same performance(around 30% improvement) as NODE 0. Ganapatrao

[PATCH 0/4] numa, iommu/smmu: IOMMU/SMMU driver optimization for NUMA systems

2017-09-21 Thread Ganapatrao Kulkarni
Adding numa aware memory allocations used for iommu dma allocation and memory allocated for SMMU stream tables, page walk tables and command queues. With this patch, iperf testing on ThunderX2, with 40G NIC card on NODE 1 PCI shown same performance(around 30% improvement) as NODE 0. Ganapatrao

Re: [PATCH v6 0/4] Add support for ThunderX2 pmu events using json files

2017-09-20 Thread Ganapatrao Kulkarni
Hi Will, any further comments? On Thu, Aug 24, 2017 at 5:33 PM, Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> wrote: > Extending json/jevent framework for parsing arm64 event files. > Adding jevents for ThunderX2 implementation defined PMU events. > > v6 : Address

Re: [PATCH v6 0/4] Add support for ThunderX2 pmu events using json files

2017-09-20 Thread Ganapatrao Kulkarni
Hi Will, any further comments? On Thu, Aug 24, 2017 at 5:33 PM, Ganapatrao Kulkarni wrote: > Extending json/jevent framework for parsing arm64 event files. > Adding jevents for ThunderX2 implementation defined PMU events. > > v6 : Addressed comments [1] [2] > > [1] https://pa

[PATCH v6 1/4] perf utils: passing pmu as a parameter to function get_cpuid_str

2017-08-24 Thread Ganapatrao Kulkarni
cpuid string will not be same on all CPUs on heterogeneous platforms like ARM's big.LITTLE, adding provision(using pmu->cpus) to find cpuid string from associated CPUs of PMU CORE device. Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- tools/perf/arch/pow

[PATCH v6 1/4] perf utils: passing pmu as a parameter to function get_cpuid_str

2017-08-24 Thread Ganapatrao Kulkarni
cpuid string will not be same on all CPUs on heterogeneous platforms like ARM's big.LITTLE, adding provision(using pmu->cpus) to find cpuid string from associated CPUs of PMU CORE device. Signed-off-by: Ganapatrao Kulkarni --- tools/perf/arch/powerpc/util/header.c | 2 +- tools/perf/arch/

[PATCH v6 4/4] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events

2017-08-24 Thread Ganapatrao Kulkarni
This is not a full event list, but a short list of useful events. Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- tools/perf/pmu-events/arch/arm64/mapfile.csv | 15 ++ .../arm64/thunderx2/implementation-defined.json| 62 ++ 2

[PATCH v6 4/4] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events

2017-08-24 Thread Ganapatrao Kulkarni
This is not a full event list, but a short list of useful events. Signed-off-by: Ganapatrao Kulkarni --- tools/perf/pmu-events/arch/arm64/mapfile.csv | 15 ++ .../arm64/thunderx2/implementation-defined.json| 62 ++ 2 files changed, 77 insertions(+) create mode

[PATCH v6 0/4] Add support for ThunderX2 pmu events using json files

2017-08-24 Thread Ganapatrao Kulkarni
device. v1: Initial patchset. Ganapatrao Kulkarni (4): perf utils: passing pmu as a parameter to function get_cpuid_str perf tools arm64: Add support for get_cpuid_str function. perf utils: Add helper function is_pmu_core to detect PMU CORE devices perf vendor events arm64: Add ThunderX2

[PATCH v6 0/4] Add support for ThunderX2 pmu events using json files

2017-08-24 Thread Ganapatrao Kulkarni
device. v1: Initial patchset. Ganapatrao Kulkarni (4): perf utils: passing pmu as a parameter to function get_cpuid_str perf tools arm64: Add support for get_cpuid_str function. perf utils: Add helper function is_pmu_core to detect PMU CORE devices perf vendor events arm64: Add ThunderX2

[PATCH v6 3/4] perf utils: Add helper function is_pmu_core to detect PMU CORE devices

2017-08-24 Thread Ganapatrao Kulkarni
m> Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulka...@cavium.com> --- tools/perf/util/pmu.c | 39 +++ 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index aefdbd1..c2fe70f 100644 --- a/tools/perf/

<    1   2   3   4   5   6   >