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>
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
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>
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
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>
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
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>
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
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>
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
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>
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
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
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
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
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
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 &
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
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
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_
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
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
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
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
.
[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
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
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
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
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
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
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/
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
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
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/
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
.
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
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 ++-
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
.
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
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(+),
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.
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 +
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
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 +
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/
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
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
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
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
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
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(-)
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
: 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_
-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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
/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
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>
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
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/
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
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
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
.
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
.
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
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 ++
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 +
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
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
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
.
[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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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.
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
101 - 200 of 1052 matches
Mail list logo