Commit c82b025f authored by Oded Gabbay's avatar Oded Gabbay Committed by Greg Kroah-Hartman
Browse files

habanalabs: don't print normal reset operations



Only a hard-reset is an unexpected event which should be notify in
the kernel log. Other resets are normal operations and therefore
we should not pollute the log with them.

Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 738607f0
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -1198,9 +1198,9 @@ int hl_device_reset(struct hl_device *hdev, u32 flags)
		if (hard_reset)
			dev_info(hdev->dev, "Going to reset device\n");
		else if (reset_upon_device_release)
			dev_info(hdev->dev, "Going to reset device after release by user\n");
			dev_dbg(hdev->dev, "Going to reset device after release by user\n");
		else
			dev_info(hdev->dev, "Going to reset engines of inference device\n");
			dev_dbg(hdev->dev, "Going to reset engines of inference device\n");
	}

again:
@@ -1406,7 +1406,10 @@ int hl_device_reset(struct hl_device *hdev, u32 flags)

	hdev->reset_info.needs_reset = false;

	dev_notice(hdev->dev, "Successfully finished resetting the device\n");
	if (hard_reset)
		dev_info(hdev->dev, "Successfully finished resetting the device\n");
	else
		dev_dbg(hdev->dev, "Successfully finished resetting the device\n");

	if (hard_reset) {
		hdev->reset_info.hard_reset_cnt++;