[PATCH 2/8] x86/intel_rdt/mba: Generalize the naming to get ready for MBA

2017-02-17 Thread Vikas Shivappa
is added to separate from memory specific apis. - MSR update api names are changed from having cbm to ctrl. - info file API names are set to reflect generic default_ctrl or control values rather than cbm. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/include/asm/intel

[PATCH 2/8] x86/intel_rdt/mba: Generalize the naming to get ready for MBA

2017-02-17 Thread Vikas Shivappa
is added to separate from memory specific apis. - MSR update api names are changed from having cbm to ctrl. - info file API names are set to reflect generic default_ctrl or control values rather than cbm. Signed-off-by: Vikas Shivappa --- arch/x86/include/asm/intel_rdt.h | 22

[PATCH 1/8] Documentation, x86: Documentation for Intel Mem b/w allocation

2017-02-17 Thread Vikas Shivappa
Update the intel_rdt_ui documentation to have Memory bandwidth(b/w) allocation interface usage. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- Documentation/x86/intel_rdt_ui.txt | 74 ++ 1 file changed, 67 insertions(+), 7 del

[PATCH 1/8] Documentation, x86: Documentation for Intel Mem b/w allocation

2017-02-17 Thread Vikas Shivappa
Update the intel_rdt_ui documentation to have Memory bandwidth(b/w) allocation interface usage. Signed-off-by: Vikas Shivappa --- Documentation/x86/intel_rdt_ui.txt | 74 ++ 1 file changed, 67 insertions(+), 7 deletions(-) diff --git a/Documentation/x86

[PATCH 3/8] x86/intel_rdt/mba: Memory b/w allocation feature detect

2017-02-17 Thread Vikas Shivappa
Detect MBA feature if CPUID.(EAX=10H, ECX=0):EBX.L2[bit 3] = 1. Add supporting data structures to detect feature details which is done in later patch using CPUID with EAX=10H, ECX= 3. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/include/asm/cpufeatures

[PATCH 3/8] x86/intel_rdt/mba: Memory b/w allocation feature detect

2017-02-17 Thread Vikas Shivappa
Detect MBA feature if CPUID.(EAX=10H, ECX=0):EBX.L2[bit 3] = 1. Add supporting data structures to detect feature details which is done in later patch using CPUID with EAX=10H, ECX= 3. Signed-off-by: Vikas Shivappa --- arch/x86/include/asm/cpufeatures.h | 2 ++ arch/x86/include/asm/intel_rdt.h

[PATCH 6/8] x86/intel_rdt/mba: Add info directory files for MBA

2017-02-17 Thread Vikas Shivappa
are 10,20,30... Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/include/asm/intel_rdt.h | 2 + arch/x86/kernel/cpu/intel_rdt.c | 1 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 64 3 files changed, 67 insertions(+)

[PATCH 6/8] x86/intel_rdt/mba: Add info directory files for MBA

2017-02-17 Thread Vikas Shivappa
are 10,20,30... Signed-off-by: Vikas Shivappa --- arch/x86/include/asm/intel_rdt.h | 2 + arch/x86/kernel/cpu/intel_rdt.c | 1 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 64 3 files changed, 67 insertions(+) diff --git a/arch/x86/include/asm

[PATCH 4/8] x86/intel_rct/mba: Add MBA structures and initialize MBA

2017-02-17 Thread Vikas Shivappa
-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/include/asm/intel_rdt.h | 17 +++ arch/x86/kernel/cpu/intel_rdt.c | 95 ++-- 2 files changed, 99 insertions(+), 13 deletions(-) diff --git a/arch/x86/include/asm/intel_rdt.h b/arch/x86/i

[PATCH 4/8] x86/intel_rct/mba: Add MBA structures and initialize MBA

2017-02-17 Thread Vikas Shivappa
-by: Vikas Shivappa --- arch/x86/include/asm/intel_rdt.h | 17 +++ arch/x86/kernel/cpu/intel_rdt.c | 95 ++-- 2 files changed, 99 insertions(+), 13 deletions(-) diff --git a/arch/x86/include/asm/intel_rdt.h b/arch/x86/include/asm/intel_rdt.h index d2eee45

[PATCH 0/8 V2] x86/intel_rdt: Intel Memory bandwidth allocation

2017-02-17 Thread Vikas Shivappa
Memory b/w allocation(MBA) is part of the Intel Resource Director Technology (RDT). RDT helps monitor and share processor shared resources. MBA helps enforce a limit on the memory bandwidth(b/w) threads can use when they are scheduled. OS does the enforcement using MSR(model specific register)

[PATCH 0/8 V2] x86/intel_rdt: Intel Memory bandwidth allocation

