Skip to content

Commit 09ae430

Browse files
yuranuogabbay
authored andcommitted
habanalabs: fix mmu node address resolution in debugfs
The address resolution via debugfs was not taking into consideration the page offset, resulting in a wrong address. Signed-off-by: Yuri Nudelman <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]>
1 parent 714fccb commit 09ae430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/misc/habanalabs/common/debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ static int mmu_show(struct seq_file *s, void *data)
349349
return 0;
350350
}
351351

352-
phys_addr = hops_info.hop_info[hops_info.used_hops - 1].hop_pte_val;
352+
hl_mmu_va_to_pa(ctx, virt_addr, &phys_addr);
353353

354354
if (hops_info.scrambled_vaddr &&
355355
(dev_entry->mmu_addr != hops_info.scrambled_vaddr))

0 commit comments

Comments
 (0)