Commit ee328779 authored by Oded Gabbay's avatar Oded Gabbay
Browse files

habanalabs: add missing counter update



The global CS drop-on-reset counter wasn't updated together with
the context counter.

Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent d2bbf2ca
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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]);