From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
To: Ulf Hansson <ulf.hansson@linaro.org>,
Saravana Kannan <saravanak@google.com>,
"Rafael J . Wysocki" <rafael@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-pm@vger.kernel.org
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
Nicolas Frattaroli <nicolas.frattaroli@collabora.com>,
Heiko Stuebner <heiko@sntech.de>,
Sebastian Reichel <sebastian.reichel@collabora.com>,
Sebin Francis <sebin.francis@ti.com>,
Diederik de Haas <didi.debian@cknow.org>,
Jon Hunter <jonathanh@nvidia.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] driver core: fw_devlink: Don't warn in fw_devlink_dev_sync_state()
Date: Thu, 25 Sep 2025 15:08:23 +0300 [thread overview]
Message-ID: <55b41549-f5c4-4e83-ac1e-11dd068b1f5f@ideasonboard.com> (raw)
In-Reply-To: <20250925115924.188257-1-ulf.hansson@linaro.org>
On 25/09/2025 14:59, Ulf Hansson wrote:
> Due to the wider deployment of the ->sync_state() support, for PM domains
> for example, we are receiving reports about the messages that are being
> logged in fw_devlink_dev_sync_state(). In particular as they are at the
> warning level, which doesn't seem correct.
>
> Even if it certainly is useful to know that the ->sync_state() condition
> could not be met, there may be nothing wrong with it. For example, a driver
> may be built as module and are still waiting to be initialized/probed.
>
> Ideally these messages should be at the debug level, but since the
> ->sync_state() feature is under an ongoing deployment and the prints
> provides valuable information, let's move to the info level for now.
>
> Cc: Saravana Kannan <saravanak@google.com>
> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Reported-by: Sebin Francis <sebin.francis@ti.com>
> Reported-by: Diederik de Haas <didi.debian@cknow.org>
> Reported-by: Jon Hunter <jonathanh@nvidia.com>
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
> ---
> drivers/base/core.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/base/core.c b/drivers/base/core.c
> index d22d6b23e758..97eab79c2f3b 100644
> --- a/drivers/base/core.c
> +++ b/drivers/base/core.c
> @@ -1784,7 +1784,7 @@ static int fw_devlink_dev_sync_state(struct device *dev, void *data)
> return 0;
>
> if (fw_devlink_sync_state == FW_DEVLINK_SYNC_STATE_STRICT) {
> - dev_warn(sup, "sync_state() pending due to %s\n",
> + dev_info(sup, "sync_state() pending due to %s\n",
> dev_name(link->consumer));
> return 0;
> }
> @@ -1792,7 +1792,7 @@ static int fw_devlink_dev_sync_state(struct device *dev, void *data)
> if (!list_empty(&sup->links.defer_sync))
> return 0;
>
> - dev_warn(sup, "Timed out. Forcing sync_state()\n");
> + dev_info(sup, "Timed out. Forcing sync_state()\n");
I have no issue with this, but I also think that while the pending print
above could well be dev_dbg, this one is perhaps a bit more warning-ish.
It may be harmless to get the time-out, but it would be better not to
time-out (i.e. everything was already sync_stated, or startup scripts
handled forcing the sync state).
> sup->state_synced = true;
> get_device(sup);
> list_add_tail(&sup->links.defer_sync, data);
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Tomi
next prev parent reply other threads:[~2025-09-25 12:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-25 11:59 Ulf Hansson
2025-09-25 12:08 ` Tomi Valkeinen [this message]
2025-09-25 13:20 ` Ulf Hansson
2025-09-25 13:59 ` Diederik de Haas
2025-09-25 14:26 ` Ulf Hansson
2025-09-25 17:52 ` Diederik de Haas
2025-09-25 21:48 ` Saravana Kannan
2025-09-26 12:05 ` Ulf Hansson
2025-09-26 17:08 ` Rafael J. Wysocki
2025-10-03 18:24 ` Diederik de Haas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55b41549-f5c4-4e83-ac1e-11dd068b1f5f@ideasonboard.com \
--to=tomi.valkeinen@ideasonboard.com \
--cc=didi.debian@cknow.org \
--cc=geert@linux-m68k.org \
--cc=gregkh@linuxfoundation.org \
--cc=heiko@sntech.de \
--cc=jonathanh@nvidia.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=nicolas.frattaroli@collabora.com \
--cc=rafael@kernel.org \
--cc=saravanak@google.com \
--cc=sebastian.reichel@collabora.com \
--cc=sebin.francis@ti.com \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®