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: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
738607f005
commit
c82b025f2b
1 changed files with 6 additions and 3 deletions
|
@ -1198,9 +1198,9 @@ do_reset:
|
||||||
if (hard_reset)
|
if (hard_reset)
|
||||||
dev_info(hdev->dev, "Going to reset device\n");
|
dev_info(hdev->dev, "Going to reset device\n");
|
||||||
else if (reset_upon_device_release)
|
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
|
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:
|
again:
|
||||||
|
@ -1406,7 +1406,10 @@ kill_processes:
|
||||||
|
|
||||||
hdev->reset_info.needs_reset = false;
|
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) {
|
if (hard_reset) {
|
||||||
hdev->reset_info.hard_reset_cnt++;
|
hdev->reset_info.hard_reset_cnt++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue