[tip:x86/cache] x86/intel_rdt: Cleanup namespace to support RDT monitoring

2017-08-01 Thread tip-bot for Vikas Shivappa
Commit-ID: 1b5c0b7583173b787b5c93ff89838a950d0e23ff Gitweb: http://git.kernel.org/tip/1b5c0b7583173b787b5c93ff89838a950d0e23ff Author: Vikas Shivappa <vikas.shiva...@linux.intel.com> AuthorDate: Tue, 25 Jul 2017 14:14:25 -0700 Committer: Thomas Gleixner <t...@linutronix.de>

[tip:x86/cache] x86/intel_rdt: Cleanup namespace to support RDT monitoring

2017-08-01 Thread tip-bot for Vikas Shivappa
Commit-ID: 1b5c0b7583173b787b5c93ff89838a950d0e23ff Gitweb: http://git.kernel.org/tip/1b5c0b7583173b787b5c93ff89838a950d0e23ff Author: Vikas Shivappa AuthorDate: Tue, 25 Jul 2017 14:14:25 -0700 Committer: Thomas Gleixner CommitDate: Tue, 1 Aug 2017 22:41:20 +0200 x86/intel_rdt

[tip:x86/cache] x86/intel_rdt: Make rdt_resources_all more readable

2017-08-01 Thread tip-bot for Vikas Shivappa
Commit-ID: dd131853f3fbc1c3aa051c34a2967c2f76309024 Gitweb: http://git.kernel.org/tip/dd131853f3fbc1c3aa051c34a2967c2f76309024 Author: Vikas Shivappa <vikas.shiva...@linux.intel.com> AuthorDate: Tue, 25 Jul 2017 14:14:26 -0700 Committer: Thomas Gleixner <t...@linutronix.de>

[tip:x86/cache] x86/intel_rdt: Make rdt_resources_all more readable

2017-08-01 Thread tip-bot for Vikas Shivappa
Commit-ID: dd131853f3fbc1c3aa051c34a2967c2f76309024 Gitweb: http://git.kernel.org/tip/dd131853f3fbc1c3aa051c34a2967c2f76309024 Author: Vikas Shivappa AuthorDate: Tue, 25 Jul 2017 14:14:26 -0700 Committer: Thomas Gleixner CommitDate: Tue, 1 Aug 2017 22:41:20 +0200 x86/intel_rdt: Make

[tip:x86/cache] x86/intel_rdt: Introduce a common compile option for RDT

2017-08-01 Thread tip-bot for Vikas Shivappa
Commit-ID: f01d7d51f577b5dc0fa5919ab8a9228e2bf49f3e Gitweb: http://git.kernel.org/tip/f01d7d51f577b5dc0fa5919ab8a9228e2bf49f3e Author: Vikas Shivappa <vikas.shiva...@linux.intel.com> AuthorDate: Tue, 25 Jul 2017 14:14:22 -0700 Committer: Thomas Gleixner <t...@linutronix.de>

[tip:x86/cache] x86/intel_rdt: Introduce a common compile option for RDT

2017-08-01 Thread tip-bot for Vikas Shivappa
Commit-ID: f01d7d51f577b5dc0fa5919ab8a9228e2bf49f3e Gitweb: http://git.kernel.org/tip/f01d7d51f577b5dc0fa5919ab8a9228e2bf49f3e Author: Vikas Shivappa AuthorDate: Tue, 25 Jul 2017 14:14:22 -0700 Committer: Thomas Gleixner CommitDate: Tue, 1 Aug 2017 22:41:19 +0200 x86/intel_rdt

[tip:x86/cache] x86/intel_rdt: Change file names to accommodate RDT monitor code

2017-08-01 Thread tip-bot for Vikas Shivappa
Commit-ID: 0583020456cea9fcf43b84bb13a41eab059ae0a8 Gitweb: http://git.kernel.org/tip/0583020456cea9fcf43b84bb13a41eab059ae0a8 Author: Vikas Shivappa <vikas.shiva...@linux.intel.com> AuthorDate: Tue, 25 Jul 2017 14:14:23 -0700 Committer: Thomas Gleixner <t...@linutronix.de>

[tip:x86/cache] x86/intel_rdt: Change file names to accommodate RDT monitor code

2017-08-01 Thread tip-bot for Vikas Shivappa
Commit-ID: 0583020456cea9fcf43b84bb13a41eab059ae0a8 Gitweb: http://git.kernel.org/tip/0583020456cea9fcf43b84bb13a41eab059ae0a8 Author: Vikas Shivappa AuthorDate: Tue, 25 Jul 2017 14:14:23 -0700 Committer: Thomas Gleixner CommitDate: Tue, 1 Aug 2017 22:41:19 +0200 x86/intel_rdt: Change

[tip:x86/cache] x86/intel_rdt/cqm: Documentation for resctrl based RDT Monitoring

2017-08-01 Thread tip-bot for Vikas Shivappa
Commit-ID: 1640ae9471ae41eb18d2b214f1f40af3c4ed3828 Gitweb: http://git.kernel.org/tip/1640ae9471ae41eb18d2b214f1f40af3c4ed3828 Author: Vikas Shivappa <vikas.shiva...@linux.intel.com> AuthorDate: Tue, 25 Jul 2017 14:14:21 -0700 Committer: Thomas Gleixner <t...@linutronix.de>

[tip:x86/cache] x86/intel_rdt/cqm: Documentation for resctrl based RDT Monitoring

2017-08-01 Thread tip-bot for Vikas Shivappa
Commit-ID: 1640ae9471ae41eb18d2b214f1f40af3c4ed3828 Gitweb: http://git.kernel.org/tip/1640ae9471ae41eb18d2b214f1f40af3c4ed3828 Author: Vikas Shivappa AuthorDate: Tue, 25 Jul 2017 14:14:21 -0700 Committer: Thomas Gleixner CommitDate: Tue, 1 Aug 2017 22:41:19 +0200 x86/intel_rdt/cqm

[tip:x86/cache] x86/perf/cqm: Wipe out perf based cqm

2017-08-01 Thread tip-bot for Vikas Shivappa
Commit-ID: c39a0e2c8850f08249383f2425dbd8dbe4baad69 Gitweb: http://git.kernel.org/tip/c39a0e2c8850f08249383f2425dbd8dbe4baad69 Author: Vikas Shivappa <vikas.shiva...@linux.intel.com> AuthorDate: Tue, 25 Jul 2017 14:14:20 -0700 Committer: Thomas Gleixner <t...@linutronix.de>

[tip:x86/cache] x86/perf/cqm: Wipe out perf based cqm

2017-08-01 Thread tip-bot for Vikas Shivappa
Commit-ID: c39a0e2c8850f08249383f2425dbd8dbe4baad69 Gitweb: http://git.kernel.org/tip/c39a0e2c8850f08249383f2425dbd8dbe4baad69 Author: Vikas Shivappa AuthorDate: Tue, 25 Jul 2017 14:14:20 -0700 Committer: Thomas Gleixner CommitDate: Tue, 1 Aug 2017 22:41:18 +0200 x86/perf/cqm: Wipe

[PATCH 18/28] x86/intel_rdt: Prepare for RDT monitor data support

2017-07-25 Thread Vikas Shivappa
Rename the intel_rdt_schemata file to intel_rdt_ctrlmondata as we now want to add support for RDT monitoring data for the events that are supported in later patches. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/Makefile| 2 +- ar

[PATCH 16/28] x86/intel_rdt: Prepare to add RDT monitor cpus file support

2017-07-25 Thread Vikas Shivappa
Separate the ctrl cpus file handling from the generic cpus file handling and convert the per cpu closid from u32 to a struct which will be used later to add rmid to the same struct. Also cleanup some name space. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/i

[PATCH 18/28] x86/intel_rdt: Prepare for RDT monitor data support

2017-07-25 Thread Vikas Shivappa
Rename the intel_rdt_schemata file to intel_rdt_ctrlmondata as we now want to add support for RDT monitoring data for the events that are supported in later patches. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/Makefile| 2 +- arch/x86/kernel/cpu

[PATCH 16/28] x86/intel_rdt: Prepare to add RDT monitor cpus file support

2017-07-25 Thread Vikas Shivappa
Separate the ctrl cpus file handling from the generic cpus file handling and convert the per cpu closid from u32 to a struct which will be used later to add rmid to the same struct. Also cleanup some name space. Signed-off-by: Vikas Shivappa --- arch/x86/include/asm/intel_rdt_sched.h | 4

[PATCH 15/28] x86/intel_rdt/cqm: Add tasks file support

2017-07-25 Thread Vikas Shivappa
t;u32 rmid" which holds the RMID for the task. RMID=0 is reserved for the default root group where the tasks belong to at mount. [tony: zero the rmid if rdtgroup was deleted when task was being moved] Signed-off-by: Tony Luck <tony.l...@linux.intel.com> Signed-off-by: Vikas Shivappa &

[PATCH 13/28] x86/intel_rdt/cqm: Add mkdir support for RDT monitoring

2017-07-25 Thread Vikas Shivappa
oved a lot of common mkdir code, a fix to handling of the list of the child rdtgroups and some cleanups in list traversal. Also the changes to have similar alloc and free for CLOS/RMID and return -EBUSY when RMIDs are in limbo and not free] Signed-off-by: Tony Luck <tony.l...@intel.com> Sign

[PATCH 13/28] x86/intel_rdt/cqm: Add mkdir support for RDT monitoring

2017-07-25 Thread Vikas Shivappa
oved a lot of common mkdir code, a fix to handling of the list of the child rdtgroups and some cleanups in list traversal. Also the changes to have similar alloc and free for CLOS/RMID and return -EBUSY when RMIDs are in limbo and not free] Signed-off-by: Tony Luck Signed-off-by: Vikas Shivappa

[PATCH 15/28] x86/intel_rdt/cqm: Add tasks file support

2017-07-25 Thread Vikas Shivappa
t;u32 rmid" which holds the RMID for the task. RMID=0 is reserved for the default root group where the tasks belong to at mount. [tony: zero the rmid if rdtgroup was deleted when task was being moved] Signed-off-by: Tony Luck Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt_

[PATCH 14/28] x86/intel_rdt: Change closid type from int to u32

2017-07-25 Thread Vikas Shivappa
OS associates a CLOSid(Class of service id) to a task by writing the high 32 bits of per CPU IA32_PQR_ASSOC MSR when a task is scheduled in. CPUID.(EAX=10H, ECX=1):EDX[15:0] enumerates the max CLOSID supported and it is zero indexed. Hence change the type to u32 from int. Signed-off-by: Vikas

[PATCH 14/28] x86/intel_rdt: Change closid type from int to u32

2017-07-25 Thread Vikas Shivappa
OS associates a CLOSid(Class of service id) to a task by writing the high 32 bits of per CPU IA32_PQR_ASSOC MSR when a task is scheduled in. CPUID.(EAX=10H, ECX=1):EDX[15:0] enumerates the max CLOSID supported and it is zero indexed. Hence change the type to u32 from int. Signed-off-by: Vikas

[PATCH 10/28] x86/intel_rdt: Simplify info and base file lists

2017-07-25 Thread Vikas Shivappa
files. No functional change. [Vikas: Extended the flags to have few bits per category like resource, info/base etc] Signed-off-by: Tony luck <tony.l...@intel.com> Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt.c | 7 +- a

[PATCH 11/28] x86/intel_rdt/cqm: Add info files for RDT monitoring

2017-07-25 Thread Vikas Shivappa
and is used to determine if an RMID can be reused. Provides an upper bound on the threshold and is shown to the user in bytes though the internal value will be rounded to the scaling factor supported by the h/w. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- ar

[PATCH 10/28] x86/intel_rdt: Simplify info and base file lists

2017-07-25 Thread Vikas Shivappa
. [Vikas: Extended the flags to have few bits per category like resource, info/base etc] Signed-off-by: Tony luck Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.c | 7 +- arch/x86/kernel/cpu/intel_rdt.h | 22 +++- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 191

[PATCH 11/28] x86/intel_rdt/cqm: Add info files for RDT monitoring

2017-07-25 Thread Vikas Shivappa
and is used to determine if an RMID can be reused. Provides an upper bound on the threshold and is shown to the user in bytes though the internal value will be rounded to the scaling factor supported by the h/w. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.h

[PATCH 12/28] x86/intel_rdt: Prepare for RDT monitoring mkdir support

2017-07-25 Thread Vikas Shivappa
Separate the ctrl mkdir code from the rest in order to prepare for adding support for RDT monitoring mkdir support as well. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 112 ++- 1 file chang

[PATCH 12/28] x86/intel_rdt: Prepare for RDT monitoring mkdir support

2017-07-25 Thread Vikas Shivappa
Separate the ctrl mkdir code from the rest in order to prepare for adding support for RDT monitoring mkdir support as well. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 112 ++- 1 file changed, 80 insertions(+), 32 deletions(-) diff

[PATCH 06/28] x86/intel_rdt: Cleanup namespace to support RDT monitoring

2017-07-25 Thread Vikas Shivappa
Few of the data-structures have generic names although they are RDT allocation specific. Rename them to be allocation specific to accommodate RDT monitoring. E.g. s/enabled/alloc_enabled/ No functional change. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/i

[PATCH 06/28] x86/intel_rdt: Cleanup namespace to support RDT monitoring

2017-07-25 Thread Vikas Shivappa
Few of the data-structures have generic names although they are RDT allocation specific. Rename them to be allocation specific to accommodate RDT monitoring. E.g. s/enabled/alloc_enabled/ No functional change. Signed-off-by: Vikas Shivappa --- arch/x86/include/asm/intel_rdt_sched.h | 4

[PATCH 08/28] x86/intel_rdt/cqm: Add RDT monitoring initialization

2017-07-25 Thread Vikas Shivappa
t;cqm" from some names, make some data structure local to intel_rdt_monitor.c static. Add copyright header] Signed-off-by: Tony Luck <tony.l...@intel.com> Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/Makefile| 2 +- arch/x86/

[PATCH 09/28] x86/intel_rdt/cqm: Add RMID(Resource monitoring ID) management

2017-07-25 Thread Vikas Shivappa
mbo search] Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt.c | 32 + arch/x86/kernel/cpu/intel_rdt.h | 6 + arch/x86/kernel/cpu/intel_rdt_monitor.c | 213 3 files changed, 251 insertions

[PATCH 08/28] x86/intel_rdt/cqm: Add RDT monitoring initialization

2017-07-25 Thread Vikas Shivappa
t;cqm" from some names, make some data structure local to intel_rdt_monitor.c static. Add copyright header] Signed-off-by: Tony Luck Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/Makefile| 2 +- arch/x86/kernel/cpu/intel_rdt.c | 46 - arch/x86/kernel/cpu/i

[PATCH 09/28] x86/intel_rdt/cqm: Add RMID(Resource monitoring ID) management

2017-07-25 Thread Vikas Shivappa
mbo search] Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.c | 32 + arch/x86/kernel/cpu/intel_rdt.h | 6 + arch/x86/kernel/cpu/intel_rdt_monitor.c | 213 3 files changed, 251 insertions(+) diff --git a/arch/x86/kernel/

[PATCH 02/28] x86/intel_rdt/cqm: Documentation for resctrl based RDT Monitoring

2017-07-25 Thread Vikas Shivappa
Add a description of resctrl based RDT(resource director technology) monitoring extension and its usage. [Tony: Added descriptions for how monitoring and allocation are measured and some cleanups] Signed-off-by: Tony Luck <tony.l...@intel.com> Signed-off-by: Vikas Shivappa <vi

[PATCH 01/28] x86/perf/cqm: Wipe out perf based cqm

2017-07-25 Thread Vikas Shivappa
. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/events/intel/Makefile |2 +- arch/x86/events/intel/cqm.c | 1766 --- arch/x86/include/asm/intel_rdt_common.h |2 - arch/x86/kernel/cpu/intel_rdt.c

[PATCH 17/28] x86/intel_rdt/cqm: Add cpus file support

2017-07-25 Thread Vikas Shivappa
omatically removed from the previous monitor group. When CPUs go offline, they are automatically removed from the ctrl_mon and monitor groups. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 110 ++-

[PATCH 02/28] x86/intel_rdt/cqm: Documentation for resctrl based RDT Monitoring

2017-07-25 Thread Vikas Shivappa
Add a description of resctrl based RDT(resource director technology) monitoring extension and its usage. [Tony: Added descriptions for how monitoring and allocation are measured and some cleanups] Signed-off-by: Tony Luck Signed-off-by: Vikas Shivappa --- Documentation/x86/intel_rdt_ui.txt

[PATCH 01/28] x86/perf/cqm: Wipe out perf based cqm

2017-07-25 Thread Vikas Shivappa
. Signed-off-by: Vikas Shivappa --- arch/x86/events/intel/Makefile |2 +- arch/x86/events/intel/cqm.c | 1766 --- arch/x86/include/asm/intel_rdt_common.h |2 - arch/x86/kernel/cpu/intel_rdt.c |8 + include/linux/perf_event.h

[PATCH 17/28] x86/intel_rdt/cqm: Add cpus file support

2017-07-25 Thread Vikas Shivappa
omatically removed from the previous monitor group. When CPUs go offline, they are automatically removed from the ctrl_mon and monitor groups. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 110 ++- 1 file changed, 93 insertions(+),

[PATCH 05/28] x86/intel_rdt: Mark rdt_root and closid_alloc as static

2017-07-25 Thread Vikas Shivappa
From: Reinette Chatre <reinette.cha...@intel.com> Sparse reports that both of these can be static. Make it so. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.

[PATCH 22/28] x86/intel_rdt/cqm: Add mount,umount support

2017-07-25 Thread Vikas Shivappa
is enabled all of the monitoring related directories/files would not exist and resctrl would work in legacy mode. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 4 +++ arch/x86/kernel/cpu/intel_rdt_monitor.c | 1 +

[PATCH 05/28] x86/intel_rdt: Mark rdt_root and closid_alloc as static

2017-07-25 Thread Vikas Shivappa
From: Reinette Chatre Sparse reports that both of these can be static. Make it so. Signed-off-by: Reinette Chatre Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu

[PATCH 22/28] x86/intel_rdt/cqm: Add mount,umount support

2017-07-25 Thread Vikas Shivappa
is enabled all of the monitoring related directories/files would not exist and resctrl would work in legacy mode. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.h | 4 +++ arch/x86/kernel/cpu/intel_rdt_monitor.c | 1 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 61 +

[PATCH 21/28] x86/intel_rdt/cqm: Add rmdir support

2017-07-25 Thread Vikas Shivappa
to the parent control group. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 90 ++-- 1 file changed, 86 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/

[PATCH 21/28] x86/intel_rdt/cqm: Add rmdir support

2017-07-25 Thread Vikas Shivappa
to the parent control group. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 90 ++-- 1 file changed, 86 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c index

[PATCH 19/28] x86/intel_rdt/cqm: Add mon_data

2017-07-25 Thread Vikas Shivappa
directory and have one file per event (and use the fp->priv to store mon data bits)] Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt.c | 9 +- arch/x86/kernel/cpu/intel_rdt.h | 29 ++ arch/x86/kernel/cpu/inte

[PATCH 20/28] x86/intel_rdt: Separate the ctrl bits from rmdir

2017-07-25 Thread Vikas Shivappa
Re-factor the code to separate the ctrl group removal from the rmdir to prepare to add RDT monitoring group removal. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 48 ++-- 1 file changed, 33 inse

