提交 3f339b2d 编写于 作者: K Kunkun Jiang 提交者: Zheng Zengkai

Revert "iommu/arm-smmu-v3: Standardize granule size when support RIL"

virt inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I61SPO
CVE: NA

--------------------------------

This reverts commit f7cdf692.
Signed-off-by: NKunkun Jiang <jiangkunkun@huawei.com>
Reviewed-by: NKeqian Zhu <zhukeqian1@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 998db588
......@@ -2297,11 +2297,6 @@ static void __arm_smmu_tlb_inv_range(struct arm_smmu_cmdq_ent *cmd,
cmd->tlbi.tg = (tg - 10) / 2;
/* Determine what level the granule is at */
if (!(granule & smmu_domain->domain.pgsize_bitmap) ||
(granule & (granule - 1))) {
granule = leaf_pgsize;
iova = ALIGN_DOWN(iova, leaf_pgsize);
}
cmd->tlbi.ttl = 4 - ((ilog2(granule) - 3) / (tg - 3));
/* Align size with the leaf page size upwards */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册