OSDN Git Service

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)
commit98ae41adb252866158dd4e998551dfa85e612bed
treebce76ca9768e778602ec189bad8c2f16f30eeb1a
parent273da5a046965ccf0ec79eb63f2d5173467e20fa
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