OSDN Git Service

drm/tegra: gem: Map pages via the DMA API
authorThierry Reding <treding@nvidia.com>
Wed, 13 Dec 2017 11:22:48 +0000 (12:22 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 16 Mar 2018 23:03:54 +0000 (00:03 +0100)
commitbd43c9f0fa1f664b58eefdc8aab7ac3c8b2026ec
tree02c82972bf7405fb3349cca37cbca9bfd9548112
parent0281c4149021376123b4ccdb1548692a3f6e70bd
drm/tegra: gem: Map pages via the DMA API

When allocating pages, map them with the DMA API in order to invalidate
caches. This is the correct usage of the API and works just as well as
faking up the SG table and using the dma_sync_sg_for_device() function.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/gem.c