[PATCH V3 10/39] x86/intel_rdt: Making CBM name and type more explicit

2018-04-25 Thread Reinette Chatre
a variable of type u32 directly. At this time also change tha variable name "data" within parse_cbm() to a name more reflective of the content: "cbm_val". This frees up the generic "data" to be used later when it is indeed used for a collection of input. Signed-off-by:

[PATCH V3 10/39] x86/intel_rdt: Making CBM name and type more explicit

2018-04-25 Thread Reinette Chatre
a variable of type u32 directly. At this time also change tha variable name "data" within parse_cbm() to a name more reflective of the content: "cbm_val". This frees up the generic "data" to be used later when it is indeed used for a collection of input. Signed-off-by:

[PATCH V3 01/39] x86/intel_rdt: Document new mode, size, and bit_usage

2018-04-25 Thread Reinette Chatre
or the three new resctrl files as well as one example demonstrating their use. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- Documentation/x86/intel_rdt_ui.txt | 99 +- 1 file changed, 97 insertions(+), 2 deletions(-) diff --git a/Documenta

[PATCH V3 01/39] x86/intel_rdt: Document new mode, size, and bit_usage

2018-04-25 Thread Reinette Chatre
or the three new resctrl files as well as one example demonstrating their use. Signed-off-by: Reinette Chatre --- Documentation/x86/intel_rdt_ui.txt | 99 +- 1 file changed, 97 insertions(+), 2 deletions(-) diff --git a/Documentation/x86/intel_rdt_ui.txt b/Document

[PATCH V3 02/39] x86/intel_rdt: Introduce RDT resource group mode

2018-04-25 Thread Reinette Chatre
introduced in preparation for support of control over whether cache regions can be shared between classes of service. At this time the only mode reflects the current cache allocations where all can potentially be shared. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arc

[PATCH V3 11/39] x86/intel_rdt: Support flexible data to parsing callbacks

2018-04-25 Thread Reinette Chatre
parsing the callback is modified to support a void pointer as argument. This enables resources that need more data than just the user provided data to pass its required data to the callback without affecting the signatures for the callbacks of all the other resources. Signed-off-by: Reinette

[PATCH V3 02/39] x86/intel_rdt: Introduce RDT resource group mode

2018-04-25 Thread Reinette Chatre
introduced in preparation for support of control over whether cache regions can be shared between classes of service. At this time the only mode reflects the current cache allocations where all can potentially be shared. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 16 +

[PATCH V3 11/39] x86/intel_rdt: Support flexible data to parsing callbacks

2018-04-25 Thread Reinette Chatre
parsing the callback is modified to support a void pointer as argument. This enables resources that need more data than just the user provided data to pass its required data to the callback without affecting the signatures for the callbacks of all the other resources. Signed-off-by: Reinette

[PATCH V3 17/39] x86/intel_rdt: Respect read and write access

2018-04-25 Thread Reinette Chatre
are always respected. To do so the resctrl filesystem is created with the KERNFS_ROOT_EXTRA_OPEN_PERM_CHECK flag that will result in open(2) failing with -EACCESS regardless of CAP_DAC_OVERRIDE if the permission does not have the respective read or write access. Signed-off-by: Reinette Chatre

[PATCH V3 17/39] x86/intel_rdt: Respect read and write access

2018-04-25 Thread Reinette Chatre
are always respected. To do so the resctrl filesystem is created with the KERNFS_ROOT_EXTRA_OPEN_PERM_CHECK flag that will result in open(2) failing with -EACCESS regardless of CAP_DAC_OVERRIDE if the permission does not have the respective read or write access. Signed-off-by: Reinette Chatre

[PATCH V3 15/39] x86/intel_rdt: Documentation for Cache Pseudo-Locking

2018-04-25 Thread Reinette Chatre
Add description of Cache Pseudo-Locking feature, its interface, as well as an example of its usage. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- Documentation/x86/intel_rdt_ui.txt | 278 - 1 file changed, 276 insertions(+), 2 del

[PATCH V3 15/39] x86/intel_rdt: Documentation for Cache Pseudo-Locking

2018-04-25 Thread Reinette Chatre
Add description of Cache Pseudo-Locking feature, its interface, as well as an example of its usage. Signed-off-by: Reinette Chatre --- Documentation/x86/intel_rdt_ui.txt | 278 - 1 file changed, 276 insertions(+), 2 deletions(-) diff --git a/Documentation

[PATCH V3 19/39] x86/intel_rdt: Add utility to restrict/restore access to resctrl files

