]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: Implement correct DMA-BUF semantics
authorThierry Reding <treding@nvidia.com>
Thu, 9 Sep 2021 13:51:24 +0000 (15:51 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 16 Dec 2021 13:07:06 +0000 (14:07 +0100)
commit877c860f5addc9b15e5f6a873080d832cc311abb
treeb2b15454b61f09b1ea0fd281af0dff3ce5a77941
parent4321f4d50d1579164446fa328b77cd250fa9fbc2
drm/tegra: Implement correct DMA-BUF semantics

DMA-BUF requires that each device that accesses a DMA-BUF attaches to it
separately. To do so the host1x_bo_pin() and host1x_bo_unpin() functions
need to be reimplemented so that they can return a mapping, which either
represents an attachment or a map of the driver's own GEM object.

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