Commit e1e8e747 authored by Oded Gabbay's avatar Oded Gabbay

habanalabs: move some prints to debug level

When entering an IOCTL, the driver prints a message in case device is
not operational. This message should be printed in debug level as
it can spam the kernel log and it is not an error.
Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 139dad04
...@@ -368,7 +368,7 @@ int hl_cb_ioctl(struct hl_fpriv *hpriv, void *data) ...@@ -368,7 +368,7 @@ int hl_cb_ioctl(struct hl_fpriv *hpriv, void *data)
int rc; int rc;
if (!hl_device_operational(hdev, &status)) { if (!hl_device_operational(hdev, &status)) {
dev_warn_ratelimited(hdev->dev, dev_dbg_ratelimited(hdev->dev,
"Device is %s. Can't execute CB IOCTL\n", "Device is %s. Can't execute CB IOCTL\n",
hdev->status[status]); hdev->status[status]);
return -EBUSY; return -EBUSY;
......
...@@ -941,7 +941,7 @@ static int _hl_info_ioctl(struct hl_fpriv *hpriv, void *data, ...@@ -941,7 +941,7 @@ static int _hl_info_ioctl(struct hl_fpriv *hpriv, void *data,
} }
if (!hl_device_operational(hdev, &status)) { if (!hl_device_operational(hdev, &status)) {
dev_warn_ratelimited(dev, dev_dbg_ratelimited(dev,
"Device is %s. Can't execute INFO IOCTL\n", "Device is %s. Can't execute INFO IOCTL\n",
hdev->status[status]); hdev->status[status]);
return -EBUSY; return -EBUSY;
...@@ -1026,7 +1026,7 @@ static int hl_debug_ioctl(struct hl_fpriv *hpriv, void *data) ...@@ -1026,7 +1026,7 @@ static int hl_debug_ioctl(struct hl_fpriv *hpriv, void *data)
int rc = 0; int rc = 0;
if (!hl_device_operational(hdev, &status)) { if (!hl_device_operational(hdev, &status)) {
dev_warn_ratelimited(hdev->dev, dev_dbg_ratelimited(hdev->dev,
"Device is %s. Can't execute DEBUG IOCTL\n", "Device is %s. Can't execute DEBUG IOCTL\n",
hdev->status[status]); hdev->status[status]);
return -EBUSY; return -EBUSY;
......
...@@ -2261,7 +2261,7 @@ int hl_mem_ioctl(struct hl_fpriv *hpriv, void *data) ...@@ -2261,7 +2261,7 @@ int hl_mem_ioctl(struct hl_fpriv *hpriv, void *data)
int rc, dmabuf_fd = -EBADF; int rc, dmabuf_fd = -EBADF;
if (!hl_device_operational(hdev, &status)) { if (!hl_device_operational(hdev, &status)) {
dev_warn_ratelimited(hdev->dev, dev_dbg_ratelimited(hdev->dev,
"Device is %s. Can't execute MEMORY IOCTL\n", "Device is %s. Can't execute MEMORY IOCTL\n",
hdev->status[status]); hdev->status[status]);
return -EBUSY; return -EBUSY;
......
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