GitHub/LineageOS/android_kernel_motorola_exynos9610.git
6 years agothermal: cpu_cooling: Change cooling device node
Hyeonseong Gil [Mon, 18 Sep 2017 02:15:54 +0000 (11:15 +0900)]
thermal: cpu_cooling: Change cooling device node

Previously, CPU device node was used to register the cooling device.
We chanaged to use the cpufreq device node for registration
even if the specific CPU was turned off.

Change-Id: I7e6e76fe38a2d05a9968290adb080d85712a5afd
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: fix build error
Eunseok Choi [Tue, 9 May 2017 10:03:50 +0000 (19:03 +0900)]
[COMMON] thermal: fix build error

Change-Id: I8e53bd09d42af5f300bffc5bc8c529a7165db3a7
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years agoRevert "[9810] thermal: samsung: register cpu hotplug done notifier"
Eunseok Choi [Mon, 22 Jan 2018 12:40:03 +0000 (21:40 +0900)]
Revert "[9810] thermal: samsung: register cpu hotplug done notifier"

This reverts commit 0bf4a0d9fc6722b9af8efa51d1b47ef051471b71.

Change-Id: I252ea68d7a5d3a7a4761121eea6ab0637c06eb55
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years agoRevert "[9810] thermal: samsung: skip CP cold temp margin during suspend"
Eunseok Choi [Mon, 22 Jan 2018 11:18:25 +0000 (20:18 +0900)]
Revert "[9810] thermal: samsung: skip CP cold temp margin during suspend"

This reverts commit ac636d9077bc4751da4961009df7664722824d24.

Change-Id: Ia474ab1545b46072af0e5f722c662832eb7b43ab
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: delay cpu hotplug until cdev is initialized
Eunseok Choi [Thu, 14 Dec 2017 08:58:48 +0000 (17:58 +0900)]
[COMMON] thermal: delay cpu hotplug until cdev is initialized

Change-Id: I46e252cde6c2fbaa09acffc1352d6fae4d1496fd
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] thermal: samsung: skip CP cold temp margin during suspend
Eunseok Choi [Mon, 4 Dec 2017 14:31:03 +0000 (23:31 +0900)]
[9810] thermal: samsung: skip CP cold temp margin during suspend

skip CP cold temp margin during suspend when CP is on data call.

Change-Id: I94fa4c20478a191123dbeed13c4d70aae85c65ce
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] firmware: update ACPM TMU plugin binary (12/20)
Eunseok Choi [Tue, 19 Dec 2017 07:46:09 +0000 (16:46 +0900)]
[9810] firmware: update ACPM TMU plugin binary (12/20)

1350127
08f2f3a

Change-Id: I886c64e941d0c002d7d8258b4c5a58dc3e97f1e5
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] firmware: update ACPM TMU plugin binary (12/18)
Eunseok Choi [Mon, 18 Dec 2017 02:29:22 +0000 (11:29 +0900)]
[9810] firmware: update ACPM TMU plugin binary (12/18)

024f527 fix hysteresis for cold temperature

Change-Id: I6f1ef2bea923d3c7802b1e9a6e44e48f707d6d59
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] firmware: update ACPM TMU plugin binary (12/8)
Eunseok Choi [Mon, 4 Dec 2017 14:38:48 +0000 (23:38 +0900)]
[9810] firmware: update ACPM TMU plugin binary (12/8)

acf14d9 [9810] plugins: tmu: skip CP cold temp margin

Change-Id: I8096909f626a3c71052b121f22ad5856201f5fb0
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] firmware: update ACPM TMU plugin binary (12/1)
Eunseok Choi [Fri, 1 Dec 2017 05:15:48 +0000 (14:15 +0900)]
[9810] firmware: update ACPM TMU plugin binary (12/1)

Change-Id: Ia5699ede6fb5f5538d9f706e8d8ad15ea66789ad
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] firmware: update ACPM TMU plugin binary (11/23)
Eunseok Choi [Thu, 23 Nov 2017 15:48:17 +0000 (00:48 +0900)]
[9810] firmware: update ACPM TMU plugin binary (11/23)

support limited frequency

Change-Id: I45333d7c5b82baad5847c13786a9a2d72c9043ca
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] firmware: update ACPM TMU plugin binary (8/10)
Eunseok Choi [Thu, 10 Aug 2017 05:36:43 +0000 (14:36 +0900)]
[9810] firmware: update ACPM TMU plugin binary (8/10)

support TMU EVT1

Change-Id: Ie58b7168d791c21a8d34a55f59b877afecaa8308
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] firmware: update ACPM TMU plugin binary (7/28).
Naeun Yoo [Fri, 28 Jul 2017 10:31:31 +0000 (19:31 +0900)]
[9810] firmware: update ACPM TMU plugin binary (7/28).

Change-Id: I8501ae600402f2b8e90645450ba7bface3bedb52
Signed-off-by: Naeun Yoo <ne.yoo@samsung.com>
6 years ago[9810] firmware: update ACPM TMU plugin binary (7/11)
Eunseok Choi [Tue, 11 Jul 2017 11:17:05 +0000 (20:17 +0900)]
[9810] firmware: update ACPM TMU plugin binary (7/11)

- change probe id indexing method

Change-Id: I31075621c04913e5fffc52414470a00259ad34ba
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] firmware: update ACPM TMU plugin binary (6/20)
Eunseok Choi [Tue, 20 Jun 2017 07:47:50 +0000 (16:47 +0900)]
[9810] firmware: update ACPM TMU plugin binary (6/20)

- update thermal zone configuratoin
- clean up logs

Change-Id: If71f1068d9b69ff79449f9296e4c810cd06a0cf6
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] firmware: add ACPM TMU plugin binary (5/31)
Eunseok Choi [Wed, 31 May 2017 10:46:25 +0000 (19:46 +0900)]
[9810] firmware: add ACPM TMU plugin binary (5/31)

Change-Id: Iab1020c3ca784914c72f6361b668c2ac44cc7034
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] firmware: add ACPM TMU plugin binary (5/22)
Eunseok Choi [Fri, 19 May 2017 05:21:54 +0000 (14:21 +0900)]
[9810] firmware: add ACPM TMU plugin binary (5/22)

Change-Id: I50b52d0d1274d4f56207d823e5cad45a2e0e1bc4
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years agoRevert "[9810] firmware: introduce TMU plugin"
Eunseok Choi [Sun, 21 Jan 2018 18:20:47 +0000 (03:20 +0900)]
Revert "[9810] firmware: introduce TMU plugin"

This reverts commit 88b052508a1bf501d20c200688e780844ae805fe.

Change-Id: Ib3fa579aed264f5e7ff1263c68779ce577f8b1df
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] firmware: introduce TMU plugin
Naeun Yoo [Fri, 12 Jan 2018 06:25:13 +0000 (15:25 +0900)]
[9810] firmware: introduce TMU plugin

Change-Id: I2683e393fbaa369ac4fbfae072bef70b8d232503
Signed-off-by: Naeun Yoo <ne.yoo@samsung.com>
6 years ago[9810] thermal: fix recursive mutex_lock by cpu hotplug notifier
Eunseok Choi [Tue, 5 Dec 2017 11:06:00 +0000 (20:06 +0900)]
[9810] thermal: fix recursive mutex_lock by cpu hotplug notifier

Change-Id: I303f7a0e3a811f1de728605fa2332c800e445889
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: fix prevent error
Eunseok Choi [Fri, 24 Nov 2017 01:58:21 +0000 (10:58 +0900)]
[COMMON] thermal: fix prevent error

CID: 202888 202205 202201 201542 200628 200625

Resolved migration conflicts from kernel 4.9 to 4.14.
- rename cpufreq_device -> cpufreq_cdev
- rename gpufreq_device -> gpufreq_cdev

Change-Id: I926e40f0539d4b795be2e34d55108d3b3c0dfdc9
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: samsung: add limited frequency for power allocator
Eunseok Choi [Thu, 23 Nov 2017 15:43:35 +0000 (00:43 +0900)]
[COMMON] thermal: samsung: add limited frequency for power allocator

Change-Id: I73817be52303a29f75e491e11c0902198a5ca316
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] thermal: samsung: register cpu hotplug done notifier
Eunseok Choi [Thu, 9 Nov 2017 05:21:18 +0000 (14:21 +0900)]
[9810] thermal: samsung: register cpu hotplug done notifier

Change-Id: Ibb5a6b9641cc4bed495085e105a71547acda8c70
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: cpu_cooling: calculate power by online cpus
Eunseok Choi [Thu, 9 Nov 2017 13:07:26 +0000 (22:07 +0900)]
[COMMON] thermal: cpu_cooling: calculate power by online cpus

Resolved migration conflicts from kernel 4.9 to 4.14.
- allowed_cpus -> policy->related_cpus

Change-Id: I82b186566d40f75f654393cb655f17d4c15dbcfb
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] thermal: samsung: remove EVT0 dependent codes
Eunseok Choi [Fri, 17 Nov 2017 04:24:50 +0000 (13:24 +0900)]
[9810] thermal: samsung: remove EVT0 dependent codes

Revert "[9810] thermal: samsung: modify TMU calibration for NZVYT lot"

