Skip to content

Commit

Permalink
habanalabs: fix mmu node address resolution in debugfs
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
yuranu authored and ogabbay committed Sep 1, 2021
1 parent 714fccb commit 09ae430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/habanalabs/common/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 09ae430

Please sign in to comment.