2017-02-17 Thread Vikas Shivappa
Memory b/w allocation(MBA) is part of the Intel Resource Director Technology (RDT). RDT helps monitor and share processor shared resources. MBA helps enforce a limit on the memory bandwidth(b/w) threads can use when they are scheduled. OS does the enforcement using MSR(model specific register)

[PATCH 5/8] x86/intel_rdt: info file support for MBA prepare

2017-02-17 Thread Vikas Shivappa
resource and cache resource info files. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/include/asm/intel_rdt.h | 5 + arch/x86/kernel/cpu/intel_rdt.c | 1 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 18 ++ 3 files chang

[PATCH 5/8] x86/intel_rdt: info file support for MBA prepare

2017-02-17 Thread Vikas Shivappa
resource and cache resource info files. Signed-off-by: Vikas Shivappa --- arch/x86/include/asm/intel_rdt.h | 5 + arch/x86/kernel/cpu/intel_rdt.c | 1 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 18 ++ 3 files changed, 20 insertions(+), 4 deletions

[PATCH 7/8] x86/intel_rdt: schemata file support for MBA prepare

2017-02-17 Thread Vikas Shivappa
for the resources depending on whether its displayed in hex/decimal. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/include/asm/intel_rdt.h | 8 +++ arch/x86/kernel/cpu/intel_rdt.c | 33 +- arch/x86/kernel/cpu/intel_rdt_sche

[PATCH 8/8] x86/intel_rdt/mba: Add schemata file support for MBA

2017-02-17 Thread Vikas Shivappa
the corresponding domain PQOS_MSRs which are indexed from 0xD50 for MBA. For linear scale the granularity is just the 100-max_delay. For non-linear values, it is obtained by the mapping between the delay values and percentage b/w values. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.

[PATCH 7/8] x86/intel_rdt: schemata file support for MBA prepare

2017-02-17 Thread Vikas Shivappa
for the resources depending on whether its displayed in hex/decimal. Signed-off-by: Vikas Shivappa --- arch/x86/include/asm/intel_rdt.h | 8 +++ arch/x86/kernel/cpu/intel_rdt.c | 33 +- arch/x86/kernel/cpu/intel_rdt_schemata.c | 40

[PATCH 8/8] x86/intel_rdt/mba: Add schemata file support for MBA

2017-02-17 Thread Vikas Shivappa
the corresponding domain PQOS_MSRs which are indexed from 0xD50 for MBA. For linear scale the granularity is just the 100-max_delay. For non-linear values, it is obtained by the mapping between the delay values and percentage b/w values. Signed-off-by: Vikas Shivappa --- arch/x86/include/asm

[PATCH 3/5] x86/intel_rdt: Fail early on a resource with incorrect domains

2017-02-17 Thread Vikas Shivappa
resources because the entire change is atomic. Also this avoids looping all enabled resources again. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt_schemata.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ar

[PATCH 3/5] x86/intel_rdt: Fail early on a resource with incorrect domains

2017-02-17 Thread Vikas Shivappa
resources because the entire change is atomic. Also this avoids looping all enabled resources again. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt_schemata.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_schemata.c

[PATCH 2/5] x86/intel_rdt: Improvements to parsing schemata

2017-02-17 Thread Vikas Shivappa
-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt_schemata.c | 40 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_schemata.c b/arch/x86/kernel/cpu/intel_rdt_schemata.c index 1

[PATCH 2/5] x86/intel_rdt: Improvements to parsing schemata

2017-02-17 Thread Vikas Shivappa
-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt_schemata.c | 40 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_schemata.c b/arch/x86/kernel/cpu/intel_rdt_schemata.c index 14ba504..64b43b1 100644 --- a/arch/x86

[PATCH 1/5] x86/intel_rdt: Update control registers only when user really modifies it

2017-02-17 Thread Vikas Shivappa
are per package. Change the update to QOS_MSRs to happen only when the control value on the particular domain is updated. Hence not sending IPIs on all domains when user updates the control vals. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kern

[PATCH 1/5] x86/intel_rdt: Update control registers only when user really modifies it

2017-02-17 Thread Vikas Shivappa
are per package. Change the update to QOS_MSRs to happen only when the control value on the particular domain is updated. Hence not sending IPIs on all domains when user updates the control vals. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt_schemata.c | 11 +-- 1 file

[PATCH 0/5] x86/intel_rdt: Improvements/Fixes to RDT framework

2017-02-17 Thread Vikas Shivappa
Add some improvements to the existing RDT(Resource director technology) framework and fix some hotcpu RDT code. Sending them as a seperate series as per Thomas suggestion during the V1 of MBA review (Memory bandwidth allocation) - https://marc.info/?l=linux-kernel=148407699309286 Patches are

[PATCH 4/5] x86/intel_rdt: Reset the cbm MSR during rmdir

2017-02-17 Thread Vikas Shivappa
During rmdir reset the ctrl values to all 1s in the QOS_MSR for the directory's closid. This is done so that that next time when the closid is reused they dont reflect old values. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.

