GitHub/LineageOS/android_kernel_motorola_exynos9610.git
6 years ago[9610] gpu: tHEx: r10p0: update definition for pm-qos cpu
Jinku Kang [Wed, 23 May 2018 01:25:56 +0000 (10:25 +0900)]
[9610] gpu: tHEx: r10p0: update definition for pm-qos cpu

Change-Id: Ib2c74c4f857c7b4db615928b66f274a850f38fbf
Signed-off-by: Jinku Kang <jinku79.kang@samsung.com>
6 years ago[9610][MAESTRO] driver: muic: remove muic func in panic handler
Kim Taejeong [Wed, 23 May 2018 01:42:52 +0000 (10:42 +0900)]
[9610][MAESTRO] driver: muic: remove muic func in panic handler

Change-Id: Ibd63c80f59ed9e45bf9a671c77af41133616b20f
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
6 years ago[COMMON] soc: samsung: Bring up power mode.
lakkyung.jung [Mon, 21 May 2018 11:47:57 +0000 (20:47 +0900)]
[COMMON] soc: samsung: Bring up power mode.

Change-Id: I665745e3b8c65c3dcca730463d91293f6835558f
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[COMMON] soc: cpupm: move location of notify call for sicd.
lakkyung.jung [Mon, 21 May 2018 10:55:10 +0000 (19:55 +0900)]
[COMMON] soc: cpupm: move location of notify call for sicd.

Change-Id: Ie37c5d079cb5bb84154df30774b5580a49c988b7
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[COMMON] soc: samsung: Change EINT_WAKEUP_MASK to 0x650
lakkyung.jung [Mon, 21 May 2018 10:46:00 +0000 (19:46 +0900)]
[COMMON] soc: samsung: Change EINT_WAKEUP_MASK to 0x650

Change-Id: Ie4423fbbc95ed80a43082734226aa922d5b39cc6
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years agosoc: exynos-powermode: add macro for syspwr mode searching
Soohyun Kim [Wed, 14 Mar 2018 03:01:49 +0000 (12:01 +0900)]
soc: exynos-powermode: add macro for syspwr mode searching

Change-Id: Iab5e97a8745fe7a26acdfb02eff0e2895408edc7
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
6 years ago[COMMON] soc: samsung: Change debug log to dbg_snapshot.
lakkyung.jung [Mon, 21 May 2018 10:30:18 +0000 (19:30 +0900)]
[COMMON] soc: samsung: Change debug log to dbg_snapshot.

Change-Id: I0143f0dc4b2b843f2602955d873662daf63ef82e
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years agosoc: cpupm: fix race condition when call at the same time.
Soohyun Kim [Tue, 3 Apr 2018 06:05:02 +0000 (15:05 +0900)]
soc: cpupm: fix race condition when call at the same time.

Change-Id: If5fd174b48e79e4aae7180d1558b014d53cb2e22
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
6 years ago[COMMON] CPUPM: change header file name of power management
lakkyung.jung [Mon, 21 May 2018 10:21:47 +0000 (19:21 +0900)]
[COMMON] CPUPM: change header file name of power management

Change-Id: I4dc2c39d118e16cb81a768d6d3d79ad91e058f93
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[COMMON] soc: samsung: remove code related cpu power management.
lakkyung.jung [Mon, 21 May 2018 10:14:05 +0000 (19:14 +0900)]
[COMMON] soc: samsung: remove code related cpu power management.

Change-Id: Id8d63959300a429364e5ec2da8d8e4315685826b
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[9610] arm64: dts: add node for cpuidle.
lakkyung.jung [Mon, 21 May 2018 10:13:35 +0000 (19:13 +0900)]
[9610] arm64: dts: add node for cpuidle.

Change-Id: Ibc29ca2e7dfc5e0502cc8f80500313b67c79172b
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[COMMON] pinctrl: Added `exynos_eint_to_pin_num' function.
Jang JeongHoon [Fri, 18 May 2018 02:31:39 +0000 (11:31 +0900)]
[COMMON] pinctrl: Added `exynos_eint_to_pin_num' function.

Change-Id: If62dc4e9092ee2723de406ea88432c3e49a929c9
Signed-off-by: Jang JeongHoon <jnghn.jang@samsung.com>
6 years ago[COMMON] usb: Fixed featuring regarding CPU_IDLE.
Jang JeongHoon [Fri, 18 May 2018 02:31:06 +0000 (11:31 +0900)]
[COMMON] usb: Fixed featuring regarding CPU_IDLE.

Change-Id: I466304be334e2fbbe7421cfaeda5da7499eed1d4
Signed-off-by: Jang JeongHoon <jnghn.jang@samsung.com>
6 years ago[COMMON] scsi: ufs: Fixed featuring regarding CPU_IDLE.
Jang JeongHoon [Fri, 18 May 2018 02:30:22 +0000 (11:30 +0900)]
[COMMON] scsi: ufs: Fixed featuring regarding CPU_IDLE.

