mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
habanalabs: add missing counter update
The global CS drop-on-reset counter wasn't updated together with the context counter. Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
parent
d2bbf2ca33
commit
ee3287798d
1 changed files with 1 additions and 0 deletions
|
@ -529,6 +529,7 @@ int hl_hw_queue_schedule_cs(struct hl_cs *cs)
|
|||
hdev->asic_funcs->hw_queues_lock(hdev);
|
||||
|
||||
if (!hl_device_operational(hdev, &status)) {
|
||||
atomic64_inc(&cntr->device_in_reset_drop_cnt);
|
||||
atomic64_inc(&ctx->cs_counters.device_in_reset_drop_cnt);
|
||||
dev_err(hdev->dev,
|
||||
"device is %s, CS rejected!\n", hdev->status[status]);
|
||||
|
|
Loading…
Reference in a new issue