[PATCH 0/5] x86/intel_rdt: Improvements/Fixes to RDT framework

2017-02-17 Thread Vikas Shivappa
Add some improvements to the existing RDT(Resource director technology) framework and fix some hotcpu RDT code. Sending them as a seperate series as per Thomas suggestion during the V1 of MBA review (Memory bandwidth allocation) - https://marc.info/?l=linux-kernel=148407699309286 Patches are

[PATCH 4/5] x86/intel_rdt: Reset the cbm MSR during rmdir

2017-02-17 Thread Vikas Shivappa
During rmdir reset the ctrl values to all 1s in the QOS_MSR for the directory's closid. This is done so that that next time when the closid is reused they dont reflect old values. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 18 +- 1 file changed

[PATCH 5/5] x86/intel_rdt: hotcpu updates for RDT

2017-02-17 Thread Vikas Shivappa
down, rather than waiting to clear it during online cpu. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/events/intel/cqm.c | 10 +- arch/x86/kernel/cpu/intel_rdt.c | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/x86/events

[PATCH 5/5] x86/intel_rdt: hotcpu updates for RDT

2017-02-17 Thread Vikas Shivappa
down, rather than waiting to clear it during online cpu. Signed-off-by: Vikas Shivappa --- arch/x86/events/intel/cqm.c | 10 +- arch/x86/kernel/cpu/intel_rdt.c | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/x86/events/intel/cqm.c b/arch/x86/events/intel/cqm.c

Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-01-19 Thread Vikas Shivappa
Resending including Thomas , also with some changes. Sorry for the spam Based on Thomas and Peterz feedback Can think of two design variants which target: -Support monitoring and allocating using the same resctrl group. user can use a resctrl group to allocate resources and also monitor them

Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-01-19 Thread Vikas Shivappa
Resending including Thomas , also with some changes. Sorry for the spam Based on Thomas and Peterz feedback Can think of two design variants which target: -Support monitoring and allocating using the same resctrl group. user can use a resctrl group to allocate resources and also monitor them

Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-01-18 Thread Vikas Shivappa
Based on Thomas and Peterz feedback Can think of two variants which target: -Support monitoring and allocating using the same resctrl group. user can use a resctrl group to allocate resources and also monitor them (with respect to tasks or cpu) -allows 'task only' monitoring outside of resctrl.

Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-01-18 Thread Vikas Shivappa
Based on Thomas and Peterz feedback Can think of two variants which target: -Support monitoring and allocating using the same resctrl group. user can use a resctrl group to allocate resources and also monitor them (with respect to tasks or cpu) -allows 'task only' monitoring outside of resctrl.

[PATCH 0/8 V1] x86/intel_rdt: Memory b/w Allocation support

2017-01-10 Thread Vikas Shivappa
Memory b/w allocation(MBA) is part of the Intel Resource Director Technology (RDT). RDT helps monitor and share processor shared resources. MBA helps enforce a limit on the memory b/w, threads can use when they are scheduled. OS does the enforcement using MSR(model specific register) interface

[PATCH 0/8 V1] x86/intel_rdt: Memory b/w Allocation support

2017-01-10 Thread Vikas Shivappa
Memory b/w allocation(MBA) is part of the Intel Resource Director Technology (RDT). RDT helps monitor and share processor shared resources. MBA helps enforce a limit on the memory b/w, threads can use when they are scheduled. OS does the enforcement using MSR(model specific register) interface

[PATCH 7/8] x86/intel_rdt/mba: Add schemata file support for MBA

2017-01-10 Thread Vikas Shivappa
^n if non-linear scale. OS then updates the corresponding domain PQOS_MSRs which are indexed from 0xD50 for MBA. The schemata APIs for parsing and validating the schemata input are changed to accommodate handling of both cbm and throttle values. Signed-off-by: Vikas Shivappa <vikas.sh

[PATCH 8/8] x86/intel_rdt: rmdir,umount and hotcpu updates for MBA

2017-01-10 Thread Vikas Shivappa
to be zero when cpu is online, remove the PQR MSR write to zero during cpuonline because the MSRs are at zero after cpu reset and also during the first sched in they are updated. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/events/intel/cqm.c | 1 - ar

[PATCH 2/8] x86/intel_rdt/mba: Generalize the naming to get ready for MBA

2017-01-10 Thread Vikas Shivappa
to separate from memory specific apis. - MSR update api names are changed from having cbm to ctrl. - info file API names are set to reflect generic no_ctrl or control values rather than cbm. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/include/asm/intel_rdt.h

[PATCH 7/8] x86/intel_rdt/mba: Add schemata file support for MBA

