提交 8c8c143c 编写于 作者: J Joerg Roedel

x86/amd-iommu: Remove last usages of IOMMU_PTE_L0_INDEX

This change allows to remove these old macros later.
Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com>
上级 8bc3e127
...@@ -1402,7 +1402,7 @@ static u64* dma_ops_get_pte(struct dma_ops_domain *dom, ...@@ -1402,7 +1402,7 @@ static u64* dma_ops_get_pte(struct dma_ops_domain *dom,
pte = alloc_pte(&dom->domain, address, &pte_page, GFP_ATOMIC); pte = alloc_pte(&dom->domain, address, &pte_page, GFP_ATOMIC);
aperture->pte_pages[APERTURE_PAGE_INDEX(address)] = pte_page; aperture->pte_pages[APERTURE_PAGE_INDEX(address)] = pte_page;
} else } else
pte += IOMMU_PTE_L0_INDEX(address); pte += PM_LEVEL_INDEX(0, address);
update_domain(&dom->domain); update_domain(&dom->domain);
...@@ -1466,7 +1466,7 @@ static void dma_ops_domain_unmap(struct amd_iommu *iommu, ...@@ -1466,7 +1466,7 @@ static void dma_ops_domain_unmap(struct amd_iommu *iommu,
if (!pte) if (!pte)
return; return;
pte += IOMMU_PTE_L0_INDEX(address); pte += PM_LEVEL_INDEX(0, address);
WARN_ON(!*pte); WARN_ON(!*pte);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册