OSDN Git Service

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)
commitc6aeaf56f468a565f6d2f27325fc07d35cdcd3cb
treeb2b15454b61f09b1ea0fd281af0dff3ce5a77941
parent7a56783850772feb2cbf1dabdce617f5941a57c0
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