projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27a9e35
)
habanalabs: wait for interrupt wrong timeout calculation
author
Ofir Bitton
<obitton@habana.ai>
Tue, 27 Apr 2021 14:49:25 +0000
(17:49 +0300)
committer
Oded Gabbay
<ogabbay@kernel.org>
Sat, 8 May 2021 08:21:57 +0000
(11:21 +0300)
Wait for interrupt timeout calculation is wrong, hence timeout occurs
when user waits on an interrupt with certain timeout values.
Signed-off-by: Ofir Bitton <obitton@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/command_submission.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/common/command_submission.c
b/drivers/misc/habanalabs/common/command_submission.c
index ff8791a651fd1030b7091b709141f367771c2bd3..af3c497defb1053b334535dd0f958e3f2b71df92 100644
(file)
--- a/
drivers/misc/habanalabs/common/command_submission.c
+++ b/
drivers/misc/habanalabs/common/command_submission.c
@@
-2017,7
+2017,7
@@
wait_again:
if (completion_value >= target_value) {
*status = CS_WAIT_STATUS_COMPLETED;
} else {
- timeout
-= jiffies_to_usecs(completion_rc)
;
+ timeout
= completion_rc
;
goto wait_again;
}
} else {