2017-01-10 Thread Vikas Shivappa
^n if non-linear scale. OS then updates the corresponding domain PQOS_MSRs which are indexed from 0xD50 for MBA. The schemata APIs for parsing and validating the schemata input are changed to accommodate handling of both cbm and throttle values. Signed-off-by: Vikas Shivappa --- arch/x86

[PATCH 8/8] x86/intel_rdt: rmdir,umount and hotcpu updates for MBA

2017-01-10 Thread Vikas Shivappa
to be zero when cpu is online, remove the PQR MSR write to zero during cpuonline because the MSRs are at zero after cpu reset and also during the first sched in they are updated. Signed-off-by: Vikas Shivappa --- arch/x86/events/intel/cqm.c | 1 - arch/x86/kernel/cpu/intel_rdt.c

[PATCH 2/8] x86/intel_rdt/mba: Generalize the naming to get ready for MBA

2017-01-10 Thread Vikas Shivappa
to separate from memory specific apis. - MSR update api names are changed from having cbm to ctrl. - info file API names are set to reflect generic no_ctrl or control values rather than cbm. Signed-off-by: Vikas Shivappa --- arch/x86/include/asm/intel_rdt.h | 20 ++-- arch/x86

[PATCH 5/8] x86/intel_rct/mba: Add MBA structures and initialize MBA

2017-01-10 Thread Vikas Shivappa
. Parameters specific to delay values and delay granularity are added to the RDT resource and domain structure. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/include/asm/intel_rdt.h | 10 + arch/x86/kernel/cpu/intel_rdt.c

[PATCH 5/8] x86/intel_rct/mba: Add MBA structures and initialize MBA

2017-01-10 Thread Vikas Shivappa
. Parameters specific to delay values and delay granularity are added to the RDT resource and domain structure. Signed-off-by: Vikas Shivappa --- arch/x86/include/asm/intel_rdt.h | 10 + arch/x86/kernel/cpu/intel_rdt.c | 70 ++-- arch/x86/kernel/cpu

[PATCH 6/8] x86/intel_rdt/mba: Add info directory files for MBA

2017-01-10 Thread Vikas Shivappa
the configured values. But if a throttle_by value of x > y, then x is guaranteed to throttle more b/w than y. - throttle granularity: Shows the throttle granularity of the throttle values that can be configured. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/in

[PATCH 3/8] x86/intel_rdt/mba: Improvements to handle more RDT resources like MBA

2017-01-10 Thread Vikas Shivappa
resources. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/include/asm/intel_rdt.h | 16 + arch/x86/kernel/cpu/intel_rdt_schemata.c | 40 +--- 2 files changed, 37 insertions(+), 19 deletions(-) diff --git a/ar

[PATCH 6/8] x86/intel_rdt/mba: Add info directory files for MBA

2017-01-10 Thread Vikas Shivappa
the configured values. But if a throttle_by value of x > y, then x is guaranteed to throttle more b/w than y. - throttle granularity: Shows the throttle granularity of the throttle values that can be configured. Signed-off-by: Vikas Shivappa --- arch/x86/include/asm/intel_rdt.h | 8 ++- arch/

[PATCH 3/8] x86/intel_rdt/mba: Improvements to handle more RDT resources like MBA

2017-01-10 Thread Vikas Shivappa
resources. Signed-off-by: Vikas Shivappa --- arch/x86/include/asm/intel_rdt.h | 16 + arch/x86/kernel/cpu/intel_rdt_schemata.c | 40 +--- 2 files changed, 37 insertions(+), 19 deletions(-) diff --git a/arch/x86/include/asm/intel_rdt.h b/arch/x86

[PATCH 1/8] Documentation, x86: Documentation for Intel Mem b/w allocation user interface

2017-01-10 Thread Vikas Shivappa
allocation interface usage. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- Documentation/x86/intel_rdt_ui.txt | 31 +++ 1 file changed, 31 insertions(+) diff --git a/Documentation/x86/intel_rdt_ui.txt b/Documentation/x86/intel_rdt_ui.txt index d

[PATCH 1/8] Documentation, x86: Documentation for Intel Mem b/w allocation user interface

2017-01-10 Thread Vikas Shivappa
allocation interface usage. Signed-off-by: Vikas Shivappa --- Documentation/x86/intel_rdt_ui.txt | 31 +++ 1 file changed, 31 insertions(+) diff --git a/Documentation/x86/intel_rdt_ui.txt b/Documentation/x86/intel_rdt_ui.txt index d918d26..23959ba 100644

[PATCH 4/8] x86/intel_rdt/mba: Memory b/w allocation feature detect

2017-01-10 Thread Vikas Shivappa
Detect MBA feature if CPUID.(EAX=10H, ECX=0):EBX.L2[bit 3] = 1. Add supporting data structures to detect feature details which is done in later patch using CPUID with EAX=10H, ECX= 3. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/include/asm/cpufeatures.

