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

habanalabs: move h/w dirty message to debug



H/W being dirty during initialization is completely expected in case
f/w tools are used before loading the driver. As it is not an error,
and as it doesn't give any meaningful information to the user,
no point of printing it.

Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 0b0ae024
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -870,8 +870,7 @@ static int gaudi_early_init(struct hl_device *hdev)
	}

	if (gaudi_get_hw_state(hdev) == HL_DEVICE_HW_STATE_DIRTY) {
		dev_info(hdev->dev,
			"H/W state is dirty, must reset before initializing\n");
		dev_dbg(hdev->dev, "H/W state is dirty, must reset before initializing\n");
		hdev->asic_funcs->hw_fini(hdev, true, false);
	}

+1 −1
Original line number Diff line number Diff line
@@ -2536,7 +2536,7 @@ static int gaudi2_early_init(struct hl_device *hdev)
	}

	if (gaudi2_get_hw_state(hdev) == HL_DEVICE_HW_STATE_DIRTY) {
		dev_info(hdev->dev, "H/W state is dirty, must reset before initializing\n");
		dev_dbg(hdev->dev, "H/W state is dirty, must reset before initializing\n");
		hdev->asic_funcs->hw_fini(hdev, true, false);
	}

+1 −2
Original line number Diff line number Diff line
@@ -673,8 +673,7 @@ static int goya_early_init(struct hl_device *hdev)
	}

	if (goya_get_hw_state(hdev) == HL_DEVICE_HW_STATE_DIRTY) {
		dev_info(hdev->dev,
			"H/W state is dirty, must reset before initializing\n");
		dev_dbg(hdev->dev, "H/W state is dirty, must reset before initializing\n");
		hdev->asic_funcs->hw_fini(hdev, true, false);
	}