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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Hyeonseong Gil [Wed, 3 Aug 2016 02:07:59 +0000 (11:07 +0900)]
[COMMON] thermal: samsung: Set NUM_PROBE value
After suspend and resume, NUM_PROBE value was initialized.
So, save the set value from bootloader at probe time
and write it to TMU_CONTROL1 SFR.
Change-Id: I102d8dbc75168540a06ca27c137fcd2bd0e2b7ba
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Hyeonseong Gil [Mon, 1 Aug 2016 07:50:20 +0000 (16:50 +0900)]
[COMMON] thermal: samsung: Change Timing Control for TEM1456X
For temperature sensor of TEM1456X, timing fields need
to be set as 0x0A28.
Change-Id: Ife7d9baba89b811d2ed413e4be7546e754591146
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Soomin Kim [Mon, 1 Aug 2016 07:53:52 +0000 (16:53 +0900)]
[COMMON] thermal: samsung: Change temp. translation function
code_to_temp_with_index() is changed to code_to_temp_with_sensorinfo()
to sync with temp_to_code_with_sensorinfo() function.
Change-Id: I86475785162a5092b69a03addc13cef69ee496f6
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Mon, 1 Aug 2016 06:53:01 +0000 (15:53 +0900)]
[COMMON] thermal: samsung: Set HW trip for actived sensor
Originally, if governor is power allocator, HW trip isn't
set. This patch supports HW trip for all actived sensors.
Change-Id: Ic93568c2297cd4d13c33e08734005e1e9c247114
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Fri, 29 Jul 2016 03:44:14 +0000 (12:44 +0900)]
[COMMON] thermal: samsung: fix MUX_ADDR mask value
Change-Id: I4d9636953371b34aa379a9c2874b68299e459d20
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Thu, 28 Jul 2016 10:56:03 +0000 (19:56 +0900)]
[COMMON] thermal: gpu_cooling: Fix the ECT parsing bug
Change-Id: I8e1d9ae678e25986b76ddd655adfac3c626e2c70
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Thu, 28 Jul 2016 07:41:16 +0000 (16:41 +0900)]
[COMMON] thermal: gpu_cooling: Get parameter for PI control
Change-Id: If591611e788369ee944e3be105e62fe1660c113f
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Thu, 28 Jul 2016 07:06:56 +0000 (16:06 +0900)]
[8895] thermal: samsung: Save avg_con value
At this moment, G3D sensor doesn't have right value
for controlling AVG_CON register. So, save the value
of CPU and set it.
Change-Id: Ibac586e5ff5692af882738571155898c2d144966
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Thu, 28 Jul 2016 06:33:05 +0000 (15:33 +0900)]
[8895] thermal: samsung: Change AVG_CON setting
If thermal sensor is TEM1002X, AVG_CON register is
used. If 2X, 4X mode is used, EN_DEM bit sholud be
set to 1. In case of the other mode, this bit isn't
set. This setting is only needed for TEM1002X. Other
sensors like TEM1455X, TEM1456X isn't needed.
Change-Id: I5fe47bdb4f67474c594770214a3dca3a830cf3f6
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Thu, 28 Jul 2016 06:01:51 +0000 (15:01 +0900)]
[8895] thermal: samsung: Set MUX_ADDR with sensor type
MUX_ADDR register should be set according to sensor type
to operate normally. In case of TEM1455X, this value must
be 0x2 and in case of TEM1456X must be 0x6.
Change-Id: If9b2bad88968c02a1276a77fbef8f130d44961ee
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Thu, 28 Jul 2016 05:52:04 +0000 (14:52 +0900)]
[COMMON] thermal: samsung: Parse thermal sensor type
Some control value should be set according to sensor type.
So, define the member variable to exynos_tmu_platform_data
sturct and parse it from DT.
Change-Id: Ic0ab32c1c5bc37ad8c86909a1beb2d53504d88d3
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Tue, 26 Jul 2016 06:56:32 +0000 (15:56 +0900)]
[COMMON] thermal: cpu_cooling: Get parameter for PI control
Change-Id: I45db38764afbdfc39c0fee67b7ba5ba0185b456c
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Tue, 26 Jul 2016 05:32:22 +0000 (14:32 +0900)]
[COMMON] thermal: samsung: Change ECT parsing error
When there is no thermal zone data in ECT, just use
default value defined in DT and don't make a error.
Since thermal sensor registration can be processed
normally, we can use the value defined in DT.
Change-Id: Ia39ede8d87d7093fe7c055d0058601e2a1773e53
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Tue, 19 Jul 2016 00:41:58 +0000 (09:41 +0900)]
[COMMON] thermal: samsung: Parse ECT data for throttling
Throttling temperature and frequency data are parsed
from ECT. These data are swapped after binding thermal
sensor and thermal zone because exynos_tmu_data can't be
referenced before that time.
Change-Id: I19f52dd509e859574142a31f3f896368de03cb19
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Mon, 25 Jul 2016 07:06:25 +0000 (16:06 +0900)]
[8895] thermal: samsung: Fix threshold offset
If sensor number is over 1, threshold register offset
should be start from 0x170.
Change-Id: Ia995e4c42cec74b79395900699fbb70b66be30e2
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Mon, 25 Jul 2016 05:12:44 +0000 (14:12 +0900)]
[8895] thermal: samsung: Fix the offset of INTEN and INTPEN
If sensor number is over 5, INTEN offset starts 0x310
and INTPEN offset starts 0x318.
Change-Id: I9fbc9b90bbadb4783485caed00d54a701e0fd087
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Sat, 23 Jul 2016 07:25:02 +0000 (16:25 +0900)]
[8895] thermal: samsung: Add thermal emulation function
Add thermal emulation function for Exynos8895.
Change-Id: I27ffeb491593709e331799a5eca0c7c75e6b5d8b
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Sat, 23 Jul 2016 04:23:57 +0000 (13:23 +0900)]
[8895] thermal: samsung: Use each sensor information
To improve temperature accuracy, each sensor uses its own
information.
Change-Id: I1013ea30c12bb2b58e449ae694e8b3b245798e45
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Thu, 21 Jul 2016 13:53:45 +0000 (22:53 +0900)]
[8895] thermal: samsung: Remove unnecessary array
The array variable "temp_data" isn't necessary when
read and caculate the temperature. So, remove it.
Change-Id: Ifa87af5857986d9b3fb5ede8e19360fe9a07d834
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Soomin Kim [Thu, 21 Jul 2016 13:41:03 +0000 (22:41 +0900)]
[COMMON] thermal: samsung: Change property name
The property name in DT is changed to from "mode"
to "sensing_mode". Also, the thermal driver parses
property with the name.
Change-Id: I5c579a3f71634f81ff3e58421cd0cff8a11c291e
Signed-off-by: Soomin Kim <sm8326.kim@samsung.com>
Hyeonseong Gil [Fri, 22 Jul 2016 08:56:51 +0000 (17:56 +0900)]
[COMMON] thermal: samsung: logging exynos_ss_thermal
Logging temperature and cpu max frequency on exynos_ss
Resolved migration conflicts from kernel 4.9 to 4.14.
- rename cpufreq_device -> cpufreq_cdev
- rename cool_dev -> cdev
Change-Id: If30e0780800f5ec3a56684750ab6c3c88dabae91
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Hyeonseong Gil [Mon, 18 Jul 2016 06:08:39 +0000 (15:08 +0900)]
[COMMON] thermal: samsung: Remove unnecessary kboject_uevent
Change-Id: I5cee3139d72457a77c40cf014feda118b90c40d7
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Hyeonseong Gil [Mon, 18 Jul 2016 06:05:38 +0000 (15:05 +0900)]
[COMMON] thermal: core: Check thermal_zone mode.
If mode is THERMAL_DEVICE_DISABLED,
skip reading temperature and throttling.
Change-Id: I708c9f29ee417c8f6fc941162d9aa403a88dc084
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Hyeonseong Gil [Mon, 18 Jul 2016 06:02:46 +0000 (15:02 +0900)]
[COMMON] thermal: samsung: Fix cooling_deivce regstier fail.
If cooling_device register is failed,
we do not want to enable thermal zone.
Change-Id: Id7b1b0380db0d3b924cbaa02c42977d7face4612
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Hyeonseong Gil [Wed, 13 Jul 2016 08:45:29 +0000 (17:45 +0900)]
[COMMON] thermal: samsung: Parse power coeff from ECT
Change-Id: I08b54b3392b220a4ef1cc6de8d7b97ecbed5581e
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Hyeonseong Gil [Mon, 11 Jul 2016 07:27:30 +0000 (16:27 +0900)]
[COMMON] thermal: of-thermal: parse integral_cutoff from dt
Change-Id: I34fae59be8f682ccf66bd2f077a24c9b0f1ae0c0
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Hyeonseong Gil [Thu, 2 Jun 2016 00:54:08 +0000 (09:54 +0900)]
[COMMON] theraml: gpu_cooling: Skip util normalize power
Resolved migration conflicts from kernel 4.9 to 4.14.
- rename gpufreq_device -> gpufreq_cdev
Change-Id: If0debb54d070a3c5797aa8fc4a7a46b0eaa51004
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Hyeonseong Gil [Mon, 16 May 2016 11:37:01 +0000 (20:37 +0900)]
[COMMON] theraml: cpu_cooling: Skip util normalize power
Resolved migration conflicts from kernel 4.9 to 4.14.
- rename cpufreq_device -> cpufreq_cdev
- allowed_cpus -> policy->related_cpus
Change-Id: I4dcd4a7d61ec6d7d33b4032dac2e4aaf26e48cf7
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Hyeonseong Gil [Wed, 4 May 2016 05:44:32 +0000 (14:44 +0900)]
[COMMON] thermal: gpu_cooling: add static power table
If gpu_cooling is registered for power_allocator governor,
build static power table with coefficient from ECT
and look up it in accordance with temperature and voltage.
Resolved migration conflicts from kernel 4.9 to 4.14.
- rename gpufreq_device -> gpufreq_cdev
Change-Id: I97ddb8b3ee3841eff98941059f4b5834213bf946
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Hyeonseong Gil [Mon, 11 Jul 2016 06:54:19 +0000 (15:54 +0900)]
[COMMON] thermal: cpu_cooling: add static power table
If cpu_cooling is registered for power_allocator governor,
build static power table with coefficient from ECT
and look up it in accordance with temperature and voltage.
Resolved migration conflicts from kernel 4.9 to 4.14.
- rename cpufreq_device -> cpufreq_cdev
- allowed_cpus -> policy->related_cpus
Change-Id: I516c9f5796cda6b4e64c9448a6565086443369a8
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Hyeonseong Gil [Wed, 4 May 2016 07:43:48 +0000 (16:43 +0900)]
[COMMON] thermal: power_allocator: anti-windup for integral term
Change-Id: Id62b77cc74dc69c9d54a43574d732c5bb16b1535
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Hyeonseong Gil [Fri, 1 Apr 2016 00:39:23 +0000 (09:39 +0900)]
[COMMON] thermal: gpu_cooling: introduce power_allocator API
Resolved migration conflicts from kernel 4.9 to 4.14.
- rename gpufreq_device -> gpufreq_cdev
- but keep up idr, power_table and build_dyn_power_table
Change-Id: I9e18fb576053a2d2371a79c11757be0364982fb6
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
Hyeonseong Gil [Mon, 28 Mar 2016 07:04:09 +0000 (16:04 +0900)]
[COMMON] thermal: of-thermal: parse power allocator param from dt
Change-Id: If2870d343f51db146fa5498c875e064510b5c8d6
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>