habanalabs: correct an error message
authorOded Gabbay <oded.gabbay@gmail.com>
Wed, 23 Sep 2020 11:07:32 +0000 (14:07 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Fri, 25 Sep 2020 11:44:20 +0000 (14:44 +0300)
We don't try to allocate huge pages here so remove the huge word.

Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/common/memory.c

index 3324332..8422781 100644 (file)
@@ -77,8 +77,8 @@ static int alloc_device_memory(struct hl_ctx *ctx, struct hl_mem_in *args,
                paddr = (u64) gen_pool_alloc(vm->dram_pg_pool, total_size);
                if (!paddr) {
                        dev_err(hdev->dev,
-                               "failed to allocate %llu huge contiguous pages\n",
-                               num_pgs);
+                               "failed to allocate %llu contiguous pages with total size of %llu\n",
+                               num_pgs, total_size);
                        return -ENOMEM;
                }
        }