sdk/emulator/emulator-kernel.git
11 years agobrillcodec: enhancement logic about using direct buffer. 61/12061/2
SeokYeon Hwang [Tue, 12 Nov 2013 08:15:09 +0000 (17:15 +0900)]
brillcodec: enhancement logic about using direct buffer.

Use a device buffer wisely.
Adjust numbers of buffers.

Change-Id: I726c76ddee4c99d12f7a3b6f629508e227ad4d62
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
11 years agoChange major ioctl command. 46/11846/1
SeokYeon Hwang [Wed, 6 Nov 2013 07:29:37 +0000 (16:29 +0900)]
Change major ioctl command.

Memory block is chosen by device driver depending on buffer size.
Reduce number of ioctl commands.
Introduce "try_secure_mem".
Source clean-up.

Change-Id: Ie67cb2c2e382322cc842a0bb3af5aca42286577b
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
11 years agobrillcodec: source clean-up and store each codec information 35/11735/1
Kitae Kim [Thu, 24 Oct 2013 16:44:40 +0000 (01:44 +0900)]
brillcodec: source clean-up and store each codec information

When a process tried to use codec at first, codec device from qemu
copied codec information such as name, media type and etc.
In addtion to this, codec set is determined at libav compile time.
That's why driver stores codec information as a cache.

Change-Id: I4c4734301bc12419ee92d789ddd35d2bc3348cc3
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agobrillcodec: disable debug messages. 34/11734/1
Kitae Kim [Thu, 24 Oct 2013 05:30:20 +0000 (14:30 +0900)]
brillcodec: disable debug messages.

Debug messages might affect performance, especially on Windows
even if the messages are not printed into klog file.

Change-Id: I11ee2dc9d3173e64267de1c6076f0dd3b0d599e9
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agobrillcodec: handle flush_buffer routine. 33/11733/1
Kitae Kim [Fri, 18 Oct 2013 02:52:02 +0000 (11:52 +0900)]
brillcodec: handle flush_buffer routine.

Change-Id: I414167e8e14145a1b71d892e8492da60de8983c4
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agomaru: remove warnings 09/11309/1
munkyu.im [Thu, 24 Oct 2013 05:47:25 +0000 (14:47 +0900)]
maru: remove warnings

Change-Id: I946917dedeaf9a6e18a906d71e57e469993a85be
Signed-off-by: munkyu.im <munkyu.im@samsung.com>
11 years agoA ESM implementation changes for systemd. 99/11299/1
SeokYeon Hwang [Thu, 24 Oct 2013 03:24:04 +0000 (12:24 +0900)]
A ESM implementation changes for systemd.

For systemd boot progress monitor, introduce 'mode' specifier.

Change-Id: Icb40ada8eb5aa436a38e77d9ca2446e5ac089e01
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
11 years agoYaGL: Version bump 84/11084/1
Stanislav Vorobiov [Mon, 7 Oct 2013 11:31:29 +0000 (15:31 +0400)]
YaGL: Version bump

Change-Id: I6ecf4d3e2121cacc293af82bfde8d96bfe55dc06

11 years agoRevert "YaGL: Set MLOCK limit to infinity. We used to do this via ulimit -SHl unlimit... 83/11083/1
Stanislav Vorobiov [Mon, 30 Sep 2013 11:40:09 +0000 (15:40 +0400)]
Revert "YaGL: Set MLOCK limit to infinity. We used to do this via ulimit -SHl unlimited, but since nowadays tizen uses systemd it's not possible to set ulimit system wide, so we do it here. This is temporary anyway, YaGL doesn't need to use mlock technically, so this limitation will be removed soon"

This reverts commit df489d0d19567678cda269f571a6c91cbbdf3e66.

Change-Id: I7be7799a3a001d29cfd08337bcaab5f0f5c1684a

11 years agoYaGL: Transport improved 82/11082/1
Stanislav Vorobiov [Tue, 24 Sep 2013 14:48:33 +0000 (18:48 +0400)]
YaGL: Transport improved

The improvements are:

* No more mlock/munlock. We now have ioctls for locking drawable
  memory so that compile transfers could be created on host. This
  is only used by offscreen backend though
* We're now using a single buffer for marshalling instead of two: one
  for commands and one for data. Also, the buffer can now be of any
  size up to 2M, it's implemented as a page list, thus, we don't need
  to allocate contigous memory anymore

Change-Id: Ia9b716c9135df75535dc515367550c9fbcf9c737

11 years agoPackage: version up. 29/10629/1
SeokYeon Hwang [Tue, 1 Oct 2013 09:18:46 +0000 (18:18 +0900)]
Package: version up.

