[PATCH v2 0/2] Exynos PMU fixes for cpu hotplug and cpuidle routines
From: Alexey Klimov
Date: Fri Aug 28 2026 - 01:37:18 EST
This was reported by Sashiko here:
https://sashiko.dev/#/patchset/20260513-exynos850-cpuhotplug-v4-0-54fec5f65362@xxxxxxxxxx?part=3
and was mainly introduced by enabling cpu hotplug
support and cpuidle for gs101-based SoCs.
In this second version one patch was dropped to keep things consistent with
downstream implementation and due to lack of information. Other patches
deal with a few missing error paths issues here and there in
setup_cpuhp_and_cpuidle() and around. They were updated per discussions.
Tested on exynos850 e850-96 board with sequential series that implements
hotplug. I don't see any regressions but testing from others will be
appreciated.
Signed-off-by: Alexey Klimov <alexey.klimov@xxxxxxxxxx>
---
Changes in v2:
- destroy_cpuhp_and_cpuidle() is called only if
(pmu_context->pmu_data && pmu_context->pmu_data->pmu_cpuhp) == true
(as suggested by Peter) (second patch in this series);
- in clean_cpuhp_states error path the cpuhp states variables are now
reset to CPUHP_INVALID;
- re-implemented "soc: samsung: exynos-pmu: fix use-after-free of interrupt
generator node" -- used __free(device_node) at declaration;
(as suggested by Peter);
- drop "[PATCH 1/3] soc: samsung: exynos-pmu: use target cpu ID in hotplug
callbacks". If we get some information about CPUx_INFORM registers usage
then we may fix it later, but for now it was decided to keep it
consistent with downstream implementation;
- Link to v1: https://lore.kernel.org/r/20260605-exynos-pmu-cpuhp-idle-fixes-v1-0-0cd05c81a82d@xxxxxxxxxx
---
Alexey Klimov (2):
soc: samsung: exynos-pmu: fix use-after-free of interrupt generator node
soc: samsung: exynos-pmu: fix error paths in cpuhotplug/idle states setup
drivers/soc/samsung/exynos-pmu.c | 70 ++++++++++++++++++++++++++++++++--------
1 file changed, 57 insertions(+), 13 deletions(-)
---
base-commit: 3d83758432b5e6ed9507500a57efb0f3af41ee7d
change-id: 20260605-exynos-pmu-cpuhp-idle-fixes-32f5ed7c969f
Best regards,
--
Alexey Klimov <alexey.klimov@xxxxxxxxxx>