platform/adaptation/spreadtrum/libtbm-sprd.git
2 years agoremove legacy libtbm backend 41/276641/2 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_unified tizen_7.0 tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.062733 accepted/tizen/7.0/unified/hotfix/20221116.104518 accepted/tizen/unified/20220623.144213 submit/tizen/20220623.044128 tizen_7.0_m2_release
Changyeon Lee [Wed, 22 Jun 2022 05:30:25 +0000 (14:30 +0900)]
remove legacy libtbm backend

Change-Id: I5a8d80649f1c50e93bd50257688c15ec4970c1af

3 years agoPackage version up to 3.0.3 89/259289/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20211028.093737 accepted/tizen/unified/20210607.124726 submit/tizen/20210604.060903 submit/tizen_6.5/20211028.161601 tizen_6.5.m2_release
SooChan Lim [Fri, 4 Jun 2021 02:58:33 +0000 (11:58 +0900)]
Package version up to 3.0.3

Change-Id: Iff3f056f885c3eb36ca65eb45c9417606da26848

3 years agoinstall COPYING and udev.rules to /hal 43/258243/1 submit/tizen/20210604.025052
SooChan Lim [Wed, 12 May 2021 23:40:35 +0000 (08:40 +0900)]
install COPYING and udev.rules to /hal

Change-Id: I0cb1f284d906b8f48f2b182d78ecca6aaf83534d

3 years agoPackage version up to 3.0.2 06/255506/2 accepted/tizen/unified/20210324.124506 submit/tizen/20210319.090109 submit/tizen/20210319.090617 submit/tizen/20210323.100158
SooChan Lim [Fri, 19 Mar 2021 03:54:28 +0000 (12:54 +0900)]
Package version up to 3.0.2

Change-Id: I58fc39503db6f7190d87a23cee19f95c18c19010

3 years agoRemove unnecessary null checking 11/255511/1
Junkyeong Kim [Fri, 19 Mar 2021 04:22:31 +0000 (13:22 +0900)]
Remove unnecessary null checking

Change-Id: Ib95c5bb0cd62c19fdc96028ec84f4419b53ab73f
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
3 years agoremove bufmgr_funcs->bufmgr_alloc_bo_with_tiled_format
SooChan Lim [Fri, 19 Mar 2021 01:46:15 +0000 (10:46 +0900)]
remove bufmgr_funcs->bufmgr_alloc_bo_with_tiled_format

The bufmgr_funcs->bufmgr_alloc_bo_with_tiled_format is deprecated.

Change-Id: I914aea23ecdd472e4765427c4017329ff3caa921

3 years agoPackage version up to 3.0.1 99/255399/1 accepted/tizen/unified/20210318.044627 submit/tizen/20210318.042331
Junkyeong Kim [Thu, 18 Mar 2021 03:03:40 +0000 (12:03 +0900)]
Package version up to 3.0.1

Change-Id: I62b343effbc2c4d2ebd4592eb14329ca4a64ec1f
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
3 years agoAdd post for hal backend 90/255390/2
Junkyeong Kim [Thu, 18 Mar 2021 02:43:02 +0000 (11:43 +0900)]
Add post for hal backend

Make symbolic link for hal backend package.

Change-Id: I1979dc81dcb631fc976b95e3e071be06a146d238
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
3 years agopackage version up to 3.0.0 14/255014/1 accepted/tizen/unified/20210312.142513 submit/tizen/20210311.092458 submit/tizen/20210311.093745
SooChan Lim [Thu, 11 Mar 2021 08:21:41 +0000 (17:21 +0900)]
package version up to 3.0.0

use the backend interface of hal-api-tbm

Change-Id: I171f7a7fe5f44732e8ae0d954b10f9a6e51d89d6

3 years agoAdd missing boilerplate 61/254961/1
Junkyeong Kim [Thu, 11 Mar 2021 04:57:04 +0000 (13:57 +0900)]
Add missing boilerplate

