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)
commitaf1cbfb9bf0fe079ca328231451fd4db8b3eafec
tree136ba6066a4ed6b84181e5850e76dc751aeda168
parentb78e70c04c149299bd210759d7c7af7c86b89ca8
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