projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd7a82b
)
habanalabs: put fences in case of unexpected wait status
author
Tomer Tayar
<ttayar@habana.ai>
Sun, 4 Dec 2022 21:23:47 +0000
(23:23 +0200)
committer
Oded Gabbay
<ogabbay@kernel.org>
Thu, 26 Jan 2023 08:56:22 +0000
(10:56 +0200)
Need to put fences even if an unexpected status value is received while
waiting for a fence.
Signed-off-by: Tomer Tayar <ttayar@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 0ec8cdcbb1f564131da9e2c49bdd6fe6dfb884df..1543ef993f8eb5b1b65441d3864fe07ce19757e6 100644
(file)
--- a/
drivers/misc/habanalabs/common/command_submission.c
+++ b/
drivers/misc/habanalabs/common/command_submission.c
@@
-2722,7
+2722,8
@@
static int hl_cs_poll_fences(struct multi_cs_data *mcs_data, struct multi_cs_com
break;
default:
dev_err(hdev->dev, "Invalid fence status\n");
- return -EINVAL;
+ rc = -EINVAL;
+ break;
}
}