[PATCH 19/28] x86/intel_rdt/cqm: Add mon_data

2017-07-25 Thread Vikas Shivappa
directory and have one file per event (and use the fp->priv to store mon data bits)] Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.c | 9 +- arch/x86/kernel/cpu/intel_rdt.h | 29 ++ arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 55 ++- ar

[PATCH 20/28] x86/intel_rdt: Separate the ctrl bits from rmdir

2017-07-25 Thread Vikas Shivappa
Re-factor the code to separate the ctrl group removal from the rmdir to prepare to add RDT monitoring group removal. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 48 ++-- 1 file changed, 33 insertions(+), 15 deletions(-) diff --git

[PATCH 23/28] x86/intel_rdt: Introduce rdt_enable_key for scheduling

2017-07-25 Thread Vikas Shivappa
Introduce the usage of rdt_enable_key in sched_in code as a preparation to add RDT monitoring support for sched_in. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/include/asm/intel_rdt_sched.h | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-)

[PATCH 23/28] x86/intel_rdt: Introduce rdt_enable_key for scheduling

2017-07-25 Thread Vikas Shivappa
Introduce the usage of rdt_enable_key in sched_in code as a preparation to add RDT monitoring support for sched_in. Signed-off-by: Vikas Shivappa --- arch/x86/include/asm/intel_rdt_sched.h | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm

[PATCH 26/28] x86/intel_rdt/mbm: Basic counting of MBM events (total and local)

2017-07-25 Thread Vikas Shivappa
: Tony Luck <tony.l...@intel.com> Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt.c | 23 +++- arch/x86/kernel/cpu/intel_rdt.h | 33 + arch/x86/kernel/cpu/intel_rdt_

[PATCH 26/28] x86/intel_rdt/mbm: Basic counting of MBM events (total and local)

2017-07-25 Thread Vikas Shivappa
-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.c | 23 +++- arch/x86/kernel/cpu/intel_rdt.h | 33 + arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 1 + arch/x86/kernel/cpu/intel_rdt_monitor.c | 31

[PATCH 25/28] x86/intel_rdt/cqm: Add hotcpu support

2017-07-25 Thread Vikas Shivappa
Resource groups have a per domain directory under "mon_data". Add or remove these directories as and when domains come online and go offline. Also update the per cpu rmids and cache upon onlining and offlining cpus. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com&g

[PATCH 25/28] x86/intel_rdt/cqm: Add hotcpu support

2017-07-25 Thread Vikas Shivappa
Resource groups have a per domain directory under "mon_data". Add or remove these directories as and when domains come online and go offline. Also update the per cpu rmids and cache upon onlining and offlining cpus. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.c

[PATCH 24/28] x86/intel_rdt/cqm: Add sched_in support

2017-07-25 Thread Vikas Shivappa
cpu CLOSid/RMID values are cached and the write is performed only when a task with a different CLOSid/RMID is scheduled in. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/include/asm/intel_rdt_sched.h | 50 -- arch/x86/kern

[PATCH 24/28] x86/intel_rdt/cqm: Add sched_in support

2017-07-25 Thread Vikas Shivappa
cpu CLOSid/RMID values are cached and the write is performed only when a task with a different CLOSid/RMID is scheduled in. Signed-off-by: Vikas Shivappa --- arch/x86/include/asm/intel_rdt_sched.h | 50 -- arch/x86/kernel/cpu/intel_rdt.h| 4 --- 2 files

[PATCH 04/28] x86/intel_rdt: Change file names to accommodate RDT monitor code

2017-07-25 Thread Vikas Shivappa
clarations to a local intel_rdt.h. h/t to Reinette Chatre for pointing out that we should separate the public interfaces used by other parts of the kernel from private objects shared between the various files comprising RDT. No functional change. Signed-off-by: Vikas Shivappa <vikas.shiva...@li

[PATCH 04/28] x86/intel_rdt: Change file names to accommodate RDT monitor code

2017-07-25 Thread Vikas Shivappa
clarations to a local intel_rdt.h. h/t to Reinette Chatre for pointing out that we should separate the public interfaces used by other parts of the kernel from private objects shared between the various files comprising RDT. No functional change. Signed-off-by: Vikas Shivappa --- M

[PATCH 28/28] x86/intel_rdt/mbm: Handle counter overflow

2017-07-25 Thread Vikas Shivappa
y.l...@intel.com> Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt.c | 21 --- arch/x86/kernel/cpu/intel_rdt.h | 10 + arch/x86/kernel/cpu/intel_rdt_monitor.c | 63 arch/x8

[PATCH 28/28] x86/intel_rdt/mbm: Handle counter overflow

2017-07-25 Thread Vikas Shivappa
-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.c | 21 --- arch/x86/kernel/cpu/intel_rdt.h | 10 + arch/x86/kernel/cpu/intel_rdt_monitor.c | 63 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 9 + 4 files changed, 97

