diff options
author | Inki Dae <inki.dae@samsung.com> | 2014-11-25 01:12:11 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2014-11-25 01:12:11 +0900 |
commit | a4b04454ffb51969a72e078f081df899fecb24e8 (patch) | |
tree | dae68a8a2c5c008bd882255538137ac26410093e /drivers/gpu/drm/exynos/exynos_drm_fb.c | |
parent | 320f4d403ffc518a3f19dcc14f37eab0207eeef4 (diff) | |
download | linux-3.10-a4b04454ffb51969a72e078f081df899fecb24e8.tar.gz linux-3.10-a4b04454ffb51969a72e078f081df899fecb24e8.tar.bz2 linux-3.10-a4b04454ffb51969a72e078f081df899fecb24e8.zip |
drm/exynos: remove all codes relevant to dmabuf-syncsubmit/tizen/20141124.161713accepted/tizen/common/20141124.171414
This patch removes existing codes relevant to dmabuf-sync.
For dmabuf-sync support, new codes will be added later.
Change-Id: I1f794f95941519d8ef791f6fda01ab5f1e32807a
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_fb.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fb.c | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fb.c b/drivers/gpu/drm/exynos/exynos_drm_fb.c index 305f76d4de7..bef99bb1755 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fb.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fb.c @@ -25,8 +25,6 @@ #include "exynos_drm_iommu.h" #include "exynos_drm_crtc.h" -#include <linux/dmabuf-sync.h> - static int check_fb_gem_memory_type(struct drm_device *drm_dev, struct exynos_drm_gem_obj *exynos_gem_obj) { @@ -159,64 +157,6 @@ exynos_drm_framebuffer_init(struct drm_device *dev, return &exynos_fb->fb; } -#ifdef CONFIG_DMABUF_SYNC -void *exynos_drm_dmabuf_sync_work(struct drm_framebuffer *fb) -{ - struct exynos_drm_fb *exynos_fb; - struct drm_gem_object *obj; - struct dmabuf_sync *sync; - unsigned int i; - int ret = 0; - - sync = dmabuf_sync_init("DRM", NULL, NULL); - if (IS_ERR(sync)) { - WARN_ON(1); - goto out_dmabuf_sync; - } - - exynos_fb = to_exynos_fb(fb); - - for (i = 0; i < exynos_fb->buf_cnt; i++) { - if (!exynos_fb->exynos_gem_obj[i]) { - WARN_ON(1); - continue; - } - - obj = &exynos_fb->exynos_gem_obj[i]->base; - if (!obj->export_dma_buf) - continue; - - /* - * set dmabuf to fence and registers reservation - * object to reservation entry. - */ - ret = dmabuf_sync_get(sync, - obj->export_dma_buf, - DMA_BUF_ACCESS_DMA_R); - if (WARN_ON(ret < 0)) - continue; - - } - - ret = dmabuf_sync_wait_all(sync); - if (ret < 0) { - dmabuf_sync_put_all(sync); - dmabuf_sync_fini(sync); - sync = ERR_PTR(ret); - goto out_dmabuf_sync; - } - - /* buffer synchronization is done by wait_for_vblank so just signal. */ - dmabuf_sync_signal_all(sync); - - dmabuf_sync_put_all(sync); - dmabuf_sync_fini(sync); - -out_dmabuf_sync: - return sync; -} -#endif - static u32 exynos_drm_format_num_buffers(struct drm_mode_fb_cmd2 *mode_cmd) { unsigned int cnt = 0; |