projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
714fccb
)
habanalabs: fix mmu node address resolution in debugfs
author
Yuri Nudelman
<ynudelman@habana.ai>
Thu, 29 Jul 2021 08:54:50 +0000
(11:54 +0300)
committer
Oded Gabbay
<ogabbay@kernel.org>
Wed, 1 Sep 2021 15:38:24 +0000
(18:38 +0300)
The address resolution via debugfs was not taking into consideration the
page offset, resulting in a wrong address.
Signed-off-by: Yuri Nudelman <ynudelman@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/common/debugfs.c
b/drivers/misc/habanalabs/common/debugfs.c
index 264424c96959d3d8ef41692da4b1c8be3895e8b5..6a7df57883d95517966b0e1e218d770b0143589d 100644
(file)
--- a/
drivers/misc/habanalabs/common/debugfs.c
+++ b/
drivers/misc/habanalabs/common/debugfs.c
@@
-349,7
+349,7
@@
static int mmu_show(struct seq_file *s, void *data)
return 0;
}
-
phys_addr = hops_info.hop_info[hops_info.used_hops - 1].hop_pte_val
;
+
hl_mmu_va_to_pa(ctx, virt_addr, &phys_addr)
;
if (hops_info.scrambled_vaddr &&
(dev_entry->mmu_addr != hops_info.scrambled_vaddr))