]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita66cb09450cac891044c33c66ba7a7459c056d9f
tree335e19386efa2e99e5edc2a9cd4a69e3961f0b9d
parent22ad1a87d5858a6e7ac781ce8d16bed9d37f9b86
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