Subject: Re: [PATCH v3] powerpc/iommu: DMA address offset is incorrectly calculated with 2MB TCEs

From: Srikar Dronamraju <[email-masked]>
Date: Mon, 22 May 2023 12:57:56 +0530

* Gaurav Batra <[email-masked]> [2023-05-04 12:59:13]:

> When DMA window is backed by 2MB TCEs, the DMA address for the mapped
> page should be the offset of the page relative to the 2MB TCE. The code
> was incorrectly setting the DMA address to the beginning of the TCE
> range.
> 
> Mellanox driver is reporting timeout trying to ENABLE_HCA for an SR-IOV
> ethernet port, when DMA window is backed by 2MB TCEs.
> 
> Fixes: 387273118714 ("powerps/pseries/dma: Add support for 2M IOMMU page size")
> 
> Signed-off-by: Gaurav Batra <[email-masked]>
> 

Works with this patch.
Tested-by: Srikar Dronamraju <[email-masked]>

> Reviewed-by: Greg Joyce <[email-masked]>
> Reviewed-by: Brian King <[email-masked]>
> ---

-- 
Thanks and Regards
Srikar Dronamraju