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 <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Cc: Reinette Chatre <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
CC: [email protected]
Cc: [email protected]
Cc: [email protected]
This commit is contained in:
Thomas Gleixner
2018-08-03 13:06:35 +02:00
parent 2989360d9c
commit 4a7a54a55e
+1 -1
View File
@@ -1171,7 +1171,7 @@ static ssize_t pseudo_lock_measure_trigger(struct file *file,
buf[buf_size] = '\0';
ret = kstrtoint(buf, 10, &sel);
if (ret == 0) {
if (sel != 1 && sel != 2)
if (sel != 1)
return -EINVAL;
ret = debugfs_file_get(file->f_path.dentry);
if (ret)