Re: [PATCH v3 3/8] scsi: ufs: core: Add a vop to map clock frequency to gear speed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 2/3/2025 8:55 PM, Bean Huo wrote:
On Mon, 2025-02-03 at 16:11 +0800, Ziqi Chen wrote:
From: Can Guo <quic_cang@xxxxxxxxxxx>

Add a vop to map UFS host controller clock frequencies to the maximum
supported UFS high speed gear speeds.

 From the code, seems it is not "maximum" gear, it is corresponding UFS
Gear.


Hi Bean,

Thank you for comment. Let me explain for you that why it is "maximum supported" gear.

For example, the freq 201500000 supports G1 G2 G3, this VOP will maps to G3 which is the "maximum supported" gear.

Maybe we can change it to "corresponding maximum supported" gear would be more make sense.

Let me change it in next version.

-Ziqi

During clock scaling, we canmap thetarget clock frequency, demanded
by devfreq, to the maximum supported gear
speed, so that devfreq can scale the gear to the highest gear speed
supported at the target clock frequency, instead of just scaling
up/down
the gear between the min and max gear speeds.

Co-developed-by: Ziqi Chen <quic_ziqichen@xxxxxxxxxxx>
Signed-off-by: Ziqi Chen <quic_ziqichen@xxxxxxxxxxx>
Signed-off-by: Can Guo <quic_cang@xxxxxxxxxxx>

Reveiwed-by: Bean Huo <beanhuo@xxxxxxxxxx>





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux