]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: gem: Properly pin imported buffers
authorThierry Reding <treding@nvidia.com>
Tue, 3 Dec 2019 16:19:07 +0000 (17:19 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 4 Dec 2019 12:35:53 +0000 (13:35 +0100)
commit86023cda0c51b57ad0209b2bda93c66c362debb0
treec8a3017cdc86bde138dd6aea865cf4b70fee3a18
parent9e1ca61b891699eb17bab99338425a7665b22637
drm/tegra: gem: Properly pin imported buffers

Buffers that are imported from a DMA-BUF don't have pages allocated with
them. At the same time an SG table for them can't be derived using the
DMA API helpers because the necessary information doesn't exist. However
there's already an SG table that was created during import, so this can
simply be duplicated.

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