[PATCH 27/28] x86/intel_rdt/mbm: Add mbm counter initialization

2017-07-25 Thread Vikas Shivappa
bytes) or local_bytes(local memory controller bytes) file in "mon_data" is read it shows the total bytes for that rdtgroup since its creation. User can snapshot this at different time intervals to obtain bytes/second. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com&g

[PATCH 27/28] x86/intel_rdt/mbm: Add mbm counter initialization

2017-07-25 Thread Vikas Shivappa
bytes) or local_bytes(local memory controller bytes) file in "mon_data" is read it shows the total bytes for that rdtgroup since its creation. User can snapshot this at different time intervals to obtain bytes/second. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/i

[PATCH 07/28] x86/intel_rdt: make rdt_resources_all more readable

2017-07-25 Thread Vikas Shivappa
Change the format of the global rdt_resources_all. This holds all the RDT resource structure initialization values. Make this more readable by using the format: rdt_resources_all[] = { [] = {... } ... } Signed-off-by: Vikas Shivappa <vikas.sh

[PATCH 03/28] x86/intel_rdt: Introduce a common compile option for RDT

2017-07-25 Thread Vikas Shivappa
allocation and monitoring code. No functional change. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/Kconfig | 12 ++-- arch/x86/include/asm/intel_rdt.h | 4 ++-- arch/x86/kernel/cpu/Makefile | 2 +- include/linux/sched.h| 2

[PATCH 03/28] x86/intel_rdt: Introduce a common compile option for RDT

2017-07-25 Thread Vikas Shivappa
allocation and monitoring code. No functional change. Signed-off-by: Vikas Shivappa --- arch/x86/Kconfig | 12 ++-- arch/x86/include/asm/intel_rdt.h | 4 ++-- arch/x86/kernel/cpu/Makefile | 2 +- include/linux/sched.h| 2 +- 4 files changed, 10 insertions

[PATCH 07/28] x86/intel_rdt: make rdt_resources_all more readable

2017-07-25 Thread Vikas Shivappa
Change the format of the global rdt_resources_all. This holds all the RDT resource structure initialization values. Make this more readable by using the format: rdt_resources_all[] = { [] = {... } ... } Signed-off-by: Vikas Shivappa --- arch/x86/kernel

[PATCH 00/28 V2] Cqm3 patch series(along with MBM support)

2017-07-25 Thread Vikas Shivappa
86/intel_rdt: Simplify info and base file lists x86/intel_rdt/mbm: Basic counting of MBM events (total and local) Vikas Shivappa (25): x86/perf/cqm: Wipe out perf based cqm x86/intel_rdt/cqm: Documentation for resctrl based RDT Monitoring x86/intel_rdt: Introduce a common compile option f

[PATCH 00/28 V2] Cqm3 patch series(along with MBM support)

2017-07-25 Thread Vikas Shivappa
/intel_rdt/mbm: Basic counting of MBM events (total and local) Vikas Shivappa (25): x86/perf/cqm: Wipe out perf based cqm x86/intel_rdt/cqm: Documentation for resctrl based RDT Monitoring x86/intel_rdt: Introduce a common compile option for RDT x86/intel_rdt: Change file names to accommodate

[tip:x86/urgent] x86/intel_rdt: Fix memory leak on mount failure

2017-06-30 Thread tip-bot for Vikas Shivappa
Commit-ID: 79298acc4ba097e9ab78644e3e38902d73547c92 Gitweb: http://git.kernel.org/tip/79298acc4ba097e9ab78644e3e38902d73547c92 Author: Vikas Shivappa <vikas.shiva...@linux.intel.com> AuthorDate: Mon, 26 Jun 2017 11:55:49 -0700 Committer: Thomas Gleixner <t...@linutronix.de>

[tip:x86/urgent] x86/intel_rdt: Fix memory leak on mount failure

2017-06-30 Thread tip-bot for Vikas Shivappa
Commit-ID: 79298acc4ba097e9ab78644e3e38902d73547c92 Gitweb: http://git.kernel.org/tip/79298acc4ba097e9ab78644e3e38902d73547c92 Author: Vikas Shivappa AuthorDate: Mon, 26 Jun 2017 11:55:49 -0700 Committer: Thomas Gleixner CommitDate: Fri, 30 Jun 2017 21:20:00 +0200 x86/intel_rdt: Fix

[PATCH 07/21] x86/intel_rdt/cqm: Add RDT monitoring initialization

2017-06-26 Thread Vikas Shivappa
t;cqm" from some names, make some data structure local to intel_rdt_monitor.c static. Add copyright header] Signed-off-by: Tony Luck <tony.l...@intel.com> Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/Makefile| 2 +- arch/x86/

[PATCH 03/21] x86/intel_rdt/cqm: Documentation for resctrl based RDT Monitoring

2017-06-26 Thread Vikas Shivappa
Add a description of resctrl based RDT(resource director technology) monitoring extension and its usage. [Tony: Added descriptions for how monitoring and allocation are measured and some cleanups] Signed-off-by: Tony Luck <tony.l...@intel.com> Signed-off-by: Vikas Shivappa <vi

