diff options
author | Inki Dae <inki.dae@samsung.com> | 2013-12-20 14:16:24 +0400 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2014-01-07 11:51:41 +0400 |
commit | 96f5421523dfdcfb67e66e0f51c4b64d2c12137c (patch) | |
tree | 6cbb770065605940e8d1d89b902c198a8dff4fb5 /drivers/gpu/drm/exynos/exynos_drm_gem.h | |
parent | fe3c703c3d80bd4c2da0d47a7d56930926af7cbc (diff) | |
download | linux-96f5421523dfdcfb67e66e0f51c4b64d2c12137c.tar.xz |
drm/exynos: use a new anon file for exynos gem mmaper
This patch resolves potential deadlock issue that can be incurred
by changing file->f_op and filp->private_data to exynos specific
mapper ops and gem object temporarily.
To resolve this issue, this patch creates a new anon file dedicated
to exynos specific mmaper, and making it used instead of existing one.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_gem.h')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_gem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.h b/drivers/gpu/drm/exynos/exynos_drm_gem.h index 702ec3abe85c..fde860c7eba3 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.h +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.h @@ -122,6 +122,9 @@ int exynos_drm_gem_map_offset_ioctl(struct drm_device *dev, void *data, int exynos_drm_gem_mmap_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv); +int exynos_drm_gem_mmap_buffer(struct file *filp, + struct vm_area_struct *vma); + /* map user space allocated by malloc to pages. */ int exynos_drm_gem_userptr_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv); |