Home
last modified time | relevance | path

Searched hist:"249 baa54790171438524ba97e8e0485dd6aa2762" (Results 1 – 3 of 3) sorted by relevance

/linux/kernel/dma/
H A Dmapping.cdiff 249baa54790171438524ba97e8e0485dd6aa2762 Tue Aug 06 14:01:38 CEST 2019 Christoph Hellwig <hch@lst.de> dma-mapping: provide a better default ->get_required_mask

Most dma_map_ops instances are IOMMUs that work perfectly fine in 32-bits
of IOVA space, and the generic direct mapping code already provides its
own routines that is intelligent based on the amount of memory actually
present. Wire up the dma-direct routine for the ARM direct mapping code
as well, and otherwise default to the constant 32-bit mask. This way
we only need to override it for the occasional odd IOMMU that requires
64-bit IOVA support, or IOMMU drivers that are more efficient if they
can fall back to the direct mapping.

Signed-off-by: Christoph Hellwig <hch@lst.de>
/linux/arch/powerpc/platforms/ps3/
H A Dsystem-bus.cdiff 249baa54790171438524ba97e8e0485dd6aa2762 Tue Aug 06 14:01:38 CEST 2019 Christoph Hellwig <hch@lst.de> dma-mapping: provide a better default ->get_required_mask

Most dma_map_ops instances are IOMMUs that work perfectly fine in 32-bits
of IOVA space, and the generic direct mapping code already provides its
own routines that is intelligent based on the amount of memory actually
present. Wire up the dma-direct routine for the ARM direct mapping code
as well, and otherwise default to the constant 32-bit mask. This way
we only need to override it for the occasional odd IOMMU that requires
64-bit IOVA support, or IOMMU drivers that are more efficient if they
can fall back to the direct mapping.

Signed-off-by: Christoph Hellwig <hch@lst.de>
/linux/arch/arm/mm/
H A Ddma-mapping.cdiff 249baa54790171438524ba97e8e0485dd6aa2762 Tue Aug 06 14:01:38 CEST 2019 Christoph Hellwig <hch@lst.de> dma-mapping: provide a better default ->get_required_mask

Most dma_map_ops instances are IOMMUs that work perfectly fine in 32-bits
of IOVA space, and the generic direct mapping code already provides its
own routines that is intelligent based on the amount of memory actually
present. Wire up the dma-direct routine for the ARM direct mapping code
as well, and otherwise default to the constant 32-bit mask. This way
we only need to override it for the occasional odd IOMMU that requires
64-bit IOVA support, or IOMMU drivers that are more efficient if they
can fall back to the direct mapping.

Signed-off-by: Christoph Hellwig <hch@lst.de>