summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorJames Morse <james.morse@arm.com>2019-06-03 18:25:31 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-25 11:36:02 +0800
commit8c4fe20091cdc348e0eada94a91d655f0d851bab (patch)
tree30cbf890199ce35fe8f179cef501f3b805c8b71b /sound
parentd451b505b67645c65a10ff159b7ad0a93dcc29ea (diff)
downloadlinux-stable-8c4fe20091cdc348e0eada94a91d655f0d851bab.tar.gz
linux-stable-8c4fe20091cdc348e0eada94a91d655f0d851bab.tar.bz2
linux-stable-8c4fe20091cdc348e0eada94a91d655f0d851bab.zip
x86/resctrl: Don't stop walking closids when a locksetup group is found
commit 87d3aa28f345bea77c396855fa5d5fec4c24461f upstream. When a new control group is created __init_one_rdt_domain() walks all the other closids to calculate the sets of used and unused bits. If it discovers a pseudo_locksetup group, it breaks out of the loop. This means any later closid doesn't get its used bits added to used_b. These bits will then get set in unused_b, and added to the new control group's configuration, even if they were marked as exclusive for a later closid. When encountering a pseudo_locksetup group, we should continue. This is because "a resource group enters 'pseudo-locked' mode after the schemata is written while the resource group is in 'pseudo-locksetup' mode." When we find a pseudo_locksetup group, its configuration is expected to be overwritten, we can skip it. Fixes: dfe9674b04ff6 ("x86/intel_rdt: Enable entering of pseudo-locksetup mode") Signed-off-by: James Morse <james.morse@arm.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Reinette Chatre <reinette.chatre@intel.com> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: Borislav Petkov <bp@alien8.de> Cc: H Peter Avin <hpa@zytor.com> Cc: <stable@vger.kernel.org> Link: https://lkml.kernel.org/r/20190603172531.178830-1-james.morse@arm.com [Dropped comment due to lack of space] Signed-off-by: James Morse <james.morse@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions