OSDN Git Service

arm64: Add support for DMA_ATTR_SKIP_CPU_SYNC attribute to swiotlb
authorTakeshi Kihara <takeshi.kihara.df@renesas.com>
Wed, 11 Jan 2017 10:11:17 +0000 (11:11 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 12 Jan 2017 15:34:15 +0000 (15:34 +0000)
commit7f332fc1f0f053799aeda587cefbc67b5ecd72c5
tree4669589f4875bb121bc1f5dff4b2d41502b3aa82
parentec6d06efb0bac6cd92846e42d1afe5b98b57e7c2
arm64: Add support for DMA_ATTR_SKIP_CPU_SYNC attribute to swiotlb

This patch adds support for DMA_ATTR_SKIP_CPU_SYNC attribute for
dma_{un}map_{page,sg} functions family to swiotlb.

DMA_ATTR_SKIP_CPU_SYNC allows platform code to skip synchronization of
the CPU cache for the given buffer assuming that it has been already
transferred to 'device' domain.

Ported from IOMMU .{un}map_{sg,page} ops.

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/dma-mapping.c