Change-Id: I2f6512d8d3d6cf3e90da4f2c54d53f8e257bbf49
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
11 years agoEnable suspend on kernel 28/10628/1
SeokYeon Hwang [Mon, 30 Sep 2013 07:25:55 +0000 (16:25 +0900)]
Enable suspend on kernel

Change-Id: Ice3e8c1ce10ea660f612d1c7ab58d87b30ba958f
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
11 years agobrillcodec: changed source name and config file. 27/10627/1
Kitae Kim [Mon, 30 Sep 2013 02:43:50 +0000 (11:43 +0900)]
brillcodec: changed source name and config file.

Change-Id: Idfd67412afcd17bef283bc08867ed409285bd79e
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agopackage: version up 26/10626/1
munkyu.im [Fri, 27 Sep 2013 10:03:13 +0000 (19:03 +0900)]
package: version up

Change-Id: I807d87d715d5cfd1ce8e9f590cbb400c462ca983
Signed-off-by: munkyu.im <munkyu.im@samsung.com>
11 years agonfc: change nfc protocol 25/10625/1
munkyu.im [Fri, 27 Sep 2013 07:44:44 +0000 (16:44 +0900)]
nfc: change nfc protocol

Change-Id: I1e18cb5b36966753881e66aca5c14552df10fe2d
Signed-off-by: munkyu.im <munkyu.im@samsung.com>
11 years agonfc: add file operations for supporting nfc plugin 24/10624/1
munkyu.im [Thu, 26 Sep 2013 08:57:17 +0000 (17:57 +0900)]
nfc: add file operations for supporting nfc plugin

Change-Id: Ib1fc17df6071c67076ba061c7c4b8bfcd06d75af
Signed-off-by: munkyu.im <munkyu.im@samsung.com>
11 years agoMerge branch 'tizen' into sdk-develop
Yeongkyoon Lee [Thu, 26 Sep 2013 08:13:42 +0000 (17:13 +0900)]
Merge branch 'tizen' into sdk-develop

11 years agotuner: discard tuner driver and rollback to previous commit
bk0121.shin [Thu, 26 Sep 2013 07:15:58 +0000 (16:15 +0900)]
tuner: discard tuner driver and rollback to previous commit

Cause changed tuner policy, discard this feature.
previous commit abe561d89ba2bc8a85716e82f999f760f3815c39
touch: increase the MT slot size

Change-Id: Idb3c5bc19049455a85165d2f2ec3fde5e15ad439
Signed-off-by: bk0121.shin <bk0121.shin@samsung.com>
11 years agotuner: initial commit of maru virtual tuner driver
bk0121.shin [Wed, 25 Sep 2013 11:23:19 +0000 (20:23 +0900)]
tuner: initial commit of maru virtual tuner driver

Change-Id: I4df39596c0d3829f6a7d59c20c19aad278451e67
Signed-off-by: bk0121.shin <bk0121.shin@samsung.com>
11 years agotouch: increase the MT slot size
GiWoong Kim [Tue, 24 Sep 2013 07:30:50 +0000 (16:30 +0900)]
touch: increase the MT slot size

Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
11 years agomemcg: add to config
Stanislav Vorobiov [Mon, 16 Sep 2013 14:05:34 +0000 (18:05 +0400)]
memcg: add to config

Tizen IVI requires memory cgroups for proper functioning

11 years agobrillcodec: Source clean-up and rename device name.
Kitae Kim [Wed, 11 Sep 2013 11:42:50 +0000 (20:42 +0900)]
brillcodec: Source clean-up and rename device name.

Changed the driver name from newcodec to brillcodec.

Change-Id: I5630c18507c31e79995ed29bd6a736bdcaff10ba
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agonew_codec: source clean-up.
Kitae Kim [Thu, 5 Sep 2013 02:39:10 +0000 (11:39 +0900)]
new_codec: source clean-up.

Change-Id: Iebc004176bef6ce96edd0aa1eba75c00f30372a7
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agonew_codec: modified the method of memory usage to improve performance.
Kitae Kim [Sun, 1 Sep 2013 13:32:28 +0000 (22:32 +0900)]
new_codec: modified the method of memory usage to improve performance.

Separate the memory to use effectively from several regions
when processing mutli contexts.

Change-Id: I4e4269d31aac6ad5ba53e76eedb7c4733e8e95db
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agonew_codec: changed a way to look up available memory block.
Kitae Kim [Thu, 22 Aug 2013 05:31:07 +0000 (14:31 +0900)]
new_codec: changed a way to look up available memory block.

