Commit a919b823 authored by Oded Gabbay's avatar Oded Gabbay

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
...@@ -870,8 +870,7 @@ static int gaudi_early_init(struct hl_device *hdev) ...@@ -870,8 +870,7 @@ static int gaudi_early_init(struct hl_device *hdev)
} }
if (gaudi_get_hw_state(hdev) == HL_DEVICE_HW_STATE_DIRTY) { if (gaudi_get_hw_state(hdev) == HL_DEVICE_HW_STATE_DIRTY) {
dev_info(hdev->dev, dev_dbg(hdev->dev, "H/W state is dirty, must reset before initializing\n");
"H/W state is dirty, must reset before initializing\n");
hdev->asic_funcs->hw_fini(hdev, true, false); hdev->asic_funcs->hw_fini(hdev, true, false);
} }
......
...@@ -2536,7 +2536,7 @@ static int gaudi2_early_init(struct hl_device *hdev) ...@@ -2536,7 +2536,7 @@ static int gaudi2_early_init(struct hl_device *hdev)
} }
if (gaudi2_get_hw_state(hdev) == HL_DEVICE_HW_STATE_DIRTY) { 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); hdev->asic_funcs->hw_fini(hdev, true, false);
} }
......
...@@ -673,8 +673,7 @@ static int goya_early_init(struct hl_device *hdev) ...@@ -673,8 +673,7 @@ static int goya_early_init(struct hl_device *hdev)
} }
if (goya_get_hw_state(hdev) == HL_DEVICE_HW_STATE_DIRTY) { if (goya_get_hw_state(hdev) == HL_DEVICE_HW_STATE_DIRTY) {
dev_info(hdev->dev, dev_dbg(hdev->dev, "H/W state is dirty, must reset before initializing\n");
"H/W state is dirty, must reset before initializing\n");
hdev->asic_funcs->hw_fini(hdev, true, false); hdev->asic_funcs->hw_fini(hdev, true, false);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment