Skip to contentSkip to conversation

PM / devfreq: exynos: add Exynos PPMU as a soft module dependency

PATCH Applied Marek Szyprowski 3 participants 3 messages May 18, 2023 – May 29, 2023 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20230518074416eucas1p1dfd47a3438f2252211cf7daa82e2ac1e@eucas1p1.samsung.com

#1 lore raw

PATCH 1/1 PM / devfreq: exynos: add Exynos PPMU as a soft module dependency

Commit adf8238ef403 ("ARM: dts: exynos: move exynos-bus nodes out of soc in Exynos4412") changed the order of the exynos-bus nodes, what results in different probe order of the Exynos Bus devices. Although the driver properly handles the deferred probe and all devices seems to be finally properly registered, this change revealed some kind of a bug related to PPMU counters registration and passive governor operation. Usually in 1 of 10 boots this results in complete board freeze during loading of the kernel modules.

To avoid that freeze, ensure that the Exynos PPMU driver is already loaded before the Exynos Bus driver starts probing.

---
This is a follow-up of the following discussion:
https://lore.kernel.org/all/[email protected]/

---
 drivers/devfreq/exynos-bus.c | 1 +
 1 file changed, 1 insertion(+)
drivers/devfreq/exynos-bus.c +1 -0
index 88414445adf3..245898f1a88e 100644
@@ -518,6 +518,7 @@ static struct platform_driver exynos_bus_platdrv = {
 };
 module_platform_driver(exynos_bus_platdrv);
 
+MODULE_SOFTDEP("pre: exynos_ppmu");
 MODULE_DESCRIPTION("Generic Exynos Bus frequency driver");
 MODULE_AUTHOR("Chanwoo Choi <[email protected]>");
 MODULE_LICENSE("GPL v2");
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#2 lore raw
Quoted 9 lines · Marek Szyprowski

Commit adf8238ef403 ("ARM: dts: exynos: move exynos-bus nodes out of soc in Exynos4412") changed the order of the exynos-bus nodes, what results in different probe order of the Exynos Bus devices. Although the driver properly handles the deferred probe and all devices seems to be finally properly registered, this change revealed some kind of a bug related to PPMU counters registration and passive governor operation. Usually in 1 of 10 boots this results in complete board freeze during loading of the kernel modules.

Quoted 4 lines

To avoid that freeze, ensure that the Exynos PPMU driver is already loaded before the Exynos Bus driver starts probing.

Best regards,
Krzysztof

Applied
#3 lore raw
In reply to Marek Szyprowski
Quoted 25 lines · Marek Szyprowski

Commit adf8238ef403 ("ARM: dts: exynos: move exynos-bus nodes out of soc in Exynos4412") changed the order of the exynos-bus nodes, what results in different probe order of the Exynos Bus devices. Although the driver properly handles the deferred probe and all devices seems to be finally properly registered, this change revealed some kind of a bug related to PPMU counters registration and passive governor operation. Usually in 1 of 10 boots this results in complete board freeze during loading of the kernel modules.

To avoid that freeze, ensure that the Exynos PPMU driver is already loaded before the Exynos Bus driver starts probing.

---
This is a follow-up of the following discussion:
https://lore.kernel.org/all/[email protected]/

---
 drivers/devfreq/exynos-bus.c | 1 +
 1 file changed, 1 insertion(+)
drivers/devfreq/exynos-bus.c +0 -0
index 88414445adf3..245898f1a88e 100644

drivers/devfreq/exynos-bus.c static struct platform_driver exynos_bus_platdrv = { · line 524

Quoted 7 lines
drivers/devfreq/exynos-bus.c +1 -0
@@ -518,6 +518,7 @@ static struct platform_driver exynos_bus_platdrv = {
 };
 module_platform_driver(exynos_bus_platdrv);
 
+MODULE_SOFTDEP("pre: exynos_ppmu");
 MODULE_DESCRIPTION("Generic Exynos Bus frequency driver");
 MODULE_AUTHOR("Chanwoo Choi <[email protected]>");
 MODULE_LICENSE("GPL v2");

Applied it. Thanks.

Signature · 3 lines
Best Regards,
Samsung Electronics
Chanwoo Choi