[PATCH 4/8] x86/intel_rdt/mba: Memory b/w allocation feature detect

2017-01-10 Thread Vikas Shivappa
Detect MBA feature if CPUID.(EAX=10H, ECX=0):EBX.L2[bit 3] = 1. Add supporting data structures to detect feature details which is done in later patch using CPUID with EAX=10H, ECX= 3. Signed-off-by: Vikas Shivappa --- arch/x86/include/asm/cpufeatures.h | 2 ++ arch/x86/include/asm/intel_rdt.h

[PATCH 00/12 V5] Cqm2: Intel Cache quality of monitoring fixes

2017-01-06 Thread Vikas Shivappa
Another attempt for cqm2 series- Cqm(cache quality monitoring) is part of Intel RDT(resource director technology) which enables monitoring and controlling of processor shared resources via MSR interface. The current upstream cqm(Cache monitoring) has major issues which make the feature almost

[PATCH 01/12] Documentation, x86/cqm: Intel Resource Monitoring Documentation

2017-01-06 Thread Vikas Shivappa
Add documentation of usage of cqm and mbm events using perf interface and examples. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- Documentation/x86/intel_rdt_mon_ui.txt | 62 ++ 1 file changed, 62 insertions(+) create mode

[PATCH 11/12] perf/stat: fix bug in handling events in error state

2017-01-06 Thread Vikas Shivappa
fixes this problem by modifying read_counters() to mark the event as not scaled (scaled = -1) to force the printout routine to show . Signed-off-by: Stephane Eranian <eran...@google.com> Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- tools/perf/builtin-stat.c | 12 ++

[PATCH 11/12] perf/stat: fix bug in handling events in error state

2017-01-06 Thread Vikas Shivappa
read_counters() to mark the event as not scaled (scaled = -1) to force the printout routine to show . Signed-off-by: Stephane Eranian Signed-off-by: Vikas Shivappa --- tools/perf/builtin-stat.c | 12 +--- tools/perf/util/evsel.c | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions

[PATCH 01/12] Documentation, x86/cqm: Intel Resource Monitoring Documentation

2017-01-06 Thread Vikas Shivappa
Add documentation of usage of cqm and mbm events using perf interface and examples. Signed-off-by: Vikas Shivappa --- Documentation/x86/intel_rdt_mon_ui.txt | 62 ++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/x86/intel_rdt_mon_ui.txt diff

[PATCH 00/12 V5] Cqm2: Intel Cache quality of monitoring fixes

2017-01-06 Thread Vikas Shivappa
Another attempt for cqm2 series- Cqm(cache quality monitoring) is part of Intel RDT(resource director technology) which enables monitoring and controlling of processor shared resources via MSR interface. The current upstream cqm(Cache monitoring) has major issues which make the feature almost

[PATCH 12/12] perf/stat: revamp read error handling, snapshot and per_pkg events

2017-01-06 Thread Vikas Shivappa
ephane Eranian <eran...@google.com> Signed-off-by: David Carrillo-Cisneros <davi...@google.com> Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- tools/perf/builtin-stat.c | 36 +++--- tools/perf/util/counts.h | 19 ++ tools/

[PATCH 12/12] perf/stat: revamp read error handling, snapshot and per_pkg events

2017-01-06 Thread Vikas Shivappa
-by: David Carrillo-Cisneros Signed-off-by: Vikas Shivappa --- tools/perf/builtin-stat.c | 36 +++--- tools/perf/util/counts.h | 19 ++ tools/perf/util/evsel.c | 49 --- tools/perf/util/evsel.h | 8

[PATCH 02/12] x86/cqm: Remove cqm recycling/conflict handling

2017-01-06 Thread Vikas Shivappa
Vikas<vikas.shiva...@linux.intel.com> to only remove recycling parts from code and edit commit message. Tests: The cqm should either gives correct numbers for task events or just throw error that its run out of RMIDs. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arc

[PATCH 09/12] x86/cqm: Add RMID reuse

2017-01-06 Thread Vikas Shivappa
use the RMIDs that are freed. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/events/intel/cqm.c | 107 1 file changed, 107 insertions(+) diff --git a/arch/x86/events/intel/cqm.c b/arch/x86/events/intel/cqm.c index e1765e3

[PATCH 10/12] perf/core,x86/cqm: Add read for Cgroup events,per pkg reads.

2017-01-06 Thread Vikas Shivappa
s in cqm2 series. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/events/intel/cqm.c | 31 --- arch/x86/include/asm/intel_rdt_common.h | 2 +- include/linux/perf_event.h | 19 --- kerne

[PATCH 09/12] x86/cqm: Add RMID reuse

2017-01-06 Thread Vikas Shivappa
use the RMIDs that are freed. Signed-off-by: Vikas Shivappa --- arch/x86/events/intel/cqm.c | 107 1 file changed, 107 insertions(+) diff --git a/arch/x86/events/intel/cqm.c b/arch/x86/events/intel/cqm.c index e1765e3..92efe12 100644 --- a/arch/x86/events/in

[PATCH 10/12] perf/core,x86/cqm: Add read for Cgroup events,per pkg reads.

2017-01-06 Thread Vikas Shivappa
off-by: Vikas Shivappa --- arch/x86/events/intel/cqm.c | 31 --- arch/x86/include/asm/intel_rdt_common.h | 2 +- include/linux/perf_event.h | 19 --- kernel/events/core.c| 16 4 files changed,

[PATCH 02/12] x86/cqm: Remove cqm recycling/conflict handling

2017-01-06 Thread Vikas Shivappa
parts from code and edit commit message. Tests: The cqm should either gives correct numbers for task events or just throw error that its run out of RMIDs. Signed-off-by: Vikas Shivappa --- arch/x86/events/intel/cqm.c | 647 ++-- 1 file changed, 30 insertions

[PATCH 07/12] x86/rdt,cqm: Scheduling support update

2017-01-06 Thread Vikas Shivappa
com> patches in cqm2 series. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/events/intel/cqm.c | 45 ++- arch/x86/include/asm/intel_pqr_common.h | 38 + arch/x86/include/asm/intel_rdt.h | 39 - arch/x86

[PATCH 08/12] x86/cqm: Add support for monitoring task and cgroup together

2017-01-06 Thread Vikas Shivappa
From: Vikas Shivappa<vikas.shiva...@intel.com> This patch adds support to monitor a cgroup x and a task p1 when p1 is part of cgroup x. Since we cannot write two RMIDs during sched in the driver handles this. This patch introduces a u32 *rmid in the task_struck which keeps track of the

[PATCH 04/12] x86/cqm: Add Per pkg rmid support

2017-01-06 Thread Vikas Shivappa
,put_rmid, perf start, terminate Tests: RMIDs available increase by x times where x is number of sockets and the usage is dynamic so we save more. Patch is based on David Carrillo-Cisneros <davi...@google.com> patches in cqm2 series. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.

[PATCH 03/12] x86/rdt: Add rdt common/cqm compile option

2017-01-06 Thread Vikas Shivappa
Add a compile option INTEL_RDT which enables common code for all RDT(Resource director technology) and a specific INTEL_RDT_M which enables code for RDT monitoring. CQM(cache quality monitoring) and mbm(memory b/w monitoring) are part of Intel RDT monitoring. Signed-off-by: Vikas Shivappa

[PATCH 06/12] x86/cqm: Add cgroup hierarchical monitoring support

2017-01-06 Thread Vikas Shivappa
cgroup->arch_info: css_alloc, css_free, event terminate, init hold mutex. Tests: Cgroup monitoring should work. Monitoring multiple cgroups in the same hierarchy works. monitoring cgroup and a task within same cgroup doesnt work yet. Patch modified/refactored by Vikas Shivappa <vikas.shiva...@lin

[PATCH 07/12] x86/rdt,cqm: Scheduling support update

2017-01-06 Thread Vikas Shivappa
. Signed-off-by: Vikas Shivappa --- arch/x86/events/intel/cqm.c | 45 ++- arch/x86/include/asm/intel_pqr_common.h | 38 + arch/x86/include/asm/intel_rdt.h | 39 - arch/x86/include/asm/intel_rdt_common.h | 11 arch/x86/include/asm

[PATCH 08/12] x86/cqm: Add support for monitoring task and cgroup together

2017-01-06 Thread Vikas Shivappa
From: Vikas Shivappa This patch adds support to monitor a cgroup x and a task p1 when p1 is part of cgroup x. Since we cannot write two RMIDs during sched in the driver handles this. This patch introduces a u32 *rmid in the task_struck which keeps track of the RMIDs associated with the task

[PATCH 04/12] x86/cqm: Add Per pkg rmid support

2017-01-06 Thread Vikas Shivappa
,put_rmid, perf start, terminate Tests: RMIDs available increase by x times where x is number of sockets and the usage is dynamic so we save more. Patch is based on David Carrillo-Cisneros patches in cqm2 series. Signed-off-by: Vikas Shivappa --- arch/x86/events/intel/cqm.c | 340

[PATCH 03/12] x86/rdt: Add rdt common/cqm compile option

2017-01-06 Thread Vikas Shivappa
Add a compile option INTEL_RDT which enables common code for all RDT(Resource director technology) and a specific INTEL_RDT_M which enables code for RDT monitoring. CQM(cache quality monitoring) and mbm(memory b/w monitoring) are part of Intel RDT monitoring. Signed-off-by: Vikas Shivappa

[PATCH 06/12] x86/cqm: Add cgroup hierarchical monitoring support

