projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f18b84
)
habanalabs: better error print for pin failure
author
Oded Gabbay
<ogabbay@kernel.org>
Sun, 2 May 2021 09:28:48 +0000
(12:28 +0300)
committer
Oded Gabbay
<ogabbay@kernel.org>
Fri, 18 Jun 2021 12:23:39 +0000
(15:23 +0300)
Print the user given pointer and error code on failure to get user
pages for easier debugging.
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/memory.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/common/memory.c
b/drivers/misc/habanalabs/common/memory.c
index 43924e1c0315159b2dbac831ea0eb52d8763dbdf..a7a8984e6af2abbbfd1c8df8e685bb1c47393492 100644
(file)
--- a/
drivers/misc/habanalabs/common/memory.c
+++ b/
drivers/misc/habanalabs/common/memory.c
@@
-1612,7
+1612,8
@@
static int get_user_memory(struct hl_device *hdev, u64 addr, u64 size,
if (rc != npages) {
dev_err(hdev->dev,
- "Failed to map host memory, user ptr probably wrong\n");
+ "Failed (%d) to pin host memory with user ptr 0x%llx\n",
+ rc, addr);
if (rc < 0)
goto destroy_pages;
npages = rc;