[PATCH 07/21] x86/intel_rdt/cqm: Add RDT monitoring initialization

2017-06-26 Thread Vikas Shivappa
t;cqm" from some names, make some data structure local to intel_rdt_monitor.c static. Add copyright header] Signed-off-by: Tony Luck Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/Makefile| 2 +- arch/x86/kernel/cpu/intel_rdt.c | 38 +--- arch/x86/kernel/cpu/i

[PATCH 03/21] x86/intel_rdt/cqm: Documentation for resctrl based RDT Monitoring

2017-06-26 Thread Vikas Shivappa
Add a description of resctrl based RDT(resource director technology) monitoring extension and its usage. [Tony: Added descriptions for how monitoring and allocation are measured and some cleanups] Signed-off-by: Tony Luck Signed-off-by: Vikas Shivappa --- Documentation/x86/intel_rdt_ui.txt

[PATCH 01/21] x86/perf/cqm: Wipe out perf based cqm

2017-06-26 Thread Vikas Shivappa
. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/events/intel/Makefile |2 +- arch/x86/events/intel/cqm.c | 1766 --- arch/x86/include/asm/intel_rdt_common.h |2 - arch/x86/kernel/cpu/intel_rdt.c

[PATCH 01/21] x86/perf/cqm: Wipe out perf based cqm

2017-06-26 Thread Vikas Shivappa
. Signed-off-by: Vikas Shivappa --- arch/x86/events/intel/Makefile |2 +- arch/x86/events/intel/cqm.c | 1766 --- arch/x86/include/asm/intel_rdt_common.h |2 - arch/x86/kernel/cpu/intel_rdt.c |8 + include/linux/perf_event.h

[PATCH 16/21] x86/intel_rdt/cqm: Add mount,umount support

2017-06-26 Thread Vikas Shivappa
is enabled all of the monitoring related directories/files would not exist and resctrl would work in legacy mode. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 5 +++ arch/x86/kernel/cpu/intel_rdt_monitor.c | 3 ++

[PATCH 16/21] x86/intel_rdt/cqm: Add mount,umount support

2017-06-26 Thread Vikas Shivappa
is enabled all of the monitoring related directories/files would not exist and resctrl would work in legacy mode. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.h | 5 +++ arch/x86/kernel/cpu/intel_rdt_monitor.c | 3 ++ arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 67 +

[PATCH 12/21] x86/intel_rdt/cqm: Add tasks file support

2017-06-26 Thread Vikas Shivappa
t;u32 rmid" which holds the RMID for the task. RMID=0 is reserved for the default root group where the tasks belong to at mount. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 18 -- include/linux/sched.h

[PATCH 12/21] x86/intel_rdt/cqm: Add tasks file support

2017-06-26 Thread Vikas Shivappa
t;u32 rmid" which holds the RMID for the task. RMID=0 is reserved for the default root group where the tasks belong to at mount. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 18 -- include/linux/sched.h| 1 + 2 files cha

[PATCH 09/21] x86/intel_rdt: Simplify info and base file lists

2017-06-26 Thread Vikas Shivappa
files. No functional change. [Vikas: Extended the flags to have few bits per category like resource, info/base etc] Signed-off-by: Tony luck <tony.l...@intel.com> Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt.c | 7 +- a

[PATCH 09/21] x86/intel_rdt: Simplify info and base file lists

2017-06-26 Thread Vikas Shivappa
. [Vikas: Extended the flags to have few bits per category like resource, info/base etc] Signed-off-by: Tony luck Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.c | 7 +- arch/x86/kernel/cpu/intel_rdt.h | 23 +++-- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 154

[PATCH 18/21] x86/intel_rdt/cqm: Add hotcpu support

2017-06-26 Thread Vikas Shivappa
Resource groups have a per domain directory under "mon_data". Add or remove these directories as and when domains come online and go offline. Also update the per cpu rmids and cache upon onlining and offlining cpus. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com&g

[PATCH 06/21] x86/intel_rdt: Cleanup namespace to support RDT monitoring

2017-06-26 Thread Vikas Shivappa
Few of the data-structures have generic names although they are RDT allocation specific. Rename them to be allocation specific to accommodate RDT monitoring. E.g. s/enabled/alloc_enabled/ No functional change. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/i

[PATCH 08/21] x86/intel_rdt/cqm: Add RMID(Resource monitoring ID) management

2017-06-26 Thread Vikas Shivappa
having some occupancy. They continue to be in limbo list until the occupancy < threshold_occupancy. The threshold_occupancy is a user configurable value. OS uses IA32_QM_CTR MSR to read the occupancy associated with an RMID after programming the IA32_EVENTSEL MSR with the RMID. Signed-off-by: Vi

[PATCH 18/21] x86/intel_rdt/cqm: Add hotcpu support

