aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-gadget.c
diff options
context:
space:
mode:
authorGaurav Batra <[email protected]>2023-05-04 17:59:13 +0000
committerMichael Ellerman <[email protected]>2023-05-16 14:53:06 +0000
commit096339ab84f36beae0b1db25e0ce63fb3873e8b2 (patch)
treed5e69697bc080af578672e6d07b2491828c3b87f /drivers/usb/cdns3/cdns3-gadget.c
parentpowerpc/iommu: Remove iommu_del_device() (diff)
downloadkernel-096339ab84f36beae0b1db25e0ce63fb3873e8b2.tar.gz
kernel-096339ab84f36beae0b1db25e0ce63fb3873e8b2.zip
powerpc/iommu: DMA address offset is incorrectly calculated with 2MB TCEs
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") Cc: [email protected] # v5.16+ Signed-off-by: Gaurav Batra <[email protected]> Reviewed-by: Greg Joyce <[email protected]> Reviewed-by: Brian King <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-gadget.c')
0 files changed, 0 insertions, 0 deletions