From: Jon Hunter <jonathanh@nvidia.com>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Saravana Kannan <saravanak@google.com>,
Stephen Boyd <sboyd@kernel.org>,
linux-pm@vger.kernel.org,
"Rafael J . Wysocki" <rafael@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Michael Grzeschik <m.grzeschik@pengutronix.de>,
Bjorn Andersson <andersson@kernel.org>,
Abel Vesa <abel.vesa@linaro.org>, Peng Fan <peng.fan@oss.nxp.com>,
Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>,
Johan Hovold <johan@kernel.org>,
Maulik Shah <maulik.shah@oss.qualcomm.com>,
Michal Simek <michal.simek@amd.com>,
Konrad Dybcio <konradybcio@kernel.org>,
Thierry Reding <thierry.reding@gmail.com>,
Hiago De Franco <hiago.franco@toradex.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>
Subject: Re: [PATCH v3 20/24] pmdomain: core: Default to use of_genpd_sync_state() for genpd providers
Date: Wed, 24 Sep 2025 12:40:59 +0100 [thread overview]
Message-ID: <614f726c-4d6d-463b-a8b3-26d3df590575@nvidia.com> (raw)
In-Reply-To: <a904d953-acb2-44f6-81bd-118f7abd22da@nvidia.com>
Hi Ulf,
On 03/09/2025 13:33, Jon Hunter wrote:
...
>>> Following this change I am seeing the following warning on our Tegra194
>>> devices ...
>>>
>>> WARNING KERN tegra-bpmp bpmp: sync_state() pending due to
>>> 17000000.gpu
>>> WARNING KERN tegra-bpmp bpmp: sync_state() pending due to 3960000.cec
>>> WARNING KERN tegra-bpmp bpmp: sync_state() pending due to
>>> 15380000.nvjpg
>>> WARNING KERN tegra-bpmp bpmp: sync_state() pending due to
>>> 154c0000.nvenc
>>> WARNING KERN tegra-bpmp bpmp: sync_state() pending due to
>>> 15a80000.nvenc
>>>
>>> Per your change [0], the 'GENPD_FLAG_NO_SYNC_STATE' is set for Tegra
>>> and so should Tegra be using of_genpd_sync_state() by default?
>>
>> This is a different power-domain provider (bpmp) in
>> drivers/firmware/tegra/bpmp.c and
>> drivers/pmdomain/tegra/powergate-bpmp.c.
>>
>> For the bpmp we don't need GENPD_FLAG_NO_SYNC_STATE, as the
>> power-domain provider is described along with the
>> "nvidia,tegra186-bpmp" compatible string. In the other case
>> (drivers/soc/tegra/pmc.c) the "core-domain" and "powergates" are
>> described through child-nodes, while ->sync_state() is managed by the
>> parent-device-node.
>>
>> In the bpmp case there is no ->sync_state() callback assigned, which
>> means genpd decides to assign a default one.
>>
>> The reason for the warnings above is because we are still waiting for
>> those devices to be probed, hence the ->sync_state() callback is still
>> waiting to be invoked. Enforcing ->sync_state() callback to be invoked
>> can be done via user-space if that is needed.
>>
>> Did that make sense?
>
> Sorry for the delay, I was on vacation. Yes makes sense and drivers for
> some of the above drivers are not yet upstreamed to mainline and so this
> would be expected for now.
I have been doing more testing and do see a lot of "tegra-bpmp bpmp:
sync_state() pending due to" on our platforms for basically are driver
that is built as a module. It seems a bit noisy given that these do
eventually probe OK. I am wondering if this should be more of a
dev_info() or dev_dbg() print?
Cheers
Jon
--
nvpublic
next prev parent reply other threads:[~2025-09-24 11:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250701114733.636510-1-ulf.hansson@linaro.org>
[not found] ` <CGME20250710122654eucas1p20f1179a9ff22d562d89252f924d34dae@eucas1p2.samsung.com>
[not found] ` <20250701114733.636510-22-ulf.hansson@linaro.org>
[not found] ` <212a1a56-08a5-48a5-9e98-23de632168d0@samsung.com>
[not found] ` <CAPDyKFrPOgWW_=ehCjtqAUR97HoLKmgFNO3bRT50-w6A1LgGFw@mail.gmail.com>
2025-07-15 10:28 ` [PATCH v3 21/24] pmdomain: core: Leave powered-on genpds on until late_initcall_sync Jon Hunter
2025-07-15 11:32 ` Ulf Hansson
2025-07-15 11:34 ` Ulf Hansson
2025-07-31 12:53 ` Jon Hunter
[not found] ` <20250701114733.636510-21-ulf.hansson@linaro.org>
2025-07-31 15:07 ` [PATCH v3 20/24] pmdomain: core: Default to use of_genpd_sync_state() for genpd providers Jon Hunter
2025-08-11 12:11 ` Ulf Hansson
2025-09-03 12:33 ` Jon Hunter
2025-09-24 11:40 ` Jon Hunter [this message]
2025-09-24 15:53 ` Ulf Hansson
2025-09-25 9:34 ` Jon Hunter
2025-09-25 22:31 ` Saravana Kannan
2025-09-26 15:32 ` Jon Hunter
2025-09-30 11:33 ` Ulf Hansson
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=614f726c-4d6d-463b-a8b3-26d3df590575@nvidia.com \
--to=jonathanh@nvidia.com \
--cc=abel.vesa@linaro.org \
--cc=andersson@kernel.org \
--cc=geert@linux-m68k.org \
--cc=gregkh@linuxfoundation.org \
--cc=hiago.franco@toradex.com \
--cc=johan@kernel.org \
--cc=konradybcio@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=m.grzeschik@pengutronix.de \
--cc=maulik.shah@oss.qualcomm.com \
--cc=michal.simek@amd.com \
--cc=peng.fan@oss.nxp.com \
--cc=rafael@kernel.org \
--cc=saravanak@google.com \
--cc=sboyd@kernel.org \
--cc=thierry.reding@gmail.com \
--cc=tomi.valkeinen@ideasonboard.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