mirror of
https://github.com/torvalds/linux.git
synced 2026-12-05 21:04:14 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user