Re: [PATCH 1/1] Revert "scsi: ufs: core: Only suspend clock scaling if scaling down"

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

 



On Wed, 2024-02-28 at 11:04 +0530, Ram Prakash Gupta wrote:
>  	 
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
>  This reverts commit 1d969731b87f122108c50a64acfdbaa63486296e.
> Approx 28% random perf IO degradation is observed by suspending clk
> scaling only when clks are scaled down. Concern for original fix was
> power consumption, which is already taken care by clk gating by
> putting
> the link into hibern8 state.
> 
> Signed-off-by: Ram Prakash Gupta <quic_rampraka@xxxxxxxxxxx>
> ---
>  drivers/ufs/core/ufshcd.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
> index c416826762e9..f6be18db031c 100644
> --- a/drivers/ufs/core/ufshcd.c
> +++ b/drivers/ufs/core/ufshcd.c
> @@ -1586,7 +1586,7 @@ static int ufshcd_devfreq_target(struct device
> *dev,
>  		ktime_to_us(ktime_sub(ktime_get(), start)), ret);
>  
>  out:
> -	if (sched_clk_scaling_suspend_work && !scale_up)
> +	if (sched_clk_scaling_suspend_work)
>  		queue_work(hba->clk_scaling.workq,
>  			   &hba->clk_scaling.suspend_work);
>  
> -- 
> 2.17.1

Hi Ram,

It is logic wrong to keep high gear when no read/write traffic.
Even high gear turn off clock and enter hibernate, there still have
other power consume hardhware to keep IO in high gear, ex. CPU latency,
CPU power.

Besides, clock scaling is designed for power concern, not for
performance. If you want to keep high performance, you can just turn
off clock scaling and keep in highest gear.

Finally, mediatek dosen't suffer performance drop with this patch.
Could you help list the test procedure and performance drop data more
detail? I am curious that in what scenario your random drop 28%.
And I think your dvfs parameter could be the drop reason. 

Thanks
Peter


 







[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