]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9c177ca62205dc2e40a317a20785428e9cc3c749
tree02c82972bf7405fb3349cca37cbca9bfd9548112
parent7f531e6cb0cf2f30c9dfaff2a67ebf698725df11
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