]> www.infradead.org Git - users/jedix/linux-maple.git/commit
powerpc/pseries/iommu: create DDW for devices with DMA mask less than 64-bits
authorGaurav Batra <gbatra@linux.ibm.com>
Wed, 8 Jan 2025 16:48:14 +0000 (10:48 -0600)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 11 Feb 2025 06:08:41 +0000 (11:38 +0530)
commit67dfc11982f7e3c37f0977e74671da2391b29181
tree410c3d59f3f6b81693fe812f889bfa94bd14b93b
parentddcb883fd49c5d81f0d6e8c60332bab5d3b4c86f
powerpc/pseries/iommu: create DDW for devices with DMA mask less than 64-bits

Starting with PAPR level 2.13, platform supports placing PHB in limited
address mode. Devices that support DMA masks less that 64-bit but greater
than 32-bits are placed in limited address mode. In this mode, the
starting DMA address returned by the DDW is 4GB.

When the device driver calls dma_supported, with mask less then 64-bit, the
PowerPC IOMMU driver places PHB in the Limited Addressing Mode before
creating DDW.

Signed-off-by: Gaurav Batra <gbatra@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250108164814.73250-1-gbatra@linux.ibm.com
arch/powerpc/platforms/pseries/iommu.c