habanalabs: print to kernel log when reset is finished
PATCH v2 1/1 habanalabs: print to kernel log when reset is finished
Now that we don't print the queue testing messages, we need to print when the reset is finished so whoever looks at the kernel log will know the reset process was finished successfully and the driver is not stuck.
Signed-off-by Oded Gabbay <[email protected]>
---
Changes in v2:
- Changed message level to dev_warn to match up with the message level when the reset starts
drivers/misc/habanalabs/device.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/misc/habanalabs/device.c +2 -0
@@ -907,6 +907,8 @@ int hl_device_reset(struct hl_device *hdev, bool hard_reset,else hdev->soft_reset_cnt++; +dev_warn (hdev->dev,"Successfully finished resetting the device\n" ); +return 0 ; out_err:
Signature · 1 line
2.17.1
Quoted 5 lines · Oded Gabbay
Now that we don't print the queue testing messages, we need to print when the reset is finished so whoever looks at the kernel log will know the reset process was finished successfully and the driver is not stuck.
Signed-off-by Oded Gabbay <[email protected]>
Reviewed-by Greg Kroah-Hartman <[email protected]>