]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Split submit_lookup_objects() into two loops
authorKristian H. Kristensen <hoegsberg@gmail.com>
Wed, 20 Mar 2019 17:09:10 +0000 (10:09 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 19 Apr 2019 18:50:07 +0000 (11:50 -0700)
commit408e71cfa4d77be922a5311ed2feb6d0d2998912
tree0ff449011902700b976bb2370ac1951e292a3055
parent8b2c86f2bef2abf61c908abbcf09d726bdbf34dd
drm/msm: Split submit_lookup_objects() into two loops

First loop does copy_from_user() without the table lock held and
just stores the handle. Second loop looks up buffer objects with the
table_lock held without potentially blocking or faulting. This lets us
clean up a bunch of custom, non-faulting copy_from_user() code.

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