* [PATCH v2] habanalabs: print to kernel log when reset is finished
@ 2019-08-11 7:46 Oded Gabbay
2019-08-11 7:51 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Oded Gabbay @ 2019-08-11 7:46 UTC (permalink / raw)
To: linux-kernel, oshpigelman, ttayar, gregkh
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 <oded.gabbay@gmail.com>
---
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(+)
diff --git a/drivers/misc/habanalabs/device.c b/drivers/misc/habanalabs/device.c
index 9a5926888b99..a35b155add11 100644
--- a/drivers/misc/habanalabs/device.c
+++ b/drivers/misc/habanalabs/device.c
@@ -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:
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] habanalabs: print to kernel log when reset is finished
2019-08-11 7:46 [PATCH v2] habanalabs: print to kernel log when reset is finished Oded Gabbay
@ 2019-08-11 7:51 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2019-08-11 7:51 UTC (permalink / raw)
To: Oded Gabbay; +Cc: linux-kernel, oshpigelman, ttayar
On Sun, Aug 11, 2019 at 10:46:53AM +0300, Oded Gabbay wrote:
> 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 <oded.gabbay@gmail.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-08-11 7:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-11 7:46 [PATCH v2] habanalabs: print to kernel log when reset is finished Oded Gabbay
2019-08-11 7:51 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox