* [PATCH 0/2] Update init level for cmd-db, rpmh-rsc and psci cpuidle domains
@ 2024-02-17 13:57 Maulik Shah
2024-02-17 13:57 ` [PATCH 1/2] soc: qcom: Update init level to core_initcall() for cmd-db and rpmh-rsc Maulik Shah
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Maulik Shah @ 2024-02-17 13:57 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Ulf Hansson, Rafael J. Wysocki,
Daniel Lezcano
Cc: linux-arm-msm, linux-kernel, linux-pm, linux-arm-kernel,
quic_lsrao, Maulik Shah
cmd-db and rpmh-rsc are used by clients like regulators, interconnects and
clocks for resource voting. These clients are in core_initcall() while
cmd-db and rpmh-rsc are in arch_initcall(). Update init level for these
drivers also to core_initcall() to avoid unnecessary probe defer during
boot up.
Similarly psci cpuidle psci power domains are used by rpmh-rsc driver and
they are in subsys_initcall(). Update it to core_initcall().
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
---
Maulik Shah (2):
soc: qcom: Update init level to core_initcall() for cmd-db and rpmh-rsc
cpuidle: psci: Update init level to core_initcall()
drivers/cpuidle/cpuidle-psci-domain.c | 2 +-
drivers/soc/qcom/cmd-db.c | 2 +-
drivers/soc/qcom/rpmh-rsc.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
base-commit: d37e1e4c52bc60578969f391fb81f947c3e83118
change-id: 20240217-init_level-beb6d740d8d2
Best regards,
--
Maulik Shah <quic_mkshah@quicinc.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] soc: qcom: Update init level to core_initcall() for cmd-db and rpmh-rsc
2024-02-17 13:57 [PATCH 0/2] Update init level for cmd-db, rpmh-rsc and psci cpuidle domains Maulik Shah
@ 2024-02-17 13:57 ` Maulik Shah
2024-02-28 15:40 ` Ulf Hansson
2024-04-04 11:06 ` Ulf Hansson
2024-02-17 13:57 ` [PATCH 2/2] cpuidle: psci: Update init level to core_initcall() Maulik Shah
2024-03-17 16:27 ` (subset) [PATCH 0/2] Update init level for cmd-db, rpmh-rsc and psci cpuidle domains Bjorn Andersson
2 siblings, 2 replies; 8+ messages in thread
From: Maulik Shah @ 2024-02-17 13:57 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Ulf Hansson, Rafael J. Wysocki,
Daniel Lezcano
Cc: linux-arm-msm, linux-kernel, linux-pm, linux-arm-kernel,
quic_lsrao, Maulik Shah
cmd-db and rpmh-rsc are used by clients like regulators, interconnects and
clocks for resource voting. These clients are in core_initcall() while
cmd-db and rpmh-rsc are in arch_initcall(). Update init level for these
drivers also to core_initcall() to avoid unnecessary probe defer during
boot up.
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
---
drivers/soc/qcom/cmd-db.c | 2 +-
drivers/soc/qcom/rpmh-rsc.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/soc/qcom/cmd-db.c b/drivers/soc/qcom/cmd-db.c
index a5fd68411bed..c344107bc36c 100644
--- a/drivers/soc/qcom/cmd-db.c
+++ b/drivers/soc/qcom/cmd-db.c
@@ -362,7 +362,7 @@ static int __init cmd_db_device_init(void)
{
return platform_driver_register(&cmd_db_dev_driver);
}
-arch_initcall(cmd_db_device_init);
+core_initcall(cmd_db_device_init);
MODULE_DESCRIPTION("Qualcomm Technologies, Inc. Command DB Driver");
MODULE_LICENSE("GPL v2");
diff --git a/drivers/soc/qcom/rpmh-rsc.c b/drivers/soc/qcom/rpmh-rsc.c
index a021dc71807b..c4c7aad957e6 100644
--- a/drivers/soc/qcom/rpmh-rsc.c
+++ b/drivers/soc/qcom/rpmh-rsc.c
@@ -1154,7 +1154,7 @@ static int __init rpmh_driver_init(void)
{
return platform_driver_register(&rpmh_driver);
}
-arch_initcall(rpmh_driver_init);
+core_initcall(rpmh_driver_init);
MODULE_DESCRIPTION("Qualcomm Technologies, Inc. RPMh Driver");
MODULE_LICENSE("GPL v2");
--
2.22.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] cpuidle: psci: Update init level to core_initcall()
2024-02-17 13:57 [PATCH 0/2] Update init level for cmd-db, rpmh-rsc and psci cpuidle domains Maulik Shah
2024-02-17 13:57 ` [PATCH 1/2] soc: qcom: Update init level to core_initcall() for cmd-db and rpmh-rsc Maulik Shah
@ 2024-02-17 13:57 ` Maulik Shah
2024-02-28 15:40 ` Ulf Hansson
2024-04-04 11:06 ` Ulf Hansson
2024-03-17 16:27 ` (subset) [PATCH 0/2] Update init level for cmd-db, rpmh-rsc and psci cpuidle domains Bjorn Andersson
2 siblings, 2 replies; 8+ messages in thread
From: Maulik Shah @ 2024-02-17 13:57 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Ulf Hansson, Rafael J. Wysocki,
Daniel Lezcano
Cc: linux-arm-msm, linux-kernel, linux-pm, linux-arm-kernel,
quic_lsrao, Maulik Shah
Clients like regulators, interconnects and clocks depend on rpmh-rsc to
vote on resources and rpmh-rsc depends on psci power-domains to complete
probe. All of them are in core_initcall().
Change psci domain init level to core_initcall() to avoid probe defer from
all of the above.
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
---
drivers/cpuidle/cpuidle-psci-domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/cpuidle/cpuidle-psci-domain.c b/drivers/cpuidle/cpuidle-psci-domain.c
index b88af1262f1a..3e5b1150f75b 100644
--- a/drivers/cpuidle/cpuidle-psci-domain.c
+++ b/drivers/cpuidle/cpuidle-psci-domain.c
@@ -200,4 +200,4 @@ static int __init psci_idle_init_domains(void)
{
return platform_driver_register(&psci_cpuidle_domain_driver);
}
-subsys_initcall(psci_idle_init_domains);
+core_initcall(psci_idle_init_domains);
--
2.22.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] soc: qcom: Update init level to core_initcall() for cmd-db and rpmh-rsc
2024-02-17 13:57 ` [PATCH 1/2] soc: qcom: Update init level to core_initcall() for cmd-db and rpmh-rsc Maulik Shah
@ 2024-02-28 15:40 ` Ulf Hansson
2024-04-04 11:06 ` Ulf Hansson
1 sibling, 0 replies; 8+ messages in thread
From: Ulf Hansson @ 2024-02-28 15:40 UTC (permalink / raw)
To: Maulik Shah
Cc: Bjorn Andersson, Konrad Dybcio, Rafael J. Wysocki,
Daniel Lezcano, linux-arm-msm, linux-kernel, linux-pm,
linux-arm-kernel, quic_lsrao
On Sat, 17 Feb 2024 at 14:57, Maulik Shah <quic_mkshah@quicinc.com> wrote:
>
> cmd-db and rpmh-rsc are used by clients like regulators, interconnects and
> clocks for resource voting. These clients are in core_initcall() while
> cmd-db and rpmh-rsc are in arch_initcall(). Update init level for these
> drivers also to core_initcall() to avoid unnecessary probe defer during
> boot up.
>
> Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Kind regards
Uffe
> ---
> drivers/soc/qcom/cmd-db.c | 2 +-
> drivers/soc/qcom/rpmh-rsc.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/soc/qcom/cmd-db.c b/drivers/soc/qcom/cmd-db.c
> index a5fd68411bed..c344107bc36c 100644
> --- a/drivers/soc/qcom/cmd-db.c
> +++ b/drivers/soc/qcom/cmd-db.c
> @@ -362,7 +362,7 @@ static int __init cmd_db_device_init(void)
> {
> return platform_driver_register(&cmd_db_dev_driver);
> }
> -arch_initcall(cmd_db_device_init);
> +core_initcall(cmd_db_device_init);
>
> MODULE_DESCRIPTION("Qualcomm Technologies, Inc. Command DB Driver");
> MODULE_LICENSE("GPL v2");
> diff --git a/drivers/soc/qcom/rpmh-rsc.c b/drivers/soc/qcom/rpmh-rsc.c
> index a021dc71807b..c4c7aad957e6 100644
> --- a/drivers/soc/qcom/rpmh-rsc.c
> +++ b/drivers/soc/qcom/rpmh-rsc.c
> @@ -1154,7 +1154,7 @@ static int __init rpmh_driver_init(void)
> {
> return platform_driver_register(&rpmh_driver);
> }
> -arch_initcall(rpmh_driver_init);
> +core_initcall(rpmh_driver_init);
>
> MODULE_DESCRIPTION("Qualcomm Technologies, Inc. RPMh Driver");
> MODULE_LICENSE("GPL v2");
>
> --
> 2.22.0
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] cpuidle: psci: Update init level to core_initcall()
2024-02-17 13:57 ` [PATCH 2/2] cpuidle: psci: Update init level to core_initcall() Maulik Shah
@ 2024-02-28 15:40 ` Ulf Hansson
2024-04-04 11:06 ` Ulf Hansson
1 sibling, 0 replies; 8+ messages in thread
From: Ulf Hansson @ 2024-02-28 15:40 UTC (permalink / raw)
To: Maulik Shah
Cc: Bjorn Andersson, Konrad Dybcio, Rafael J. Wysocki,
Daniel Lezcano, linux-arm-msm, linux-kernel, linux-pm,
linux-arm-kernel, quic_lsrao
On Sat, 17 Feb 2024 at 14:57, Maulik Shah <quic_mkshah@quicinc.com> wrote:
>
> Clients like regulators, interconnects and clocks depend on rpmh-rsc to
> vote on resources and rpmh-rsc depends on psci power-domains to complete
> probe. All of them are in core_initcall().
>
> Change psci domain init level to core_initcall() to avoid probe defer from
> all of the above.
>
> Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Kind regards
Uffe
> ---
> drivers/cpuidle/cpuidle-psci-domain.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/cpuidle/cpuidle-psci-domain.c b/drivers/cpuidle/cpuidle-psci-domain.c
> index b88af1262f1a..3e5b1150f75b 100644
> --- a/drivers/cpuidle/cpuidle-psci-domain.c
> +++ b/drivers/cpuidle/cpuidle-psci-domain.c
> @@ -200,4 +200,4 @@ static int __init psci_idle_init_domains(void)
> {
> return platform_driver_register(&psci_cpuidle_domain_driver);
> }
> -subsys_initcall(psci_idle_init_domains);
> +core_initcall(psci_idle_init_domains);
>
> --
> 2.22.0
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: (subset) [PATCH 0/2] Update init level for cmd-db, rpmh-rsc and psci cpuidle domains
2024-02-17 13:57 [PATCH 0/2] Update init level for cmd-db, rpmh-rsc and psci cpuidle domains Maulik Shah
2024-02-17 13:57 ` [PATCH 1/2] soc: qcom: Update init level to core_initcall() for cmd-db and rpmh-rsc Maulik Shah
2024-02-17 13:57 ` [PATCH 2/2] cpuidle: psci: Update init level to core_initcall() Maulik Shah
@ 2024-03-17 16:27 ` Bjorn Andersson
2 siblings, 0 replies; 8+ messages in thread
From: Bjorn Andersson @ 2024-03-17 16:27 UTC (permalink / raw)
To: Konrad Dybcio, Ulf Hansson, Rafael J. Wysocki, Daniel Lezcano,
Maulik Shah
Cc: linux-arm-msm, linux-kernel, linux-pm, linux-arm-kernel, quic_lsrao
On Sat, 17 Feb 2024 19:27:06 +0530, Maulik Shah wrote:
> cmd-db and rpmh-rsc are used by clients like regulators, interconnects and
> clocks for resource voting. These clients are in core_initcall() while
> cmd-db and rpmh-rsc are in arch_initcall(). Update init level for these
> drivers also to core_initcall() to avoid unnecessary probe defer during
> boot up.
>
> Similarly psci cpuidle psci power domains are used by rpmh-rsc driver and
> they are in subsys_initcall(). Update it to core_initcall().
>
> [...]
Applied, thanks!
[1/2] soc: qcom: Update init level to core_initcall() for cmd-db and rpmh-rsc
commit: 15ec7c641dd3a33f4d7b7c0cc59369d87edcec5c
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] cpuidle: psci: Update init level to core_initcall()
2024-02-17 13:57 ` [PATCH 2/2] cpuidle: psci: Update init level to core_initcall() Maulik Shah
2024-02-28 15:40 ` Ulf Hansson
@ 2024-04-04 11:06 ` Ulf Hansson
1 sibling, 0 replies; 8+ messages in thread
From: Ulf Hansson @ 2024-04-04 11:06 UTC (permalink / raw)
To: Maulik Shah
Cc: Bjorn Andersson, Konrad Dybcio, Rafael J. Wysocki,
Daniel Lezcano, linux-arm-msm, linux-kernel, linux-pm,
linux-arm-kernel, quic_lsrao
On Sat, 17 Feb 2024 at 14:57, Maulik Shah <quic_mkshah@quicinc.com> wrote:
>
> Clients like regulators, interconnects and clocks depend on rpmh-rsc to
> vote on resources and rpmh-rsc depends on psci power-domains to complete
> probe. All of them are in core_initcall().
>
> Change psci domain init level to core_initcall() to avoid probe defer from
> all of the above.
>
> Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
Queued up for next via my linux-pm.git (pmdomain), thanks!
Kind regards
Uffe
> ---
> drivers/cpuidle/cpuidle-psci-domain.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/cpuidle/cpuidle-psci-domain.c b/drivers/cpuidle/cpuidle-psci-domain.c
> index b88af1262f1a..3e5b1150f75b 100644
> --- a/drivers/cpuidle/cpuidle-psci-domain.c
> +++ b/drivers/cpuidle/cpuidle-psci-domain.c
> @@ -200,4 +200,4 @@ static int __init psci_idle_init_domains(void)
> {
> return platform_driver_register(&psci_cpuidle_domain_driver);
> }
> -subsys_initcall(psci_idle_init_domains);
> +core_initcall(psci_idle_init_domains);
>
> --
> 2.22.0
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] soc: qcom: Update init level to core_initcall() for cmd-db and rpmh-rsc
2024-02-17 13:57 ` [PATCH 1/2] soc: qcom: Update init level to core_initcall() for cmd-db and rpmh-rsc Maulik Shah
2024-02-28 15:40 ` Ulf Hansson
@ 2024-04-04 11:06 ` Ulf Hansson
1 sibling, 0 replies; 8+ messages in thread
From: Ulf Hansson @ 2024-04-04 11:06 UTC (permalink / raw)
To: Maulik Shah
Cc: Bjorn Andersson, Konrad Dybcio, Rafael J. Wysocki,
Daniel Lezcano, linux-arm-msm, linux-kernel, linux-pm,
linux-arm-kernel, quic_lsrao
On Sat, 17 Feb 2024 at 14:57, Maulik Shah <quic_mkshah@quicinc.com> wrote:
>
> cmd-db and rpmh-rsc are used by clients like regulators, interconnects and
> clocks for resource voting. These clients are in core_initcall() while
> cmd-db and rpmh-rsc are in arch_initcall(). Update init level for these
> drivers also to core_initcall() to avoid unnecessary probe defer during
> boot up.
>
> Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
I have picked up patch2, leaving this one for Bjorn/Konrad to manage.
Kind regards
Uffe
> ---
> drivers/soc/qcom/cmd-db.c | 2 +-
> drivers/soc/qcom/rpmh-rsc.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/soc/qcom/cmd-db.c b/drivers/soc/qcom/cmd-db.c
> index a5fd68411bed..c344107bc36c 100644
> --- a/drivers/soc/qcom/cmd-db.c
> +++ b/drivers/soc/qcom/cmd-db.c
> @@ -362,7 +362,7 @@ static int __init cmd_db_device_init(void)
> {
> return platform_driver_register(&cmd_db_dev_driver);
> }
> -arch_initcall(cmd_db_device_init);
> +core_initcall(cmd_db_device_init);
>
> MODULE_DESCRIPTION("Qualcomm Technologies, Inc. Command DB Driver");
> MODULE_LICENSE("GPL v2");
> diff --git a/drivers/soc/qcom/rpmh-rsc.c b/drivers/soc/qcom/rpmh-rsc.c
> index a021dc71807b..c4c7aad957e6 100644
> --- a/drivers/soc/qcom/rpmh-rsc.c
> +++ b/drivers/soc/qcom/rpmh-rsc.c
> @@ -1154,7 +1154,7 @@ static int __init rpmh_driver_init(void)
> {
> return platform_driver_register(&rpmh_driver);
> }
> -arch_initcall(rpmh_driver_init);
> +core_initcall(rpmh_driver_init);
>
> MODULE_DESCRIPTION("Qualcomm Technologies, Inc. RPMh Driver");
> MODULE_LICENSE("GPL v2");
>
> --
> 2.22.0
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-04-04 11:07 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-17 13:57 [PATCH 0/2] Update init level for cmd-db, rpmh-rsc and psci cpuidle domains Maulik Shah
2024-02-17 13:57 ` [PATCH 1/2] soc: qcom: Update init level to core_initcall() for cmd-db and rpmh-rsc Maulik Shah
2024-02-28 15:40 ` Ulf Hansson
2024-04-04 11:06 ` Ulf Hansson
2024-02-17 13:57 ` [PATCH 2/2] cpuidle: psci: Update init level to core_initcall() Maulik Shah
2024-02-28 15:40 ` Ulf Hansson
2024-04-04 11:06 ` Ulf Hansson
2024-03-17 16:27 ` (subset) [PATCH 0/2] Update init level for cmd-db, rpmh-rsc and psci cpuidle domains Bjorn Andersson
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).