platform/adaptation/spreadtrum/libtbm-sprd.git
7 years agochange the slp_global_lock to the tgl 57/99257/1
SooChan Lim [Mon, 21 Nov 2016 04:49:26 +0000 (13:49 +0900)]
change the slp_global_lock to the tgl

We do not use slp_global_lock device anymore on
tm1 target. We use tgl device instead and
the use space interface is changed because of this change.

This is only for the tm1 target.

p.s. When the kernel version is up and kernel can use
the dma_fence, libtbm-sprd does not use the tgl for
the bo lock and for the bo cache_flush anymore.

Change-Id: I4631a5f600bfaea47d8618036f40b17885c45493

7 years agotbm_bufmgr_sprd: clean up tbm_sprd_bo_unmap() 54/97454/2 accepted/tizen/3.0/mobile/20161116.021432 accepted/tizen/mobile/20161115.233729 submit/tizen/20161115.022149 submit/tizen_3.0/20161115.021406
YoungJun Cho [Mon, 14 Nov 2016 07:24:06 +0000 (16:24 +0900)]
tbm_bufmgr_sprd: clean up tbm_sprd_bo_unmap()

This patch cleans up tbm_sprd_bo_unmap().
- The bufmgr_sprd->use_dma_fence is checked unnecessarily.

Change-Id: I7e133e680b320dc0022ce10cac6e99798832d014
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
7 years agotbm_bufmgr_sprd: change functions as static one 53/97453/2
YoungJun Cho [Mon, 14 Nov 2016 07:20:50 +0000 (16:20 +0900)]
tbm_bufmgr_sprd: change functions as static one

This patch changes functions as static one.
- tbm_sprd_bo_export_fd()
- tbm_sprd_surface_supported_format()
- tbm_sprd_surface_get_plane_data()
- tbm_sprd_bo_get_flags()
- tbm_sprd_bufmgr_bind_native_display()

Change-Id: I4b67b9200434cb1950b16bb4b734ecec902696b9
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
7 years agotbm_bufmgr_sprd: clean up tbm_sprd_bo_import(_fd)() 52/97452/2
YoungJun Cho [Mon, 14 Nov 2016 07:17:44 +0000 (16:17 +0900)]
tbm_bufmgr_sprd: clean up tbm_sprd_bo_import(_fd)()

This patch cleans up tbm_sprd_bo_import(_fd)().
- Changes return value.
- Closes gem handle for error routines.

Change-Id: Ibf6a27cc05a155deec483d87179dcb428fb611f4
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
7 years agotbm_bufmgr_sprd: clean up tbm_sprd_bo_alloc() 51/97451/1
YoungJun Cho [Mon, 14 Nov 2016 07:11:58 +0000 (16:11 +0900)]
tbm_bufmgr_sprd: clean up tbm_sprd_bo_alloc()

This patch cleans up tbm_sprd_bo_alloc().
- The privGem could be NULL if calloc() is failed.

Change-Id: I6052b6d5767191a6dc660a8aa7e5bd24b85a6d6d
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
7 years agotbm_bufmgr_sprd: clean up tbm_sprd_bo_size() 50/97450/1
YoungJun Cho [Mon, 14 Nov 2016 07:06:54 +0000 (16:06 +0900)]
tbm_bufmgr_sprd: clean up tbm_sprd_bo_size()

This patch cleans up tbm_sprd_bo_size().
- The tbm_exynos_bo_size() checkes whether bo_exynos is NULL or not.
  So it's safer to check also.

Change-Id: Ie328c166a784a9e483f416707c512f79cc18cbf6
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
7 years agotbm_bufmgr_sprd: clean up _sprd_bo_cache_flush() 49/97449/1
YoungJun Cho [Mon, 14 Nov 2016 07:04:31 +0000 (16:04 +0900)]
tbm_bufmgr_sprd: clean up _sprd_bo_cache_flush()

This patch cleans up _sprd_bo_cache_flush().
- There is a routine for bo_sprd is NULL case,
  so the NULL check routine is wrong.

Change-Id: I7f62cc19300c6bec770d013e614f79d22224a8e0
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
7 years agotbm_bufmgr_sprd: clean up _tbm_sprd_open_drm() 48/97448/1
YoungJun Cho [Mon, 14 Nov 2016 06:53:19 +0000 (15:53 +0900)]
tbm_bufmgr_sprd: clean up _tbm_sprd_open_drm()

This patch cleans up _tbm_sprd_open_drm().

Change-Id: Ic55b1b347f1c09e698da21fb10e10e2977fbac5f
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
7 years agotbm_bufmgr_sprd: clean up target_name() 47/97447/1
YoungJun Cho [Mon, 14 Nov 2016 06:49:23 +0000 (15:49 +0900)]
tbm_bufmgr_sprd: clean up target_name()

