linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PM / devfreq: exynos: add Exynos PPMU as a soft module dependency
       [not found] <CGME20230518074416eucas1p1dfd47a3438f2252211cf7daa82e2ac1e@eucas1p1.samsung.com>
@ 2023-05-18  7:44 ` Marek Szyprowski
  2023-05-18  8:09   ` Krzysztof Kozlowski
  2023-05-29 14:25   ` Chanwoo Choi
  0 siblings, 2 replies; 3+ messages in thread
From: Marek Szyprowski @ 2023-05-18  7:44 UTC (permalink / raw)
  To: Chanwoo Choi, linux-pm, linux-samsung-soc
  Cc: Marek Szyprowski, MyungJoo Ham, Krzysztof Kozlowski, Alim Akhtar

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.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
---
This is a follow-up of the following discussion:
https://lore.kernel.org/all/d287ca9f-b056-d39a-aa93-b0e2cb279f73@linaro.org/
---
 drivers/devfreq/exynos-bus.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c
index 88414445adf3..245898f1a88e 100644
--- a/drivers/devfreq/exynos-bus.c
+++ b/drivers/devfreq/exynos-bus.c
@@ -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 <cw00.choi@samsung.com>");
 MODULE_LICENSE("GPL v2");
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] PM / devfreq: exynos: add Exynos PPMU as a soft module dependency
  2023-05-18  7:44 ` [PATCH] PM / devfreq: exynos: add Exynos PPMU as a soft module dependency Marek Szyprowski
@ 2023-05-18  8:09   ` Krzysztof Kozlowski
  2023-05-29 14:25   ` Chanwoo Choi
  1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2023-05-18  8:09 UTC (permalink / raw)
  To: Marek Szyprowski, Chanwoo Choi, linux-pm, linux-samsung-soc
  Cc: MyungJoo Ham, Alim Akhtar

On 18/05/2023 09:44, Marek Szyprowski wrote:
> 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.
> 
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] PM / devfreq: exynos: add Exynos PPMU as a soft module dependency
  2023-05-18  7:44 ` [PATCH] PM / devfreq: exynos: add Exynos PPMU as a soft module dependency Marek Szyprowski
  2023-05-18  8:09   ` Krzysztof Kozlowski
@ 2023-05-29 14:25   ` Chanwoo Choi
  1 sibling, 0 replies; 3+ messages in thread
From: Chanwoo Choi @ 2023-05-29 14:25 UTC (permalink / raw)
  To: Marek Szyprowski, Chanwoo Choi, linux-pm, linux-samsung-soc
  Cc: MyungJoo Ham, Krzysztof Kozlowski, Alim Akhtar

On 23. 5. 18. 16:44, Marek Szyprowski wrote:
> 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.
> 
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> ---
> This is a follow-up of the following discussion:
> https://lore.kernel.org/all/d287ca9f-b056-d39a-aa93-b0e2cb279f73@linaro.org/
> ---
>  drivers/devfreq/exynos-bus.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c
> index 88414445adf3..245898f1a88e 100644
> --- a/drivers/devfreq/exynos-bus.c
> +++ b/drivers/devfreq/exynos-bus.c
> @@ -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 <cw00.choi@samsung.com>");
>  MODULE_LICENSE("GPL v2");

Applied it. Thanks.

-- 
Best Regards,
Samsung Electronics
Chanwoo Choi


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-29 14:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CGME20230518074416eucas1p1dfd47a3438f2252211cf7daa82e2ac1e@eucas1p1.samsung.com>
2023-05-18  7:44 ` [PATCH] PM / devfreq: exynos: add Exynos PPMU as a soft module dependency Marek Szyprowski
2023-05-18  8:09   ` Krzysztof Kozlowski
2023-05-29 14:25   ` Chanwoo Choi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).