Skip to content

Commit eb956a6

Browse files
rchatreKAGA-KOKO
authored andcommitted
x86/intel_rdt: Introduce RDT resource group mode
At this time there are no constraints on how bitmasks represented by schemata can be associated with closids represented by resource groups. A bitmask of one class of service can without any objections overlap with the bitmask of another class of service. The concept of "mode" is 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.chatre@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: fenghua.yu@intel.com Cc: tony.luck@intel.com Cc: vikas.shivappa@linux.intel.com Cc: gavin.hindman@intel.com Cc: jithu.joseph@intel.com Cc: dave.hansen@intel.com Cc: hpa@zytor.com Link: https://lkml.kernel.org/r/87e88275597fbfa03ea9d41c1186bf012c831c01.1529706536.git.reinette.chatre@intel.com
1 parent cba1aab commit eb956a6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

arch/x86/kernel/cpu/intel_rdt.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,22 @@ enum rdt_group_type {
8080
RDT_NUM_GROUP,
8181
};
8282

83+
/**
84+
* enum rdtgrp_mode - Mode of a RDT resource group
85+
* @RDT_MODE_SHAREABLE: This resource group allows sharing of its allocations
86+
*
87+
* The mode of a resource group enables control over the allowed overlap
88+
* between allocations associated with different resource groups (classes
89+
* of service). User is able to modify the mode of a resource group by
90+
* writing to the "mode" resctrl file associated with the resource group.
91+
*/
92+
enum rdtgrp_mode {
93+
RDT_MODE_SHAREABLE = 0,
94+
95+
/* Must be last */
96+
RDT_NUM_MODES,
97+
};
98+
8399
/**
84100
* struct mongroup - store mon group's data in resctrl fs.
85101
* @mon_data_kn kernlfs node for the mon_data directory

0 commit comments

Comments
 (0)