2017-01-06 Thread Vikas Shivappa
loc, css_free, event terminate, init hold mutex. Tests: Cgroup monitoring should work. Monitoring multiple cgroups in the same hierarchy works. monitoring cgroup and a task within same cgroup doesnt work yet. Patch modified/refactored by Vikas Shivappa to support recycling removal. Signed-

[PATCH 05/12] x86/cqm,perf/core: Cgroup support prepare

2017-01-06 Thread Vikas Shivappa
before. Cgroup still doesnt work but we did the prep to get it to work Patch modified/refactored by Vikas Shivappa <vikas.shiva...@linux.intel.com> to support recycling removal. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/events/intel/cqm.c | 19 +++

[PATCH 05/12] x86/cqm,perf/core: Cgroup support prepare

2017-01-06 Thread Vikas Shivappa
but we did the prep to get it to work Patch modified/refactored by Vikas Shivappa to support recycling removal. Signed-off-by: Vikas Shivappa --- arch/x86/events/intel/cqm.c | 19 ++- arch/x86/include/asm/perf_event.h | 27 +++ include/linux

[PATCH 04/12] x86/cqm: Add Per pkg rmid support

2017-01-06 Thread Vikas Shivappa
,put_rmid, perf start, terminate Tests: RMIDs available increase by x times where x is number of sockets and the usage is dynamic so we save more. Patch is based on David Carrillo-Cisneros <davi...@google.com> patches in cqm2 series. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.

[PATCH 04/12] x86/cqm: Add Per pkg rmid support

2017-01-06 Thread Vikas Shivappa
,put_rmid, perf start, terminate Tests: RMIDs available increase by x times where x is number of sockets and the usage is dynamic so we save more. Patch is based on David Carrillo-Cisneros patches in cqm2 series. Signed-off-by: Vikas Shivappa --- arch/x86/events/intel/cqm.c | 340

[PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-01-06 Thread Vikas Shivappa
Resending version 5 with updated send list. Sorry for the spam. Cqm(cache quality monitoring) is part of Intel RDT(resource director technology) which enables monitoring and controlling of processor shared resources via MSR interface. The current upstream cqm(Cache monitoring) has major issues

[PATCH 05/12] x86/cqm,perf/core: Cgroup support prepare

2017-01-06 Thread Vikas Shivappa
before. Cgroup still doesnt work but we did the prep to get it to work Patch modified/refactored by Vikas Shivappa <vikas.shiva...@linux.intel.com> to support recycling removal. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/events/intel/cqm.c | 19 +++

[PATCH 06/12] x86/cqm: Add cgroup hierarchical monitoring support

2017-01-06 Thread Vikas Shivappa
cgroup->arch_info: css_alloc, css_free, event terminate, init hold mutex. Tests: Cgroup monitoring should work. Monitoring multiple cgroups in the same hierarchy works. monitoring cgroup and a task within same cgroup doesnt work yet. Patch modified/refactored by Vikas Shivappa <vikas.shiva...@lin

[PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-01-06 Thread Vikas Shivappa
Resending version 5 with updated send list. Sorry for the spam. Cqm(cache quality monitoring) is part of Intel RDT(resource director technology) which enables monitoring and controlling of processor shared resources via MSR interface. The current upstream cqm(Cache monitoring) has major issues

[PATCH 05/12] x86/cqm,perf/core: Cgroup support prepare

2017-01-06 Thread Vikas Shivappa
but we did the prep to get it to work Patch modified/refactored by Vikas Shivappa to support recycling removal. Signed-off-by: Vikas Shivappa --- arch/x86/events/intel/cqm.c | 19 ++- arch/x86/include/asm/perf_event.h | 27 +++ include/linux

[PATCH 06/12] x86/cqm: Add cgroup hierarchical monitoring support

2017-01-06 Thread Vikas Shivappa
loc, css_free, event terminate, init hold mutex. Tests: Cgroup monitoring should work. Monitoring multiple cgroups in the same hierarchy works. monitoring cgroup and a task within same cgroup doesnt work yet. Patch modified/refactored by Vikas Shivappa to support recycling removal. Signed-

[PATCH 03/12] x86/rdt: Add rdt common/cqm compile option

2017-01-06 Thread Vikas Shivappa
Add a compile option INTEL_RDT which enables common code for all RDT(Resource director technology) and a specific INTEL_RDT_M which enables code for RDT monitoring. CQM(cache quality monitoring) and mbm(memory b/w monitoring) are part of Intel RDT monitoring. Signed-off-by: Vikas Shivappa

[PATCH 01/12] Documentation, x86/cqm: Intel Resource Monitoring Documentation

2017-01-06 Thread Vikas Shivappa
Add documentation of usage of cqm and mbm events using perf interface and examples. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- Documentation/x86/intel_rdt_mon_ui.txt | 62 ++ 1 file changed, 62 insertions(+) create mode

[PATCH 03/12] x86/rdt: Add rdt common/cqm compile option

2017-01-06 Thread Vikas Shivappa
Add a compile option INTEL_RDT which enables common code for all RDT(Resource director technology) and a specific INTEL_RDT_M which enables code for RDT monitoring. CQM(cache quality monitoring) and mbm(memory b/w monitoring) are part of Intel RDT monitoring. Signed-off-by: Vikas Shivappa

[PATCH 01/12] Documentation, x86/cqm: Intel Resource Monitoring Documentation

2017-01-06 Thread Vikas Shivappa
Add documentation of usage of cqm and mbm events using perf interface and examples. Signed-off-by: Vikas Shivappa --- Documentation/x86/intel_rdt_mon_ui.txt | 62 ++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/x86/intel_rdt_mon_ui.txt diff

[PATCH 07/12] x86/rdt,cqm: Scheduling support update

2017-01-06 Thread Vikas Shivappa
com> patches in cqm2 series. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/events/intel/cqm.c | 45 ++- arch/x86/include/asm/intel_pqr_common.h | 38 + arch/x86/include/asm/intel_rdt.h | 39 - arch/x86

[PATCH 12/12] perf/stat: revamp read error handling, snapshot and per_pkg events

2017-01-06 Thread Vikas Shivappa
ephane Eranian <eran...@google.com> Signed-off-by: David Carrillo-Cisneros <davi...@google.com> Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- tools/perf/builtin-stat.c | 36 +++--- tools/perf/util/counts.h | 19 ++ tools/

[PATCH 10/12] perf/core,x86/cqm: Add read for Cgroup events,per pkg reads.

2017-01-06 Thread Vikas Shivappa
s in cqm2 series. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/events/intel/cqm.c | 31 --- arch/x86/include/asm/intel_rdt_common.h | 2 +- include/linux/perf_event.h | 19 --- kerne

[PATCH 07/12] x86/rdt,cqm: Scheduling support update

2017-01-06 Thread Vikas Shivappa
. Signed-off-by: Vikas Shivappa --- arch/x86/events/intel/cqm.c | 45 ++- arch/x86/include/asm/intel_pqr_common.h | 38 + arch/x86/include/asm/intel_rdt.h | 39 - arch/x86/include/asm/intel_rdt_common.h | 11 arch/x86/include/asm

[PATCH 12/12] perf/stat: revamp read error handling, snapshot and per_pkg events

2017-01-06 Thread Vikas Shivappa
-by: David Carrillo-Cisneros Signed-off-by: Vikas Shivappa --- tools/perf/builtin-stat.c | 36 +++--- tools/perf/util/counts.h | 19 ++ tools/perf/util/evsel.c | 49 --- tools/perf/util/evsel.h | 8

[PATCH 10/12] perf/core,x86/cqm: Add read for Cgroup events,per pkg reads.

2017-01-06 Thread Vikas Shivappa
off-by: Vikas Shivappa --- arch/x86/events/intel/cqm.c | 31 --- arch/x86/include/asm/intel_rdt_common.h | 2 +- include/linux/perf_event.h | 19 --- kernel/events/core.c| 16 4 files changed,

[PATCH 11/12] perf/stat: fix bug in handling events in error state

2017-01-06 Thread Vikas Shivappa
fixes this problem by modifying read_counters() to mark the event as not scaled (scaled = -1) to force the printout routine to show . Signed-off-by: Stephane Eranian <eran...@google.com> Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- tools/perf/builtin-stat.c | 12 ++

[PATCH 11/12] perf/stat: fix bug in handling events in error state

2017-01-06 Thread Vikas Shivappa
read_counters() to mark the event as not scaled (scaled = -1) to force the printout routine to show . Signed-off-by: Stephane Eranian Signed-off-by: Vikas Shivappa --- tools/perf/builtin-stat.c | 12 +--- tools/perf/util/evsel.c | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions

[PATCH 02/12] x86/cqm: Remove cqm recycling/conflict handling

2017-01-06 Thread Vikas Shivappa
Vikas<vikas.shiva...@linux.intel.com> to only remove recycling parts from code and edit commit message. Tests: The cqm should either gives correct numbers for task events or just throw error that its run out of RMIDs. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arc

[PATCH 02/12] x86/cqm: Remove cqm recycling/conflict handling

2017-01-06 Thread Vikas Shivappa
parts from code and edit commit message. Tests: The cqm should either gives correct numbers for task events or just throw error that its run out of RMIDs. Signed-off-by: Vikas Shivappa --- arch/x86/events/intel/cqm.c | 647 ++-- 1 file changed, 30 insertions

<    1   2   3   4   5   6   7   8   9   10   >