]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Support DMA mapping of buffers
authorThierry Reding <treding@nvidia.com>
Mon, 28 Oct 2019 12:37:13 +0000 (13:37 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 29 Oct 2019 14:04:35 +0000 (15:04 +0100)
commit7951f27333131cce330523815eb3dfd8d5f42a7e
tree136ba6066a4ed6b84181e5850e76dc751aeda168
parent452015cb775eb3f55ca47f2834cdb6d4af70ed6c
gpu: host1x: Support DMA mapping of buffers

If host1x_bo_pin() returns an SG table, create a DMA mapping for the
buffer. For buffers that the host1x client has already mapped itself,
host1x_bo_pin() returns NULL and the existing DMA address is used.

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