]> 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)
commit1a39a932f7d6d8af90f6332fd4babf6360a690f1
treebce76ca9768e778602ec189bad8c2f16f30eeb1a
parent1506822485a3586f4eee4f72ee48d1a9dea049aa
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