Use a list instead of an array to manage device memory.
In addition, remove useless source in this moudle.

Change-Id: I2f421c8d786ae5edb623713922279d64fe9f8ba2
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agonew_codec: changed cmd messages and source clean-up.
Kitae Kim [Thu, 16 May 2013 01:30:30 +0000 (10:30 +0900)]
new_codec: changed cmd messages and source clean-up.

get version of device module during probing driver.
And remove or change cmd messages.

Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agonew_codec: improved performance as codec reduced the number of memory copies.
SeokYeon Hwang [Wed, 15 May 2013 12:34:54 +0000 (21:34 +0900)]
new_codec: improved performance as codec reduced the number of memory copies.

When giving decoded outbuffer to plugin of user process from device,
use device memory region directly as an buffer to reduce memcpy overheads.

Change-Id: If440dcf304affc47ca4ec2d596a60e2e51963fef
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
11 years agonew_codec: change lock routine between user and kernel.
Kitae Kim [Sat, 11 May 2013 08:56:21 +0000 (17:56 +0900)]
new_codec: change lock routine between user and kernel.

Change-Id: Ic82cd689872b862c875a04368a0228313cfa9147
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agonew_codec: modified wrong value assignment.
Kitae Kim [Fri, 10 May 2013 05:02:04 +0000 (14:02 +0900)]
new_codec: modified wrong value assignment.

Change-Id: I6794d820c4b58538bf4ffa6d125460f4dca48f38
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agonew_codec: change device_id
Kitae Kim [Fri, 10 May 2013 02:55:11 +0000 (11:55 +0900)]
new_codec: change device_id

pci_device_id was wrong.

Change-Id: I79f9bb8d124cafd390d4e362a7f3087a7546ed90
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agonew_codec: changed a way to copy data between guest and host.
Kitae Kim [Fri, 10 May 2013 02:24:15 +0000 (11:24 +0900)]
new_codec: changed a way to copy data between guest and host.

Use mutex to reduce frequent context switching from user to kernel.
And removed a routine that occupies device memory exclusively.

Change-Id: I4cb8e0a255bafb3fec6b01307ad31ddc6666ce64
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agonew_codec: change log macro.
Kitae Kim [Wed, 8 May 2013 14:27:29 +0000 (23:27 +0900)]
new_codec: change log macro.

Change-Id: Ia04178bcfa80ab8904bc62c36b0d293539ec31ef
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agonew_codec: source clean-up
Kitae Kim [Fri, 19 Apr 2013 02:52:00 +0000 (11:52 +0900)]
new_codec: source clean-up

Removed unnecessary sources and added a way to check null pointer.

Change-Id: Ib8fef0c7d63921d31265dc12e5e9ca07b893816c
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agonew_codec: remove unnecessary whitespaces and code.
Kitae Kim [Thu, 28 Mar 2013 03:06:48 +0000 (12:06 +0900)]
new_codec: remove unnecessary whitespaces and code.

Change-Id: Ie5f8351ea4ee783c2e78b121326bad9e21658c12
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agonew_codec: added new codec driver module.
Kitae Kim [Tue, 12 Mar 2013 10:50:04 +0000 (19:50 +0900)]
new_codec: added new codec driver module.

Change-Id: I11f4959d4abbddd4aff33aea5812fe700aafdb72
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agopackage: version up
munkyu.im [Mon, 2 Sep 2013 11:48:35 +0000 (20:48 +0900)]
package: version up

Signed-off-by: munkyu.im <munkyu.im@samsung.com>
11 years agoSmack: applied 'L'mode patch.
Kitae Kim [Thu, 22 Aug 2013 02:37:33 +0000 (11:37 +0900)]
Smack: applied 'L'mode patch.

Signed-off-by: Jooseong Lee <jooseong.lee@samsung.com>
11 years agoVIGS: Don't 'update_vram' on 'set_root_surface'
Stanislav Vorobiov [Fri, 2 Aug 2013 13:54:12 +0000 (17:54 +0400)]
VIGS: Don't 'update_vram' on 'set_root_surface'

This is now automatically happens on glFinish,
eglSwapBuffers, eglCopyBuffers, etc.

11 years agoYaGL: Version bump
Stanislav Vorobiov [Wed, 31 Jul 2013 10:32:28 +0000 (14:32 +0400)]
YaGL: Version bump

11 years agoYaGL: Return to config
Stanislav Vorobiov [Tue, 30 Jul 2013 08:49:59 +0000 (12:49 +0400)]
YaGL: Return to config