2018-04-25 Thread Reinette Chatre
or directory belonging to a resource group. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 2 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 95 2 files changed, 97 insertions(+) diff --git a/arch/x86/

[PATCH V3 19/39] x86/intel_rdt: Add utility to restrict/restore access to resctrl files

2018-04-25 Thread Reinette Chatre
or directory belonging to a resource group. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 2 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 95 2 files changed, 97 insertions(+) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86

[PATCH V3 05/39] x86/intel_rdt: Introduce test to determine if closid is in use

2018-04-25 Thread Reinette Chatre
the CBMs to know if its values are meaningful or can be ignored. Temporarily mark the function as unused to silence compile warnings until it is used. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 12 1 file chang

[PATCH V3 16/39] x86/intel_rdt: Introduce the Cache Pseudo-Locking modes

2018-04-25 Thread Reinette Chatre
ully after the user wrote the requested schemata to the "schemata" file, then the mode will automatically changed to "pseudo-locked". The user is not able to modify the mode to "pseudo-locked" by writing "pseudo-locked" to the "mode" file directly

[PATCH V3 05/39] x86/intel_rdt: Introduce test to determine if closid is in use

2018-04-25 Thread Reinette Chatre
the CBMs to know if its values are meaningful or can be ignored. Temporarily mark the function as unused to silence compile warnings until it is used. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 12 1 file changed, 12 insertions(+) diff --git

[PATCH V3 16/39] x86/intel_rdt: Introduce the Cache Pseudo-Locking modes

2018-04-25 Thread Reinette Chatre
ully after the user wrote the requested schemata to the "schemata" file, then the mode will automatically changed to "pseudo-locked". The user is not able to modify the mode to "pseudo-locked" by writing "pseudo-locked" to the "mode" file directl

[PATCH V3 04/39] x86/intel_rdt: Introduce resource group's mode resctrl file

2018-04-25 Thread Reinette Chatre
A new resctrl file "mode" associated with each resource group is introduced. This file will display the resource group's current mode and an administrator can also use it to modify the resource group's mode. Only shareable mode is currently supported. Signed-off-by: Reinette Chatre <

[PATCH V3 04/39] x86/intel_rdt: Introduce resource group's mode resctrl file

2018-04-25 Thread Reinette Chatre
A new resctrl file "mode" associated with each resource group is introduced. This file will display the resource group's current mode and an administrator can also use it to modify the resource group's mode. Only shareable mode is currently supported. Signed-off-by: Reinette Chat

[PATCH V3 21/39] x86/intel_rdt: Utilities to restrict/restore access to specific files

2018-04-25 Thread Reinette Chatre
they are used. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/Makefile| 3 +- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 121 2 files changed, 123 insertions(+), 1 deletion(-) create mode 100644 arch/x86/

[PATCH V3 21/39] x86/intel_rdt: Utilities to restrict/restore access to specific files

2018-04-25 Thread Reinette Chatre
they are used. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/Makefile| 3 +- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 121 2 files changed, 123 insertions(+), 1 deletion(-) create mode 100644 arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c

[PATCH V3 22/39] x86/intel_rdt: Add check to determine if monitoring in progress

2018-04-25 Thread Reinette Chatre
group. Temporarily mark it as unused to avoid compile warnings until it is used. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_

[PATCH V3 22/39] x86/intel_rdt: Add check to determine if monitoring in progress

2018-04-25 Thread Reinette Chatre
group. Temporarily mark it as unused to avoid compile warnings until it is used. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c b/arch/x86/kernel/cpu

[PATCH V3 24/39] x86/intel_rdt: Support enter/exit of locksetup mode

2018-04-25 Thread Reinette Chatre
group. Once the resource group is determined ready for a pseudo-locked region it is configured to not allow future changes to these properties. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 2 + arch/x86/kern

[PATCH V3 25/39] x86/intel_rdt: Enable entering of pseudo-locksetup mode

2018-04-25 Thread Reinette Chatre
appropriate default allocations for new resource groups. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 16 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c| 36 ++--- 2 files changed, 44 insertion

[PATCH V3 24/39] x86/intel_rdt: Support enter/exit of locksetup mode

2018-04-25 Thread Reinette Chatre
group. Once the resource group is determined ready for a pseudo-locked region it is configured to not allow future changes to these properties. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 2 + arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 187

[PATCH V3 25/39] x86/intel_rdt: Enable entering of pseudo-locksetup mode

2018-04-25 Thread Reinette Chatre
appropriate default allocations for new resource groups. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 16 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c| 36 ++--- 2 files changed, 44 insertions(+), 8 deletions(-) diff --g

[PATCH V3 26/39] x86/intel_rdt: Split resource group removal in two

2018-04-25 Thread Reinette Chatre
. This flag is not used by any of the code between its original and new location. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/arch/x86/kern

[PATCH V3 26/39] x86/intel_rdt: Split resource group removal in two

2018-04-25 Thread Reinette Chatre
. This flag is not used by any of the code between its original and new location. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch

[PATCH V3 29/39] x86/intel_rdt: Pseudo-lock region creation/removal core

2018-04-25 Thread Reinette Chatre
-locking is performed. The resource group already has the allocation that reflects the requested bitmask. With this class of service active and interference minimized, the allocated memory is loaded into the cache. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kern

[PATCH V3 29/39] x86/intel_rdt: Pseudo-lock region creation/removal core

2018-04-25 Thread Reinette Chatre
-locking is performed. The resource group already has the allocation that reflects the requested bitmask. With this class of service active and interference minimized, the allocated memory is loaded into the cache. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 17

[PATCH V3 27/39] x86/intel_rdt: Add utilities to test pseudo-locked region possibility

2018-04-25 Thread Reinette Chatre
instance, (2) a utility that can be used to test if a pseudo-locked region exists within a particular cache hierarchy. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 2 ++ arch/x86/kernel/cpu/intel_rdt_pseudo_lock.

[PATCH V3 27/39] x86/intel_rdt: Add utilities to test pseudo-locked region possibility

2018-04-25 Thread Reinette Chatre
instance, (2) a utility that can be used to test if a pseudo-locked region exists within a particular cache hierarchy. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 2 ++ arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 55 + 2 files changed

[PATCH V3 32/39] x86/intel_rdt: Ensure RDT cleanup on exit

2018-04-25 Thread Reinette Chatre
-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.c | 11 +++ arch/x86/kernel/cpu/intel_rdt.h | 3 +-- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 7 +++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/arch/x86/kern

[PATCH V3 32/39] x86/intel_rdt: Ensure RDT cleanup on exit

2018-04-25 Thread Reinette Chatre
-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.c | 11 +++ arch/x86/kernel/cpu/intel_rdt.h | 3 +-- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 7 +++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt.c b/arch/x86/kernel/cpu

[PATCH V3 34/39] x86/intel_rdt: Create debugfs files for pseudo-locking testing

2018-04-25 Thread Reinette Chatre
tracing/events/resctrl/pseudo_lock_mem_latency/enable cat /sys/kernel/debug/tracing/events/resctrl/pseudo_lock_mem_latency/hist Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/Kconfig | 1 + arch/x86/kernel/cpu/Makefile

[PATCH V3 14/39] x86/intel_rdt: Display resource groups' allocations' size in bytes

2018-04-25 Thread Reinette Chatre
the variables needed to compute it (the cache size, the CBM length, and the schemata). Introduce a new file "size" associated with each resource group that will mirror the schemata file syntax and display the size in bytes of each allocation. Signed-off-by: Reinette Chatre <reinette.cha

[PATCH V3 34/39] x86/intel_rdt: Create debugfs files for pseudo-locking testing

2018-04-25 Thread Reinette Chatre
tracing/events/resctrl/pseudo_lock_mem_latency/enable cat /sys/kernel/debug/tracing/events/resctrl/pseudo_lock_mem_latency/hist Signed-off-by: Reinette Chatre --- arch/x86/Kconfig | 1 + arch/x86/kernel/cpu/Makefile | 1 + arch/x86/

[PATCH V3 14/39] x86/intel_rdt: Display resource groups' allocations' size in bytes

2018-04-25 Thread Reinette Chatre
the variables needed to compute it (the cache size, the CBM length, and the schemata). Introduce a new file "size" associated with each resource group that will mirror the schemata file syntax and display the size in bytes of each allocation. Signed-off-by: Reinette Chatre --- arch/x86/

[PATCH V3 35/39] x86/intel_rdt: Create character device exposing pseudo-locked region

2018-04-25 Thread Reinette Chatre
-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 5 + arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 282 +++- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c| 11 +- 3 files changed, 296 insertions(+), 2 del

[PATCH V3 35/39] x86/intel_rdt: Create character device exposing pseudo-locked region

2018-04-25 Thread Reinette Chatre
-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 5 + arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 282 +++- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c| 11 +- 3 files changed, 296 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel

[PATCH V3 36/39] x86/intel_rdt: More precise L2 hit/miss measurements

2018-04-25 Thread Reinette Chatre
and MEM_LOAD_UOPS_RETIRED.L2_MISS, while accessing pseudo-locked data. A new tracepoint, pseudo_lock_l2, is created to make these results visible to the user. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 145 -- arch/x86/

[PATCH V3 36/39] x86/intel_rdt: More precise L2 hit/miss measurements

2018-04-25 Thread Reinette Chatre
and MEM_LOAD_UOPS_RETIRED.L2_MISS, while accessing pseudo-locked data. A new tracepoint, pseudo_lock_l2, is created to make these results visible to the user. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 145 -- arch/x86/kernel/cpu

[PATCH V3 13/39] x86/intel_rdt: Introduce "bit_usage" to display cache allocations details

2018-04-25 Thread Reinette Chatre
by software only E - currently used exclusively by one resource group Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 79 1 file changed, 79 insertions(+) diff --git a/arch/x86/kernel/cpu/intel_r

[PATCH V3 18/39] x86/intel_rdt: Add utility to test if tasks assigned to resource group

2018-04-25 Thread Reinette Chatre
In considering changes to a resource group it becomes necessary to know whether tasks have been assigned to the resource group in question. Introduce a new utility that can be used to check if any tasks have been assigned to a particular resource group. Signed-off-by: Reinette Chatre

[PATCH V3 13/39] x86/intel_rdt: Introduce "bit_usage" to display cache allocations details

2018-04-25 Thread Reinette Chatre
by software only E - currently used exclusively by one resource group Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 79 1 file changed, 79 insertions(+) diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/

[PATCH V3 18/39] x86/intel_rdt: Add utility to test if tasks assigned to resource group

2018-04-25 Thread Reinette Chatre
In considering changes to a resource group it becomes necessary to know whether tasks have been assigned to the resource group in question. Introduce a new utility that can be used to check if any tasks have been assigned to a particular resource group. Signed-off-by: Reinette Chatre --- arch

[PATCH V3 12/39] x86/intel_rdt: Ensure requested schemata respects mode

2018-04-25 Thread Reinette Chatre
. Similarly, if the resource group being changed is exclusive then its new schemata is not allowed to overlap with any schemata of any other active resource group. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 2 ++ arch/x86/kern

[PATCH V3 12/39] x86/intel_rdt: Ensure requested schemata respects mode

2018-04-25 Thread Reinette Chatre
. Similarly, if the resource group being changed is exclusive then its new schemata is not allowed to overlap with any schemata of any other active resource group. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 2 ++ arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c

[PATCH V3 37/39] x86/intel_rdt: Support L3 cache performance event of Broadwell

2018-04-25 Thread Reinette Chatre
Broadwell microarchitecture supports pseudo-locking. Add support for the L3 cache related performance events of these systems so that the success of pseudo-locking can be measured more accurately on these platforms. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/

[PATCH V3 37/39] x86/intel_rdt: Support L3 cache performance event of Broadwell

2018-04-25 Thread Reinette Chatre
Broadwell microarchitecture supports pseudo-locking. Add support for the L3 cache related performance events of these systems so that the success of pseudo-locking can be measured more accurately on these platforms. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c

[PATCH V3 38/39] x86/intel_rdt: Limit C-states dynamically when pseudo-locking active

2018-04-25 Thread Reinette Chatre
creation so that cores associated with the pseudo-locked region are prevented from entering deeper C-states. This is accomplished by requesting a CPU latency target which will prevent the core from entering C6 across all supported platforms. Signed-off-by: Reinette Chatre <reinette.cha...@intel.

[PATCH V3 38/39] x86/intel_rdt: Limit C-states dynamically when pseudo-locking active

2018-04-25 Thread Reinette Chatre
creation so that cores associated with the pseudo-locked region are prevented from entering deeper C-states. This is accomplished by requesting a CPU latency target which will prevent the core from entering C6 across all supported platforms. Signed-off-by: Reinette Chatre --- Documentation/x86

[PATCH V3 20/39] x86/intel_rdt: Protect against resource group changes during locking

2018-04-25 Thread Reinette Chatre
pseudo-locked region is set up. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 10 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c| 32 + 2 files changed, 38 insertions(+), 4 deletions(

[PATCH V3 30/39] x86/intel_rdt: Support creation/removal of pseudo-locked region

2018-04-25 Thread Reinette Chatre
a pseudo-locked region within its hierarchy. After a valid schemata is parsed the system is programmed to associate the to be pseudo-lock bitmask with the closid associated with the resource group. With the system set up the pseudo-locked region can be created. Signed-off-by: Reinette Chatre

[PATCH V3 20/39] x86/intel_rdt: Protect against resource group changes during locking

2018-04-25 Thread Reinette Chatre
pseudo-locked region is set up. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 10 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c| 32 + 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/cpu/intel

[PATCH V3 30/39] x86/intel_rdt: Support creation/removal of pseudo-locked region

2018-04-25 Thread Reinette Chatre
a pseudo-locked region within its hierarchy. After a valid schemata is parsed the system is programmed to associate the to be pseudo-lock bitmask with the closid associated with the resource group. With the system set up the pseudo-locked region can be created. Signed-off-by: Reinette Chatre --- arch

[PATCH V3 28/39] x86/intel_rdt: Discover supported platforms via prefetch disable bits

2018-04-25 Thread Reinette Chatre
locksetup mode to be entered it will fail if the prefetch disabling bits are not known for the platform. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 75 + 1 file changed, 75 insertions(+) diff --git

[PATCH V3 28/39] x86/intel_rdt: Discover supported platforms via prefetch disable bits

2018-04-25 Thread Reinette Chatre
locksetup mode to be entered it will fail if the prefetch disabling bits are not known for the platform. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 75 + 1 file changed, 75 insertions(+) diff --git a/arch/x86/kernel/cpu

[PATCH V3 31/39] x86/intel_rdt: resctrl files reflect pseudo-locked information

2018-04-25 Thread Reinette Chatre
of the pseudo-locked region. Update the resource group's size file to show the size in bytes of only the pseudo-locked region. Update the bit_usage file to use the letter 'P' for all pseudo-locked regions. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kern

[PATCH V3 31/39] x86/intel_rdt: resctrl files reflect pseudo-locked information

2018-04-25 Thread Reinette Chatre
of the pseudo-locked region. Update the resource group's size file to show the size in bytes of only the pseudo-locked region. Update the bit_usage file to use the letter 'P' for all pseudo-locked regions. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 3 +++ arch

[PATCH V3 33/39] x86/intel_rdt: Create resctrl debug area

2018-04-25 Thread Reinette Chatre
In preparation for support of debugging of RDT sub features the user can now enable a RDT debugfs region. Introduce the Kconfig option to enable this debug area and the subsequent creation of the resctrl debugfs directory. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- ar

[PATCH V3 33/39] x86/intel_rdt: Create resctrl debug area

2018-04-25 Thread Reinette Chatre
In preparation for support of debugging of RDT sub features the user can now enable a RDT debugfs region. Introduce the Kconfig option to enable this debug area and the subsequent creation of the resctrl debugfs directory. Signed-off-by: Reinette Chatre --- arch/x86/Kconfig

[PATCH V3 39/39] x86/intel_rdt: Support contiguous memory of all sizes

2018-04-25 Thread Reinette Chatre
than 4MB. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 2 +- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 85 ++--- 2 files changed, 67 insertions(+), 20 deletions(-) diff --git a/arch/x86/kern

[PATCH V3 39/39] x86/intel_rdt: Support contiguous memory of all sizes

2018-04-25 Thread Reinette Chatre
than 4MB. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 2 +- arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c | 85 ++--- 2 files changed, 67 insertions(+), 20 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu

[PATCH V3 23/39] x86/intel_rdt: Introduce pseudo-locked region

2018-04-25 Thread Reinette Chatre
and resource group structures. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt.h | 62 ++--- 1 file changed, 40 insertions(+), 22 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu/intel

[PATCH V3 23/39] x86/intel_rdt: Introduce pseudo-locked region

2018-04-25 Thread Reinette Chatre
and resource group structures. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt.h | 62 ++--- 1 file changed, 40 insertions(+), 22 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu/intel_rdt.h index 24399f2407d7

[PATCH V3 00/39] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling

2018-04-25 Thread Reinette Chatre
ron(R) Processor J3455) with the default 2GB DDR3L-1600 memory are available. In these tests the patches from this series were applied on the x86/cache branch of tip.git at the time the HEAD was: commit 87943db7dfb0c5ee5aa74a9ac06346fadd9695c8 (tip/x86/cache) Author: Reinette Chatre <reinette.c

