mirror of https://gitee.com/openkylin/linux.git
habanalabs: don't print error when queues are full
If the queues are full and we return -EAGAIN to the user, there is no need to print an error, as that case isn't an error and the user is expected to re-submit the work. Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com> Reviewed-by: Omer Shpigelman <oshpigelman@habana.ai>
This commit is contained in:
parent
bd4c8cb17d
commit
eda58bf786
|
@ -626,9 +626,10 @@ static int _hl_cs_ioctl(struct hl_fpriv *hpriv, void __user *chunks,
|
||||||
|
|
||||||
rc = hl_hw_queue_schedule_cs(cs);
|
rc = hl_hw_queue_schedule_cs(cs);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
dev_err(hdev->dev,
|
if (rc != -EAGAIN)
|
||||||
"Failed to submit CS %d.%llu to H/W queues, error %d\n",
|
dev_err(hdev->dev,
|
||||||
cs->ctx->asid, cs->sequence, rc);
|
"Failed to submit CS %d.%llu to H/W queues, error %d\n",
|
||||||
|
cs->ctx->asid, cs->sequence, rc);
|
||||||
goto free_cs_object;
|
goto free_cs_object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue