OrangePi_CM5/drivers/cpufreq
Pratik R. Sampat 086faa4a2e cpufreq: powernv: Fix init_chip_info initialization in numa=off
commit f34ee9cb2c5ac5af426fee6fa4591a34d187e696 upstream.

In the numa=off kernel command-line configuration init_chip_info() loops
around the number of chips and attempts to copy the cpumask of that node
which is NULL for all iterations after the first chip.

Hence, store the cpu mask for each chip instead of derving cpumask from
node while populating the "chips" struct array and copy that to the
chips[i].mask

Fixes: 053819e0bf ("cpufreq: powernv: Handle throttling due to Pmax capping at chip level")
Cc: stable@vger.kernel.org # v4.3+
Reported-by: Shirisha Ganta <shirisha.ganta1@ibm.com>
Signed-off-by: Pratik R. Sampat <psampat@linux.ibm.com>
Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
[mpe: Rename goto label to out_free_chip_cpu_mask]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210728120500.87549-2-psampat@linux.ibm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-18 13:40:36 +02:00
..
Kconfig
…
Kconfig.arm cpufreq: imx: fix NVMEM_IMX_OCOTP dependency 2020-12-30 11:53:39 +01:00
Kconfig.powerpc
…
Kconfig.x86
…
Makefile
…
acpi-cpufreq.c cpufreq: ACPI: Set cpuinfo.max_freq directly if max boost is known 2021-03-04 11:38:22 +01:00
amd_freq_sensitivity.c
…
armada-8k-cpufreq.c
…
armada-37xx-cpufreq.c cpufreq: armada-37xx: forbid cpufreq for 1.2 GHz variant 2021-08-26 08:35:41 -04:00
bmips-cpufreq.c
…
brcmstb-avs-cpufreq.c cpufreq: brcmstb-avs-cpufreq: Fix resource leaks in ->remove() 2021-03-04 11:37:24 +01:00
cppc_cpufreq.c
…
cpufreq-dt-platdev.c cpufreq: blocklist Qualcomm sm8150 in cpufreq-dt-platdev 2021-09-03 10:09:26 +02:00
cpufreq-dt.c
…
cpufreq-dt.h
…
cpufreq-nforce2.c
…
cpufreq.c cpufreq: Make cpufreq_online() call driver->offline() on errors 2021-07-14 16:56:13 +02:00
cpufreq_conservative.c
…
cpufreq_governor.c
…
cpufreq_governor.h
…
cpufreq_governor_attr_set.c
…
cpufreq_ondemand.c
…
cpufreq_ondemand.h
…
cpufreq_performance.c
…
cpufreq_powersave.c
…
cpufreq_stats.c
…
cpufreq_userspace.c
…
davinci-cpufreq.c
…
e_powersaver.c
…
elanfreq.c
…
freq_table.c cpufreq: ACPI: Set cpuinfo.max_freq directly if max boost is known 2021-03-04 11:38:22 +01:00
gx-suspmod.c
…
highbank-cpufreq.c
…
ia64-acpi-cpufreq.c
…
imx-cpufreq-dt.c
…
imx6q-cpufreq.c
…
intel_pstate.c cpufreq: intel_pstate: Use HWP if enabled by platform firmware 2021-05-19 10:12:51 +02:00
kirkwood-cpufreq.c
…
longhaul.c
…
longhaul.h
…
longrun.c
…
loongson1-cpufreq.c cpufreq: loongson1: Add missing MODULE_ALIAS 2020-12-30 11:53:38 +01:00
loongson2_cpufreq.c
…
maple-cpufreq.c
…
mediatek-cpufreq.c cpufreq: mediatek: Add missing MODULE_DEVICE_TABLE 2020-12-30 11:53:38 +01:00
mvebu-cpufreq.c
…
omap-cpufreq.c
…
p4-clockmod.c
…
pasemi-cpufreq.c
…
pcc-cpufreq.c
…
pmac32-cpufreq.c
…
pmac64-cpufreq.c
…
powernow-k6.c
…
powernow-k7.c
…
powernow-k7.h
…
powernow-k8.c cpufreq: powernow-k8: pass policy rather than use cpufreq_cpu_get() 2021-01-17 14:17:00 +01:00
powernow-k8.h
…
powernv-cpufreq.c cpufreq: powernv: Fix init_chip_info initialization in numa=off 2021-09-18 13:40:36 +02:00
ppc_cbe_cpufreq.c
…
ppc_cbe_cpufreq.h
…
ppc_cbe_cpufreq_pervasive.c
…
ppc_cbe_cpufreq_pmi.c
…
pxa2xx-cpufreq.c
…
pxa3xx-cpufreq.c
…
qcom-cpufreq-hw.c cpufreq: qcom-hw: Fix return value check in qcom_cpufreq_hw_cpu_init() 2021-03-17 17:06:33 +01:00
qcom-cpufreq-nvmem.c cpufreq: qcom: Add missing MODULE_DEVICE_TABLE 2020-12-30 11:53:38 +01:00
qoriq-cpufreq.c
…
raspberrypi-cpufreq.c
…
s3c24xx-cpufreq-debugfs.c
…
s3c24xx-cpufreq.c
…
s3c64xx-cpufreq.c
…
s3c2410-cpufreq.c
…
s3c2412-cpufreq.c
…
s3c2416-cpufreq.c
…
s3c2440-cpufreq.c
…
s5pv210-cpufreq.c
…
sa1100-cpufreq.c
…
sa1110-cpufreq.c
…
sc520_freq.c
…
scmi-cpufreq.c
…
scpi-cpufreq.c cpufreq: scpi: Add missing MODULE_ALIAS 2020-12-30 11:53:38 +01:00
sfi-cpufreq.c
…
sh-cpufreq.c
…
sparc-us2e-cpufreq.c
…
sparc-us3-cpufreq.c
…
spear-cpufreq.c
…
speedstep-centrino.c
…
speedstep-ich.c
…
speedstep-lib.c
…
speedstep-lib.h
…
speedstep-smi.c
…
sti-cpufreq.c cpufreq: st: Add missing MODULE_DEVICE_TABLE 2020-12-30 11:53:38 +01:00
sun50i-cpufreq-nvmem.c cpufreq: sun50i: Add missing MODULE_DEVICE_TABLE 2020-12-30 11:53:38 +01:00
tango-cpufreq.c
…
tegra20-cpufreq.c
…
tegra124-cpufreq.c
…
tegra186-cpufreq.c
…
tegra194-cpufreq.c
…
ti-cpufreq.c
…
vexpress-spc-cpufreq.c cpufreq: vexpress-spc: Add missing MODULE_ALIAS 2020-12-30 11:53:38 +01:00