Boram Park [Wed, 29 Nov 2017 06:20:50 +0000 (15:20 +0900)]
dpms: add AOD dpms mode
Change-Id: I66cc462a59871af9151ffc3ebf31fcfada51ee9d
Boram Park [Wed, 29 Nov 2017 06:20:28 +0000 (15:20 +0900)]
dpms: handling extended DPMS modes
Change-Id: I79b90d97c09c019db2f6b14e66dbf12e7e4c6441
Boram Park [Tue, 28 Nov 2017 08:04:54 +0000 (17:04 +0900)]
dpms: update current_dpms_value if failed to set
Change-Id: Ia1d23eb727886e1fa84c661752256a96d476d9ec
Boram Park [Tue, 28 Nov 2017 06:48:45 +0000 (15:48 +0900)]
dpms: allow setting the same value twice
Change-Id: I26ceb004348063a3c0ad35b4e4a2a016388031dc
Boram Park [Tue, 28 Nov 2017 02:47:13 +0000 (11:47 +0900)]
dpms: add macro to check dpms status
Change-Id: Iae7c09052f7df07c50d9b7d2dff7acaac179ec39
Boram Park [Tue, 28 Nov 2017 02:08:49 +0000 (11:08 +0900)]
dpms: add more description
Change-Id: I1bf68620ecc9f4915a840ce1640beb4267be487b
Boram Park [Tue, 28 Nov 2017 08:13:27 +0000 (17:13 +0900)]
output: add debug logs
Change-Id: I54e84c237ccc68f7cb42b1aea81a52ea57be2170
Boram Park [Mon, 27 Nov 2017 08:44:40 +0000 (17:44 +0900)]
tools: fix syntax error
Change-Id: I0d857f566ed34dcd415939b7b2fe4b4062320f7f
Boram Park [Mon, 27 Nov 2017 08:44:18 +0000 (17:44 +0900)]
output: add debug log
Change-Id: I36f24f5c2e53f56c8568888bd6e305a62dd6eb1b
Boram Park [Wed, 3 Jan 2018 11:36:00 +0000 (20:36 +0900)]
package version up to 1.8.8
Change-Id: Idf5f2e7abd45356e00717968e9e18eb7012e7443
Boram Park [Wed, 3 Jan 2018 11:16:25 +0000 (20:16 +0900)]
vblank: return TDM_ERROR_TIMEOUT when timeout occurs
If a vblank callback isn't called in 2000ms, tdm vblank will return
TDM_ERROR_TIMEOUT to client.
Change-Id: Ib5cd14dddd8bef051e01664c52021f57c7099f48
Boram Park [Tue, 26 Dec 2017 09:34:52 +0000 (18:34 +0900)]
server: remove unused request
Change-Id: I0aa949b4d9ae69464538f178d733223f43c342d9
Boram Park [Thu, 28 Dec 2017 11:27:24 +0000 (20:27 +0900)]
package version up to 1.8.7
Change-Id: I7d53a1e60c4a7922faa890d59821d0720b352b06
Boram Park [Tue, 12 Dec 2017 09:42:06 +0000 (18:42 +0900)]
fix build-break for aarch64
Change-Id: I1ea0c302e37f3fd44ddce44fae8045b8041d166b
Boram Park [Tue, 12 Dec 2017 02:44:44 +0000 (11:44 +0900)]
monitor: enhance ttrace option for layer, pp, capture
Change-Id: I3c142a49bff04844734137ea912cd5a84a81e05c
Boram Park [Thu, 14 Dec 2017 00:52:32 +0000 (09:52 +0900)]
package version up to 1.8.6
Change-Id: Id8b2fcd7ba425f8b67c29660c51a46fdf46e2787
Boram Park [Thu, 14 Dec 2017 00:45:12 +0000 (09:45 +0900)]
fix tained string issue
Change-Id: I349b13d2d2731c69c4ee44dc6aef1c9613c00ff5
Boram Park [Thu, 7 Dec 2017 02:51:26 +0000 (11:51 +0900)]
package version up to 1.8.5
Change-Id: I065f2af60f9caa69727615a58a3269d4bb4be8b7
Boram Park [Thu, 7 Dec 2017 02:16:08 +0000 (11:16 +0900)]
add checking return value
Change-Id: I6b5d85ace61d651722c4df2991ff588d74d726bd
Boram Park [Fri, 24 Nov 2017 02:03:56 +0000 (11:03 +0900)]
package version up to 1.8.4
Change-Id: Iaffb0f33adb41b1c6dfbb4c097651ec643fd8e87
Boram Park [Thu, 23 Nov 2017 06:45:16 +0000 (15:45 +0900)]
ttrace: enhance -ttrace_vblank option
Change-Id: Ic3afb55d3b7cf06e8962bea0ee0f71322fc06d27
Boram Park [Thu, 23 Nov 2017 05:39:47 +0000 (14:39 +0900)]
server: correct wrong freeing
Change-Id: I60595fa61f80ada4c4f2586eef8537cf38c04446
Boram Park [Tue, 21 Nov 2017 08:31:41 +0000 (17:31 +0900)]
package version up to 1.8.3
Change-Id: Ifed011687c2c0cc6a3ad1ae5faeb32ce301134a7
Boram Park [Tue, 21 Nov 2017 07:56:58 +0000 (16:56 +0900)]
correct ttrace debug information for vblank
Change-Id: Ie465ef620bc2f91b23c85a7321e7ba39de777c02
Boram Park [Tue, 21 Nov 2017 07:35:02 +0000 (16:35 +0900)]
remove unused event
Change-Id: Ia88e9468eb8ca36f0c6902d76d1eb9d9424d7cd5
Boram Park [Tue, 21 Nov 2017 07:31:35 +0000 (16:31 +0900)]
add stamp to vblank objects
To distinguish among vblank objects
Change-Id: Id419092118542442fa719824204e495c48e32d40
Boram Park [Fri, 17 Nov 2017 06:47:22 +0000 (15:47 +0900)]
output: add debugging logs
Change-Id: I716746908d47b15757772ebc71cf714a0e0a5771
Boram Park [Wed, 1 Nov 2017 03:02:11 +0000 (12:02 +0900)]
tdm: remove unncessary code
Change-Id: I38863ae2f9572b4b347216f2d804b281d1f8d70f
Boram Park [Thu, 16 Nov 2017 04:56:37 +0000 (13:56 +0900)]
vblank: using tdm_output function to get DPMS status.
Storing DPMS value made inconsistency with output's DPMS value
Change-Id: I303486cda38c2d8c9c01346facf1e7848b9c63e3
Boram Park [Thu, 16 Nov 2017 04:53:25 +0000 (13:53 +0900)]
output: return current_dpms_value if commit_per_vblank is false
To use the stored value to reduce the interaction between frontend and backend.
If commit_per_vblank is true, tdm_output_get_dpms_internal calls backend's
output_get_dpms always function to get dpms status. Some backends doesn't
work properly for DPMS.
In future, we'd better use new env instead of using commit_per_vblank variable
to distinguish whether we use the stored value or backend's output_get_dpms.
Change-Id: I464e5d0dee98985e657f6db636b4386258ffaa8e
Boram Park [Tue, 10 Oct 2017 08:23:51 +0000 (17:23 +0900)]
package version up to 1.8.2
Change-Id: I540bc9a7eb324f344b1bbaa913b1c2c61921008a
Boram Park [Tue, 10 Oct 2017 08:12:26 +0000 (17:12 +0900)]
use strncpy, strncat instead of snprintf for getenv
Change-Id: Ia83f826590de742b5469163e9c38bdc51deff372
Boram Park [Fri, 29 Sep 2017 05:08:45 +0000 (14:08 +0900)]
remove link before calling the user handler
Inside of the user handler, list can be changed. And it could make crash.
Change-Id: Ib49bc110e826ff7b34b6c8bc2224b5006b1972ba
Boram Park [Fri, 29 Sep 2017 02:39:40 +0000 (11:39 +0900)]
test: set enviroment for testing
Change-Id: I0fdd86a9c15e33b25eaf1fa0482c94472f4b025b
Boram Park [Fri, 29 Sep 2017 02:28:54 +0000 (11:28 +0900)]
Revert "implementation for SCREEN_PREROTATION_HINT"
This reverts commit
f4aa0253c0f401b86bf1769e200b216cd2d8b66d.
Change-Id: Ic15d3a1815bbf9eab57240cc50514c9937bcf662
Boram Park [Wed, 27 Sep 2017 08:37:21 +0000 (17:37 +0900)]
set drm_fd to tbm
Change-Id: If4e231b807744f14621dfb4ccc710191b6d09aab
Boram Park [Wed, 27 Sep 2017 06:39:30 +0000 (15:39 +0900)]
package version up to 1.8.1
Change-Id: I7744c6b4582f0e5f3dde7a09bcb15ea0ec8d1d3e
Boram Park [Wed, 27 Sep 2017 01:32:30 +0000 (10:32 +0900)]
add validation check for getenv
Change-Id: I88df5bdfeb5049b0ba3c84fb841a9d062a9c01d9
Boram Park [Wed, 27 Sep 2017 01:31:16 +0000 (10:31 +0900)]
remove unnecessary condition
Change-Id: Ib27a298da0b3194c1f42feca95739f53f4e05bb1
Boram Park [Fri, 22 Sep 2017 07:57:01 +0000 (16:57 +0900)]
package version up to 1.8.0
Change-Id: Ib8fb6088111712c0e36e685dd351aeb2d1771488
Boram Park [Fri, 22 Sep 2017 01:46:16 +0000 (10:46 +0900)]
layer: pending layer's data until committed
The layer's info and buffer information should be applied when tdm_layer_commit
called. Otherwise, when we call tdm_layer_commit for A layer, the changes of B
layer can be applied to backend unintentionally.
Change-Id: I5cfdde9ed9f918174aa5a0785bad48c93c4b2091
Boram Park [Fri, 15 Sep 2017 09:54:52 +0000 (18:54 +0900)]
not using setenv, getenv for drm fd
Change-Id: I2557864152f310fc10b4bd9f0d26032720dba396
Junkyeong Kim [Mon, 18 Sep 2017 06:39:48 +0000 (15:39 +0900)]
do not execute wl_resource_get_client
Change-Id: If9f9f636c9b1206943d4f6644d65ada660f64397
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
Boram Park [Wed, 13 Sep 2017 03:41:19 +0000 (12:41 +0900)]
backend: add dummy backend.
Change-Id: I5829d55e3f14d531c55adab3fde9bcaf145464cd
Boram Park [Wed, 13 Sep 2017 07:12:54 +0000 (16:12 +0900)]
load a dummy module if failed to load a default module
Change-Id: I29efec59122b4e6b4a9666b901edf214fd09221b
Boram Park [Fri, 8 Sep 2017 07:43:44 +0000 (16:43 +0900)]
package vesion up to 1.7.8
Change-Id: Iaeeff325761e15d591326dbf73ce63be53bedb9f
Boram Park [Fri, 8 Sep 2017 06:24:28 +0000 (15:24 +0900)]
add debugging logs
Change-Id: I3aae4e23b3d6b24f8638ea58673a63e844acb5fa
Boram Park [Fri, 8 Sep 2017 05:35:40 +0000 (14:35 +0900)]
use SW timer when output disconnected
If enable_fake == 1, use SW timer when output disconnected as well as DPMS off.
Change-Id: I9e528b6eb6749d099c6b8f7ff765ce46a7728f5a
Boram Park [Fri, 8 Sep 2017 02:58:28 +0000 (11:58 +0900)]
add error information to protocol
Change-Id: Ieba9ce9235eb815528228b6b656d12531af7e746
Boram Park [Fri, 8 Sep 2017 02:57:25 +0000 (11:57 +0900)]
add error type for output disconnection
Change-Id: I7450a453217d138cb73e8be289e72682a13bf768
Boram Park [Fri, 8 Sep 2017 02:07:43 +0000 (11:07 +0900)]
add get_dpms, get_connection, get_mode request
If a client adds the change_handler, we might be able to guess that
the client will watch the tdm client's fd and handle tdm events in
event loop. Otherwise, we CAN'T make sure if a client has event loop
which handles tdm events.
Change-Id: I49685d7eb3b88cda59b167f5ae66a7e9501a2315
Boram Park [Thu, 31 Aug 2017 05:31:56 +0000 (14:31 +0900)]
tdm-monitor: fix big message issue
Wayland has the 4096 message size restriction. So if tdm debug message
is bigger than that, the message will be devided.
Change-Id: I3ba57801bb149c489577ad1adff2c8befc69e69f
Boram Park [Tue, 22 Aug 2017 06:14:06 +0000 (15:14 +0900)]
package version up to 1.7.7
Change-Id: I523415f93746816f933806d07f6c1d2f03088895
Boram Park [Tue, 22 Aug 2017 04:25:48 +0000 (13:25 +0900)]
dump layer when calling tdm_layer_set_buffer
To dump all buffers of a layer, set_buffer function is much better than
layer_committed function.
Change-Id: I51c3daf926490a23764067e4a75fa6a12cab5f18
Boram Park [Tue, 22 Aug 2017 04:24:19 +0000 (13:24 +0900)]
add tdm_helper_clear_buffer_color function
Change-Id: I033f2212eb057b9896cb5d37e0d6eacb059994a5
Boram Park [Tue, 22 Aug 2017 04:23:35 +0000 (13:23 +0900)]
correct wrong description
Change-Id: I2b5110d70a8ae81ac805d557c0b6715256947cbc
Boram Park [Sat, 19 Aug 2017 07:41:33 +0000 (16:41 +0900)]
layer: dump layer buffers when showing
Change-Id: I157ff0b26fdbbb71cea08d5c65a99691dffbbae2
Boram Park [Wed, 16 Aug 2017 05:23:43 +0000 (14:23 +0900)]
package version up to 1.7.6
Change-Id: I8598c7f16df9c651f79f53aabf6bc7009e691b21
Boram Park [Wed, 16 Aug 2017 05:23:05 +0000 (14:23 +0900)]
client: change log level
Change-Id: I7e3cdf1e0104cc556da6b0407d1dc403c36f75e5
Boram Park [Wed, 16 Aug 2017 05:06:44 +0000 (14:06 +0900)]
vblank: correct the client request time
The client request time SHOULD be bigger than the last vblank time. To make
sure it, we forcely set the last vblank time to the client request time when
the req_time is smaller than the last_time.
Change-Id: Ib1dbec907fa04693d6df05b8260e300f6032563e
Boram Park [Wed, 16 Aug 2017 05:04:00 +0000 (14:04 +0900)]
client: enhance vblank logs
Change-Id: I6b12bc6aa56a1d4cdd2c319d7172dc46945fbd20
Boram Park [Mon, 7 Aug 2017 10:30:08 +0000 (19:30 +0900)]
package version up to 1.7.5
Change-Id: Id40ac9c7d9193125051433a0603f0abbf3a01871
SooChan Lim [Mon, 7 Aug 2017 06:27:41 +0000 (15:27 +0900)]
adapt ASLR for tdm-monitor and tools
Change-Id: I14544a6fa5f4a9d4ded753ec12f031a7e09309ef
Boram Park [Mon, 7 Aug 2017 07:57:16 +0000 (16:57 +0900)]
remove buffers from commit_buffer_list when commit failed.
When pp, commit is the sync operation, cb_done() will be called at the line of
commit(). In this case, buffers will be freed in cb_done() before
LIST_FOR_EACH_ENTRY_SAFE(b, bb, &commit_buffer_list, commit_link) line done.
So commit_link should be deleted when freed.
When commit() successed, commit_link will be deleted twice. So we need to use
LIST_DELINIT instead of LIST_DEL
Change-Id: I6a09878e1eae49d31eb3f3626e005a3ae10841d8
Boram Park [Mon, 7 Aug 2017 07:53:34 +0000 (16:53 +0900)]
fix memory leak
Change-Id: I3e259c314d069bc76884b96dba2b08d975060716
SooChan Lim [Fri, 28 Jul 2017 01:59:31 +0000 (10:59 +0900)]
package version up to 1.7.4
Change-Id: I30ad6821660e110bf9b51dc80352a6e3092cfb98
Boram Park [Tue, 25 Jul 2017 10:05:18 +0000 (19:05 +0900)]
deinit the event loop after all resources are destroyed.
The event loop should be deinited after all event sources are removed. The
event sources can be removed in _tdm_display_destroy_private_display and
_tdm_display_unload_module function. So we make the tdm thread join to the
main thread and remove all resources. And finally we deinit the event loop.
Change-Id: I32f3b5429b40b0711ef50215d05e0eda1c8b1814
Boram Park [Tue, 25 Jul 2017 09:58:56 +0000 (18:58 +0900)]
correct the wrong condition
Change-Id: Ie7a60db49527b1f1e71067d10eda4327d0492603
Boram Park [Mon, 24 Jul 2017 08:37:43 +0000 (17:37 +0900)]
package version up to 1.7.3
Change-Id: I16d73e08975905546d71fe413e8395de75eba99d
Changyeon Lee [Mon, 24 Jul 2017 07:30:30 +0000 (16:30 +0900)]
layer: check always commit handler list when checking commit possible
Change-Id: I3a121f7a90e3ff68a473f473fbc6b4c864a0d859
Signed-off-by: Boram Park <boram1288.park@samsung.com>
Boram Park [Mon, 24 Jul 2017 00:34:15 +0000 (09:34 +0900)]
package version up to 1.7.2
Change-Id: I1131954ba752ae4d6d2fc9e5bb79483e99015e63
Sangjin Lee [Fri, 21 Jul 2017 04:44:23 +0000 (13:44 +0900)]
dump: add function to check whether file is link or not
According to security code guide, before open the file for write it
should be check the file is symbolic link.
Change-Id: I11e5be6898640995669c470cec703aef93869bfd
Boram Park [Fri, 21 Jul 2017 07:09:57 +0000 (16:09 +0900)]
lock/unlock outside of the helper function
Change-Id: I58ffefedb39143391a62a3f9526dea09256f647b
Boram Park [Wed, 19 Jul 2017 06:10:06 +0000 (15:10 +0900)]
lock/unlock when calling a tdm_output internal function
Change-Id: I0b3e4023f79309fd276142a9706e6ade564e001c
Boram Park [Wed, 19 Jul 2017 05:36:16 +0000 (14:36 +0900)]
package version up to 1.7.1
Change-Id: Ie7163eaa657b052afe4be96e7e46ad02b54fb295
Boram Park [Wed, 19 Jul 2017 05:06:34 +0000 (14:06 +0900)]
fix invariant result
Change-Id: Iecb805dfda52036b6bf9a37bb9af994dbe2979d8
Boram Park [Wed, 19 Jul 2017 03:23:44 +0000 (12:23 +0900)]
add tdm_output_set_dpms_async
Change-Id: I9775ea2e5e78e8a4b11ec85b2b7481b670959b13
Boram Park [Thu, 6 Jul 2017 02:42:23 +0000 (11:42 +0900)]
increase version to 1.7.0
Change-Id: I69d8bc1d44f992e66a097e6aae7569e13e6df194
Sangjin Lee [Tue, 11 Jul 2017 04:34:58 +0000 (13:34 +0900)]
log: use public wayland api
remove useless code for protocol log.
Change-Id: Ide45ca176c8998f604f8f55664271a1c89d5208b
Boram Park [Wed, 5 Jul 2017 01:35:32 +0000 (10:35 +0900)]
package version up to 1.7.0
Change-Id: I16fa39bb01c3547de50988e47794546578d6331c
Boram Park [Tue, 4 Jul 2017 01:08:12 +0000 (10:08 +0900)]
support tdm_value type
Change-Id: I88a97af9c00566cb6d21ce8062fb4d73eb678751
Boram Park [Tue, 13 Jun 2017 06:43:42 +0000 (15:43 +0900)]
package version up to 1.6.21
Change-Id: Ia2a26859bdbe445abc36a72c6c6b7a6b04e5e963
Boram Park [Sat, 10 Jun 2017 23:25:27 +0000 (08:25 +0900)]
helper: consider the real buffer size
Change-Id: I6950f430aa2581c93709c80200f7b60600b56af4
Boram Park [Sat, 10 Jun 2017 23:24:07 +0000 (08:24 +0900)]
helper: add tdm_helper_get_buffer_full_size() to get the real buffer size
Change-Id: Ie27d3b52ab57171b25628e8a85fc509d1e643e21
Boram Park [Tue, 30 May 2017 05:37:17 +0000 (14:37 +0900)]
package version up to 1.6.20
Change-Id: I6aa36f184b3d4e23c9388af1fc89e1d0ea24c11b
Boram Park [Tue, 30 May 2017 04:57:18 +0000 (13:57 +0900)]
server: ignore chown & chmod errors
Change-Id: I0a923486ca44f8b2b0232bfe4d728a39a66d6df0
Boram Park [Fri, 26 May 2017 04:32:45 +0000 (13:32 +0900)]
package version up to 1.6.19
Change-Id: Ide4d9c9d0deeb0cf0e034497d40824ac8ebd4f8e
Boram Park [Fri, 26 May 2017 04:08:34 +0000 (13:08 +0900)]
server: skip chown if not a super user
If tdm_display_init is called by non super user, we don't need to
change the owner and group of a tdm socket file. And also changing
the owner of the tdm socket file which is created by non super user
is not allowed. So we just skip chown in this case.
Change-Id: Ib119becc4b9048f0fcc79c52089cfe04907cac60
Boram Park [Mon, 22 May 2017 15:23:07 +0000 (00:23 +0900)]
package version up to 1.6.18
Change-Id: I6fc719c0eee8e70d6bf482251490697d6d355492
Changyeon Lee [Mon, 22 May 2017 13:23:05 +0000 (22:23 +0900)]
server: set permission and group to tdm-socket when it is added
Change-Id: I9052f391202781a9ac34c2fce7efacdd75e83761
Boram Park [Thu, 11 May 2017 00:12:51 +0000 (09:12 +0900)]
package version up to 1.6.17
Change-Id: I302bba1a0087af5ba28a90b8cca52e99d70c174b
Boram Park [Thu, 27 Apr 2017 04:39:10 +0000 (13:39 +0900)]
vblank: support global fps
Change-Id: Iec9c621fc270336a0d95c4a2f90b583704f9cc46
Boram Park [Tue, 2 May 2017 05:25:12 +0000 (14:25 +0900)]
vblank: correct target time
We should consider the vblank interval to calculate the target time.
Change-Id: I7f78631d644ce5dce0e2dfb2c8d8bcefbab45205
Boram Park [Tue, 2 May 2017 04:47:32 +0000 (13:47 +0900)]
monitor: add trace option to debug server-client protocol
Change-Id: Id27af997282b51db1541e2d7e59e521d95097d66
Boram Park [Tue, 2 May 2017 02:35:53 +0000 (11:35 +0900)]
vblank: use tdm_server_get_client_name
Change-Id: I4f47cca1d1f4fa268ab330fd947cd91e5c9458b8
Boram Park [Tue, 2 May 2017 02:33:43 +0000 (11:33 +0900)]
server: trace client information
Change-Id: I3e9ae2599119240628ff276aeebdd7cb34ff1341
SooChan Lim [Fri, 28 Apr 2017 00:26:57 +0000 (09:26 +0900)]
package version up to 1.6.16
Change-Id: I8f48e66666d0e2e664facf5a179b327c21683d7b
Junkyeong Kim [Mon, 17 Apr 2017 08:43:42 +0000 (17:43 +0900)]
change sscanf to strtol for getting fd
Change-Id: I7fed3efbd3fc9a9273a670b3b967707453471be2
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
Boram Park [Fri, 14 Apr 2017 03:23:26 +0000 (12:23 +0900)]
package version up to 1.6.15
Change-Id: Ied1c6d1fb9b1a09b2e495c7ee39366d7b3fd675b
Boram Park [Fri, 14 Apr 2017 02:46:50 +0000 (11:46 +0900)]
tdm: don't send output changes if client doesn't watch them
Change-Id: I0c77afab20462f01cc8d2676e868d48b32978878