diff options
author | Oded Gabbay <ogabbay@kernel.org> | 2020-11-25 09:02:40 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2020-11-30 11:47:37 +0300 |
commit | ee3287798d49bbe5a9597d51ec914144179c03e8 (patch) | |
tree | 544f2bc4baee27b223c537bdd9292c6cb8cc1928 /drivers/misc | |
parent | d2bbf2ca33440b8e8cab2387802a6d5694611227 (diff) | |
download | linux-ee3287798d49bbe5a9597d51ec914144179c03e8.tar.xz |
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/habanalabs/common/hw_queue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/common/hw_queue.c b/drivers/misc/habanalabs/common/hw_queue.c index d1d30fb36410..7caf868d1585 100644 --- a/drivers/misc/habanalabs/common/hw_queue.c +++ b/drivers/misc/habanalabs/common/hw_queue.c @@ -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]); |