11 years agoemulator-kernel: version up to add nfc, evdi, sensor device driver
Jinhyung Choi [Tue, 30 Jul 2013 07:50:10 +0000 (16:50 +0900)]
emulator-kernel: version up to add nfc, evdi, sensor device driver

Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
11 years agosync with tizen_2.2
sungmin82.ha [Tue, 30 Jul 2013 06:03:02 +0000 (15:03 +0900)]
sync with tizen_2.2

Change-Id: Icdede2d044cdd65be349aa4c8817581e65886476
Signed-off-by: Sungmin Ha <sungmin82.ha@samsung.com>
11 years agoemualtor kernel: fixed wrong Makefile entity from EVDI to SENSOR
Jinhyung Choi [Sun, 28 Jul 2013 05:57:11 +0000 (14:57 +0900)]
emualtor kernel: fixed wrong Makefile entity from EVDI to SENSOR

Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
11 years agoMerge "evdi: evdi, sensor and nfc driver added" into develop
DaiYoung Kim [Fri, 26 Jul 2013 12:18:46 +0000 (21:18 +0900)]
Merge "evdi: evdi, sensor and nfc driver added" into develop

11 years agoevdi: evdi, sensor and nfc driver added
DaiYoung Kim [Fri, 26 Jul 2013 12:22:29 +0000 (21:22 +0900)]
evdi: evdi, sensor and nfc driver added

Signed-off-by: DaiYoung, Kim <daiyoung777.kim@samsung.com>
11 years agoMerge "evdi: evdi, sensor and nfc driver added" into develop
DaiYoung Kim [Fri, 26 Jul 2013 12:16:28 +0000 (21:16 +0900)]
Merge "evdi: evdi, sensor and nfc driver added" into develop

11 years agoevdi: evdi, sensor and nfc driver added
DaiYoung Kim [Fri, 26 Jul 2013 12:22:29 +0000 (21:22 +0900)]
evdi: evdi, sensor and nfc driver added

Signed-off-by: DaiYoung, Kim <daiyoung777.kim@samsung.com>
11 years agovirtio-hwkey: modified structure of virtio-hwkey
sungmin ha [Thu, 25 Jul 2013 07:36:35 +0000 (16:36 +0900)]
virtio-hwkey: modified structure of virtio-hwkey

Change-Id: Ie1140f9c0ac52e61f73910f7d236d1ef54ac064d
Signed-off-by: Sungmin Ha <sungmin82.ha@samsung.com>
11 years agoVIGS: Use BO instead of VMA in struct vigs_mman_vma
Stanislav Vorobiov [Wed, 24 Jul 2013 07:24:08 +0000 (11:24 +0400)]
VIGS: Use BO instead of VMA in struct vigs_mman_vma

It's better to use BO in struct vigs_mman_vma instead of
VMA that was allocated in mmap call

11 years agoVIGS: Delay surface destruction
Stanislav Vorobiov [Tue, 23 Jul 2013 15:40:03 +0000 (19:40 +0400)]
VIGS: Delay surface destruction

We should destroy surfaces on TTM BO destruction
instead of GEM free handler. The latter may cause races
like this:
1. GEM is created
2. GEM is mapped and written to
3. GEM is freed, but not unmapped. Thus, the host gets
   a "destroy_surface" command and target frees up
   an id from IDR.
4. Another GEM is created. Thus, it's assigned a freed id, which
   is id of first GEM, the host gets "create_surface" command
5. First GEM is unmapped, host gets "update_gpu" command with
   wrong data and size and crashes

The race occured on wayland/GBM during window resize

11 years agovirtio: add virtio ids
munkyu.im [Tue, 23 Jul 2013 02:56:11 +0000 (11:56 +0900)]
virtio: add virtio ids

for sensor and nfc

Signed-off-by: munkyu.im <munkyu.im@samsung.com>
11 years agoVIGS: Don't call TTM's vm_close
Stanislav Vorobiov [Fri, 19 Jul 2013 16:35:30 +0000 (20:35 +0400)]
VIGS: Don't call TTM's vm_close

TTM's vm_close sets vm_private_data to NULL even if VMA is
still referenced, we don't want this since this may cause
a NULL pointer dereference. And this indeed happens sometimes
on wayland

11 years agoMerge branch 'tizen-vigs-develop' into develop
Stanislav Vorobiov [Thu, 18 Jul 2013 08:37:48 +0000 (12:37 +0400)]
Merge branch 'tizen-vigs-develop' into develop

11 years agoMerge branch 'tizen_qemu_1.5.1' into develop
Kitae Kim [Tue, 16 Jul 2013 06:41:27 +0000 (15:41 +0900)]
Merge branch 'tizen_qemu_1.5.1' into develop

