diff options
author | Rob Clark <robdclark@gmail.com> | 2016-05-26 22:24:35 +0200 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2016-07-16 16:09:07 +0200 |
commit | 18f23049f640e2590930c34009418c66e6ebf7b6 (patch) | |
tree | 294d1310496395f435e876632439b752c234d75c /drivers/gpu/drm/msm/msm_ringbuffer.c | |
parent | drm/msm: shrinker support (diff) | |
download | linux-18f23049f640e2590930c34009418c66e6ebf7b6.tar.xz linux-18f23049f640e2590930c34009418c66e6ebf7b6.zip |
drm/msm: change gem->vmap() to get/put
Before we can add vmap shrinking, we really need to know which vmap'ings
are currently being used. So switch to get/put interface. Stubbed put
fxns for now.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_ringbuffer.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_ringbuffer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/msm_ringbuffer.c b/drivers/gpu/drm/msm/msm_ringbuffer.c index 42f5359cf988..f326cf6a32e6 100644 --- a/drivers/gpu/drm/msm/msm_ringbuffer.c +++ b/drivers/gpu/drm/msm/msm_ringbuffer.c @@ -39,7 +39,7 @@ struct msm_ringbuffer *msm_ringbuffer_new(struct msm_gpu *gpu, int size) goto fail; } - ring->start = msm_gem_vaddr_locked(ring->bo); + ring->start = msm_gem_get_vaddr_locked(ring->bo); if (IS_ERR(ring->start)) { ret = PTR_ERR(ring->start); goto fail; @@ -59,7 +59,9 @@ fail: void msm_ringbuffer_destroy(struct msm_ringbuffer *ring) { - if (ring->bo) + if (ring->bo) { + msm_gem_put_vaddr(ring->bo); drm_gem_object_unreference_unlocked(ring->bo); + } kfree(ring); } |