drm/tegra: prime: Implement ->{begin,end}_cpu_access()
authorThierry Reding <treding@nvidia.com>
Wed, 13 Dec 2017 11:25:14 +0000 (12:25 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 16 Mar 2018 23:04:20 +0000 (00:04 +0100)
commit27e92f1f1600c214bf649daddb9b88b68330a8d1
tree335e19386efa2e99e5edc2a9cd4a69e3961f0b9d
parentbd43c9f0fa1f664b58eefdc8aab7ac3c8b2026ec
drm/tegra: prime: Implement ->{begin,end}_cpu_access()

These callbacks allow the exporter to swap in and pin the backing
storage for buffers as well as invalidate the cache in preparation for
accessing the buffer from the CPU, and flush the cache and unpin the
backing storage when the CPU is done modifying the buffer.

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