提交 998db588 编写于 作者: K Kunkun Jiang 提交者: Zheng Zengkai

Revert "iommu/arm-smmu-v3: Remove the redundant shift operation of 'size'"

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

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

This reverts commit c046c2a2.
Signed-off-by: NKunkun Jiang <jiangkunkun@huawei.com>
Reviewed-by: NKeqian Zhu <zhukeqian1@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 49b4f8fa
......@@ -3832,6 +3832,7 @@ arm_smmu_cache_invalidate(struct iommu_domain *domain, struct device *dev,
!(granule_size & smmu_domain->domain.pgsize_bitmap)) {
tg = __ffs(smmu_domain->domain.pgsize_bitmap);
granule_size = 1 << tg;
size = size >> tg;
}
arm_smmu_tlb_inv_range_domain(info->addr, size,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册