This patch cleans up target_name().
- Renames it as _target_name().

Change-Id: I93ac6144a99ae6937377b8fadf0d21e48675adab
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
8 years agopackage version up to 1.0.3 43/96843/1 accepted/tizen/3.0/mobile/20161111.003413 accepted/tizen/mobile/20161111.002407 submit/tizen/20161110.105012 submit/tizen_3.0/20161110.105158
SooChan Lim [Thu, 10 Nov 2016 10:45:22 +0000 (19:45 +0900)]
package version up to 1.0.3

Change-Id: I22c9363ea85c046e67217b8ea783c22ddf17d9cc

8 years agochange the supported format 67/96467/5
SooChan Lim [Wed, 9 Nov 2016 04:57:06 +0000 (13:57 +0900)]
change the supported format

four format supported.
ARGB8888, XRGB8888, NV12 and YUV420

Change-Id: I7eca1bb90ec813a92c49cc3d74836952c84d120d

8 years agopackage version up to 1.0.2 13/96113/1 accepted/tizen/3.0/mobile/20161110.015707 accepted/tizen/mobile/20161109.002028 submit/tizen/20161108.022033 submit/tizen_3.0/20161108.021936
SooChan Lim [Tue, 8 Nov 2016 01:47:38 +0000 (10:47 +0900)]
package version up to 1.0.2

Change-Id: Ib232582e96f5122e1d5d4fccfe08fc1fa785390b

8 years agotbm_bufmgr_sprd: clean up init_tbm_bufmgr_priv() 32/94732/3
YoungJun Cho [Tue, 1 Nov 2016 02:41:16 +0000 (11:41 +0900)]
tbm_bufmgr_sprd: clean up init_tbm_bufmgr_priv()

This patch cleans up code and
adds missed drmHashDestroy() calls.

Change-Id: Ib87679562358dedaceda09088b78f1f57926627f
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
8 years agoApply tizen coding rule 24/84724/1 accepted/tizen/3.0/mobile/20161015.033825 accepted/tizen/mobile/20160824.054948 submit/tizen/20160823.022539 submit/tizen_3.0_mobile/20161015.000004
Changyeon Lee [Mon, 22 Aug 2016 06:21:54 +0000 (15:21 +0900)]
Apply tizen coding rule

Change-Id: I59637ebe0abb94986c1096680b5af24191fdc842

8 years agotbm_surface: align height of NV12 format when calculate size 82/81882/1 accepted/tizen/mobile/20160804.081542 submit/tizen/20160803.115336
Changyeon Lee [Fri, 29 Jul 2016 04:33:17 +0000 (13:33 +0900)]
tbm_surface: align height of NV12 format when calculate size

sprd hw codec need to size with align height

Change-Id: I83092fc97409f882c3ddb498c0be22bca692e617

8 years agoremove pthread-stub dependency 80/77180/1 accepted/tizen/mobile/20160629.071449 submit/tizen/20160629.024749 submit/tizen/20160629.042407
SooChan Lim [Wed, 29 Jun 2016 02:49:21 +0000 (11:49 +0900)]
remove pthread-stub dependency

Change-Id: I54a5b9f228e68d347615de4dae60382e8b1bd16d

8 years agoAdd udev rules file for slp_global_lock node 10/70110/2 accepted/tizen/mobile/20160519.002737 submit/tizen/20160518.062502
Changyeon Lee [Wed, 18 May 2016 06:45:52 +0000 (15:45 +0900)]
Add udev rules file for slp_global_lock node

Change-Id: I436a69d98ef76ea07273668bdc48d33d5bf25d08

8 years agofix handle leak error 78/66278/2 accepted/tizen/mobile/20160418.235836 submit/tizen/20160418.122230
Junkyeong Kim [Mon, 18 Apr 2016 07:07:23 +0000 (16:07 +0900)]
fix handle leak error

Change-Id: I788f0ee9a34d45e186f066ecb16e5c0222a32a05
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
8 years agoonly display server unset tbm master fd if tbm_bufmgr_init fail 64/65564/1 accepted/tizen/mobile/20160415.014835 submit/tizen/20160414.040521
Changyeon Lee [Mon, 11 Apr 2016 05:32:05 +0000 (14:32 +0900)]
only display server unset tbm master fd if tbm_bufmgr_init fail

Change-Id: I1662647f30e0e341f871ab0f9eb8ae28e05048ab

8 years agouse tgl lock if don't support dma fence 63/65563/1
Changyeon Lee [Wed, 30 Mar 2016 11:47:38 +0000 (20:47 +0900)]
use tgl lock if don't support dma fence

Change-Id: Ia8cd5f7d666418cf3902fad9b8df7b7637051ddf

8 years agoonly use tgl if cache control enable and fix memory leak 62/65562/1
Changyeon Lee [Wed, 30 Mar 2016 10:33:39 +0000 (19:33 +0900)]
only use tgl if cache control enable and fix memory leak

Change-Id: I6c460bdf9c640aff1214a47fc910e2c66de69faf

8 years agoSet and unset tbm master fd 45/63645/2
Changyeon Lee [Fri, 25 Mar 2016 05:24:30 +0000 (14:24 +0900)]
Set and unset tbm master fd

Change-Id: I5f0eb70d6dcef075ea4fec644fee9b0c3405b9cd

8 years agoChange parameter of backend fuction 44/63644/2
Changyeon Lee [Thu, 24 Mar 2016 12:02:12 +0000 (21:02 +0900)]
Change parameter of backend fuction

Change-Id: Ie32b515a0313e9005a8e100f4d72210cc05dd03e

8 years agoFix flink name type 43/63643/2
Changyeon Lee [Thu, 24 Mar 2016 12:00:36 +0000 (21:00 +0900)]
Fix flink name type

Change-Id: I2a2b627d27263c57714b09f9a8f2a558e224369e

8 years agoShare master fd widh tdm backend 42/63642/2
Changyeon Lee [Mon, 7 Mar 2016 12:14:05 +0000 (21:14 +0900)]
Share master fd widh tdm backend

Change-Id: Iecb82426fd0beeb9f7cda78035293ed1c9cc68c4

8 years agoRemove backend flag LOCK CTRL 41/63641/2
Changyeon Lee [Mon, 7 Mar 2016 12:13:12 +0000 (21:13 +0900)]
Remove backend flag LOCK CTRL

Change-Id: Ia8bb8743d6e49119e506c19962f4bf5a08532d12

8 years agoadd type casting for size vaule and fix handle leak 21/64321/1 accepted/tizen/mobile/20160405.083517 submit/tizen/20160405.050910
Junkyeong Kim [Thu, 31 Mar 2016 10:45:19 +0000 (19:45 +0900)]
add type casting for size vaule and fix handle leak

Change-Id: I69de677bf924cee119d97bcd2946a7f5606bae77
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
8 years agochanage the COPYING file 73/63073/1
SooChan Lim [Tue, 22 Mar 2016 05:00:04 +0000 (14:00 +0900)]
chanage the COPYING file

Change-Id: I8eac8a76d8959929bbd47741a7b72d6cff5120fe

8 years agouse the tizen directory macros at spec file 74/61874/1 accepted/tizen/mobile/20160311.144244 submit/tizen/20160311.060954
SooChan Lim [Fri, 11 Mar 2016 05:03:35 +0000 (14:03 +0900)]
use the tizen directory macros at spec file

Change-Id: I5f92b0ab642bea8fe6a86b47eb46a21b6b24858a

8 years agoPackage version up 02/61002/1 accepted/tizen/mobile/20160307.015815 submit/tizen/20160306.224940
Changyeon Lee [Thu, 3 Mar 2016 07:35:49 +0000 (16:35 +0900)]
Package version up

Change-Id: Iec9968da483ea3818343b87b77cea73f0f53dce6

8 years agoMerge branch 'sandbox/cyeon/devel' into tizen 66/60966/1
Changyeon Lee [Thu, 3 Mar 2016 06:52:09 +0000 (15:52 +0900)]
Merge branch 'sandbox/cyeon/devel' into tizen

Change-Id: I003b4937403a1fb5b023c851e0ade0aeef46a340
Signed-off-by: Changyeon Lee <cyeon.lee@samsung.com>
8 years agoDon't use sharing master fd code with libtdm-sprd backend 61/60961/1 sandbox/cyeon/devel
Changyeon Lee [Thu, 3 Mar 2016 06:48:52 +0000 (15:48 +0900)]
Don't use sharing master fd code with libtdm-sprd backend

Change-Id: I850fc4d50bb0e3a16a72fe0ce2a1ed602585f2fa

8 years agoFix fd leak
Changyeon Lee [Thu, 3 Mar 2016 06:36:30 +0000 (15:36 +0900)]
Fix fd leak

Change-Id: Ia8d6a821b58bf2532dda86a0e9ac7d1f27299f9c

8 years agoUse device name by drmGetDeviceNameFromFd and search drm device by udev if drmopen...
Changyeon Lee [Wed, 2 Mar 2016 06:07:50 +0000 (15:07 +0900)]
Use device name by drmGetDeviceNameFromFd and search drm device by udev if drmopen is failed

Change-Id: Ib96929a7aa01fcd6f7e82b62ff8e85cd24507d1d

8 years agoApply tizen coding rule
Changyeon Lee [Mon, 29 Feb 2016 12:45:17 +0000 (21:45 +0900)]
Apply tizen coding rule