[PATCH V3 00/39] Intel(R) Resource Director Technology Cache Pseudo-Locking enabling

2018-04-25 Thread Reinette Chatre
ron(R) Processor J3455) with the default 2GB DDR3L-1600 memory are available. In these tests the patches from this series were applied on the x86/cache branch of tip.git at the time the HEAD was: commit 87943db7dfb0c5ee5aa74a9ac06346fadd9695c8 (tip/x86/cache) Author: Reinette Chatre Date: Fri Oct 20 0

[PATCH V3 07/39] x86/intel_rdt: Initialize new resource group with sane defaults

2018-04-25 Thread Reinette Chatre
all that are shareable by other resource groups as well as regions that are not currently used. When a new resource group is created the hardware is initialized with these new default allocations. Signed-off-by: Reinette Chatre <reinette.cha...@intel.com> --- arch/x86/kernel/cpu/intel_rdt_rdtgro

[PATCH V3 07/39] x86/intel_rdt: Initialize new resource group with sane defaults

2018-04-25 Thread Reinette Chatre
all that are shareable by other resource groups as well as regions that are not currently used. When a new resource group is created the hardware is initialized with these new default allocations. Signed-off-by: Reinette Chatre --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 69 ++--

Re: [RFC PATCH 0/3] Interface for higher order contiguous allocations

2018-04-12 Thread Reinette Chatre
Hi Mike, On 2/15/2018 12:22 PM, Reinette Chatre wrote: > On 2/12/2018 2:20 PM, Mike Kravetz wrote: >> These patches came out of the "[RFC] mmap(MAP_CONTIG)" discussions at: >> http://lkml.kernel.org/r/21f1ec96-2822-1189-1c95-79a2bb491...@oracle.com >> &

Re: [RFC PATCH 0/3] Interface for higher order contiguous allocations

