profile/mobile/platform/kernel/linux-3.10-sc7730.git
8 years agoARM: dts: sc7730: add Performance Monitoring Unit(PMU) node 53/53653/2
Geunsik Lim [Fri, 4 Dec 2015 00:45:40 +0000 (09:45 +0900)]
ARM: dts: sc7730: add Performance Monitoring Unit(PMU) node

This patch is to support perf command with performance monitoring
unit (PMU) of SC7730S CPU on Z3 device. If you want to monitor
hardware information such as cpu cycles, insns per cycle, cache miss,
and branches, you must enable this patch.

For example,
sh-3.2# uname -a
Linux localhost 3.10.65-00016-g465f771-dirty #2-Tizen SMP PREEMPT Fri Dec 4 08:38:31 KST 2015 armv7l GNU/Linux

sh-3.2#
sh-3.2# perf list | grep "Hardware event"
  cpu-cycles OR cycles                               [Hardware event]
  instructions                                       [Hardware event]
  cache-references                                   [Hardware event]
  cache-misses                                       [Hardware event]
  branch-instructions OR branches                    [Hardware event]
  branch-misses                                      [Hardware event]
  bus-cycles                                         [Hardware event]
  stalled-cycles-frontend OR idle-cycles-frontend    [Hardware event]
  stalled-cycles-backend OR idle-cycles-backend      [Hardware event]
  ref-cycles                                         [Hardware event]
sh-3.2#
sh-3.2#
sh-3.2# perf stat ls

 Performance counter stats for 'ls':

          5.950928 task-clock                #    0.666 CPUs utilized
                 5 context-switches          #    0.840 K/sec
                 0 cpu-migrations            #    0.000 K/sec
               224 page-faults               #    0.038 M/sec
           5962814 cycles                    #    1.002 GHz
   <not supported> stalled-cycles-frontend
   <not supported> stalled-cycles-backend
           1629441 instructions              #    0.27  insns per cycle
            197736 branches                  #   33.228 M/sec
             55299 branch-misses             #   27.97% of all branches

       0.008941650 seconds time elapsed
sh-3.2#
sh-3.2# perf record -a
^C (Press Ctrl + C key)
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.947 MB perf.data (~41368 samples) ]

sh-3.2# cat /proc/sys/kernel/kptr_restrict
2
sh-3.2# echo 0 > /proc/sys/kernel/kptr_restrict
sh-3.2# cat /proc/sys/kernel/kptr_restrict
0

sh-3.2# perf report
Samples: 2K of event 'cycles', Event count (approx.): 331006766
13.53%          swapper  [kernel.kallsyms]           [k] sc_enter_idle
  8.59%          swapper  [kernel.kallsyms]           [k] tick_nohz_idle_exit
  7.67%    enlightenment  libc-2.20-2014.11.so        [.] 0x000bdf34
  4.92%          swapper  [kernel.kallsyms]           [k] _raw_spin_unlock_irq
  4.61%    enlightenment  [kernel.kallsyms]           [k] _raw_spin_unlock_irqr
  4.11%    enlightenment  [kernel.kallsyms]           [k] user_exit
  3.98%    enlightenment  [kernel.kallsyms]           [k] _raw_spin_unlock_irq
  2.94%          swapper  [kernel.kallsyms]           [k] tick_nohz_idle_enter
  1.83%  tizenstoreservi  [kernel.kallsyms]           [k] _raw_spin_unlock_irq
  1.61%    enlightenment  libecore.so.1.13.0          [.] 0x0000ba3c
  1.00%    enlightenment  libpthread-2.20-2014.11.so  [.] recvmsg
  0.89%    enlightenment  libeo.so.1.13.0             [.] _eo_call_resolve
  0.75%    enlightenment  [kernel.kallsyms]           [k] fget_light
  0.74%    enlightenment  [kernel.kallsyms]           [k] __gptimer_clocksource
  0.73%    enlightenment  libpthread-2.20-2014.11.so  [.] 0x00009db0
  0.72%  tizenstoreservi  libc-2.20-2014.11.so        [.] 0x000d9fa8
  0.70%    enlightenment  libeo.so.1.13.0             [.] eo_data_scope_get
  0.65%    enlightenment  [kernel.kallsyms]           [k] do_select
  0.64%    enlightenment  libecore_x.so.1.13.0        [.] 0x000322c6
  0.64%    enlightenment  libeo.so.1.13.0             [.] _eo_do_start
  0.59%  cloud-pdm-serve  [kernel.kallsyms]           [k] _raw_spin_unlock_irq
  0.55%    enlightenment  enlightenment               [.] 0x00051120

sh-3.2#

Change-Id: Icc16380e3dc7027d45b7a6a202c589375d68b255
Reported-by: Geunsik Lim <geunsik.lim@samsung.com>
Tested-by: Geunsik Lim <geunsik.lim@samsung.com>
Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
Signed-off-by: Congfu Zhao <Congfu.Zhao@spreadtrum.com>
CC: Vishnu Pratap Singh <vishnu.ps@samsung.com>
CC: Manjunatha Achar <a.manjunatha@samsung.com>
CC: Rajkumar Chandrasekar <c.rajkumar@samsung.com>
CC: Pintu Kumar <pintu.k@samsung.com>
CC: MyungJoo Ham <myungjoo.ham@samsung.com>
8 years agoserial: sprd: Fix wrong console output on tty port 1 40/52340/2 accepted/tizen/mobile/20151127.070411 submit/tizen/20151127.043104
Joonyoung Shim [Mon, 23 Nov 2015 02:49:31 +0000 (11:49 +0900)]
serial: sprd: Fix wrong console output on tty port 1

Now, tty port 1 for serial console has a problem that serial console
output shows like ����������������������������������������.

The reason is by the function that resets the serial port in shutdown().
This patch reverts it to old codes instead of reset for tty port 1.

Change-Id: I83817394bda9226e2d35e9072dfde616d6d9a24f
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
8 years agokernel: swap-modules: remove swap-modules codes 15/52515/4
Hyeongsik Min [Tue, 24 Nov 2015 04:52:50 +0000 (13:52 +0900)]
kernel: swap-modules: remove swap-modules codes

swap-modules will be loaded as a kernel module

Change-Id: I28d8d5c9fc7f2f8cb218f8b59bd322899db51232
Signen-off-by: Hyeongsik Min <hyeongsik.min@samsung.com>
8 years agoARM: tizen_tm1_defconfig: Enable missing features related with CGROUPS 21/52721/1
Joonyoung Shim [Thu, 26 Nov 2015 07:12:32 +0000 (16:12 +0900)]
ARM: tizen_tm1_defconfig: Enable missing features related with CGROUPS

CONFIG_CGROUP_DEVICE=y
CONFIG_CPUSETS=y
CONFIG_PROC_PID_CPUSET=y

Especially, the security manager needs CONFIG_CPUSETS and
CONFIG_PROC_PID_CPUSET.

Change-Id: Idd49d81fabc937eb259e0654502681e358d90e19
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
8 years agoARM: tizen_tm1_defconfig: Enable namespaces 55/52255/1 accepted/tizen/mobile/20151122.234211 submit/tizen/20151120.082818
Joonyoung Shim [Fri, 20 Nov 2015 07:26:18 +0000 (16:26 +0900)]
ARM: tizen_tm1_defconfig: Enable namespaces

To fix that systemd-hostnamed is failed.

Change-Id: I95efe13133bec30a69d12699d627cd0554e35d4f
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
8 years agoarm: config: tm1: enable netfilter multiport configuration 30/52130/1 accepted/tizen/mobile/20151119.232244 submit/tizen/20151119.092412
Jaehoon Chung [Thu, 19 Nov 2015 08:14:20 +0000 (17:14 +0900)]
arm: config: tm1: enable netfilter multiport configuration

Enable the multiport.
Previous config is wrong. Re-commit this patch.

Change-Id: Ie2b38a4c2aaa922dfcd1fd3de47fc781bda7c5b3
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
8 years agoRevert "arm: config: tm1: enable netfilter multiport configuration" 29/52129/1
Jaehoon Chung [Thu, 19 Nov 2015 08:13:24 +0000 (17:13 +0900)]
Revert "arm: config: tm1: enable netfilter multiport configuration"

This reverts commit 908f8b80a3eadca0a9515f71a3c1ab739c74e0a9.

Change-Id: I1563acc745813075494c427b496cf0fda1af8c17

8 years agoBATTERY: Add missing get_property() of some property 06/52106/2
Joonyoung Shim [Thu, 19 Nov 2015 03:03:26 +0000 (12:03 +0900)]
BATTERY: Add missing get_property() of some property

The property of power should be implemented both get_property() and
set_property() but some property has only set_property() and it causes
some problem on tizen_3.0 platform like belows.

[   15.804351]  [3:systemd-journal:  188] power_supply sec-charger: driver failed to report `voltage_max' property: -22
[   27.924804]  [3:systemd-journal:  188] power_supply sec-fuelgauge: driver failed to report `status' property: -22
[   28.080047]  [3:systemd-journal:  179] power_supply sec-fuelgauge: driver failed to report `charge_full' property: -22
[   20.704162]  [0:systemd-journal:  180] power_supply sec-fuelgauge: driver failed to report `present' property: -22
[   19.580261]  [1:systemd-journal:  181] power_supply sec-fuelgauge: driver failed to report `energy_now' property: -22
[   20.989288]  [2:systemd-journal:  167] power_supply sec-fuelgauge: driver failed to report `temp' property: -22
[   20.832183]  [2:systemd-journal:  177] power_supply sec-fuelgauge: driver failed to report `temp_ambient' property: -22

This is workaround so driver should implement get_property() exactly
later.

Change-Id: I9d9650b748bdb73ae3149f0c4709908d0c0bb962
Signed-off-by: Min Kang <min1023.kang@samsung.com>
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
8 years agonet: wirelss: sc2331: Apply the tethering APIs patch 25/52125/1
Jaehoon Chung [Thu, 19 Nov 2015 02:53:02 +0000 (11:53 +0900)]
net: wirelss: sc2331: Apply the tethering APIs patch

Applied tethering APIs patch received from spreadtrum.
(This is related with MAC control.)

Change-Id: I992d810fb3e2813dd77ba3e0684c73e58a2d2a75
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
8 years agoarm: config: tm1: enable netfilter multiport configuration 24/52124/1
Jaehoon Chung [Thu, 19 Nov 2015 01:12:02 +0000 (10:12 +0900)]
arm: config: tm1: enable netfilter multiport configuration

Enable CONFIG_NETFILTER_XT_MATCH_MULTIPORT.

Change-Id: I0a504c030549880f88e27c887216bfa4dde14010
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
8 years agoUpdate from product codes
Joonyoung Shim [Mon, 16 Nov 2015 08:37:19 +0000 (17:37 +0900)]
Update from product codes

Until commit 5cfebdc36f5b88225c4f8c032f7cf511ebba1cc5

Change-Id: I0f838df8640acefc0cdecd628e7c7cd10360d78f
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
8 years agospec: fix badness problem by rpmlint
Joonyoung Shim [Fri, 13 Nov 2015 08:32:42 +0000 (17:32 +0900)]
spec: fix badness problem by rpmlint

Errors:

[  978s] RPMLINT report:
[  978s] ===============
[  978s] qemu: Unsupported syscall: 311
[ 1870s] (none): E: badness 6147800 exceeds threshold 2000, aborting.

Badness cases:

E: spurious-executable-perm (Badness: 50)
E: non-standard-group (Badness: 200)
E: license-placeholder-not-allowed (Badness: 200)
E: invalid-license (Badness: 200)
E: group-placeholder-not-allowed (Badness: 200)
E: files-duplicated-waste (Badness: 100)
E: dir-or-file-in-tmp (Badness: 200)

Changes:

- Fix licenses and group tags
- s/var\/tmp/boot/
- add command in %install of spec
find %{buildroot}/boot/kernel/ -name "*.h" -exec chmod 644 {} \;

Change-Id: Idf55ca574cf7d15453a23ebb72cf717778ed75d6
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
8 years agospec: do not check target_name
Inki Dae [Thu, 12 Nov 2015 10:38:34 +0000 (19:38 +0900)]
spec: do not check target_name

Now public Tizen 3.0 doesn't support target name
so the relevant script should be removed to build
kernel.

Change-Id: I21ea402c2274e76b2fd197bca1505413a4616b0a
Signed-off-by: Inki Dae <inki.dae@samsung.com>
8 years agotizen 2.4 release
jk7744.park [Sat, 24 Oct 2015 09:15:53 +0000 (18:15 +0900)]
tizen 2.4 release

8 years agoInitial empty repository
Jeonghoon Jeon [Fri, 23 Oct 2015 09:43:19 +0000 (02:43 -0700)]
Initial empty repository