diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-11-18 11:35:22 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-11-25 22:36:01 +0100 |
commit | 7a8139c54e75a67b85692eb5f238710d59a1dfc3 (patch) | |
tree | ed1a83dd179e313f385fddf6de648861381c93ce /drivers/gpu/drm/tegra | |
parent | Revert "drm/fbdev: Fallback to non tiled mode if all tiles not present" (diff) | |
download | linux-7a8139c54e75a67b85692eb5f238710d59a1dfc3.tar.xz linux-7a8139c54e75a67b85692eb5f238710d59a1dfc3.zip |
drm/tegra: Map cmdbuf once for reloc processing
A few reasons to drop kmap:
- For native objects all we do is look at obj->vaddr anyway, so might
as well not call functions for every page.
- Reloc-processing on dma-buf is ... questionable.
- Plus most dma-buf that bother kernel cpu mmaps give you at least
vmap, much less kmaps. And all the ones relevant for arm-soc are
again doing a obj->vaddr game anyway, there's no real kmap going on
on arm it seems.
Plus this seems to be the only real in-tree user of dma_buf_kmap, and
I'd like to get rid of that.
Reviewed-by: Thierry Reding <treding@nvidia.com>
Tested-by: Thierry Reding <treding@nvidia.com>
Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: linux-tegra@vger.kernel.org
Link: https://patchwork.freedesktop.org/patch/msgid/20191118103536.17675-2-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/gpu/drm/tegra')
0 files changed, 0 insertions, 0 deletions