drm/rockchip: avoid duplicate mappings for IOMMU devices
authorJohn Keeping <john@metanate.com>
Thu, 10 Nov 2022 17:24:14 +0000 (17:24 +0000)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 5 Feb 2023 14:27:54 +0000 (15:27 +0100)
commit0020d4cfa3eea0e5fad23af49411217da854fc83
tree7fd0d0d5e97df628a625d088cd144d02606385da
parent582212ee1611f77e0360d249f11c0f703ed723dc
drm/rockchip: avoid duplicate mappings for IOMMU devices

If a buffer is allocated with alloc_kmap, then it is vmap'd on creation
and there is no reason to map it again in rockchip_gem_prime_vmap() when
the existing mapping can be used.

Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20221110172415.2853420-1-john@metanate.com
drivers/gpu/drm/rockchip/rockchip_drm_gem.c