Change-Id: Ia24ab2960929b103c33e594104e212ce7b9521e4
Signed-off-by: Jang JeongHoon <jnghn.jang@samsung.com>
6 years ago[9610] arm64: erd9610_defconfig: Enabled CONFIG_CPU_IDLE.
Jang JeongHoon [Fri, 18 May 2018 02:03:19 +0000 (11:03 +0900)]
[9610] arm64: erd9610_defconfig: Enabled CONFIG_CPU_IDLE.

Change-Id: Ib192330d0281995c6388b7147e17b3a63bc9e43c
Signed-off-by: Jang JeongHoon <jnghn.jang@samsung.com>
6 years agoRevert "[HACK] power: Held temp wakelock."
Jang JeongHoon [Fri, 18 May 2018 01:38:42 +0000 (10:38 +0900)]
Revert "[HACK] power: Held temp wakelock."

This reverts commit d4f01c97ceecd2acc607e0890d348490cf403711.

Change-Id: I9df99fb86daff4e234313a550bd32d616d15014e

6 years ago[9610] arm64: dts: pm-domain: remove dbgdev-pd-vipx1
yi jaeuk [Mon, 21 May 2018 09:57:56 +0000 (18:57 +0900)]
[9610] arm64: dts: pm-domain: remove dbgdev-pd-vipx1

Change-Id: Ica61c6ad0966fad07e287d5113f00ab71de6a9d0
Signed-off-by: yi jaeuk <ju.yi@samsung.com>
6 years agoRevert "[HACK][9610] disable runtimePM in VIPX"
yi jaeuk [Mon, 21 May 2018 09:56:57 +0000 (18:56 +0900)]
Revert "[HACK][9610] disable runtimePM in VIPX"

This reverts commit 4513eeac6bac70917f95281524a5ccd68418d47a.

Change-Id: I3f5bd17d50acf86fe07d5ef75efe08722cd58640

6 years ago[9610] fbdev: dpu: DPU bts code code clean
hwangjae lee [Mon, 21 May 2018 10:03:38 +0000 (19:03 +0900)]
[9610] fbdev: dpu: DPU bts code code clean

Change-Id: I0c525b1503239dab58000136e43c799410b7e6da
Signed-off-by: hwangjae lee <hj-yo.lee@samsung.com>
6 years ago[COMMON] soc: samsung: remove un-necessary header file
Taekki Kim [Mon, 21 May 2018 09:25:02 +0000 (18:25 +0900)]
[COMMON] soc: samsung: remove un-necessary header file

Change-Id: Ic1e4c236e93b166223565c88764fe9b60b10d02a
Signed-off-by: Taekki Kim <taekki.kim@samsung.com>
6 years ago[9610] arm64: erd9610_defconfig: Enable CPU_THERMAL config.
Chungwoo Park [Tue, 15 May 2018 08:33:10 +0000 (17:33 +0900)]
[9610] arm64: erd9610_defconfig: Enable CPU_THERMAL config.

Change-Id: I39340c1072d18340f633b4905dc61df0c73e9aa7
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years agoarm64: erd9610_defconfig: Enable ACME for cpufreq.
lakkyung.jung [Mon, 14 May 2018 08:32:20 +0000 (17:32 +0900)]
arm64: erd9610_defconfig: Enable ACME for cpufreq.

Change-Id: I3775c460853ff6365385ac57f594cfd5fd6eb8b6
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[9610] arm64: erd9610_defconfig: Enable EMS.
lakkyung.jung [Mon, 14 May 2018 08:30:50 +0000 (17:30 +0900)]
[9610] arm64: erd9610_defconfig: Enable EMS.

 - fluid RT
 - freqvar-tuner

Change-Id: I0ae2caef74cdaa8fec035427cfcbef1ad6af0b8d
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[9610] arm64: erd9610_defconfig: Enable EAS/EHMP & CPUFREQ
lakkyung.jung [Fri, 11 May 2018 10:54:48 +0000 (19:54 +0900)]
[9610] arm64: erd9610_defconfig: Enable EAS/EHMP & CPUFREQ

Change-Id: Iccdc17b2ef0b66cf07e4ab48b5ffa3ea64d47b5b
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[9610] arm64: config: Add devfreq to erd9610 config.
Chungwoo Park [Mon, 14 May 2018 10:53:57 +0000 (19:53 +0900)]
[9610] arm64: config: Add devfreq to erd9610 config.

Change-Id: I04d8f9bf520884f441398a2a084150dcce6dec31
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years ago[9610] arm64: configs: enable EXYNOS_PD
yi jaeuk [Thu, 10 May 2018 09:36:35 +0000 (18:36 +0900)]
[9610] arm64: configs: enable EXYNOS_PD