Conflicts:
drivers/maru/Kconfig
drivers/maru/Makefile
drivers/maru/maru_virtio_touchscreen.c
include/linux/virtio_ids.h
package/changelog

Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agoVIGS: Fixed vigs_fb_create return values
Stanislav Vorobiov [Fri, 12 Jul 2013 12:15:38 +0000 (16:15 +0400)]
VIGS: Fixed vigs_fb_create return values
VIGS: Added dummy cursor handling

11 years agonfc: apply nfc driver
munkyu.im [Thu, 11 Jul 2013 15:34:01 +0000 (00:34 +0900)]
nfc: apply nfc driver

Signed-off-by: munkyu.im <munkyu.im@samsung.com>
11 years agoVIGS: Lock console before fb notifier chain walk
Stanislav Vorobiov [Thu, 11 Jul 2013 09:23:18 +0000 (13:23 +0400)]
VIGS: Lock console before fb notifier chain walk

This is required to work properly with fbcon

11 years agoChange the base id of tizen virtio devices to 30.
Sangjin Kim [Thu, 11 Jul 2013 07:20:58 +0000 (16:20 +0900)]
Change the base id of tizen virtio devices to 30.

Change-Id: I48ebde8b407ee51c7ff62fd8678711c45667e400
Signed-off-by: Sangjin Kim <sangjin3.kim@samsung.com>
11 years agoVIGS: Make GEM access tracking optional
Stanislav Vorobiov [Thu, 11 Jul 2013 06:43:20 +0000 (10:43 +0400)]
VIGS: Make GEM access tracking optional

For dumb GEM API we need to have GEM access tracking
disabled and always assume that access is RW.
Thus, we make GEM access tracking optional, so that user-mode
can specify if it's wanted or not

11 years agomm: export do_mmap_pgoff
Stanislav Vorobiov [Thu, 11 Jul 2013 06:39:15 +0000 (10:39 +0400)]
mm: export do_mmap_pgoff

For VIGS DRM we can't use 'do_mmap' (like in i915, exynos and others)
because 'do_mmap' takes only 32-bit offsets, but TTM uses 64-bit
offsets.
'do_mmap_pgoff' was exported prior to 3.4 and it's available
in 3.5, but for some reason it's static in 3.4

11 years agosensor device driver for sensor device
Jinhyung Choi [Mon, 8 Jul 2013 13:44:11 +0000 (22:44 +0900)]
sensor device driver for sensor device

Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
11 years agoVIGS: GEM access tracking implemented
Stanislav Vorobiov [Tue, 2 Jul 2013 14:51:23 +0000 (18:51 +0400)]
VIGS: GEM access tracking implemented

In order to minimize GEM data transfers between
target and host we now track GEM memory accesses for each
VMA. Thus, we only update VRAM/GPU when there's at least one
VMA that requires it

11 years agoVIGS: Walk fb notifier call chain on DPMS
Stanislav Vorobiov [Mon, 1 Jul 2013 11:52:59 +0000 (15:52 +0400)]
VIGS: Walk fb notifier call chain on DPMS

Since currently maru_bl is used to control LCD power
we need a way to trigger it. fbdev does this
automatically on FB_BLANK events by walking fb notifier call
chain. DRM doesn't do this on DPMS, so we need to do this
ourselves

11 years agopackage: version up
Kitae Kim [Fri, 28 Jun 2013 01:49:38 +0000 (10:49 +0900)]
package: version up

Update package version.

Change-Id: Ia1fa08e7a39c28343a4b83ec5411e25eb2d7e857
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agoSmack: applied network-label-match patch.
Kitae Kim [Fri, 28 Jun 2013 01:42:43 +0000 (10:42 +0900)]
Smack: applied network-label-match patch.

This patch solved the problem that Smack recognizes incorrectly subject object pair
when checking IP packet access.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Tested-by: Bumjin Im <bj.im@samsung.com>
Change-Id: I8b702adc78f52f03629a2b951af6040147366a5b

11 years agopackage: version up
Kitae Kim [Fri, 28 Jun 2013 01:46:30 +0000 (10:46 +0900)]
package: version up

Update package version to apply Smack patch.

Change-Id: I7bbd0082f1dd8a211351f3b2d1e1b76391174175
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
11 years agoSmack: applied network-label-match patch.
Kitae Kim [Fri, 28 Jun 2013 01:42:43 +0000 (10:42 +0900)]
Smack: applied network-label-match patch.

This patch solved the problem that Smack recognizes incorrectly subject object pair
when checking IP packet access.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Tested-by: Bumjin Im <bj.im@samsung.com>
Change-Id: I8b702adc78f52f03629a2b951af6040147366a5b

11 years agoVIGS: Automatically update VRAM when setting new root surface
Stanislav Vorobiov [Thu, 27 Jun 2013 14:24:28 +0000 (18:24 +0400)]
VIGS: Automatically update VRAM when setting new root surface

When we set new root surface (for example, as part of pageflip) we
should check if that surface is GPU dirty and if it is - update VRAM.
If we don't do this we might flip stuff without QEMU display
being updated

11 years agoVIGS: DRM VBLANK handling implemented
Stanislav Vorobiov [Mon, 24 Jun 2013 12:56:12 +0000 (16:56 +0400)]
VIGS: DRM VBLANK handling implemented
VIGS: DRM pageflip handling implemented

VIGS DRM driver now supports both VBLANK events and
pageflip events

12 years agoVIGS: Remove "ttm shrink disable" hack
Stanislav Vorobiov [Tue, 18 Jun 2013 06:32:00 +0000 (10:32 +0400)]
VIGS: Remove "ttm shrink disable" hack

There's a right way to do this by specifying 0 in
accounted size for a BO. That way we can allocate as much BOs
as we want with used_mem always remaining 0

12 years agoVIGS: Support custom resolutions
Stanislav Vorobiov [Mon, 17 Jun 2013 15:29:48 +0000 (19:29 +0400)]
VIGS: Support custom resolutions

12 years agoYaGL: Version bump
Stanislav Vorobiov [Mon, 10 Jun 2013 15:37:15 +0000 (19:37 +0400)]
YaGL: Version bump

12 years agoVIGS: VRAM <-> GPU movements are now handled via page faults
Stanislav Vorobiov [Fri, 7 Jun 2013 14:40:28 +0000 (18:40 +0400)]
VIGS: VRAM <-> GPU movements are now handled via page faults
VIGS: Fixed update_gpu command

VRAM <-> GPU movements are now handled via page faults, thus, user space
can mmap as many GEMs as it likes, they'll all be in GPU placement by
default and moved to VRAM as needed on page faults. Page fault handler will
also take care of eviction in case of there's no free space in VRAM

update_gpu command wasn't updated for last protocol change, fixed it

12 years agoVIGS: kernel now is surface dirty aware
Stanislav Vorobiov [Thu, 6 Jun 2013 16:48:36 +0000 (20:48 +0400)]
VIGS: kernel now is surface dirty aware

kernel now knows about dirty state of each surface

12 years agoUnset CROSS_COMPILE env because it might be set.
SeokYeon Hwang [Tue, 4 Jun 2013 07:43:58 +0000 (16:43 +0900)]
Unset CROSS_COMPILE env because it might be set.

Change-Id: I8f11c621e5ca864002b57195e64dc84e19a10e28
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
12 years agoUnset CROSS_COMPILE env because it might be set.
SeokYeon Hwang [Tue, 4 Jun 2013 07:43:58 +0000 (16:43 +0900)]
Unset CROSS_COMPILE env because it might be set.

Change-Id: I8f11c621e5ca864002b57195e64dc84e19a10e28
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
12 years agoslp_global_lock added
Stanislav Vorobiov [Mon, 3 Jun 2013 13:29:28 +0000 (17:29 +0400)]
slp_global_lock added

12 years agoMerge remote-tracking branch 'score/develop' into tizen-vigs-develop
Stanislav Vorobiov [Fri, 31 May 2013 09:27:03 +0000 (13:27 +0400)]
Merge remote-tracking branch 'score/develop' into tizen-vigs-develop

12 years agopackage: version up
Kitae Kim [Wed, 29 May 2013 04:59:28 +0000 (13:59 +0900)]
package: version up

update package version to apply smack patches.

Change-Id: I531704d63b9f7bbea1068fd5c4de9884d09751d7
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
12 years agopackage: modify dibs build script.
Kitae Kim [Wed, 29 May 2013 04:58:17 +0000 (13:58 +0900)]
package: modify dibs build script.

disable to build kernel for arm

Change-Id: I9d09b065e1cef20c4e62976fd264b201fbc3f445
Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
12 years agopackage: version up
Kitae Kim [Tue, 28 May 2013 01:20:11 +0000 (10:20 +0900)]
package: version up

Update package version.

Signed-off-by: Kitae Kim <kt920.kim@samsung.com>
12 years agoVIGS: Protocol updated
Stanislav Vorobiov [Mon, 27 May 2013 15:38:40 +0000 (19:38 +0400)]
VIGS: Protocol updated

12 years agotouch: modified the maximum tracking count of fingers
giwoong.kim [Thu, 23 May 2013 01:40:55 +0000 (10:40 +0900)]
touch: modified the maximum tracking count of fingers

Modified the maximum tracking count of fingers
in touch device driver.

Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
12 years agoSmack: include magic.h in smackfs.c
Casey Schaufler [Tue, 2 Apr 2013 18:41:18 +0000 (11:41 -0700)]
Smack: include magic.h in smackfs.c

commit 958d2c2f4ad905e3ffa1711d19184d21d9b00cc1 upstream

As reported for linux-next: Tree for Apr 2 (smack)
Add the required include for smackfs.c

Change-Id: I0fcf02693b9f5a0627edb3dfd79eeb671982cc5d
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Reviewed-on: http://165.213.202.130:8080/53907
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-by: Kyungmin Park <kyungmin.park@samsung.com>
12 years agoSmack: add support for modification of existing rules
Rafal Krypa [Thu, 10 Jan 2013 18:42:00 +0000 (19:42 +0100)]
Smack: add support for modification of existing rules

commit e05b6f982a049113a88a1750e13fdb15298cbed4 upstream

Rule modifications are enabled via /smack/change-rule. Format is as follows:
"Subject Object rwaxt rwaxt"

First two strings are subject and object labels up to 255 characters.
Third string contains permissions to enable.
Fourth string contains permissions to disable.

All unmentioned permissions will be left unchanged.
If no rule previously existed, it will be created.

Targeted for git://git.gitorious.org/smack-next/kernel.git

Change-Id: If70a8b8a88ce2abc6b10bdd7bc7791996e70c8cd
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Reviewed-on: http://165.213.202.130:8080/53906
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-by: Kyungmin Park <kyungmin.park@samsung.com>
12 years agoRevert "Smack: add support for modification of existing rules"
Rafal Krypa [Thu, 13 Dec 2012 18:02:09 +0000 (19:02 +0100)]
Revert "Smack: add support for modification of existing rules"

This reverts commit 3cf5b164d32a648a627506a21d2fc6a6c24a2808.

Change-Id: Ia099ccd24faf7556771e0fd08184bc6065db92a8
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Reviewed-on: http://165.213.202.130:8080/53905
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-by: Kyungmin Park <kyungmin.park@samsung.com>
12 years agoSmack: prevent revoke-subject from failing when unseen label is written to it
Rafal Krypa [Mon, 17 Sep 2012 13:38:30 +0000 (15:38 +0200)]
Smack: prevent revoke-subject from failing when unseen label is written to it

commit d15d9fad16f6aa459cf4926a1d3aba36b004e9a2 upstream

Special file /smack/revoke-subject will silently accept labels, that are not
present on the subject label list. Nothing has to be done for such labels,
as there are no rules for them to revoke.

Change-Id: I326e1fad79a99a48839de8c35abfe709391e0f30
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Reviewed-on: http://165.213.202.130:8080/53903
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-by: Kyungmin Park <kyungmin.park@samsung.com>
12 years agoSmack: create a sysfs mount point for smackfs
Casey Schaufler [Fri, 2 Nov 2012 01:14:32 +0000 (18:14 -0700)]
Smack: create a sysfs mount point for smackfs

commit e93072374112db9dc86635934ee761249be28370 upstream

There are a number of "conventions" for where to put LSM filesystems.
Smack adheres to none of them. Create a mount point at /sys/fs/smackfs
for mounting smackfs so that Smack can be conventional.

Targeted for git://git.gitorious.org/smack-next/kernel.git

Change-Id: Ibdb521f61147545376f3e62b80905c8751ea0fc8
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Reviewed-on: http://165.213.202.130:8080/53902
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-by: Kyungmin Park <kyungmin.park@samsung.com>
12 years agoSmack: use select not depends in Kconfig
Casey Schaufler [Fri, 2 Nov 2012 18:28:11 +0000 (11:28 -0700)]
Smack: use select not depends in Kconfig

commit 111fe8bd65e473d5fc6a0478cf1e2c8c6a77489a upstream

The components NETLABEL and SECURITY_NETWORK are required by
Smack. Using "depends" in Kconfig hides the Smack option
if the user hasn't figured out that they need to be enabled
while using make menuconfig. Using select is a better choice.
Because select is not recursive depends on NET and SECURITY
are added. The reflects similar usage in TOMOYO and AppArmor.

Targeted for git://git.gitorious.org/smack-next/kernel.git

Change-Id: I375867a1c1ec6958ae4b579823f651b6431e5cc6
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-on: http://165.213.202.130:8080/53901
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-by: Kyungmin Park <kyungmin.park@samsung.com>
12 years agoPackage version up.
sungmin ha [Tue, 21 May 2013 09:09:49 +0000 (18:09 +0900)]
Package version up.

12 years agoMerge "virtio-keyboard: added initializing vqidx when the host keyboard is turned...
Yeongkyoon Lee [Tue, 21 May 2013 08:58:19 +0000 (17:58 +0900)]
Merge "virtio-keyboard: added initializing vqidx when the host keyboard is turned on." into tizen_2.1

12 years agovirtio-keyboard: added initializing vqidx when the host keyboard is turned on.
sungmin ha [Tue, 21 May 2013 09:02:05 +0000 (18:02 +0900)]
virtio-keyboard: added initializing vqidx when the host keyboard is turned on.

Signed-off-by: Sungmin Ha <sungmin82.ha@samsung.com>
12 years agoMerge "Smack: setprocattr memory leak fix" into tizen_2.1
Yeongkyoon Lee [Tue, 21 May 2013 08:57:40 +0000 (17:57 +0900)]
Merge "Smack: setprocattr memory leak fix" into tizen_2.1

12 years agoMerge "Smack: remove task_wait() hook." into tizen_2.1
Yeongkyoon Lee [Tue, 21 May 2013 08:57:32 +0000 (17:57 +0900)]
Merge "Smack: remove task_wait() hook." into tizen_2.1

12 years agoMerge "smack: off by one error" into tizen_2.1
Yeongkyoon Lee [Tue, 21 May 2013 08:57:21 +0000 (17:57 +0900)]
Merge "smack: off by one error" into tizen_2.1

12 years agoMerge "Fix common_audit_data type for smack_inode_unlink() and smack_inode_rmdir...
Yeongkyoon Lee [Tue, 21 May 2013 08:57:12 +0000 (17:57 +0900)]
Merge "Fix common_audit_data type for smack_inode_unlink() and smack_inode_rmdir()" into tizen_2.1

12 years agoMerge "virtio-keyboard: added initializing vqidx when the host keyboard is turned...
Yeongkyoon Lee [Tue, 21 May 2013 08:45:58 +0000 (17:45 +0900)]
Merge "virtio-keyboard: added initializing vqidx when the host keyboard is turned on." into develop

12 years agovirtio-keyboard: added initializing vqidx when the host keyboard is turned on.
sungmin ha [Tue, 21 May 2013 06:45:09 +0000 (15:45 +0900)]
virtio-keyboard: added initializing vqidx when the host keyboard is turned on.

Signed-off-by: Sungmin Ha <sungmin82.ha@samsung.com>
12 years agoSmack: setprocattr memory leak fix
Casey Schaufler [Wed, 22 Aug 2012 18:44:03 +0000 (11:44 -0700)]
Smack: setprocattr memory leak fix

commit 46a2f3b9e99353cc63e15563e8abee71162330f7 upstream

The data structure allocations being done in prepare_creds
are duplicated in smack_setprocattr. This results in the
structure allocated in prepare_creds being orphaned and
never freed. The duplicate code is removed from
smack_setprocattr.

Targeted for git://git.gitorious.org/smack-next/kernel.git

Change-Id: I192cdad82cbdb3a57cb8f4df06d5df9a5ac36c82
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Reviewed-on: http://165.213.202.130:8080/53900
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-by: Kyungmin Park <kyungmin.park@samsung.com>
12 years agoSmack: remove task_wait() hook.
Casey Schaufler [Fri, 10 Aug 2012 00:46:38 +0000 (17:46 -0700)]
Smack: remove task_wait() hook.

commit c00bedb368ae02a066aed8a888afc286c1df2e60 upstream

On 12/20/2011 11:20 PM, Jarkko Sakkinen wrote:
> Allow SIGCHLD to be passed to child process without
> explicit policy. This will help to keep the access
> control policy simple and easily maintainable with
> complex applications that require use of multiple
> security contexts. It will also help to keep them
> as isolated as possible.
>
> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@intel.com>

I have a slightly different version that applies to the
current smack-next tree.

Allow SIGCHLD to be passed to child process without
explicit policy. This will help to keep the access
control policy simple and easily maintainable with
complex applications that require use of multiple
security contexts. It will also help to keep them
as isolated as possible.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
 security/smack/smack_lsm.c |   37 ++++++++-----------------------------
 1 files changed, 8 insertions(+), 29 deletions(-)

Change-Id: If37564a178a336b0097d314f4915c65a19c29c91
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
Reviewed-on: http://165.213.202.130:8080/53899
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-by: Kyungmin Park <kyungmin.park@samsung.com>