]> git.baikalelectronics.ru Git - kernel.git/commit
gpu: host1x: Set DMA direction only for DMA-mapped buffer objects
authorThierry Reding <treding@nvidia.com>
Tue, 4 Feb 2020 13:59:26 +0000 (14:59 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 6 Feb 2020 17:23:12 +0000 (18:23 +0100)
commitcdf4fa9b9cf63f49786d965a8bf2900645d0c08d
treebce76ca9768e778602ec189bad8c2f16f30eeb1a
parenta2fbaaf43832055cf9f32ae39da614a83847b171
gpu: host1x: Set DMA direction only for DMA-mapped buffer objects

The DMA direction is only used by the DMA API, so there is no use in
setting it when a buffer object isn't mapped with the DMA API.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
drivers/gpu/host1x/job.c