]> Git Repo - J-linux.git/commitdiff
scsi: ufs: core: Update compl_time_stamp_local_clock after completing a cqe
authorliuderong <[email protected]>
Fri, 6 Dec 2024 07:29:42 +0000 (15:29 +0800)
committerMartin K. Petersen <[email protected]>
Tue, 10 Dec 2024 02:49:08 +0000 (21:49 -0500)
lrbp->compl_time_stamp_local_clock is set to zero after sending a sqe
but it is not updated after completing a cqe.  Thus the printed
information in ufshcd_print_tr() will always be zero.

Update lrbp->cmpl_time_stamp_local_clock after completing a cqe.

Log sample:

ufshcd-qcom 1d84000.ufshc: UPIU[8] - issue time 8750227249 us
ufshcd-qcom 1d84000.ufshc: UPIU[8] - complete time 0 us

Fixes: c30d8d010b5e ("scsi: ufs: core: Prepare for completion in MCQ")
Reviewed-by: Bean Huo <[email protected]>
Reviewed-by: Peter Wang <[email protected]>
Signed-off-by: liuderong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Avri Altman <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
drivers/ufs/core/ufshcd.c

index b7ec5797d5baa65e73d7f158093529f2da626ad8..8a01e4393159d57d8d2c7a5078a1d55a26369dd3 100644 (file)
@@ -5556,6 +5556,7 @@ void ufshcd_compl_one_cqe(struct ufs_hba *hba, int task_tag,
 
        lrbp = &hba->lrb[task_tag];
        lrbp->compl_time_stamp = ktime_get();
+       lrbp->compl_time_stamp_local_clock = local_clock();
        cmd = lrbp->cmd;
        if (cmd) {
                if (unlikely(ufshcd_should_inform_monitor(hba, lrbp)))
This page took 0.059966 seconds and 4 git commands to generate.