Change-Id: I6fc14f5ee931fc00a8348eaee32d816d06c23cf3
Signed-off-by: yi jaeuk <ju.yi@samsung.com>
6 years ago[9610] arm64: config: Add dvfs_manager config.
Chungwoo Park [Mon, 14 May 2018 08:29:23 +0000 (17:29 +0900)]
[9610] arm64: config: Add dvfs_manager config.

Change-Id: I38cbdb22961ead564d6253b4b61b13bc28819636
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years ago[9610] arm64: config: Enable thermal driver.
Chungwoo Park [Mon, 14 May 2018 08:18:44 +0000 (17:18 +0900)]
[9610] arm64: config: Enable thermal driver.

Change-Id: I84ffbed5ba6f180507fc867101828d97fb354d53
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years ago[9610] arm64: Modify exynos9610 related dm header.
Chungwoo Park [Wed, 23 May 2018 04:26:55 +0000 (13:26 +0900)]
[9610] arm64: Modify exynos9610 related dm header.

Change-Id: I7f4a7e5c1c7d8001f097b397f1af433d7ba4ee90
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years ago[9610] arm64: Modify devfreq pm qos related id.
Chungwoo Park [Wed, 23 May 2018 04:24:14 +0000 (13:24 +0900)]
[9610] arm64: Modify devfreq pm qos related id.

Change-Id: I1a2f23cf35cc1502a9089e8b8df3d41fb8af8874
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years ago[9610] arm64: dtsi: Add devfreq audio power node to dt.
Chungwoo Park [Wed, 23 May 2018 06:32:02 +0000 (15:32 +0900)]
[9610] arm64: dtsi: Add devfreq audio power node to dt.

Change-Id: Ia076a88f015f9b19945f32b865aabff26640f077
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years ago[COMMON] qos: Add chip config and remove qos.
Chungwoo Park [Wed, 23 May 2018 01:07:40 +0000 (10:07 +0900)]
[COMMON] qos: Add chip config and remove qos.

Change-Id: I50e34b350cb7642c13a12ce6d56769b75ecb15e1
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years ago[COMMON] devfreq: Update to devfreq core code.
Chungwoo Park [Wed, 23 May 2018 00:46:03 +0000 (09:46 +0900)]
[COMMON] devfreq: Update to devfreq core code.

This patch updated devfreq core related code.

Change-Id: I74c069783c8f87779107cddb35b2f984d359627e
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years ago[9610] soc: samsung: Update dm related config.
Chungwoo Park [Wed, 23 May 2018 05:56:21 +0000 (14:56 +0900)]
[9610] soc: samsung: Update dm related config.

Change-Id: Ia111d2df821e45b1936f9ed2dfe092a475713ed5
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years ago[COMMON] PM: Fixed debugging information for pm_qos in kernel 4.4.
Woosung Lee [Wed, 20 Aug 2014 05:53:14 +0000 (14:53 +0900)]
[COMMON] PM: Fixed debugging information for pm_qos in kernel 4.4.

During debugging or profiling, pm_qos list like below is useful information.

device_throughput
default value: 0
target value: 468000
requests:
ffffffc0012896f8: 0
ffffffc06f2f0458: 0

But only pm_qos_request declared for global name space could find what it is.
If pm_qos_request declared in local name space, its address doesn't appeared in
System.map file.

So add more information about pm_qos_request's position like below.

device_throughput
default value: 0
target value: 468000
requests:
ffffffc0012896f8(lpass_probe:1027): 0
ffffffc06f2f0458(fimg2d_pm_qos_add_bus:170): 0

Change-Id: Ib4d18bb7fb44fc6f5c4516382447ed2e60b1efd5
Signed-off-by: Woosung Lee <wstar.lee@samsung.com>
6 years ago[COMMON] exynos-dm: Add node name to print code.
Chungwoo Park [Tue, 15 May 2018 13:12:35 +0000 (22:12 +0900)]
[COMMON] exynos-dm: Add node name to print code.

Change-Id: Iefe12dbb530c18c46ef0ee67e126046c9ca2af07
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years ago[COMMON] thermal: cpu_cooling: Change debug from ess to dss.
Chungwoo Park [Tue, 15 May 2018 10:51:36 +0000 (19:51 +0900)]
[COMMON] thermal: cpu_cooling: Change debug from ess to dss.

Change-Id: I4e56b1fd9d856117b54ebb061d78a284d367b119
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years ago[COMMON] cpufreq: acme: Move cooling register to cpufreq_init
Chungwoo Park [Tue, 15 May 2018 12:52:48 +0000 (21:52 +0900)]
[COMMON] cpufreq: acme: Move cooling register to cpufreq_init

cpufreq->exit() callback will be called at disable_nonboot_cpus()
Then, wakeup_source is activated by cooling_unregister.
So, we moved cooling_register at exynos_cpuferq_init() as before.

Change-Id: Ic92c602d7616a99da4e272a5feb656c51b1757da
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[9610] arm64: dtsi: Modify thermal cooling device setting.
Chungwoo Park [Tue, 15 May 2018 12:51:45 +0000 (21:51 +0900)]
[9610] arm64: dtsi: Modify thermal cooling device setting.

Change-Id: I9eb17a42a4457001f471407486e109853004a8f0
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years ago[COMMON] thermal : Change debug from ess to dss.
Chungwoo Park [Tue, 15 May 2018 08:30:20 +0000 (17:30 +0900)]
[COMMON] thermal : Change debug from ess to dss.

Change-Id: I21762b0b0d85b282830336d6e8085cc144afbbcd
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years ago[COMMON] exynos-dm: Change debug from ess to dss.
Chungwoo Park [Tue, 15 May 2018 08:29:32 +0000 (17:29 +0900)]
[COMMON] exynos-dm: Change debug from ess to dss.

Change-Id: I6098308fdf2f29e8b17db26ca4c63e087aa4ab60
Signed-off-by: Chungwoo Park <cww.park@samsung.com>
6 years ago[COMMON] cpufreq: acme: Change debug from ess to dss.
lakkyung.jung [Tue, 15 May 2018 08:17:29 +0000 (17:17 +0900)]
[COMMON] cpufreq: acme: Change debug from ess to dss.

Change-Id: I257604fe3dba493a53d94406fec2c8f08beff831
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[HACK] fix build error temporary
lakkyung.jung [Fri, 11 May 2018 10:21:05 +0000 (19:21 +0900)]
[HACK] fix build error temporary

Change-Id: I02d12e946302cb25d87a1fb0a6b86a79c0e36f70
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[COMMON] cpu_cooling: Fix build error when CPU_THERMAL was disabled.
lakkyung.jung [Tue, 15 May 2018 06:44:46 +0000 (15:44 +0900)]
[COMMON] cpu_cooling: Fix build error when CPU_THERMAL was disabled.

Change-Id: I95a852a39f9d8bf824f6e5a5bb7bdb12edc2a83d

6 years ago[COMMON] soc: samsung: Remove unnessary codes.
lakkyung.jung [Tue, 15 May 2018 06:39:25 +0000 (15:39 +0900)]
[COMMON] soc: samsung: Remove unnessary codes.

Change-Id: Ib83540f5e6900811db57c30bfa651821006d0ca4
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[COMMON] soc: samsung: Adjust extern function by featuring of CPUIDLE.
lakkyung.jung [Tue, 15 May 2018 06:37:47 +0000 (15:37 +0900)]
[COMMON] soc: samsung: Adjust extern function by featuring of CPUIDLE.

Change-Id: Id433a1967490899ae882e4b5ceed70e29fb18423
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[9610] arm64: dts: Add freqvar-tuner params.
lakkyung.jung [Mon, 14 May 2018 06:52:48 +0000 (15:52 +0900)]
[9610] arm64: dts: Add freqvar-tuner params.

Change-Id: Ib5b5d9305076ac501374e0a57a18001543e38b21
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[9610] arm64: dts: Add ems paramters.
lakkyung.jung [Mon, 14 May 2018 06:43:32 +0000 (15:43 +0900)]
[9610] arm64: dts: Add ems paramters.

Change-Id: Iacc2126787e6bb17506d43c3f7977121ad62164f
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[9610] arm64: dts: Add energy data for ems.
lakkyung.jung [Mon, 14 May 2018 05:29:18 +0000 (14:29 +0900)]
[9610] arm64: dts: Add energy data for ems.

Change-Id: Idef41dfad717d1c302ab0dbd9199cad8e27cfba5
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[9610] arm64: dts: Add cpu-map nodes.
lakkyung.jung [Mon, 14 May 2018 04:49:19 +0000 (13:49 +0900)]
[9610] arm64: dts: Add cpu-map nodes.

Change-Id: Id77f7a565b983f81234b010f0be926cf473b41e5
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[COMMON] pm_qos: send PM_QoS class at QoS notify callchain
Park Bumgyu [Wed, 17 Jan 2018 04:40:26 +0000 (13:40 +0900)]
[COMMON] pm_qos: send PM_QoS class at QoS notify callchain

Change-Id: I7a839a6dfe8c1650eb92a7f6728b445b05b3952b
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agosched/tune: remove duplicated spin_lock initialization
Park Bumgyu [Thu, 1 Jun 2017 06:28:49 +0000 (15:28 +0900)]
sched/tune: remove duplicated spin_lock initialization

Change-Id: I2e0ec5521b0d606c02bcbafd97a5352144be964a
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years ago[COMMON] sched: fair: Add to update max cpu capacity on update_cpu_capacity.
lakkyung.jung [Mon, 19 Mar 2018 12:29:17 +0000 (21:29 +0900)]
[COMMON] sched: fair: Add to update max cpu capacity on update_cpu_capacity.

