Skip to content

Commit e6d25e7

Browse files
YongWu-HFjoergroedel
authored andcommitted
iommu/mediatek: Remove the granule in the tlb flush
The MediaTek IOMMU doesn't care about granule when tlb flushing. Remove this variable. Signed-off-by: Yong Wu <yong.wu@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Link: https://lore.kernel.org/r/20220503071427.2285-14-yong.wu@mediatek.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent d265a4a commit e6d25e7

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

drivers/iommu/mtk_iommu.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ static void mtk_iommu_tlb_flush_all(struct mtk_iommu_data *data)
219219
}
220220

221221
static void mtk_iommu_tlb_flush_range_sync(unsigned long iova, size_t size,
222-
size_t granule,
223222
struct mtk_iommu_data *data)
224223
{
225224
struct list_head *head = data->hw_list;
@@ -541,16 +540,15 @@ static void mtk_iommu_iotlb_sync(struct iommu_domain *domain,
541540
struct mtk_iommu_domain *dom = to_mtk_domain(domain);
542541
size_t length = gather->end - gather->start + 1;
543542

544-
mtk_iommu_tlb_flush_range_sync(gather->start, length, gather->pgsize,
545-
dom->data);
543+
mtk_iommu_tlb_flush_range_sync(gather->start, length, dom->data);
546544
}
547545

548546
static void mtk_iommu_sync_map(struct iommu_domain *domain, unsigned long iova,
549547
size_t size)
550548
{
551549
struct mtk_iommu_domain *dom = to_mtk_domain(domain);
552550

553-
mtk_iommu_tlb_flush_range_sync(iova, size, size, dom->data);
551+
mtk_iommu_tlb_flush_range_sync(iova, size, dom->data);
554552
}
555553

556554
static phys_addr_t mtk_iommu_iova_to_phys(struct iommu_domain *domain,

0 commit comments

Comments
 (0)