Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/iommu/riscv/io_pgtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ static phys_addr_t riscv_iommu_iova_to_phys(struct io_pgtable_ops *ops,
if (!pte || !pte_present(*pte))
return 0;

return (pfn_to_phys(pte_pfn(*pte)) | (iova & PAGE_MASK));
return (pfn_to_phys(pte_pfn(*pte)) | (iova & ~PAGE_MASK));
}

static void riscv_iommu_tlb_inv_all(void *cookie)
Expand Down