aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/dpaux.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2018-06-08 15:00:05 +0200
committerThierry Reding <treding@nvidia.com>2019-10-28 11:18:42 +0100
commitacf6b77c4c3dc38de1e435d114c267cd8dedc913 (patch)
tree0c7e5d4e320763b75cb9b5bd36e03c93da65fcea /drivers/gpu/drm/tegra/dpaux.c
parentdrm/tegra: gem: Always map SG tables for DMA-BUFs (diff)
downloadlinux-dev-acf6b77c4c3dc38de1e435d114c267cd8dedc913.tar.xz
linux-dev-acf6b77c4c3dc38de1e435d114c267cd8dedc913.zip
drm/tegra: gem: Use sg_alloc_table_from_pages()
Instead of manually creating the SG table for a discontiguous buffer, use the existing sg_alloc_table_from_pages(). Note that this is not safe to be used with the ARM DMA/IOMMU integration code because that will not ensure that the whole buffer is mapped contiguously. Depending on the size of the individual entries the mapping may end up containing holes to ensure alignment. However, we only ever use these buffers with explicit IOMMU API usage and know how to avoid these holes. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dpaux.c')
0 files changed, 0 insertions, 0 deletions