Change-Id: I319067a0bdfa293ced385a6a4466a4c29c816ee1

8 years agoUser 2.0 backend
Changyeon Lee [Fri, 26 Feb 2016 04:37:17 +0000 (13:37 +0900)]
User 2.0 backend

Change-Id: Ic580bb54df87637a2dc3bfd06bab66059a7cd4a5

8 years agoRevert "fix a leak of file descriptors" 35/59535/1
Roman Marchenko [Tue, 16 Feb 2016 09:51:56 +0000 (01:51 -0800)]
Revert "fix a leak of file descriptors"

This reverts commit 791c0e2daf69cf0dfd132b021f08252f0ad9324c.

The user of libtbm have to control state of "fd" by himself. So libtbm shouldn't save fd which received by tbm_bo_import_fd()

Change-Id: Ic62d6a6363762691bfd06bab913949e907ee660a

8 years agofix a leak of file descriptors 33/59333/1
Roman Marchenko [Fri, 12 Feb 2016 15:22:15 +0000 (17:22 +0200)]
fix a leak of file descriptors

Change-Id: I4b1c4fe3119d720c13e158e5aa9cc3d79d760124
Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
8 years agoIf drm fd is negative value, get fd with wayland protocol 63/56863/1 accepted/tizen/mobile/20160115.011029 submit/tizen_common/20160222.141210 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000001 submit/tizen_mobile/20160114.055555
Changyeon Lee [Sun, 10 Jan 2016 08:52:13 +0000 (17:52 +0900)]
If drm fd is negative value, get fd with wayland protocol

Change-Id: I71dfe3aab0f4e2b502f1a96613aa48a0baefecea

8 years agoimplement the missing backend functions 09/53509/2 accepted/tizen/mobile/20151208.130722 submit/tizen_mobile/20151207.121615
SooChan Lim [Mon, 7 Dec 2015 11:10:28 +0000 (20:10 +0900)]
implement the missing backend functions

tbm_sprd_bo_import_fd
tbm_sprd_bo_export_fd
tbm_sprd_fd_to_handle
tbm_sprd_bo_get_flags

Change-Id: I0a2afd0f281f46901a633f232f7d8b2cb63bf79b

8 years agoif target_name isn't TM1, ExclusiveArch 18/52518/1 accepted/tizen/mobile/20151124.084920 submit/tizen/20151124.075058 submit/tizen_mobile/20151124.083037
Changyeon Lee [Tue, 24 Nov 2015 06:06:30 +0000 (15:06 +0900)]
if target_name isn't TM1, ExclusiveArch

Change-Id: Ia3baa532230cf668c2c154d13e7b8a36e436fe7b

8 years agoExcludeArch x86_64 10/52510/1 submit/tizen_mobile/20151124.044753
Changyeon Lee [Tue, 24 Nov 2015 04:45:37 +0000 (13:45 +0900)]
ExcludeArch x86_64

Change-Id: I3c77f0dfd8cc604a89755cb95900d4a3549ac2fa

8 years agoBuild only tm1 08/52508/1 submit/tizen_mobile/20151124.043509
Changyeon Lee [Tue, 24 Nov 2015 04:31:07 +0000 (13:31 +0900)]
Build only tm1

Change-Id: I6e6858f63e1cb8377c2d6fb38d632726f0e122a0

8 years agoif profile isn't mobile, ExcludeArch armv7l aarch64 99/52499/1 submit/tizen_mobile/20151124.035951
Changyeon Lee [Tue, 24 Nov 2015 02:46:24 +0000 (11:46 +0900)]
if profile isn't mobile, ExcludeArch armv7l aarch64

Change-Id: I06a9c7fcdb1e28019cdbbd473ba4f546a0d6d6b8

8 years agoremove install dependency 99/52399/2 submit/tizen/20151123.105355
SooChan Lim [Mon, 23 Nov 2015 07:34:40 +0000 (16:34 +0900)]
remove install dependency

libdrm2 and libtbm

Change-Id: I5756e8d60a685ee98ad53091b9841b56f976b83a

8 years agoAlign RGB format with 128 byte 12/52412/1
Changyeon Lee [Mon, 23 Nov 2015 07:52:03 +0000 (16:52 +0900)]
Align RGB format with 128 byte

Change-Id: I478a8d99e97517af148cb88a53aa9e4580b08bab

8 years agoadd initial codes 37/52337/1
SooChan Lim [Mon, 23 Nov 2015 04:19:04 +0000 (13:19 +0900)]
add initial codes

Change-Id: I31582209771bae7887837dd4c7a5614f62e37296

8 years agoInitial empty repository master
KyungMi Lee [Thu, 19 Nov 2015 01:22:27 +0000 (17:22 -0800)]
Initial empty repository