2017-06-26 Thread Vikas Shivappa
Resource groups have a per domain directory under "mon_data". Add or remove these directories as and when domains come online and go offline. Also update the per cpu rmids and cache upon onlining and offlining cpus. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.c

[PATCH 06/21] x86/intel_rdt: Cleanup namespace to support RDT monitoring

2017-06-26 Thread Vikas Shivappa
Few of the data-structures have generic names although they are RDT allocation specific. Rename them to be allocation specific to accommodate RDT monitoring. E.g. s/enabled/alloc_enabled/ No functional change. Signed-off-by: Vikas Shivappa --- arch/x86/include/asm/intel_rdt_sched.h | 4

[PATCH 08/21] x86/intel_rdt/cqm: Add RMID(Resource monitoring ID) management

2017-06-26 Thread Vikas Shivappa
having some occupancy. They continue to be in limbo list until the occupancy < threshold_occupancy. The threshold_occupancy is a user configurable value. OS uses IA32_QM_CTR MSR to read the occupancy associated with an RMID after programming the IA32_EVENTSEL MSR with the RMID. Signed-off-by: Vi

[PATCH 10/21] x86/intel_rdt/cqm: Add info files for RDT monitoring

2017-06-26 Thread Vikas Shivappa
and is used to determine if an RMID can be reused. Provides an upper bound on the threshold and is shown to the user in bytes though the internal value will be rounded to the scaling factor supported by the h/w. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- ar

[PATCH 11/21] x86/intel_rdt/cqm: Add mkdir support for RDT monitoring

2017-06-26 Thread Vikas Shivappa
oved a lot of common mkdir code, a fix to handling of the list of the child rdtgroups and some cleanups in list traversal. Also the changes to have similar alloc and free for CLOS/RMID and return -EBUSY when RMIDs are in limbo and not free] Signed-off-by: Tony Luck <tony.l...@intel.com> Sign

[PATCH 10/21] x86/intel_rdt/cqm: Add info files for RDT monitoring

2017-06-26 Thread Vikas Shivappa
and is used to determine if an RMID can be reused. Provides an upper bound on the threshold and is shown to the user in bytes though the internal value will be rounded to the scaling factor supported by the h/w. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.h

[PATCH 11/21] x86/intel_rdt/cqm: Add mkdir support for RDT monitoring

2017-06-26 Thread Vikas Shivappa
oved a lot of common mkdir code, a fix to handling of the list of the child rdtgroups and some cleanups in list traversal. Also the changes to have similar alloc and free for CLOS/RMID and return -EBUSY when RMIDs are in limbo and not free] Signed-off-by: Tony Luck Signed-off-by: Vikas Shivappa

[PATCH 13/21] x86/intel_rdt/cqm: Add cpus file support

2017-06-26 Thread Vikas Shivappa
omatically removed from the previous monitor group. When CPUs go offline, they are automatically removed from the ctrl_mon and monitor groups. Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt.c | 15 ++- arch/x86/kern

[PATCH 13/21] x86/intel_rdt/cqm: Add cpus file support

2017-06-26 Thread Vikas Shivappa
omatically removed from the previous monitor group. When CPUs go offline, they are automatically removed from the ctrl_mon and monitor groups. Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.c | 15 ++- arch/x86/kernel/cpu/intel_rdt.h | 2 + arch/x86/kernel/cpu

[PATCH 21/21] x86/intel_rdt/mbm: Handle counter overflow

2017-06-26 Thread Vikas Shivappa
y.l...@intel.com> Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/intel_rdt.c | 34 +++ arch/x86/kernel/cpu/intel_rdt.h | 9 + arch/x86/kernel/cpu/intel_rdt_monitor.c | 57 arch/x8

[PATCH 21/21] x86/intel_rdt/mbm: Handle counter overflow

2017-06-26 Thread Vikas Shivappa
-by: Vikas Shivappa --- arch/x86/kernel/cpu/intel_rdt.c | 34 +++ arch/x86/kernel/cpu/intel_rdt.h | 9 + arch/x86/kernel/cpu/intel_rdt_monitor.c | 57 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 9 + 4 files changed, 103

[PATCH 14/21] x86/intel_rdt/cqm: Add mon_data

2017-06-26 Thread Vikas Shivappa
directory and have one file per event (and use the fp->priv to store mon data bits)] Signed-off-by: Vikas Shivappa <vikas.shiva...@linux.intel.com> --- arch/x86/kernel/cpu/Makefile| 2 +- arch/x86/kernel/cpu/intel_rdt.c | 4 +- arch/x86/kernel/cpu/intel_rdt.

[PATCH 14/21] x86/intel_rdt/cqm: Add mon_data

2017-06-26 Thread Vikas Shivappa
directory and have one file per event (and use the fp->priv to store mon data bits)] Signed-off-by: Vikas Shivappa --- arch/x86/kernel/cpu/Makefile| 2 +- arch/x86/kernel/cpu/intel_rdt.c | 4 +- arch/x86/kernel/cpu/intel_rdt.h | 27 +++ arch/x

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