From: "Peter Wang (王信友)" <peter.wang@mediatek.com>
To: "mani@kernel.org" <mani@kernel.org>,
"bvanassche@acm.org" <bvanassche@acm.org>
Cc: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"nitin.rawat@oss.qualcomm.com" <nitin.rawat@oss.qualcomm.com>,
"alim.akhtar@samsung.com" <alim.akhtar@samsung.com>,
"martin.petersen@oracle.com" <martin.petersen@oracle.com>
Subject: Re: [PATCH 0/7] ufs: Remove the clock gating code
Date: Fri, 23 Jan 2026 07:26:33 +0000 [thread overview]
Message-ID: <cb72534c1eac0740e24eed7ca4207371f55bb273.camel@mediatek.com> (raw)
In-Reply-To: <r3upegmcqg5fxo22u63dwtwrlc7qpwi57drlvujtw4jkbinx7f@xluie2klyr55>
On Thu, 2026-01-22 at 23:00 +0530, Manivannan Sadhasivam wrote:
>
>
> Hi Bart,
>
> Thanks for the work! I did try to get rid of the clock gating feature
> a couple
> of years ago as I also thought that it duplicates the behavior of the
> runtime PM
> framework.
>
Hi Mani,
hba->rpm_lvl = ufs_get_desired_pm_lvl_for_dev_link_state(
UFS_SLEEP_PWR_MODE,
UIC_LINK_HIBERN8_STATE
);
The default RPM level is different from clock gating,
so it should not duplicate the behavior.
RPM also sets the device to sleep mode and powers off unnecessary
voltages,
whereas clock gating only controls the clock on/off state and
hibernation maybe.
> But when I discussed this change with Qcom UFS folks, I was told that
> getting
> rid of clock gating will have a negative impact on the runtime power
> consumption
> on Qcom platforms as most of the power hungry resources are gated by
> the clock
> and there will be added latency with going through the runtime PM
> framework.
>
> Nitin is working on measuring the power impact of this series on Qcom
> platforms to verify whether the above concern is really valid or not.
> So I'd
> request to hold off this series until he gets back with the analysis,
> since this
> series is very critical for us.
>
> It'd be good if other vendors like Mediatek and Samsung also carry
> out the power
> impact analysis on their platforms.
>
> - Mani
>
Many years ago, Mediatek tested the clock gating delay time and found
that
if the delay was too long, it would affect power consumption. In the
end,
we set the delay at 10 ms. Removing it entirely would definitely impact
power.
There’s also another situation regarding whether auto-hibern8 is
enabled.
If auto-hibern8 is not enabled, manual hibern8 will be triggered along
with clock gating. If the clock gating removed, the impact should be
even greater.
Thanks
Peter
next prev parent reply other threads:[~2026-01-23 7:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-16 18:26 [PATCH 0/7] ufs: Remove the clock gating code Bart Van Assche
2026-01-16 18:26 ` [PATCH 1/7] ufs: core: Change the type of an ufshcd_clkgate_delay_set() argument Bart Van Assche
2026-01-16 18:26 ` [PATCH 2/7] ufs: host: mediatek: Use ufshcd_clkgate_delay_set() Bart Van Assche
2026-01-16 18:26 ` [PATCH 3/7] ufs: core: Redirect clock gating to RPM Bart Van Assche
2026-01-17 2:05 ` kernel test robot
2026-01-17 2:16 ` kernel test robot
2026-01-16 18:26 ` [PATCH 4/7] ufs: core: Switch from " Bart Van Assche
2026-01-16 18:26 ` [PATCH 5/7] ufs: core: Remove unused code and data structures Bart Van Assche
2026-01-17 2:16 ` kernel test robot
2026-01-16 18:26 ` [PATCH 6/7] ufs: core: Remove superfluous ufshcd_{hold,release}() calls Bart Van Assche
2026-01-16 18:26 ` [PATCH 7/7] ufs: core: Remove ufshcd_{hold,release}() calls from the I/O path Bart Van Assche
2026-01-22 17:30 ` [PATCH 0/7] ufs: Remove the clock gating code Manivannan Sadhasivam
2026-01-23 7:26 ` Peter Wang (王信友) [this message]
2026-01-23 23:27 ` Bart Van Assche
2026-01-26 3:44 ` Peter Wang (王信友)
2026-01-26 22:27 ` Bart Van Assche
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=cb72534c1eac0740e24eed7ca4207371f55bb273.camel@mediatek.com \
--to=peter.wang@mediatek.com \
--cc=alim.akhtar@samsung.com \
--cc=bvanassche@acm.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mani@kernel.org \
--cc=martin.petersen@oracle.com \
--cc=nitin.rawat@oss.qualcomm.com \
/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