Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit f103396

Browse files
liuderongmartinkpetersen
authored andcommitted
scsi: ufs: core: Update compl_time_stamp_local_clock after completing a cqe
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: c30d8d0 ("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]>
1 parent 6918141 commit f103396

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/ufs/core/ufshcd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5556,6 +5556,7 @@ void ufshcd_compl_one_cqe(struct ufs_hba *hba, int task_tag,
55565556

55575557
lrbp = &hba->lrb[task_tag];
55585558
lrbp->compl_time_stamp = ktime_get();
5559+
lrbp->compl_time_stamp_local_clock = local_clock();
55595560
cmd = lrbp->cmd;
55605561
if (cmd) {
55615562
if (unlikely(ufshcd_should_inform_monitor(hba, lrbp)))

0 commit comments

Comments
 (0)