aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
diff options
context:
space:
mode:
authorNoralf Trønnes <[email protected]>2021-02-19 12:22:03 +0000
committerMaarten Lankhorst <[email protected]>2021-03-11 10:11:33 +0000
commit64e194e278673bceb68fb2dde7dbc3d812bfceb3 (patch)
treeb270b07463485ccd4da6b4d230280c6c8a84784a /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
parentdrm: meson_drv add shutdown function (diff)
downloadkernel-64e194e278673bceb68fb2dde7dbc3d812bfceb3.tar.gz
kernel-64e194e278673bceb68fb2dde7dbc3d812bfceb3.zip
drm/shmem-helpers: vunmap: Don't put pages for dma-buf
dma-buf importing was reworked in commit 7d2cd72a9aa3 ("drm/shmem-helpers: Simplify dma-buf importing"). Before that commit drm_gem_shmem_prime_import_sg_table() did set ->pages_use_count=1 and drm_gem_shmem_vunmap_locked() could call drm_gem_shmem_put_pages() unconditionally. Now without the use count set, put pages is called also on dma-bufs. Fix this by only putting pages if it's not imported. Signed-off-by: Noralf Trønnes <[email protected]> Fixes: 7d2cd72a9aa3 ("drm/shmem-helpers: Simplify dma-buf importing") Cc: Daniel Vetter <[email protected]> Cc: Thomas Zimmermann <[email protected]> Acked-by: Thomas Zimmermann <[email protected]> Tested-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit cdea72518a2b38207146e92e1c9e2fac15975679) Signed-off-by: Thomas Zimmermann <[email protected]> Signed-off-by: Maarten Lankhorst <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions