]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Implement .gem_free_object_unlocked
authorKristian H. Kristensen <hoegsberg@gmail.com>
Wed, 20 Mar 2019 17:09:08 +0000 (10:09 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 19 Apr 2019 18:50:06 +0000 (11:50 -0700)
commit321a32574353b3d3d717ddb9ebde5c34dd275599
treecf683d683a70b760650865d44656a699cccf9def
parent1a0192f01d5867369e01a2a491d75d1a531eac34
drm/msm: Implement .gem_free_object_unlocked

We use a llist and a worker to delay the object cleanup. This avoids
taking mmap_sem and struct_mutex in the wrong order when calling
drm_gem_object_put_unlocked() from drm_gem_mmap().

Fixes lockdep problem with copy_from_user() in msm_ioctl_gem_submit().

Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_drv.h
drivers/gpu/drm/msm/msm_gem.c
drivers/gpu/drm/msm/msm_gem.h