Change-Id: I922c6016308fe10e3aa51b5afbb18a27dd5bfe62
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
3 years agomake hal-backend-tbm-sprd package 72/253172/12
Junkyeong Kim [Fri, 5 Feb 2021 05:36:46 +0000 (14:36 +0900)]
make hal-backend-tbm-sprd package

This is the first step for implementing the new hal backend.
libhal-backend-tbm-sprd package has a new hal backend module.
The new hal architecture will be available for Tizen 6.5.

Change-Id: Ibdbaca5dc4b234280876b287c966ca6f3bbabe33
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
3 years agomove source files to src/libtbm-sprd/ 43/252843/1
SooChan Lim [Wed, 3 Feb 2021 00:25:53 +0000 (09:25 +0900)]
move source files to src/libtbm-sprd/

Change-Id: Ifa25b025f916a05e5983b1bf639c2aa59b3a11c1

4 years agopackage version up to 2.4.3 63/239063/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.123901 accepted/tizen/6.0/unified/hotfix/20201103.053031 accepted/tizen/unified/20200723.161205 submit/tizen/20200722.070017 submit/tizen_6.0/20201029.205101 submit/tizen_6.0_hotfix/20201102.192501 submit/tizen_6.0_hotfix/20201103.114801 tizen_6.0.m2_release
Changyeon Lee [Tue, 21 Jul 2020 11:15:29 +0000 (20:15 +0900)]
package version up to 2.4.3

Change-Id: Ia10f4c76e8a1d5df507288c3fb09642b73d584ed

4 years agofix fd leak 57/239057/1
Changyeon Lee [Tue, 21 Jul 2020 11:06:40 +0000 (20:06 +0900)]
fix fd leak

Change-Id: I90e1cf86227728a93c714d1e593de4acf52deea4

4 years agochange the error log from error to info 72/234672/1 accepted/tizen/unified/20200529.124200 submit/tizen/20200528.081645
SooChan Lim [Thu, 28 May 2020 02:17:45 +0000 (11:17 +0900)]
change the error log from error to info

Change-Id: I06f2ccffb62989a6dabee1381bb2411f53dbb017

4 years agopackage version up to 2.4.2 70/233770/1
SooChan Lim [Tue, 19 May 2020 05:08:02 +0000 (14:08 +0900)]
package version up to 2.4.2

Change-Id: Ia5090afdcf6a184064b6d6573e118fdaf98a613b

4 years agoremove the uset of tbm_backend_bufmgr_query_display_server 69/233769/1
SooChan Lim [Tue, 19 May 2020 04:28:35 +0000 (13:28 +0900)]
remove the uset of tbm_backend_bufmgr_query_display_server

The backend has to use the drmIsMaster() to check if the drm_fd
is the master fd instead of tbm_backend_bufmgr_query_display_server().

Change-Id: I74c1d90456e36727696c6168f8a38db1bd3c93a7

4 years agopackage version up to 2.4.1 09/219909/1 accepted/tizen/unified/20191213.115141 submit/tizen/20191212.070635
Changyeon Lee [Wed, 11 Dec 2019 10:46:42 +0000 (19:46 +0900)]
package version up to 2.4.1

Change-Id: Ie7a77a2436220724320500013d9540dd004cd8d1

4 years agoset same pitch to all plane of NV format 08/219908/1
Changyeon Lee [Wed, 11 Dec 2019 10:36:01 +0000 (19:36 +0900)]
set same pitch to all plane of NV format

Change-Id: I877a8c19f3e8fa12eddba3cdc99cc5a0dc85ea10

5 years agopackage version up to 2.4.0 69/216769/2 accepted/tizen/unified/20191104.115200 submit/tizen/20191104.003215
SooChan Lim [Fri, 1 Nov 2019 04:05:51 +0000 (13:05 +0900)]
package version up to 2.4.0

tizen 6.0 starts here.

Change-Id: I29aa6fcc3a5783a58139de71f964d728132ff5d6

5 years agopackage version up to 2.3.0 29/196229/1
SooChan Lim [Wed, 26 Dec 2018 10:15:45 +0000 (19:15 +0900)]
package version up to 2.3.0

Change-Id: I56205e69541c3db9ef58e4d02a4080661118891a

6 years agopackage version up to 2.2.0 33/177833/1 accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.0 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.0/unified/20181106.202922 accepted/tizen/5.5/unified/20191031.034700 accepted/tizen/5.5/unified/mobile/hotfix/20201027.082949 accepted/tizen/5.5/unified/wearable/hotfix/20201027.123930 accepted/tizen/unified/20180508.071534 submit/tizen/20180504.060653 submit/tizen_5.0/20181101.000001 submit/tizen_5.0/20181106.000001 submit/tizen_5.5/20191031.000010 submit/tizen_5.5/20191031.000011 submit/tizen_5.5/20191031.000013 submit/tizen_5.5_mobile_hotfix/20201026.185101 submit/tizen_5.5_wearable_hotfix/20201026.184301 tizen_5.5.m2_release
SooChan Lim [Fri, 4 May 2018 02:30:00 +0000 (11:30 +0900)]
package version up to 2.2.0

Change-Id: I2a9f8ce08a302c385ce0295380827d7622d33f2d

6 years agouse 3.0 version of tbm backend abi 32/177832/1
SooChan Lim [Fri, 4 May 2018 02:26:59 +0000 (11:26 +0900)]
use 3.0 version of tbm backend abi

Change-Id: I87dbe99011d03deb115ef3385b925e50a5abea16

6 years agouse TBM_ERROR_INVALID_OPERATION 71/174271/1 accepted/tizen/unified/20180404.063359 submit/tizen/20180329.115212 submit/tizen/20180330.043331 submit/tizen/20180403.011904
SooChan Lim [Thu, 29 Mar 2018 11:47:32 +0000 (20:47 +0900)]
use TBM_ERROR_INVALID_OPERATION

Change-Id: I985c4f062930e1a3078a46a043e10e767f940c25

6 years agopackage version up to 2.1.0 94/174094/1 accepted/tizen/unified/20180330.060647 submit/tizen/20180328.053955
SooChan Lim [Wed, 28 Mar 2018 05:01:44 +0000 (14:01 +0900)]
package version up to 2.1.0

Change-Id: Ibb13c84382739bb3dac41fbde2413109945830a6

6 years agochange the type of the size 93/174093/1
SooChan Lim [Wed, 28 Mar 2018 05:01:31 +0000 (14:01 +0900)]
change the type of the size

Change-Id: I59c965b5bef5c5faf74e323efa911cb28832ab9b

6 years agopackage version up to 2.0.1 26/173626/1 accepted/tizen/unified/20180323.062224 submit/tizen/20180323.010451
SooChan Lim [Thu, 22 Mar 2018 23:36:00 +0000 (08:36 +0900)]
package version up to 2.0.1

Change-Id: I93ab415dc94d7850e1bd34a2128e1339304d3062

6 years agouse tbm_log.h 87/173487/1
SooChan Lim [Thu, 22 Mar 2018 02:40:56 +0000 (11:40 +0900)]
use tbm_log.h

Change-Id: I4cb5411e892e3dab07c9edab523ffbbe78af333f

6 years agopackage version up to 2.0.0 94/173194/2 submit/tizen/20180320.042059 submit/tizen/20180321.034045
SooChan Lim [Tue, 20 Mar 2018 03:57:11 +0000 (12:57 +0900)]
package version up to 2.0.0

Change-Id: Idaa2294aba5542d02ce0acc89943f60f84fdb357

6 years agouse the tbm_log.h for logging 92/173092/3
SooChan Lim [Mon, 19 Mar 2018 11:54:51 +0000 (20:54 +0900)]
use the tbm_log.h for logging

Change-Id: I695630634cd3884a76ef207884923aeae869d871

6 years agore-arrange the static functions. 78/173078/2
SooChan Lim [Mon, 19 Mar 2018 10:28:23 +0000 (19:28 +0900)]
re-arrange the static functions.

Change-Id: I4041bfde1dc4c29bacf74340442008086c95f6dc

6 years agomake the new backend inteface with tbm_backend.h 55/172655/6
SooChan Lim [Wed, 14 Mar 2018 09:49:19 +0000 (18:49 +0900)]
make the new backend inteface with tbm_backend.h

Change-Id: Ie574c5c28eadcb742579819dc5138784be922bdf

6 years agopackage version up to 1.0.11 91/166791/1 accepted/tizen/unified/20180112.160213 submit/tizen/20180112.044117
Changyeon Lee [Fri, 12 Jan 2018 02:36:13 +0000 (11:36 +0900)]
package version up to 1.0.11

Change-Id: I8358e59ed97233268a5ba42409b2eb9212779344

6 years agoapply align 16 to height when calculate size in YUV format 34/166634/1
Changyeon Lee [Thu, 11 Jan 2018 06:33:14 +0000 (15:33 +0900)]
apply align 16 to height when calculate size in YUV format

Change-Id: I4be15cca80f318c196598cac6dfce1c62882d81e

7 years agopackage version up to 1.0.10 27/140527/1 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20170816.015642 accepted/tizen/4.0/unified/20170828.224457 accepted/tizen/unified/20170725.174253 submit/tizen/20170725.043609 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.110001 submit/tizen_4.0_unified/20170814.115522 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
SooChan Lim [Tue, 25 Jul 2017 08:24:13 +0000 (17:24 +0900)]
package version up to 1.0.10

Change-Id: Ic7d42282aac1919863453039b7e531b730de3538

7 years agoremove the unused code 21/140521/1
SooChan Lim [Tue, 25 Jul 2017 08:11:37 +0000 (17:11 +0900)]
remove the unused code

Change-Id: I52a41966bc6dafaa5ec8a1649b40a22742f79b3c

7 years agoadd manifest 20/140520/1
SooChan Lim [Tue, 25 Jul 2017 08:10:16 +0000 (17:10 +0900)]
add manifest

Change-Id: If276c621e33b4c1c4bbf0b1fd25d1d1136c98393

7 years agopackage version up to 1.0.9 accepted/tizen_mobile accepted/tizen/mobile/20170324.023938 accepted/tizen/unified/20170324.024049 submit/tizen/20170323.101716 tizen_4.0.m1_release
Boram Park [Thu, 23 Mar 2017 10:22:15 +0000 (19:22 +0900)]
package version up to 1.0.9

Change-Id: Ia1228e726407df52104ca39f6b01f125e52b1432

7 years agocorrect plane's offset 10/120610/1
Boram Park [Thu, 23 Mar 2017 09:20:10 +0000 (18:20 +0900)]
correct plane's offset

Change-Id: If5ee84530b1785d40eaec8fbd833ef2036ed753b

7 years agouse %license macro to copy the COPYING file. 32/120232/1
SooChan Lim [Wed, 22 Mar 2017 06:44:20 +0000 (15:44 +0900)]
use %license macro to copy the COPYING file.

Change-Id: I498e72741500017ae68382b931ca6a7397683311

7 years agoApply tbm_drm_helper_set / unset_fd both of server(master) and client. 64/119964/1
Mun, Gwan-gyeong [Tue, 21 Mar 2017 02:33:04 +0000 (11:33 +0900)]
Apply tbm_drm_helper_set / unset_fd  both of server(master) and client.

Some GLES/EGL Driver ,like as MESA, can call tbm_drm_helper_get_fd() both of
server(master) and client. so, tbm backend should call tbm_drm_helper_set / unset
over both of server(master) and client case.

Change-Id: I4597f904bec3d4e6e20868a6ebf402d808ab7a9a
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
7 years agofix the excludeArch for i586 accepted/tizen/3.0/mobile/20170223.001055 accepted/tizen/mobile/20170222.094611 accepted/tizen/unified/20170309.084546 submit/tizen/20170222.020757 submit/tizen_3.0/20170222.061204 submit/tizen_unified/20170308.100403 submit/tizen_unified/20170309.100423
SooChan Lim [Wed, 22 Feb 2017 05:38:33 +0000 (14:38 +0900)]
fix the excludeArch for i586

Change-Id: I500538bfef920d9a07eb4f6ee820b11fb2801ed8

7 years agoRevert "Revert "Do not use tizen-target-name""
SooChan Lim [Wed, 22 Feb 2017 02:06:54 +0000 (11:06 +0900)]
Revert "Revert "Do not use tizen-target-name""

This reverts commit 60d0228a98d1929dd9454269ca4228b508363429.

7 years agoRevert "Do not use tizen-target-name"
SooChan Lim [Tue, 21 Feb 2017 10:04:20 +0000 (19:04 +0900)]
Revert "Do not use tizen-target-name"

This reverts commit 47b7175b6d7bab7aefaceda5c6e0f7ebbaeaf0f2.

Change-Id: Ib517bc120f54d94df322aeff238ab6333cd9daee

7 years agoDo not use tizen-target-name 17/115717/3 submit/tizen_3.0/20170221.085427
SooChan Lim [Tue, 21 Feb 2017 08:28:34 +0000 (17:28 +0900)]
Do not use tizen-target-name

In unified build environment (Tizen:Unified), you should not
use any macro that depends on repository/profile.

Without this commit, this package won't be able to be built
in Tizen:Unified.

Change-Id: I71bbd0a83abab6cd38be582febe711a624dd2c98

7 years agoadded tbm_drm_helper_set/unset_fd 64/109964/3 accepted/tizen/3.0/mobile/20170118.043529 accepted/tizen/3.0/mobile/20170223.040600 accepted/tizen/mobile/20170118.041409 submit/tizen/20170117.555555 submit/tizen_3.0/20170117.555555 submit/tizen_3.0/20170223.013726
Changyeon Lee [Thu, 12 Jan 2017 10:19:19 +0000 (19:19 +0900)]
added tbm_drm_helper_set/unset_fd

Change-Id: Ic09676af10fb55dc6a615fa357fe158e3a3bb4fc

7 years agopackage version up to 1.0.8 33/108533/1 accepted/tizen/3.0/mobile/20170106.094549 accepted/tizen/mobile/20170110.224519 submit/tizen/20170110.094105 submit/tizen_3.0/20170105.071718
Boram Park [Thu, 5 Jan 2017 03:55:46 +0000 (12:55 +0900)]
package version up to 1.0.8

Change-Id: I36f7f3d3d3296cb126ed14f3fb6fc5fdde6198e7

7 years agofix memory leak in init_tbm_bufmgr_priv() 09/107509/1
Roman Marchenko [Wed, 28 Dec 2016 09:11:49 +0000 (11:11 +0200)]
fix memory leak in init_tbm_bufmgr_priv()

 - bufmgr_sprd->device_name is come from strdup(). so it should be free if init failed.

Change-Id: I862d057ce6bd503685a6ff1576baa1e9423ca7d3
Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
7 years agopackage version up to 1.0.7 95/102195/1 accepted/tizen_3.0.m2_mobile tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.100305 accepted/tizen/3.0/mobile/20161205.235154 accepted/tizen/mobile/20161205.233537 submit/tizen/20161205.073554 submit/tizen_3.0.m2/20170104.093748 submit/tizen_3.0/20161205.073948
SooChan Lim [Mon, 5 Dec 2016 07:22:12 +0000 (16:22 +0900)]
package version up to 1.0.7

Change-Id: Ieb539c12177937b64283fca567bcbc36b58d0a01

7 years agotbm_bufmgr_sprd: fix wrong ioctl() parameter 50/101350/1
YoungJun Cho [Thu, 1 Dec 2016 02:55:13 +0000 (11:55 +0900)]
tbm_bufmgr_sprd: fix wrong ioctl() parameter

This patch fixes wrong ioctl() parameter.

Change-Id: Ic8cea15bd8c2a16b6aadbc362a6cd185f5bad83f
Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
7 years agopackage version up to 1.0.6 70/100070/1 accepted/tizen/3.0/mobile/20161125.082355 accepted/tizen/mobile/20161128.000550 submit/tizen/20161125.042430 submit/tizen_3.0/20161125.042506
SooChan Lim [Fri, 25 Nov 2016 05:23:05 +0000 (14:23 +0900)]
package version up to 1.0.6

Change-Id: I0e1d973401b7b861a08209b6ee5c2abdba1e520b

7 years agoremove the unused code 51/100051/1
SooChan Lim [Fri, 25 Nov 2016 03:46:50 +0000 (12:46 +0900)]
remove the unused code

We do not use tgl and do not use the user lock of the dmafence at tm1
- remove lock/unlock
- block the tgl codes

Change-Id: If71fd61f4def380959079e8feb8f3aa163ed99ee

7 years agopackage version up to 1.0.5 92/99792/1 accepted/tizen/3.0/mobile/20161124.083403 accepted/tizen/mobile/20161125.004550 submit/tizen/20161124.054628 submit/tizen_3.0/20161124.065804
SooChan Lim [Thu, 24 Nov 2016 06:19:54 +0000 (15:19 +0900)]
package version up to 1.0.5

Change-Id: Iad2dec014becabfddb4363cae70f97ad25a12cdc

7 years agouse slp_global_lock temporarily 91/99791/1
SooChan Lim [Thu, 24 Nov 2016 06:07:13 +0000 (15:07 +0900)]
use slp_global_lock temporarily

we remove slp_global_lock after kernel enables tgl

Change-Id: I356c344863a7d700929cb53151db7c6fda1b75cc

7 years agoRevert "Revert "refactor the sprd log"" 90/99790/1
SooChan Lim [Thu, 24 Nov 2016 06:22:32 +0000 (15:22 +0900)]
Revert "Revert "refactor the sprd log""

This reverts commit c05a617dc5d39c556a8995289202d7f2c9630198.

Change-Id: Ib4cb9b5b0449d465a42e75424a72c46af156e122

7 years agoRevert "Revert "change the slp_global_lock to the tgl"" 89/99789/1
SooChan Lim [Thu, 24 Nov 2016 05:50:34 +0000 (14:50 +0900)]
Revert "Revert "change the slp_global_lock to the tgl""

This reverts commit 1b2b409b690224f724eff0581f6d22e76732c443.

Change-Id: Ib1da168fea7009e3185e82a62d5f52a620e284fe

7 years agoRevert "change the slp_global_lock to the tgl" 73/99773/1 accepted/tizen/3.0/mobile/20161124.055754 submit/tizen_3.0/20161124.054609
SooChan Lim [Thu, 24 Nov 2016 05:38:09 +0000 (14:38 +0900)]
Revert "change the slp_global_lock to the tgl"

This reverts commit c0aa72545a4e3cab567478909dfd0d209e66e373.

Change-Id: Iff09ca999d21d30e000fd5c86308e05f6607c727

7 years agoRevert "refactor the sprd log" 72/99772/1
SooChan Lim [Thu, 24 Nov 2016 05:37:54 +0000 (14:37 +0900)]
Revert "refactor the sprd log"

This reverts commit af693bed8064dc40cf31986644579d5f5644d3e2.

Change-Id: Ia1076aaf64e6f9ddb22b9473f69acb90fa860b7c

7 years agopackage version up to 1.0.4 22/99422/1 accepted/tizen/3.0/mobile/20161124.024819 accepted/tizen/mobile/20161123.232502 submit/tizen/20161123.014935 submit/tizen_3.0/20161123.015409
SooChan Lim [Wed, 23 Nov 2016 00:56:33 +0000 (09:56 +0900)]
package version up to 1.0.4

Change-Id: I7eafdb04f3dbbbc4443b87d5785155ccbdfdb58e

7 years agorefactor the sprd log 58/99258/2
SooChan Lim [Tue, 22 Nov 2016 06:15:50 +0000 (15:15 +0900)]
refactor the sprd log

make TBM_SPRD_ERROR and TBM_SPRD_DEBUG

Change-Id: I76a078d11d3a8e88d6e6bbecc9519bd4a1f45eab

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>
7 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

7 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

7 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

7 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