diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2017-03-07 10:02:52 -0700 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2017-04-08 06:59:36 -0400 |
commit | ee546cd34ae846a8202b78d1834170e2b3ee063d (patch) | |
tree | 38535ae3ad8faf88513b651451c0cc9e51fe6b3c /drivers/gpu/drm/msm/msm_drv.h | |
parent | 9873ef0743535ee71efecfb5228f96432e393f8a (diff) | |
download | op-kernel-dev-ee546cd34ae846a8202b78d1834170e2b3ee063d.zip op-kernel-dev-ee546cd34ae846a8202b78d1834170e2b3ee063d.tar.gz |
drm/msm: Reference count address spaces
There are reasons for a memory object to outlive the file descriptor
that created it and so the address space that a buffer object is
attached to must also outlive the file descriptor. Reference count
the address space so that it can remain viable until all the objects
have released their addresses.
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_drv.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_drv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_drv.h b/drivers/gpu/drm/msm/msm_drv.h index b885c3d..28b6f9b 100644 --- a/drivers/gpu/drm/msm/msm_drv.h +++ b/drivers/gpu/drm/msm/msm_drv.h @@ -191,7 +191,8 @@ void msm_gem_unmap_vma(struct msm_gem_address_space *aspace, int msm_gem_map_vma(struct msm_gem_address_space *aspace, struct msm_gem_vma *vma, struct sg_table *sgt, int npages); -void msm_gem_address_space_destroy(struct msm_gem_address_space *aspace); +void msm_gem_address_space_put(struct msm_gem_address_space *aspace); + struct msm_gem_address_space * msm_gem_address_space_create(struct device *dev, struct iommu_domain *domain, const char *name); |