]> 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)
commit0a0a2890c604879cc38663a964cdab7b3218d72e
tree335e19386efa2e99e5edc2a9cd4a69e3961f0b9d
parent9c177ca62205dc2e40a317a20785428e9cc3c749
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