* [PATCH] cpuidle: psci: Do not log probe deferral as an error
@ 2026-10-20 14:26 Loic Poulain
2026-10-20 15:03 ` Christian Loehle
0 siblings, 1 reply; 2+ messages in thread
From: Loic Poulain @ 2026-10-20 14:26 UTC (permalink / raw)
To: Ulf Hansson, Rafael J. Wysocki, Daniel Lezcano, Christian Loehle
Cc: linux-pm, linux-arm-kernel, linux-kernel, Loic Poulain
psci_cpuidle_domain_probe() reports every failure with pr_err(),
including -EPROBE_DEFER. dt_idle_pd_init_topology() returns that
whenever a parent domain is not registered yet, which is a normal and
recoverable condition, so an otherwise successful boot still logs an
error:
CPUidle PSCI: failed to create CPU PM domains ret=-517
Report the failure with dev_err_probe() instead, which downgrade
-EPROBE_DEFER to a debug message while still logging genuine errors.
Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
---
drivers/cpuidle/cpuidle-psci-domain.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/cpuidle/cpuidle-psci-domain.c b/drivers/cpuidle/cpuidle-psci-domain.c
index b9e4ad7d43a3310a76ce62018dff0af1488e33d2..aa73a2fa14b3af4d1e3edd607e058ba96132bad7 100644
--- a/drivers/cpuidle/cpuidle-psci-domain.c
+++ b/drivers/cpuidle/cpuidle-psci-domain.c
@@ -173,8 +173,7 @@ static int psci_cpuidle_domain_probe(struct platform_device *pdev)
dt_idle_pd_remove_topology(np);
psci_pd_remove();
exit:
- pr_err("failed to create CPU PM domains ret=%d\n", ret);
- return ret;
+ return dev_err_probe(&pdev->dev, ret, "failed to create CPU PM domains\n");
}
static struct platform_driver psci_cpuidle_domain_driver = {
---
base-commit: f49a343b305c0b6c19a3b50c0bbf10bcd0e2e8fd
change-id: 20261020-cpuidle-defer-4e6184bef223
Best regards,
--
Loic Poulain <loic.poulain@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] cpuidle: psci: Do not log probe deferral as an error
2026-10-20 14:26 [PATCH] cpuidle: psci: Do not log probe deferral as an error Loic Poulain
@ 2026-10-20 15:03 ` Christian Loehle
0 siblings, 0 replies; 2+ messages in thread
From: Christian Loehle @ 2026-10-20 15:03 UTC (permalink / raw)
To: Loic Poulain, Ulf Hansson, Rafael J. Wysocki, Daniel Lezcano
Cc: linux-pm, linux-arm-kernel, linux-kernel
On 10/20/26 15:26, Loic Poulain wrote:
> psci_cpuidle_domain_probe() reports every failure with pr_err(),
> including -EPROBE_DEFER. dt_idle_pd_init_topology() returns that
> whenever a parent domain is not registered yet, which is a normal and
> recoverable condition, so an otherwise successful boot still logs an
> error:
>
> CPUidle PSCI: failed to create CPU PM domains ret=-517
>
> Report the failure with dev_err_probe() instead, which downgrade
> -EPROBE_DEFER to a debug message while still logging genuine errors.
s/logging/returning/?
>
> Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
in any case:
Reviewed-by: Christian Loehle <christian.loehle@arm.com>
> ---
> drivers/cpuidle/cpuidle-psci-domain.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/cpuidle/cpuidle-psci-domain.c b/drivers/cpuidle/cpuidle-psci-domain.c
> index b9e4ad7d43a3310a76ce62018dff0af1488e33d2..aa73a2fa14b3af4d1e3edd607e058ba96132bad7 100644
> --- a/drivers/cpuidle/cpuidle-psci-domain.c
> +++ b/drivers/cpuidle/cpuidle-psci-domain.c
> @@ -173,8 +173,7 @@ static int psci_cpuidle_domain_probe(struct platform_device *pdev)
> dt_idle_pd_remove_topology(np);
> psci_pd_remove();
> exit:
> - pr_err("failed to create CPU PM domains ret=%d\n", ret);
> - return ret;
> + return dev_err_probe(&pdev->dev, ret, "failed to create CPU PM domains\n");
> }
>
> static struct platform_driver psci_cpuidle_domain_driver = {
>
> ---
> base-commit: f49a343b305c0b6c19a3b50c0bbf10bcd0e2e8fd
> change-id: 20261020-cpuidle-defer-4e6184bef223
>
> Best regards,
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-20 15:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-20 14:26 [PATCH] cpuidle: psci: Do not log probe deferral as an error Loic Poulain
2026-10-20 15:03 ` Christian Loehle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®