2018-04-12 Thread Reinette Chatre
Hi Mike, On 2/15/2018 12:22 PM, Reinette Chatre wrote: > On 2/12/2018 2:20 PM, Mike Kravetz wrote: >> These patches came out of the "[RFC] mmap(MAP_CONTIG)" discussions at: >> http://lkml.kernel.org/r/21f1ec96-2822-1189-1c95-79a2bb491...@oracle.com >> &

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-28 Thread Reinette Chatre
Hi Thomas, On 2/28/2018 10:39 AM, Thomas Gleixner wrote: > On Tue, 27 Feb 2018, Reinette Chatre wrote: >> On 2/27/2018 2:36 AM, Thomas Gleixner wrote: >>> On Mon, 26 Feb 2018, Reinette Chatre wrote: >>>> Moving to "exclusive" mode it appears that, whe

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-28 Thread Reinette Chatre
Hi Thomas, On 2/28/2018 10:39 AM, Thomas Gleixner wrote: > On Tue, 27 Feb 2018, Reinette Chatre wrote: >> On 2/27/2018 2:36 AM, Thomas Gleixner wrote: >>> On Mon, 26 Feb 2018, Reinette Chatre wrote: >>>> Moving to "exclusive" mode it appears that, whe

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-28 Thread Reinette Chatre
Hi Thomas, On 2/28/2018 9:59 AM, Thomas Gleixner wrote: > On Wed, 28 Feb 2018, Thomas Gleixner wrote: >> On Tue, 27 Feb 2018, Reinette Chatre wrote: >>> On 2/20/2018 9:15 AM, Thomas Gleixner wrote: >>>> Let's look at the existing crtl/mon groups which are each r

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-28 Thread Reinette Chatre
Hi Thomas, On 2/28/2018 9:59 AM, Thomas Gleixner wrote: > On Wed, 28 Feb 2018, Thomas Gleixner wrote: >> On Tue, 27 Feb 2018, Reinette Chatre wrote: >>> On 2/20/2018 9:15 AM, Thomas Gleixner wrote: >>>> Let's look at the existing crtl/mon groups which are each r

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-27 Thread Reinette Chatre
Hi Thomas, On 2/27/2018 11:52 AM, Reinette Chatre wrote: > On 2/27/2018 2:36 AM, Thomas Gleixner wrote: >> Let's assume its real, >> so you could do the following: >> >> mkdir group <- acquires closid >> echo locksetup > mode<- Creat

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-27 Thread Reinette Chatre
Hi Thomas, On 2/27/2018 11:52 AM, Reinette Chatre wrote: > On 2/27/2018 2:36 AM, Thomas Gleixner wrote: >> Let's assume its real, >> so you could do the following: >> >> mkdir group <- acquires closid >> echo locksetup > mode<- Creat

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-27 Thread Reinette Chatre
Hi Thomas, On 2/20/2018 9:15 AM, Thomas Gleixner wrote: > Let's look at the existing crtl/mon groups which are each represented by a > directory already. > > - Adding a 'size' file to the ctrl groups would be a natural extension >which makes sense for regular cache allocations as well. >

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-27 Thread Reinette Chatre
Hi Thomas, On 2/20/2018 9:15 AM, Thomas Gleixner wrote: > Let's look at the existing crtl/mon groups which are each represented by a > directory already. > > - Adding a 'size' file to the ctrl groups would be a natural extension >which makes sense for regular cache allocations as well. >

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-27 Thread Reinette Chatre
Hi Thomas, On 2/27/2018 2:36 AM, Thomas Gleixner wrote: > On Mon, 26 Feb 2018, Reinette Chatre wrote: >> A change to start us off with could be to initialize the schemata with >> all the shareable and unused bits set for all domains when a new >> resource group is created.

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-27 Thread Reinette Chatre
Hi Thomas, On 2/27/2018 2:36 AM, Thomas Gleixner wrote: > On Mon, 26 Feb 2018, Reinette Chatre wrote: >> A change to start us off with could be to initialize the schemata with >> all the shareable and unused bits set for all domains when a new >> resource group is created.

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-26 Thread Reinette Chatre
Hi Thomas, On 2/20/2018 9:15 AM, Thomas Gleixner wrote: > Let's look at the existing crtl/mon groups which are each represented by a > directory already. > > - Adding a 'size' file to the ctrl groups would be a natural extension >which makes sense for regular cache allocations as well. > >

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-26 Thread Reinette Chatre
Hi Thomas, On 2/20/2018 9:15 AM, Thomas Gleixner wrote: > Let's look at the existing crtl/mon groups which are each represented by a > directory already. > > - Adding a 'size' file to the ctrl groups would be a natural extension >which makes sense for regular cache allocations as well. > >

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-20 Thread Reinette Chatre
Hi Mike, On 2/20/2018 5:58 PM, Mike Kravetz wrote: > On 02/20/2018 03:21 PM, Thomas Gleixner wrote: >> On Tue, 20 Feb 2018, Reinette Chatre wrote: >>> On 2/20/2018 9:15 AM, Thomas Gleixner wrote: >>>> On Tue, 13 Feb 2018, Reinette Chatre wrote: >>>>

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-20 Thread Reinette Chatre
Hi Mike, On 2/20/2018 5:58 PM, Mike Kravetz wrote: > On 02/20/2018 03:21 PM, Thomas Gleixner wrote: >> On Tue, 20 Feb 2018, Reinette Chatre wrote: >>> On 2/20/2018 9:15 AM, Thomas Gleixner wrote: >>>> On Tue, 13 Feb 2018, Reinette Chatre wrote: >>>>

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-20 Thread Reinette Chatre
Hi Thomas, On 2/20/2018 3:21 PM, Thomas Gleixner wrote: > On Tue, 20 Feb 2018, Reinette Chatre wrote: >> On 2/20/2018 9:15 AM, Thomas Gleixner wrote: >>> On Tue, 13 Feb 2018, Reinette Chatre wrote: >>> >>> Are you really sure that the life time rules of pl

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-20 Thread Reinette Chatre
Hi Thomas, On 2/20/2018 3:21 PM, Thomas Gleixner wrote: > On Tue, 20 Feb 2018, Reinette Chatre wrote: >> On 2/20/2018 9:15 AM, Thomas Gleixner wrote: >>> On Tue, 13 Feb 2018, Reinette Chatre wrote: >>> >>> Are you really sure that the life time rules of pl

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-20 Thread Reinette Chatre
Hi Thomas, On 2/20/2018 9:15 AM, Thomas Gleixner wrote: > On Tue, 13 Feb 2018, Reinette Chatre wrote: >> static void __pseudo_lock_region_release(struct pseudo_lock_region *plr) >> { >> bool is_new_plr = (plr == new_plr); >> @@ -93,6 +175,23 @@ static void _

Re: [RFC PATCH V2 13/22] x86/intel_rdt: Support schemata write - pseudo-locking core

2018-02-20 Thread Reinette Chatre
Hi Thomas, On 2/20/2018 9:15 AM, Thomas Gleixner wrote: > On Tue, 13 Feb 2018, Reinette Chatre wrote: >> static void __pseudo_lock_region_release(struct pseudo_lock_region *plr) >> { >> bool is_new_plr = (plr == new_plr); >> @@ -93,6 +175,23 @@ static void _

Re: [RFC PATCH V2 11/22] x86/intel_rdt: Associate pseudo-locked regions with its domain

2018-02-20 Thread Reinette Chatre
Hi Thomas, On 2/20/2018 2:00 AM, Thomas Gleixner wrote: > On Mon, 19 Feb 2018, Reinette Chatre wrote: >> On 2/19/2018 3:19 PM, Thomas Gleixner wrote: >>> On Mon, 19 Feb 2018, Reinette Chatre wrote: >>>> On 2/19/2018 1:19 PM, Thomas Gleixner wrote: >>>>&g

Re: [RFC PATCH V2 11/22] x86/intel_rdt: Associate pseudo-locked regions with its domain

2018-02-20 Thread Reinette Chatre
Hi Thomas, On 2/20/2018 2:00 AM, Thomas Gleixner wrote: > On Mon, 19 Feb 2018, Reinette Chatre wrote: >> On 2/19/2018 3:19 PM, Thomas Gleixner wrote: >>> On Mon, 19 Feb 2018, Reinette Chatre wrote: >>>> On 2/19/2018 1:19 PM, Thomas Gleixner wrote: >>>>&g

Re: [RFC PATCH V2 06/22] x86/intel_rdt: Create pseudo-locked regions

2018-02-19 Thread Reinette Chatre
Hi Thomas, On 2/19/2018 3:16 PM, Thomas Gleixner wrote: > On Mon, 19 Feb 2018, Reinette Chatre wrote: >> On 2/19/2018 12:57 PM, Thomas Gleixner wrote: >>> On Tue, 13 Feb 2018, Reinette Chatre wrote: >>> >>>> System administrator creates/removes pseudo-l

Re: [RFC PATCH V2 06/22] x86/intel_rdt: Create pseudo-locked regions

2018-02-19 Thread Reinette Chatre
Hi Thomas, On 2/19/2018 3:16 PM, Thomas Gleixner wrote: > On Mon, 19 Feb 2018, Reinette Chatre wrote: >> On 2/19/2018 12:57 PM, Thomas Gleixner wrote: >>> On Tue, 13 Feb 2018, Reinette Chatre wrote: >>> >>>> System administrator creates/removes pseudo-l

Re: [RFC PATCH V2 11/22] x86/intel_rdt: Associate pseudo-locked regions with its domain

2018-02-19 Thread Reinette Chatre
Hi Thomas, On 2/19/2018 3:19 PM, Thomas Gleixner wrote: > On Mon, 19 Feb 2018, Reinette Chatre wrote: >> On 2/19/2018 1:19 PM, Thomas Gleixner wrote: >>> On Tue, 13 Feb 2018, Reinette Chatre wrote: >>> >>>> After a pseudo-locked region is locked it needs to

Re: [RFC PATCH V2 11/22] x86/intel_rdt: Associate pseudo-locked regions with its domain

2018-02-19 Thread Reinette Chatre
Hi Thomas, On 2/19/2018 3:19 PM, Thomas Gleixner wrote: > On Mon, 19 Feb 2018, Reinette Chatre wrote: >> On 2/19/2018 1:19 PM, Thomas Gleixner wrote: >>> On Tue, 13 Feb 2018, Reinette Chatre wrote: >>> >>>> After a pseudo-locked region is locked it needs to

Re: [RFC PATCH V2 06/22] x86/intel_rdt: Create pseudo-locked regions

2018-02-19 Thread Reinette Chatre
Hi Thomas, On 2/19/2018 12:57 PM, Thomas Gleixner wrote: > On Tue, 13 Feb 2018, Reinette Chatre wrote: > >> System administrator creates/removes pseudo-locked regions by >> creating/removing directories in the pseudo-lock subdirectory of the >> resctrl filesystem. Here w

Re: [RFC PATCH V2 06/22] x86/intel_rdt: Create pseudo-locked regions

2018-02-19 Thread Reinette Chatre
Hi Thomas, On 2/19/2018 12:57 PM, Thomas Gleixner wrote: > On Tue, 13 Feb 2018, Reinette Chatre wrote: > >> System administrator creates/removes pseudo-locked regions by >> creating/removing directories in the pseudo-lock subdirectory of the >> resctrl filesystem. Here w

<    5   6   7   8   9   10   11   12   >