Change-Id: I4835f48130055cd926e79d9b04e46fddabe378a4
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[COMMON] sched/fair: Fix hang during rebuilding sd in compute_energy.
Johnlay Park [Mon, 19 Feb 2018 05:51:23 +0000 (14:51 +0900)]
[COMMON] sched/fair: Fix hang during rebuilding sd in compute_energy.

This patch implemtes the hotplug race check differently and
should therefore reinstate support for per-cpu capacity states.

refer the commit d5f2ca8a4778938c45d679d67c45b256114de3c5,
64f6fd103dadaf762d3dc11173c5544ff6ec1b16.

Change-Id: Iab48cf63c3672e10ad8230d1eeb09185ea588022
Signed-off-by: Johnlay Park <jonglae.park@samsung.com>
6 years ago[COMMON] sched: ems: Use snprintf to fix buffer overflow.
lakkyung.jung [Mon, 23 Apr 2018 05:03:47 +0000 (14:03 +0900)]
[COMMON] sched: ems: Use snprintf to fix buffer overflow.

Change-Id: Ieebd6ca02aec141ca3eeb0366cf88778d94911ea
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years agosamsung: ecme: Get the boost frequency from EMC.
Youngtae Lee [Mon, 16 Apr 2018 09:19:50 +0000 (18:19 +0900)]
samsung: ecme: Get the boost frequency from EMC.

If EMC is enabled, ACME gets max frequency from EMC.

Change-Id: I56c7cee764f782314a1d467936db7a7e1d545a80
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
6 years agosamsung: emc: Add help function to finding boost freq
Youngtae Lee [Mon, 16 Apr 2018 09:19:38 +0000 (18:19 +0900)]
samsung: emc: Add help function to finding boost freq

If a cpu has boost frequency, emc_get_boost_freq offers
boost frequency

Change-Id: I101f923dc2d29ef748ff1661b6f8cbb4054f812b
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
6 years ago[COMMON] sched/rt: remove the useless rq lock
Johnlay Park [Mon, 16 Apr 2018 05:53:28 +0000 (14:53 +0900)]
[COMMON] sched/rt: remove the useless rq lock

in find_lock_lowest_rq(). In an aging test, rq lock is unbalanced,
because the rq lock is released in double locking routine in
this function from rto_push_irq_work_func.

Change-Id: I338bc98fd4053aefcf8fdd4a6e991ce240d649ec
Signed-off-by: Johnlay Park <jonglae.park@samsung.com>
6 years agosamsung: Kconfig: Add Exynos Mode Changer configulation
Youngtae Lee [Wed, 28 Mar 2018 07:20:23 +0000 (16:20 +0900)]
samsung: Kconfig: Add Exynos Mode Changer configulation

Change-Id: If09f52dc6724245950ac64bae542b8f635d11c0d
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
6 years agotrace: event: Add emc trace event
Youngtae Lee [Wed, 28 Mar 2018 07:17:38 +0000 (16:17 +0900)]
trace: event: Add emc trace event

Change-Id: I2a0db9259f35c82853775e5485b2cd314f3bb7e3
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
6 years agosamsung: emc: introduce exynos mode changer
Youngtae Lee [Thu, 25 Jan 2018 05:40:18 +0000 (14:40 +0900)]
samsung: emc: introduce exynos mode changer

This driver recomands optimized mode for performance
in Exynos SoC supporting boosting

Change-Id: Ie1592af0a961fcf3f96c845c26b9bd440fb88b92
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
6 years agosamsung: acme: appyling new cpu hotplug
Youngtae Lee [Mon, 9 Apr 2018 08:45:55 +0000 (17:45 +0900)]
samsung: acme: appyling new cpu hotplug

Change-Id: I2c64df9fa8278b687489ee310bf97013407691c9
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
6 years agosamsung: cpuhp: introduce new exynos hotplug driver
Youngtae Lee [Wed, 21 Mar 2018 06:09:00 +0000 (15:09 +0900)]
samsung: cpuhp: introduce new exynos hotplug driver

It supports unsequecial hotplug.
To support unsequencial core control,
new cpu_hotplug_driver doesn't use qos method.
instead of qos, it support exynos specific API for
core power control such ad hotplug, fast_hp.

Change-Id: Ifacee5a75ff4a513645dc051fdbfbfdfce1f90ea
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
6 years ago[COMMON] sched/rt: repair the core selecting algorithm
Johnlay Park [Wed, 11 Apr 2018 06:03:15 +0000 (15:03 +0900)]
[COMMON] sched/rt: repair the core selecting algorithm

including,
* reworking a rq-selecting algorithm rq for fluid rt
* fix the wrong tracing info

