mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 23:24:11 +08: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
@ -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 New Issue
Block a user