habanalabs: put fences in case of unexpected wait status
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>
This commit is contained in:
parent
dd7a82b52c
commit
7df5319a23
|
@ -2722,7 +2722,8 @@ static int hl_cs_poll_fences(struct multi_cs_data *mcs_data, struct multi_cs_com
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
dev_err(hdev->dev, "Invalid fence status\n");
|
dev_err(hdev->dev, "Invalid fence status\n");
|
||||||
return -EINVAL;
|
rc = -EINVAL;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue