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

Srikar Dronamraju srikar at linux.vnet.ibm.com
Mon May 22 17:27:56 AEST 2023

* Gaurav Batra <gbatra at linux.vnet.ibm.com> [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 <gbatra at linux.vnet.ibm.com>

Works with this patch.
Tested-by: Srikar Dronamraju <srikar at linux.vnet.ibm.com>

> Reviewed-by: Greg Joyce <gjoyce at linux.vnet.ibm.com>
> Reviewed-by: Brian King <brking at linux.vnet.ibm.com>
> ---

Thanks and Regards
Srikar Dronamraju

More information about the Linuxppc-dev mailing list