Change-Id: If3d9695252d019fd277a80d9d4314259fa6ced16
Signed-off-by: Johnlay Park <jonglae.park@samsung.com>
6 years ago[COMMON] sched/rt: add the sync flag into RT
Johnlay Park [Tue, 10 Apr 2018 02:22:36 +0000 (11:22 +0900)]
[COMMON] sched/rt: add the sync flag into RT

to fulfill the cache hot benefit

Change-Id: I0bea23664b351a60b4aea3306be3d87d31efca3a
Signed-off-by: Johnlay Park <jonglae.park@samsung.com>
6 years ago[COMMON] sched/rt: fix the problem of long stay
Johnlay Park [Mon, 9 Apr 2018 13:21:47 +0000 (22:21 +0900)]
[COMMON] sched/rt: fix the problem of long stay

in faster CPU domain.

Change-Id: Icc0c64a945efff9bf33753224ca16c9086e9b7d5
Signed-off-by: Johnlay Park <jonglae.park@samsung.com>
6 years agoems: clean up ems.h
Park Bumgyu [Fri, 13 Apr 2018 02:30:57 +0000 (11:30 +0900)]
ems: clean up ems.h

Change-Id: I70a89c242ada635932d85cbdb9533ef07bcb3526
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agosched: ems: remove exynos_fit_idlest_group()
Park Bumgyu [Fri, 13 Apr 2018 02:20:57 +0000 (11:20 +0900)]
sched: ems: remove exynos_fit_idlest_group()

Since exynos_proper_cpu() is implemented, exynos no longer calls
find_idlest_group(). Therefore, exynos_fit_idlest_group() is no
longer needed.

Change-Id: Ia04391c3406f8cfe0215fc20ea966b4a1d8c8228
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agosche: ems: implement proper_cpu
Park Bumgyu [Thu, 12 Apr 2018 07:49:30 +0000 (16:49 +0900)]
sche: ems: implement proper_cpu

exynos_proper_cpu() is called last in exynos wakeup balance. This is
called when the task does not require preformance, and the prev cpu
is overutilized and does not select the energy cpu.

Since balancing is necessary, the task is sent to the cpu with the
smallest utilization in order to minimize power consumption.

Change-Id: I5ef1a3b6d295763e7c4dc0df9f871d7ef05f8c9a
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agotrace: ems: remove unused event and modify name
Park Bumgyu [Thu, 12 Apr 2018 04:59:03 +0000 (13:59 +0900)]
trace: ems: remove unused event and modify name

Change-Id: I0b5ed6ef6b0adcdf377f0bc915484e0187d3c162
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agosoc: samsung: cpupm: support sysfs to enable/disable power mode
Park Bumgyu [Thu, 12 Apr 2018 04:30:20 +0000 (13:30 +0900)]
soc: samsung: cpupm: support sysfs to enable/disable power mode

Change-Id: I8f0384bb511a8d9c4aaa57329808e65766ce8b03
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agocpuidle: profiler: reset idle-ip statistics
Park Bumgyu [Wed, 11 Apr 2018 03:57:59 +0000 (12:57 +0900)]
cpuidle: profiler: reset idle-ip statistics

Change-Id: I2bb9aae929aeae059eb23e2cff03462fe4eb33db
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agoinit/kconfig: FRT dependends on EMS
Park Bumgyu [Wed, 11 Apr 2018 01:13:17 +0000 (10:13 +0900)]
init/kconfig: FRT dependends on EMS

Change-Id: I5b241b766adc14a2169ec773ead76caba7187f03
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agosched: ems: set cpu capacity for simplified energy model
Park Bumgyu [Tue, 10 Apr 2018 01:18:38 +0000 (10:18 +0900)]
sched: ems: set cpu capacity for simplified energy model

We added the SIMPLIFIED_ENERGY_TABLE config to prevent conflicts
with existing energy model. If this config is enabled, the codes for
legacy energy model is unactivated.

Change-Id: I9b6d48334b32a50fd4cc8029d8eab85adb623a9d
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agocpufreq: acme: update frequency-scale
Park Bumgyu [Tue, 10 Apr 2018 01:24:22 +0000 (10:24 +0900)]
cpufreq: acme: update frequency-scale

The freq-scale is updated to adjust the amount of task uilization
accumulation to the cpu frequency. In the previous kernel version,
the freq-scale was updated in the cpufreq framework, but in the
current version, it should be updated in the cpufreq driver

Change-Id: I542898e234f3e7a4e337c96bae40b5a054fcbd97
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years ago[COMMON] sched: sysctl: match the variable type
Johnlay Park [Fri, 23 Mar 2018 07:44:04 +0000 (16:44 +0900)]
[COMMON] sched: sysctl: match the variable type

for fixing the build error on clang

Change-Id: I396d4f622018fcf2bd601b7c8405640896943493
Signed-off-by: Johnlay Park <jonglae.park@samsung.com>
6 years ago[COMMON] sched/rt: remove useless retrying core selection
Johnlay Park [Fri, 6 Apr 2018 11:33:48 +0000 (20:33 +0900)]
[COMMON] sched/rt: remove useless retrying core selection

due to the RT throttling in CPU Hotplug in/out

Change-Id: I9b82bdc511cfb49d3cb9b538d4fec6917624afc6
Signed-off-by: Johnlay Park <jonglae.park@samsung.com>
6 years ago[COMMON] sched/rt: add the online cpu condition
Johnlay Park [Fri, 6 Apr 2018 10:57:42 +0000 (19:57 +0900)]
[COMMON] sched/rt: add the online cpu condition

Change-Id: I32df8e8e32a09b4613108e99e8ad3cfaa5bfcd80
Signed-off-by: Johnlay Park <jonglae.park@samsung.com>
6 years ago[COMMON] sched/rt: add a trace point for FRT algorithm
Johnlay Park [Fri, 6 Apr 2018 07:10:14 +0000 (16:10 +0900)]
[COMMON] sched/rt: add a trace point for FRT algorithm

for optimizing the system performance

Change-Id: I70c7a5f5c06b84e40689030e2186faee14a75c26
Signed-off-by: Johnlay Park <jonglae.park@samsung.com>
6 years ago[COMMON] sched/rt: enforcing the rt task serialization
Johnlay Park [Fri, 6 Apr 2018 07:05:14 +0000 (16:05 +0900)]
[COMMON] sched/rt: enforcing the rt task serialization

to maximize the cache hot benifit.

Change-Id: Idf4854b442bcefe67f6ed7488d154a328d429c44
Signed-off-by: Johnlay Park <jonglae.park@samsung.com>
6 years agoRevert "[9820] sched: core: fix bug that rt could not be binded to little"
Johnlay Park [Thu, 5 Apr 2018 11:56:20 +0000 (20:56 +0900)]
Revert "[9820] sched: core: fix bug that rt could not be binded to little"

This reverts commit 5933bc155713c86efe99c096ca7ff7421ca53f46

Change-Id: Ib4d852432562747b74472f2dd2c32abd8ea5d4f3

6 years agosched: ems: remove ehmp.c
Park Bumgyu [Fri, 6 Apr 2018 05:46:25 +0000 (14:46 +0900)]
sched: ems: remove ehmp.c

EHMP(Exynos HMP) was replaced by EMS(Exynos Mobile Scheduler).
Delete existing ehmp.c.

Change-Id: I437b4b5f0572525f4f692c4a8242c5525f3e2140
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agosched: ems: move active balance to ems
Park Bumgyu [Fri, 6 Apr 2018 06:02:28 +0000 (15:02 +0900)]
sched: ems: move active balance to ems

Move the active balance related code from ehmp.c to core.c of ems.
ehmp.c will be removed.

Change-Id: I6a01db308b3c889f01da642fa3b96df93dc6432f
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agosched: ems: integrate common API
Park Bumgyu [Fri, 6 Apr 2018 05:15:09 +0000 (14:15 +0900)]
sched: ems: integrate common API

Commonly used APIs are delcared redundantly in several files in EMS.
It is integrated into core.c.

Change-Id: Ic42d508d1083f9321c856452f50731c2a9fa9adf
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agosched: ems: seperate task util initiialization
Park Bumgyu [Fri, 6 Apr 2018 05:41:30 +0000 (14:41 +0900)]
sched: ems: seperate task util initiialization

Seperate code related to task util initialization to facilitate
code management.

Change-Id: I86244fe3169467b74baca6a34b968ef04c495586
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agosched: ems: separate energy coefficient cpu selection
Park Bumgyu [Fri, 6 Apr 2018 04:46:39 +0000 (13:46 +0900)]
sched: ems: separate energy coefficient cpu selection

Separate code related to energy conefficient cpu selection to
facilitate code management.

Change-Id: I0a18490da3f178483108c6cb8c34b904cbaca3d6
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agosched: ems: build simplified energy table
Park Bumgyu [Thu, 5 Apr 2018 11:01:19 +0000 (20:01 +0900)]
sched: ems: build simplified energy table

The simplified energy table only considers the compute capacity and power
of the cpu. When the frequency domain is registered, an energy table is
created dynamically.

Change-Id: Ifbd466dbd6ba0e496f98f17e3dd3b2850ab3ceea
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agosched: ems: parsing energy data to build energy table
Park Bumgyu [Thu, 5 Apr 2018 06:33:08 +0000 (15:33 +0900)]
sched: ems: parsing energy data to build energy table

To build energy table, parse the mips and coefficient from device tree.

Change-Id: If7db3c4d67cb62a983cccd452ce2546feabe5e27
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agosched: ems: avoid to access empty energy table
Park Bumgyu [Thu, 5 Apr 2018 05:36:40 +0000 (14:36 +0900)]
sched: ems: avoid to access empty energy table

Accessing the energy table without allocation cause a NULL pointer
exception. energy_table.nr_states have values after the energy table
created, so check the nr_states to avoid problem.

Change-Id: I90d6c9b8ff5ac0eb67b92ab0bb57b911d8f65091
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years ago[COMMON] sched: ems: Modify trace log name of EMS feature
Daeyeong Lee [Fri, 6 Apr 2018 06:47:37 +0000 (15:47 +0900)]
[COMMON] sched: ems: Modify trace log name of EMS feature

Change-Id: I8641050a38bccaa26bac3016e52c10a223e14353
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
6 years agosched: ems: support find energy efficient cpu
Park Bumgyu [Tue, 27 Mar 2018 03:50:03 +0000 (12:50 +0900)]
sched: ems: support find energy efficient cpu

Based on the task utilization, it is a function to find the cpu with
the least energy efficiency considering cpu cpacity and power.

Change-Id: I28c333f8f6881ea4aaaf57361cc612975dc35c26
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agosched: ems: renewal prefer perf
Park Bumgyu [Fri, 23 Mar 2018 07:23:43 +0000 (16:23 +0900)]
sched: ems: renewal prefer perf

Modify the structure of prefer perf to work with PCF

Change-Id: Ic26874ecd074645031ecac933999f5e488f4f2b1
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agosched: ems: renewal global boost
Park Bumgyu [Fri, 23 Mar 2018 05:07:09 +0000 (14:07 +0900)]
sched: ems: renewal global boost

Modify the structure of global boost to work with PCF. Accordingly,
the range of value is changed from 0~100 to 0/1.

Change-Id: I2a5d35cfeb69a9b9ca9d5e1d043f49ee4d3d4ff9
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years agosched: ems: support PCF(Performance CPU Finder)
Park Bumgyu [Fri, 23 Mar 2018 05:08:55 +0000 (14:08 +0900)]
sched: ems: support PCF(Performance CPU Finder)

PCF(Performance CPU Finder) provides the ability to find the highest
performance cpu at any given moment. Currently, it is composed of a
selection algorithm based on distributed processing.

Change-Id: Iaaaedd12fee9fe0829db9dd1f7cb72993581a51e
Signed-off-by: Park Bumgyu <bumgyu.park@samsung.com>
6 years ago[COMMON] sched: ems/st_addon: Add core assignment policy for prefer_idle task.
lakkyung.jung [Wed, 28 Mar 2018 04:13:21 +0000 (13:13 +0900)]
[COMMON] sched: ems/st_addon: Add core assignment policy for prefer_idle task.

Change-Id: I9179e123b6a04b5ead9605a61e0277c9c9949882
Signed-off-by: lakkyung.jung <lakkyung.jung@samsung.com>
6 years ago[COMMON] soc: samsung: topology: Remove unnecessary ignore-energy-costs
Daeyeong Lee [Wed, 28 Mar 2018 01:31:47 +0000 (10:31 +0900)]
[COMMON] soc: samsung: topology: Remove unnecessary ignore-energy-costs

Change-Id: I35839c994cb86b83897a76173c452a2241834ffe
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
6 years ago[COMMON] sched: ems: New function to check whether task make cpu overutilize
Daeyeong Lee [Tue, 27 Mar 2018 09:46:50 +0000 (18:46 +0900)]
[COMMON] sched: ems: New function to check whether task make cpu overutilize

The lbt_bring_overutilize function checks whether the CPU will be overutilized
at all levels when a task is added to the CPU.

Change-Id: Idbeb0f06f65ab7a807d85f4e76fc1fb8931d12f7
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
6 years ago[COMMON] sched: ems: Move lbt/ontime node from ehmp to ems
Daeyeong Lee [Fri, 23 Mar 2018 07:28:34 +0000 (16:28 +0900)]
[COMMON] sched: ems: Move lbt/ontime node from ehmp to ems

Change-Id: I3422985e2cd8f2d1235f983934af5b401326a7b9
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
6 years ago[COMMON] sched: ems: Disable ontime feature if ontime node isn't in DT
Daeyeong Lee [Thu, 22 Mar 2018 10:18:13 +0000 (19:18 +0900)]
[COMMON] sched: ems: Disable ontime feature if ontime node isn't in DT

Change-Id: If7440f36447b73c6e7b8d77bf048b249764bc681
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>
6 years ago[COMMON] sched: ems: Use default ratio if lbt node isn't in DT
Daeyeong Lee [Thu, 22 Mar 2018 12:13:30 +0000 (21:13 +0900)]
[COMMON] sched: ems: Use default ratio if lbt node isn't in DT

Change-Id: I50c6b0547788eaf329eb6cabb311288f4863b3ef
Signed-off-by: Daeyeong Lee <daeyeong.lee@samsung.com>