tegra: Fix mmap() of GEM buffer objects
authorThierry Reding <treding@nvidia.com>
Fri, 9 Jul 2021 18:05:54 +0000 (20:05 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 23 Feb 2022 14:39:06 +0000 (15:39 +0100)
commit18427071831046aa7ff1071d053fc5956641a906
treebf1f3498693864a4db22b812c494a0d93eb03dae
parente44e7816037c54bae766df5b07af07685e81e336
tegra: Fix mmap() of GEM buffer objects

Store 64-bit offset values and use libdrm's built-in drm_mmap() function
instead of mmap() to ensure the full 64-bit offset is used.

Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
tegra/private.h
tegra/tegra.c