Skip to content

Commit 67a8a67

Browse files
jernejskjoergroedel
authored andcommitted
iommu/sun50i: Fix flush size
Function sun50i_table_flush() takes number of entries as an argument, not number of bytes. Fix that mistake in sun50i_dte_get_page_table(). Fixes: 4100b8c ("iommu: Add Allwinner H6 IOMMU driver") Signed-off-by: Jernej Skrabec <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent eac0104 commit 67a8a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/sun50i-iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ static u32 *sun50i_dte_get_page_table(struct sun50i_iommu_domain *sun50i_domain,
512512
sun50i_iommu_free_page_table(iommu, drop_pt);
513513
}
514514

515-
sun50i_table_flush(sun50i_domain, page_table, PT_SIZE);
515+
sun50i_table_flush(sun50i_domain, page_table, NUM_PT_ENTRIES);
516516
sun50i_table_flush(sun50i_domain, dte_addr, 1);
517517

518518
return page_table;

0 commit comments

Comments
 (0)