summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/msm/msm_gem_prime.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2019-02-02 18:41:56 +0300
committerMaxime Ripard <maxime.ripard@bootlin.com>2019-02-19 13:08:40 +0300
commitdd55cf6929e61922961b8515e73dc4d8443089d2 (patch)
treeae70de9adf43d99bfd53393ea3c8d42996da903c /drivers/gpu/drm/msm/msm_gem_prime.c
parentfa238ea1668e25e0614ae0f37a04cbceb993a0a4 (diff)
downloadlinux-dd55cf6929e61922961b8515e73dc4d8443089d2.tar.xz
drm: msm: Switch to use drm_gem_object reservation_object
Now that the base struct drm_gem_object has a reservation_object, use it and remove the private BO one. We can't use the drm_gem_reservation_object_wait() helper for MSM because (in theory) msm_gem_cpu_prep() will also do some cache maintenance on the GEM object. Cc: David Airlie <airlied@linux.ie> Cc: linux-arm-msm@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: freedreno@lists.freedesktop.org Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Rob Clark <robdclark@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190202154158.10443-4-robh@kernel.org Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gem_prime.c')
-rw-r--r--drivers/gpu/drm/msm/msm_gem_prime.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/msm/msm_gem_prime.c b/drivers/gpu/drm/msm/msm_gem_prime.c
index 13403c6da6c7..60bb290700ce 100644
--- a/drivers/gpu/drm/msm/msm_gem_prime.c
+++ b/drivers/gpu/drm/msm/msm_gem_prime.c
@@ -70,10 +70,3 @@ void msm_gem_prime_unpin(struct drm_gem_object *obj)
if (!obj->import_attach)
msm_gem_put_pages(obj);
}
-
-struct reservation_object *msm_gem_prime_res_obj(struct drm_gem_object *obj)
-{
- struct msm_gem_object *msm_obj = to_msm_bo(obj);
-
- return msm_obj->resv;
-}