Re: [PATCH v5] scsi: ufs: Fix imprecise load calculation in devfreq window

From: Martin K. Petersen
Date: Tue Jun 16 2020 - 00:00:39 EST


On Thu, 11 Jun 2020 18:10:43 +0800, Stanley Chu wrote:

> The UFS load calculation is based on "total_time" and "busy_time" in a
> devfreq window. However, the source of time is different for both
> parameters: "busy_time" is assigned from "jiffies" thus has different
> accuracy from "total_time" which is assigned from ktime_get().
>
> Besides, the time of window boundary is not exactly the same as
> the starting busy time in this window if UFS is actually busy
> in the beginning of the window. A similar accuracy error may also
> happen for the end of busy time in current window.
>
> [...]

Applied to 5.9/scsi-queue, thanks!

[1/1] scsi: ufs: Fix imprecise load calculation in devfreq window
https://git.kernel.org/mkp/scsi/c/b1bf66d1d5a8

--
Martin K. Petersen Oracle Linux Engineering