Skip to content

Commit 4a7a54a

Browse files
committed
x86/intel_rdt: Disable PMU access
Peter is objecting to the direct PMU access in RDT. Right now the PMU usage is broken anyway as it is not coordinated with perf. Until this discussion settled, disable the PMU mechanics by simply rejecting the type '2' measurement in the resctrl file. Reported-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Reinette Chatre <reinette.chatre@intel.com> Cc: Dave Hansen <dave.hansen@intel.com> 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: hpa@zytor.com
1 parent 2989360 commit 4a7a54a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/cpu/intel_rdt_pseudo_lock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ static ssize_t pseudo_lock_measure_trigger(struct file *file,
11711171
buf[buf_size] = '\0';
11721172
ret = kstrtoint(buf, 10, &sel);
11731173
if (ret == 0) {
1174-
if (sel != 1 && sel != 2)
1174+
if (sel != 1)
11751175
return -EINVAL;
11761176
ret = debugfs_file_get(file->f_path.dentry);
11771177
if (ret)

0 commit comments

Comments
 (0)