Change-Id: Ie747f96b3c774d61154c6fceb1269de7130a61fa
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: core: remove HMP dependencies
Eunseok Choi [Tue, 5 Sep 2017 10:27:19 +0000 (19:27 +0900)]
[COMMON] thermal: core: remove HMP dependencies

Change-Id: Ibc1784dad601e79b0cae82caf6e733bac3e869d6
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: power_alloctor: reset err_integral to integral_max
Eunseok Choi [Wed, 30 Aug 2017 13:58:37 +0000 (22:58 +0900)]
[COMMON] thermal: power_alloctor: reset err_integral to integral_max

This patch set err_integral value to integral_max as a reset value.

Change-Id: I79ce81fd91bcbc565d484ead2adbf313d4430c45
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years agothermal: cpu_cooling: Avoid accessing potentially freed structures
Viresh Kumar [Tue, 25 Apr 2017 10:27:08 +0000 (15:57 +0530)]
thermal: cpu_cooling: Avoid accessing potentially freed structures

commit 289d72afddf83440117c35d864bf0c6309c1d011 upstream.

After the lock is dropped, it is possible that the cpufreq_dev gets
freed before we call get_level() and that can cause kernel to crash.

Drop the lock after we are done using the structure.

Resolved migration conflicts from kernel 4.9 to 4.14.
- allowed_cpus -> policy->related_cpus

Change-Id: Ib7f00f738b761e291d01abbd2bf9b5745ad404e8
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: samsung: remove unused codes
Eunseok Choi [Wed, 28 Jun 2017 13:23:51 +0000 (22:23 +0900)]
[COMMON] thermal: samsung: remove unused codes

Change-Id: I6506da0636b308a0364402a816de2d045641070b
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: samsung: clean up acpm tmu debug
Eunseok Choi [Fri, 16 Jun 2017 11:08:53 +0000 (20:08 +0900)]
[COMMON] thermal: samsung: clean up acpm tmu debug

Change-Id: I216da414e8d7618fa201d55ea548249f73f69483
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: samsung: add acpm tmu ipc dump
Eunseok Choi [Fri, 16 Jun 2017 08:43:06 +0000 (17:43 +0900)]
[COMMON] thermal: samsung: add acpm tmu ipc dump

Change-Id: Id5ed7f57e445b0e956d4f18a4ae2a3091f7e1f43
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: core: remove HMP dependency of cpumask
Eunseok Choi [Thu, 15 Jun 2017 13:41:03 +0000 (22:41 +0900)]
[COMMON] thermal: core: remove HMP dependency of cpumask

Change-Id: Ib33c5f699acdafb062f3eb8b2091387b9bb0c44e
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] thermal: samsung: add TMU TRIM0 configuration
Eunseok Choi [Sat, 3 Jun 2017 06:36:54 +0000 (15:36 +0900)]
[9810] thermal: samsung: add TMU TRIM0 configuration

Change-Id: I7280a4c8a6c175d1dcc8e36e9ecb753c606694e8
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[9810] thermal: samsung: modify TMU calibration for NZVYT lot
Eunseok Choi [Wed, 10 May 2017 12:15:29 +0000 (21:15 +0900)]
[9810] thermal: samsung: modify TMU calibration for NZVYT lot

Change-Id: I3b54e21a15b3fd9c5454e2e5c1ee08556f7f8667
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: samsung: Use GIC_MULTI_TARGET for TMU
Hyeonseong Gil [Thu, 11 May 2017 03:18:24 +0000 (12:18 +0900)]
[COMMON] thermal: samsung: Use GIC_MULTI_TARGET for TMU

Change-Id: I0cabda43c80def25ec18dc10b792c550c0419b8f
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: core: Change to use their own workqueue
Hyeonseong Gil [Mon, 15 May 2017 07:31:16 +0000 (16:31 +0900)]
[COMMON] thermal: core: Change to use their own workqueue

To prevent workqueue's delayed schedule,
use their own workqueue and it will be handled in all core of LITTLE.

Resolved migration conflicts from kernel 4.9 to 4.14.

Change-Id: I1520ba4d7877fd9abf0edbc14693319ba27cc915
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[9810] thermal: samsung: reduce TMU sending time
Eunseok Choi [Tue, 30 May 2017 07:23:42 +0000 (16:23 +0900)]
[9810] thermal: samsung: reduce TMU sending time

Change-Id: I624b15d3a2c4173f593dcff1e18c3481563c8114
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: samsung: remove CONFIG_EXYNOS_THERMAL_DEBUG
Eunseok Choi [Thu, 25 May 2017 03:33:54 +0000 (12:33 +0900)]
[COMMON] thermal: samsung: remove CONFIG_EXYNOS_THERMAL_DEBUG

Change-Id: Icb817575c8c5fcf1179457cdf74149c1e5d7f24e
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: samsung: suppress acpm tmu log
Eunseok Choi [Wed, 24 May 2017 15:33:03 +0000 (00:33 +0900)]
[COMMON] thermal: samsung: suppress acpm tmu log

Change-Id: I8f749ef443c468ff53a63b4d3c86f086bfa280ce
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: add macros to support soc dependencies
Eunseok Choi [Wed, 24 May 2017 15:28:47 +0000 (00:28 +0900)]
[COMMON] thermal: add macros to support soc dependencies

Change-Id: I455a9f4c02402cd1ae6808354b9450333ab68f92
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: cpu_cooling: discard invalid cooling level
Eunseok Choi [Tue, 23 May 2017 08:32:35 +0000 (17:32 +0900)]
[COMMON] thermal: cpu_cooling: discard invalid cooling level

Resolved migration conflicts from kernel 4.9 to 4.14.
- freq_table and power_table are merged into struct freq_table

Change-Id: If039d12292d1901b08444e162b23ca08bdbb8427
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: cpu_cooling: modify ids of static power table
Eunseok Choi [Mon, 22 May 2017 17:45:02 +0000 (02:45 +0900)]
[COMMON] thermal: cpu_cooling: modify ids of static power table

Change-Id: I725217f8df11927fcede4be288fdf05af618aee3
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: samsung: add CP call test mode
Eunseok Choi [Tue, 16 May 2017 14:48:00 +0000 (23:48 +0900)]
[COMMON] thermal: samsung: add CP call test mode

Change-Id: Ieb22673b09d36a09f0e3dd1d86981f098a370ece
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: samsung: support cold temperature control during CP call
Eunseok Choi [Thu, 4 May 2017 10:54:47 +0000 (19:54 +0900)]
[COMMON] thermal: samsung: support cold temperature control during CP call

Change-Id: I5e61e18ea0c77ca999ccfd3e4057707c0d30bb1d
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: samsung: add exynos9810 DTM driver with ACPM support
Eunseok Choi [Thu, 4 May 2017 09:01:24 +0000 (18:01 +0900)]
[COMMON] thermal: samsung: add exynos9810 DTM driver with ACPM support

Change-Id: I722790b07803d28842a76ebde872118782381d73
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: samsung: support ACPM TMU plugin
Eunseok Choi [Thu, 4 May 2017 08:50:03 +0000 (17:50 +0900)]
[COMMON] thermal: samsung: support ACPM TMU plugin

add include/linux/sched/clock.h

Change-Id: Ia4e795d45ca2aac5ddd9d59242764ba57f2021e4
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
6 years ago[COMMON] thermal: not allowed manually bind/ unbind device from the driver
Chungwoo Park [Wed, 26 Apr 2017 09:04:44 +0000 (18:04 +0900)]
[COMMON] thermal: not allowed manually bind/ unbind device from the driver

Change-Id: Icbe8d8e48ea7e0da78007b7f153f3832fb76303b
Signed-off-by: Chungwoo Park <cww.park2@samsung.com>
6 years ago[COMMON] thermal: samsung: support data ntrip support
Hyeonseong Gil [Fri, 14 Apr 2017 07:34:32 +0000 (16:34 +0900)]
[COMMON] thermal: samsung: support data ntrip support

Change-Id: Id4e05e32b4829f5d947e87b38329ee7530bbc826
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: Kconfig: select PM_OPP by CPU_THERMAL
Hyeonseong Gil [Thu, 13 Apr 2017 07:29:36 +0000 (16:29 +0900)]
[COMMON] thermal: Kconfig: select PM_OPP by CPU_THERMAL

Change-Id: I45264acc0fac1e2faa15b22a4a98ecf7dfdd65e5
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: cpu_cooling: Fix set_cur_temp API
Hyeonseong Gil [Thu, 13 Apr 2017 06:31:23 +0000 (15:31 +0900)]
[COMMON] thermal: cpu_cooling: Fix set_cur_temp API

Resolved migration conflicts from kernel 4.9 to 4.14.

Change-Id: Id1c3cf9b8496a9479cf63eb1599988a589afcf7b
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: Parsing PIDTM data from ECT
Hyeonseong Gil [Fri, 7 Apr 2017 07:10:11 +0000 (16:10 +0900)]
[COMMON] thermal: samsung: Parsing PIDTM data from ECT

Change-Id: I162add552ce41ec83785ba37fc7b440e7c2eb94e
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: power_alloctor: use only one passive trip point
Hyeonseong Gil [Fri, 7 Apr 2017 06:03:13 +0000 (15:03 +0900)]
[COMMON] thermal: power_alloctor: use only one passive trip point

Change-Id: I41998e0ffeef9bd10e717cd1d2bd6174c4f93c07
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: Parse dyn_coeff from ECT
Hyeonseong Gil [Fri, 7 Apr 2017 02:18:28 +0000 (11:18 +0900)]
[COMMON] thermal: samsung: Parse dyn_coeff from ECT

Change-Id: I92d7a36ff94c95c189e188145a3846bd6e63bcd0
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: core: Added get_zone_by_cool_np API
Hyeonseong Gil [Fri, 7 Apr 2017 01:28:58 +0000 (10:28 +0900)]
[COMMON] thermal: core: Added get_zone_by_cool_np API

Resolved migration conflicts from kernel 4.9 to 4.14.

Change-Id: Iae4191873a0482425647e141f548b0d11f5a072e
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: Added ECT parsing function
Hyeonseong Gil [Fri, 24 Mar 2017 02:02:47 +0000 (11:02 +0900)]
[COMMON] thermal: samsung: Added ECT parsing function

Resolved migration conflicts from kernel 4.9 to 4.14.

Change-Id: I565316644978e42ccf1aab7532651701df915185
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: of-thermal: remove ECT related code
Hyeonseong Gil [Fri, 24 Mar 2017 02:01:09 +0000 (11:01 +0900)]
[COMMON] thermal: of-thermal: remove ECT related code

Change-Id: Ic8dd52b8ff17c3e47d4f3165d0bac91a2cf9c4b6
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: Replace to get cdev data
Hyeonseong Gil [Fri, 24 Mar 2017 01:59:09 +0000 (10:59 +0900)]
[COMMON] thermal: samsung: Replace to get cdev data

Change-Id: I5f706db307e107d6ea129a6864396f75d480efa5
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: Move the definition of of_thermal structure
Hyeonseong Gil [Fri, 24 Mar 2017 01:55:45 +0000 (10:55 +0900)]
[COMMON] thermal: Move the definition of of_thermal structure

Change-Id: I318539a0581ed6d6661194fba7183e41d4738529
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: Makfile: rearrange build sequence
Hyeonseong Gil [Fri, 24 Mar 2017 01:52:01 +0000 (10:52 +0900)]
[COMMON] thermal: Makfile: rearrange build sequence

To ensure the init sequences of each drivers,
gpu_cooling and isp_cooling's build sequence modified

Change-Id: I920d123f3574963fd99d0c86c76c42f2477c5086
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: Move isp_cooling_register
Hyeonseong Gil [Thu, 30 Mar 2017 01:46:22 +0000 (10:46 +0900)]
[COMMON] thermal: samsung: Move isp_cooling_register

Change-Id: I15f4aa845684c3d1811f69799520618d6075159a
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: Move gpufreq_cooling_register
Hyeonseong Gil [Thu, 30 Mar 2017 01:41:07 +0000 (10:41 +0900)]
[COMMON] thermal: samsung: Move gpufreq_cooling_register

Change-Id: Id3de94b3f240ee786c5f3b2bf1e84d4b3aef2453
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: Move cpufreq_cooling_register
Hyeonseong Gil [Fri, 24 Mar 2017 01:49:05 +0000 (10:49 +0900)]
[COMMON] thermal: samsung: Move cpufreq_cooling_register

To remove the dependency of cpu_cooling and exynos_tmu, cooling_register will
be called by cpufreq driver.

Change-Id: Ic3fc64c5d7eeda8f4ca2c7475ad8aec753626389
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: Remove checking cpufreq
Hyeonseong Gil [Fri, 24 Mar 2017 01:39:25 +0000 (10:39 +0900)]
[COMMON] thermal: samsung: Remove checking cpufreq

To pull in init sequence of DTM, remove checking cpufreq

Change-Id: Ibaad030b047e0632786019e735b6877a6ede85a0
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[7872] thermal: samsung: Add 7872 TMU bringup code
Soomin Kim [Sun, 8 Jan 2017 08:37:50 +0000 (17:37 +0900)]
[7872] thermal: samsung: Add 7872 TMU bringup code

Change-Id: I277dffbf03cee4fa71aa600157464c0d344eab4b
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
6 years ago[COMMON] thermal: of_thermal: Add thermal zone name
Soomin Kim [Sun, 8 Jan 2017 08:35:07 +0000 (17:35 +0900)]
[COMMON] thermal: of_thermal: Add thermal zone name

Change-Id: Idda979e0d1302bdfe70c508c25d48d11f5279870
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
6 years ago[COMMON] thermal: gpu: Modify thermal control method.
Soomin Kim [Fri, 6 Jan 2017 07:22:05 +0000 (16:22 +0900)]
[COMMON] thermal: gpu:  Modify thermal control method.

Thermal driver sends frequency instead of cooling state.

Resolved migration conflicts from kernel 4.9 to 4.14.
- rename gpufreq_device -> gpufreq_cdev

Change-Id: I8f32e9a1a37bb095e4c06de41f1969bd75913a20
Signed-off-by: Chungwoo Park <cww.park2@samsung.com>
6 years ago[COMMON] thermal: gpu_cooling: Move and Modify cooling_table_init function
Soomin Kim [Fri, 6 Jan 2017 07:17:12 +0000 (16:17 +0900)]
[COMMON] thermal: gpu_cooling: Move and Modify cooling_table_init function

gpu_cooling_table_init() is moved from exynos tmu driver.
And cooling table is made with ECT since GPU throttling
information is defined in it.

Change-Id: I483359872eb1ba21a35f52b3ee6eb05f5914bb24
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
6 years ago[COMMON] thermal: gpu_cooling: Add exynos7872 related header file.
Chungwoo Park [Fri, 6 Jan 2017 07:10:26 +0000 (16:10 +0900)]
[COMMON] thermal: gpu_cooling: Add exynos7872 related header file.

Change-Id: Icc91d4db43c5163caf3564facd04f59495c8df37
Signed-off-by: Chungwoo Park <cww.park2@samsung.com>
6 years ago[COMMON] thermal: cpu_cooling: Add exynos7872 related header file
Chungwoo Park [Fri, 6 Jan 2017 07:09:46 +0000 (16:09 +0900)]
[COMMON] thermal: cpu_cooling: Add exynos7872 related header file

Change-Id: Ib6f3caaec594788a51b116f32809420d2d5a68e0
Signed-off-by: Chungwoo Park <cww.park2@samsung.com>
6 years ago[COMMON] thermal: cpu_cooling: Fix Prevent CID 11693
Hyeonseong Gil [Fri, 17 Feb 2017 08:14:31 +0000 (17:14 +0900)]
[COMMON] thermal: cpu_cooling: Fix Prevent CID 11693

Change-Id: I9e577d3cfb981910ef001aa90b0bc396f0b2741d
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: gpu_cooling: Fix Prevent CID 11404
Hyeonseong Gil [Fri, 17 Feb 2017 08:06:46 +0000 (17:06 +0900)]
[COMMON] thermal: gpu_cooling: Fix Prevent CID 11404

Change-Id: I9d00145cd8c52c11f7ec992d85ee58026abf3c7c
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: cpu_cooling: Fix SVACE WGID 95804
Hyeonseong Gil [Tue, 7 Feb 2017 10:25:18 +0000 (19:25 +0900)]
[COMMON] thermal: cpu_cooling: Fix SVACE WGID 95804

Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Resolved migration conflicts from kernel 4.9 to 4.14.
- rename cpufreq_device -> cpufreq_cdev

Change-Id: I59cab68f8a57608fe60963da5f69fcced809b397

6 years ago[COMMON] thermal: gpu_cooling: Fix SVACE defect
Hyeonseong Gil [Tue, 7 Feb 2017 09:43:21 +0000 (18:43 +0900)]
[COMMON] thermal: gpu_cooling: Fix SVACE defect

WGID: 95803, 96347, 96467

Resolved migration conflicts from kernel 4.9 to 4.14.
- rename gpufreq_device -> gpufreq_cdev

Change-Id: Id875f7bee04ab164098e82842662a550ce63b2df
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: isp_cooling: Fix SVACE defect WGID 95373
Hyeonseong Gil [Tue, 7 Feb 2017 09:41:30 +0000 (18:41 +0900)]
[COMMON] thermal: isp_cooling: Fix SVACE defect WGID 95373

Change-Id: I8acf12b4b8c85bd44b48c60e4df9f87db84c448e
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: thermal_core: Fix SVACE WGID 97218
Hyeonseong Gil [Tue, 7 Feb 2017 09:34:10 +0000 (18:34 +0900)]
[COMMON] thermal: thermal_core: Fix SVACE WGID 97218

Change-Id: Ib2526e997ff0923b746efd522f479e06219d53ab
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: Fix prevent CID 11979
Hyeonseong Gil [Fri, 20 Jan 2017 01:14:07 +0000 (10:14 +0900)]
[COMMON] thermal: samsung: Fix prevent CID 11979

Change-Id: Ief6e4b7e65496a5aad6b51404bbe0987bd3bcf29
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: Fix prevet CID 11247
Hyeonseong Gil [Fri, 20 Jan 2017 00:57:32 +0000 (09:57 +0900)]
[COMMON] thermal: samsung: Fix prevet CID 11247

Change-Id: I4ef7ab3b142e906de2c8b700419bf99303da5fc8
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: isp_cooling: Fix SVACE(WGID:82271) bug
Soomin Kim [Mon, 2 Jan 2017 04:59:47 +0000 (13:59 +0900)]
[COMMON] thermal: isp_cooling: Fix SVACE(WGID:82271) bug

Since thermal_block and function are already checked above,
these can't be NULL. So, remove unnecessary code.

Change-Id: I88f589684de306c8930253cd8195b5ac6cd52a5e
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
6 years ago[COMMON] thermal: of_thermal: Fix SVACE(WGID:82320) bug
Soomin Kim [Mon, 2 Jan 2017 04:10:38 +0000 (13:10 +0900)]
[COMMON] thermal: of_thermal: Fix SVACE(WGID:82320) bug

Uninitialized variable,'level', is used. Also, if there
is parsing error, the value of level can be strange.
So, fix both bug.

Change-Id: I21a4eaf9cfed87f6ed14c4b2c35548a0dea4cdd7
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
6 years ago[COMMON] thermal: isp: Fix ISP_FPS_TABLE_END position
Soomin Kim [Mon, 2 Jan 2017 03:31:18 +0000 (12:31 +0900)]
[COMMON] thermal: isp: Fix ISP_FPS_TABLE_END position

Change-Id: I8c19b906c4ae89323225252439810743df852143
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
6 years ago[COMMON] thermal: samsung: Introduce balance mode for DTM v0.2.2
Hyeonseong Gil [Tue, 15 Nov 2016 02:02:45 +0000 (11:02 +0900)]
[COMMON] thermal: samsung: Introduce balance mode for DTM v0.2.2

Resolved migration conflicts from kernel 4.9 to 4.14.
- Move sysfs attrs to thermal_sysfs.c

Change-Id: I100b28897f45e00c8d1b8bc4d62949ac5d1ddb03
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: Remove update cpufreq_state as 0.
Hyeonseong Gil [Fri, 21 Oct 2016 07:56:03 +0000 (16:56 +0900)]
[COMMON] thermal: samsung: Remove update cpufreq_state as 0.

Kernel 4.4, CPUFreq's policy will keep after hotplug in/out.
So, we don't need to reset the last cooling state after hotplug in.

Resolved migration conflicts from kernel 4.9 to 4.14.
- rename cpufreq_device -> cpufreq_cdev

Change-Id: I336ef6cec9444108c8c76ae8ea4cce0d2d239590
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: type definition changed
Hyeonseong Gil [Thu, 10 Nov 2016 02:01:37 +0000 (11:01 +0900)]
[COMMON] thermal: samsung: type definition changed

Change-Id: I12d747460c3759c0a5d980ffc0bd99abde15e6b7
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: Logging MCINFO MR4 status
Hyeonseong Gil [Wed, 19 Oct 2016 05:08:45 +0000 (14:08 +0900)]
[COMMON] thermal: samsung: Logging MCINFO MR4 status

Change-Id: I04823d0c9a92af9a8c433ca847189687cdbd9298
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: change correct coefficient
Hyeonseong Gil [Thu, 3 Nov 2016 01:45:22 +0000 (10:45 +0900)]
[COMMON] thermal: samsung: change correct coefficient

Resolved migration conflicts from kernel 4.9 to 4.14.
- rename cpufreq_device -> cpufreq_cdev
- rename gpufreq_device -> gpufreq_cdev

Change-Id: I86c8bfe43050cba1c12dfb55e632fa27e82f5706
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[8895] thermal: samsung: Fix point calibration type
Hyeonseong Gil [Sat, 5 Nov 2016 13:30:37 +0000 (22:30 +0900)]
[8895] thermal: samsung: Fix point calibration type

Change-Id: I6d15e999b7b8df5d48a274da6928b5195a2519f1
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: declare external variable for GPU sysfs
Jinkyu, Yang [Tue, 18 Oct 2016 09:04:19 +0000 (18:04 +0900)]
[COMMON] thermal: samsung: declare external variable for GPU sysfs

Change-Id: Iebd1587701adb7f353ab1c57c8b5460167bf518b
Signed-off-by: Jinkyu, Yang <jinkyu1.yang@samsung.com>
6 years ago[COMMON] thermal: isp: Modify loop count(KASAN bug)
Soomin Kim [Mon, 26 Sep 2016 01:27:00 +0000 (10:27 +0900)]
[COMMON] thermal: isp: Modify loop count(KASAN bug)

Since loop size is bigger than ECT table size for
thermal throttling. So, fix it.

Change-Id: Ifc4e2c37d480bf3d71a516cb4fbbb1f63b4b4612
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
6 years ago[COMMON] thermal: gpu: Cast parameter type(KASAN bug)
Soomin Kim [Fri, 23 Sep 2016 06:54:16 +0000 (15:54 +0900)]
[COMMON] thermal: gpu: Cast parameter type(KASAN bug)

The notifier in gpu_notifier.c casts parameter
to 'unsinged long' type. So, there is a type
mispatch.

Change-Id: I02f501c4fb386cb5858960857dfbd78ecdcbccd0
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
6 years ago[COMMON] thermal: samsung: Explicitly update temperature after resume
Hyeonseong Gil [Wed, 17 Aug 2016 05:22:40 +0000 (14:22 +0900)]
[COMMON] thermal: samsung: Explicitly update temperature after resume

Change-Id: I47bed03fd7d1bbf59006305f09cdf6ca3b7310e3
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: Fix SVACE error
Hyeonseong Gil [Fri, 2 Sep 2016 06:54:52 +0000 (15:54 +0900)]
[COMMON] thermal: samsung: Fix SVACE error

Avoid to divide by zero

Change-Id: Id4479af236878fa8f304c3e8d00f1a4e47c50691
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: cpu_cooling: Except cpu frequency is 0
Hyeonseong Gil [Thu, 11 Aug 2016 08:25:27 +0000 (17:25 +0900)]
[COMMON] thermal: cpu_cooling: Except cpu frequency is 0

Before initialize CPUFreq, cpufreq_quick_get() could retrun 0.

Change-Id: I7cc64d206c668721991fe9c8369ee36421d62a2f
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: Modify interrupt threshold
Hyeonseong Gil [Thu, 11 Aug 2016 04:16:53 +0000 (13:16 +0900)]
[COMMON] thermal: samsung: Modify interrupt threshold

Set TMU interrupt threshold according to trip type
to cacel the periodic workqueue if temperature is below
than certain level for throttling.

Change-Id: Ia4f436c60969ecbe3094d9f31f4da3794fd98ad7
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: power_allocator: Use last active point as switch_on
Hyeonseong Gil [Thu, 11 Aug 2016 04:14:27 +0000 (13:14 +0900)]
[COMMON] thermal: power_allocator: Use last active point as switch_on

If only one passive temperature exists,
use the last active temperature below passive point
as switch_on temperature.

Change-Id: I57a8d94683881d10af5de30d57287159517ec364
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: core: Bounded polling workqueue on CPU1
Hyeonseong Gil [Mon, 8 Aug 2016 03:45:43 +0000 (12:45 +0900)]
[COMMON] thermal: core: Bounded polling workqueue on CPU1

Resolved migration conflicts from kernel 4.9 to 4.14.

Change-Id: I1d470d7269703588b7afa1f35fcb24ceaaf9e413
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
6 years ago[COMMON] thermal: samsung: Add ISP_THROTTLING level
Soomin Kim [Sun, 14 Aug 2016 12:56:28 +0000 (21:56 +0900)]
[COMMON] thermal: samsung: Add ISP_THROTTLING level

Change-Id: Idbc0410099fff370766f4dbcbaac4887df2ffd7b
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
6 years ago[COMMON] thermal: samsung: Remove isp_cooling_table_init()
Soomin Kim [Sun, 14 Aug 2016 12:36:17 +0000 (21:36 +0900)]
[COMMON] thermal: samsung: Remove isp_cooling_table_init()

This function is moved to isp_cooling driver.

Change-Id: I68bde52bc88172ba93648eee039e5faabd6f1a61
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
6 years ago[COMMON] thermal: isp_cooling: Add cooling table initialization function
Soomin Kim [Sun, 14 Aug 2016 12:33:34 +0000 (21:33 +0900)]
[COMMON] thermal: isp_cooling: Add cooling table initialization function

Originally, isp_cooling_table_init() is located in exynos thermal driver.
But, it would be better to locate it to isp cooling driver.

Change-Id: I05c77e4d98045e5f2993212ebb2117545647adf5
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
6 years ago[COMMON] thermal: isp_cooling: Add fucntion to get fps
Soomin Kim [Sun, 14 Aug 2016 12:24:32 +0000 (21:24 +0900)]
[COMMON] thermal: isp_cooling: Add fucntion to get fps

isp_cooling_get_fps() is added to get fps value of ISP.

Change-Id: Ie6a925649757c6638035831368129c52d771d8d0
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
6 years ago[COMMON] thermal: isp_cooling: Change function name
Soomin Kim [Sun, 14 Aug 2016 12:05:09 +0000 (21:05 +0900)]
[COMMON] thermal: isp_cooling: Change function name

Since isp_cooling_get_fps() returns isp cooling level,
function name isn't matched with its operation. So,
change its function name to isp_cooling_get_level().

Change-Id: Ia3933149ae7ea3b403bb3b64554c52c10bea982d
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>