linux-stable/arch
Heiko Carstens eabb38ad01 s390/cache: prevent rebuild of shared_cpu_list
[ Upstream commit cb0cd4ee11 ]

With commit 36bbc5b4ff ("cacheinfo: Allow early detection and population
of cache attributes") the shared cpu list for each cache level higher than
L1 is rebuilt even if the list already has been set up.

This is caused by the removal of the cpumask_empty() check within
cache_shared_cpu_map_setup().

However architectures can enforce that the shared cpu list is not rebuilt
by simply setting cpu_map_populated of the per cpu cache info structure to
true, which is also the fix for this problem.

Before:
$ cat /sys/devices/system/cpu/cpu1/cache/index2/shared_cpu_list
0-7

After:
$ cat /sys/devices/system/cpu/cpu1/cache/index2/shared_cpu_list
1

Fixes: 36bbc5b4ff ("cacheinfo: Allow early detection and population of cache attributes")
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:19:38 -04:00
..
alpha
arc
arm ARM: dts: imx6dl-yapp4: Move the internal switch PHYs under the switch node 2024-03-26 18:19:34 -04:00
arm64 arm64: dts: qcom: sm8550: Fix SPMI channels size 2024-03-26 18:19:36 -04:00
csky
hexagon
ia64
loongarch
m68k
microblaze
mips MIPS: Clear Cause.BD in instruction_pointer_set 2024-03-26 18:19:10 -04:00
nios2
openrisc
parisc parisc/ftrace: add missing CONFIG_DYNAMIC_FTRACE check 2024-03-26 18:19:12 -04:00
powerpc powerpc/rtas: use correct function name for resetting TCE tables 2024-03-06 14:48:43 +00:00
riscv riscv: dts: sifive: add missing #interrupt-cells to pmic 2024-03-26 18:19:11 -04:00
s390 s390/cache: prevent rebuild of shared_cpu_list 2024-03-26 18:19:38 -04:00
sh
sparc
um
x86 ACPI: CPPC: enable AMD CPPC V2 support for family 17h processors 2024-03-26 18:19:36 -04:00
xtensa
.gitignore
Kconfig