Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79936807 authored by Kohei Tarumizu's avatar Kohei Tarumizu Committed by Greg Kroah-Hartman
Browse files

x86/resctrl: Fix to restore to original value when re-enabling hardware prefetch register



[ Upstream commit 499c8bb4693d1c8d8f3d6dd38e5bdde3ff5bd906 ]

The current pseudo_lock.c code overwrites the value of the
MSR_MISC_FEATURE_CONTROL to 0 even if the original value is not 0.
Therefore, modify it to save and restore the original values.

Fixes: 018961ae ("x86/intel_rdt: Pseudo-lock region creation/removal core")
Fixes: 443810fe ("x86/intel_rdt: Create debugfs files for pseudo-locking testing")
Fixes: 8a2fc0e1 ("x86/intel_rdt: More precise L2 hit/miss measurements")
Signed-off-by: default avatarKohei Tarumizu <tarumizu.kohei@fujitsu.com>
Signed-off-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
Acked-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Link: https://lkml.kernel.org/r/eb660f3c2010b79a792c573c02d01e8e841206ad.1661358182.git.reinette.chatre@intel.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent bbe293db
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment