ping...

On 2014/5/26 20:13, Yijing Wang wrote:
> Signed-off-by: Yijing Wang <[email protected]>
> ---
>  drivers/iommu/intel-iommu.c |    6 ++----
>  1 files changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
> index f256ffc..7b7127a 100644
> --- a/drivers/iommu/intel-iommu.c
> +++ b/drivers/iommu/intel-iommu.c
> @@ -848,13 +848,11 @@ static struct dma_pte *pfn_to_dma_pte(struct 
> dmar_domain *domain,
>  
>                       domain_flush_cache(domain, tmp_page, VTD_PAGE_SIZE);
>                       pteval = ((uint64_t)virt_to_dma_pfn(tmp_page) << 
> VTD_PAGE_SHIFT) | DMA_PTE_READ | DMA_PTE_WRITE;
> -                     if (cmpxchg64(&pte->val, 0ULL, pteval)) {
> +                     if (cmpxchg64(&pte->val, 0ULL, pteval))
>                               /* Someone else set it while we were thinking; 
> use theirs. */
>                               free_pgtable_page(tmp_page);
> -                     } else {
> -                             dma_pte_addr(pte);
> +                     else
>                               domain_flush_cache(domain, pte, sizeof(*pte));
> -                     }
>               }
>               if (level == 1)
>                       break;
> 


-- 
Thanks!
Yijing

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

Reply via email to