platform/adaptation/tm1/pass-hal-tm1.git
2 years agopass-hal: tm1: Update temperature property 45/264245/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20211028.093829 accepted/tizen/unified/20210926.235746 submit/tizen/20210924.100744 submit/tizen_6.5/20211028.161601 tizen_6.5.m2_release
Dongwoo Lee [Tue, 14 Sep 2021 08:14:18 +0000 (17:14 +0900)]
pass-hal: tm1: Update temperature property

Since pass core is changed to handle temperature property with range
value, it should be updated as using object which has start and end
values. Optionally, temperature object can have threshold  used for
preserving upper level policies until temperature is down enoughly.

Change-Id: Ida5a7a1492a1b2693fbb7a7b1e8d8f5063abfa4e
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
2 years agopass-hal: tm1: Add missing target_level for thermal section 12/263112/1 accepted/tizen/unified/20210827.045710 submit/tizen/20210826.082241 submit/tizen/20210826.122457
Chanwoo Choi [Thu, 26 Aug 2021 08:20:31 +0000 (17:20 +0900)]
pass-hal: tm1: Add missing target_level for thermal section

Change-Id: If75112a79e7760e981cf7ca1e2a7790b71db83e3
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2 years agopass-hal: tm1: Convert script format to json to improve readability 59/261959/3 accepted/tizen/unified/20210809.061423 submit/tizen/20210809.032652
Chanwoo Choi [Thu, 29 Jul 2021 13:10:30 +0000 (22:10 +0900)]
pass-hal: tm1: Convert script format to json to improve readability

The legacy .conf file format is not better on side of readability.
So that change the configuration file format to json style to improve
readability.

And remove unneeded pass-resource1.conf.

Change-Id: I3a2ae83bb5f2b5d9b8a9566aff24e4e2def2e16c
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agopass-hal: tm1: Fix svace warning 79/253779/1 accepted/tizen/unified/20210218.082034 submit/tizen/20210218.030331
Chanwoo Choi [Thu, 18 Feb 2021 02:50:06 +0000 (11:50 +0900)]
pass-hal: tm1: Fix svace warning

Change-Id: I35623dfb144e21e5e285a814b1e61a909ae10deb
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agopass-hal: tm1: Update pass-hal-tm1 by using hal-api-power interface 26/252626/1 accepted/tizen/unified/20210204.134513 submit/tizen/20210201.020414 submit/tizen/20210204.032624
Chanwoo Choi [Fri, 29 Jan 2021 07:35:51 +0000 (16:35 +0900)]
pass-hal: tm1: Update pass-hal-tm1 by using hal-api-power interface

Prior pass-hal-tm1 depends on PASS HAL interface (hal.h) provided by
pass-hal-devel pkg. In order to keep the new HAL API package on Tizen 6.5,
change the pass-hal-tm1 package.

[Mandatory implementation for HAL backend]
- Power HAL backend must define 'hal_backend_power_data' symbol
including the implementation of Power HAL interface.
- Include /hal/lib64/libhal-backend-power.so

Changes from v1.1.0
- Remake the pass-hal-tm1 according to hal-api-power(/platform/hal/api/power).

Change-Id: I5f68875224bb90e476532a57f659e42a1ec9dadc
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agopass-hal: tm1: Add Doze mode support 04/248904/2 accepted/tizen/unified/20201216.215949 submit/tizen/20201203.104657 submit/tizen/20201216.032817
Mateusz Majewski [Thu, 3 Dec 2020 06:38:41 +0000 (07:38 +0100)]
pass-hal: tm1: Add Doze mode support

The Doze mode is supported by the main PASS repository, but in order to
not get a bajillion of warnings (and also to actually receive DBus calls
in the daemon), we also have to enable it in the HAL layer. This commit
does just that.

Change-Id: I470b66d21b8d67f4e9c3bacf8b7d48c04734b48f

3 years agopass-hal: tm1 v1.1.0 31/240931/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.123930 accepted/tizen/6.0/unified/hotfix/20201103.052604 accepted/tizen/unified/20200831.122518 submit/tizen/20200828.025140 submit/tizen_6.0/20201029.205101 submit/tizen_6.0_hotfix/20201102.192501 submit/tizen_6.0_hotfix/20201103.114801 tizen_6.0.m2_release
Chanwoo Choi [Thu, 13 Aug 2020 02:42:11 +0000 (11:42 +0900)]
pass-hal: tm1 v1.1.0

Change dependency version of PASS daemon because the format of configuration
file was changed like 'scenario pass_level' and then verison-up.

Change-Id: I42d7796171e415416d2cd123650b3c9840f6f9d3
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agopass-hal: tm1: Add read permission to allow others to read 27/240927/1
Chanwoo Choi [Thu, 13 Aug 2020 02:20:53 +0000 (11:20 +0900)]
pass-hal: tm1: Add read permission to allow others to read

Add read permission to allow others to access the sysfs node for CPU h/w
resource.

Change-Id: I58b986f2a852391bbc2cfce020798777aa637bcf
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agopass-hal: tm1: Change smack label to give read permission everyone 08/234308/1 accepted/tizen/unified/20200528.133009 submit/tizen/20200526.021149
Chanwoo Choi [Mon, 25 May 2020 10:02:35 +0000 (19:02 +0900)]
pass-hal: tm1: Change smack label to give read permission everyone

Change smack label to give read permission everyone as following:
- System -> System:Shared

Change-Id: I1aebb9a00603fba398240d5f7f84b000b7b6c437
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agopass-hal: tm1: Update configuration using scenario pass_level for CPU0 24/224724/1 accepted/tizen/unified/20200227.121029 submit/tizen/20200227.020232
Chanwoo Choi [Tue, 11 Feb 2020 12:22:58 +0000 (21:22 +0900)]
pass-hal: tm1: Update configuration using scenario pass_level for CPU0

Change-Id: I0cd469250d80db0b331287a8c00212d892eb506a
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agopass-hal: tm1: Send exact size of pmqos data 67/213767/2 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.034306 accepted/tizen/5.5/unified/mobile/hotfix/20201027.082444 accepted/tizen/5.5/unified/wearable/hotfix/20201027.123632 accepted/tizen/unified/20190916.111608 submit/tizen/20190916.022543 submit/tizen_5.5/20191031.000010 submit/tizen_5.5/20191031.000011 submit/tizen_5.5/20191031.000013 submit/tizen_5.5_mobile_hotfix/20201026.185101 submit/tizen_5.5_wearable_hotfix/20201026.184301 tizen_5.5.m2_release
Dongwoo Lee [Wed, 11 Sep 2019 05:24:45 +0000 (14:24 +0900)]
pass-hal: tm1: Send exact size of pmqos data

To prevent buffer overflow, sends exact size of pmqos data.

Change-Id: Idd44094e3198973d7ca84bd1b67f05724080dacb
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agopass-hal: tm1: Change name of thermal actions 75/203375/1 accepted/tizen/unified/20190530.043122 submit/tizen/20190528.074510
Dongwoo Lee [Fri, 12 Apr 2019 05:56:36 +0000 (14:56 +0900)]
pass-hal: tm1: Change name of thermal actions

This changes name of thermal actions as following thermal interface
standard.

Change-Id: I84d553f45d370fe13de54d738c9cee303973a8b7
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agopass-hal: tm1: Add post dependency on security-config 07/201507/1 accepted/tizen/unified/20190318.150623 submit/tizen/20190318.000755
Dongwoo Lee [Fri, 15 Mar 2019 04:44:11 +0000 (13:44 +0900)]
pass-hal: tm1: Add post dependency on security-config

When pass HAL is being installed during image creation, systemd
accesses pass-hal.conf which includes tizen-specific user names and
group names. However, at this time if these user names and group
names doesn't exist, warning message can be printed out. This can be
resolved by adding dependency on security-config. Although tm1 image
creation doesn't have warning messages yet, this patch adds dependency
on security-config to prevent it proactively.

Change-Id: Ida6940e55b6c481dfcd2d3b81120d995ef61b8ad
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
6 years agopass-hal: tm1: Add support of 'thermal monitor' property 74/174774/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181106.202617 accepted/tizen/unified/20180410.063600 submit/tizen/20180409.024353 submit/tizen_5.0/20181101.000001 submit/tizen_5.0/20181106.000001
Chanwoo Choi [Fri, 16 Mar 2018 08:41:09 +0000 (17:41 +0900)]
pass-hal: tm1: Add support of 'thermal monitor' property

TM1 supports the following four scenarios. Each thermal scenario
has their own unique name, limited temperature and timer interval.
- ReleaseAction
- WarningAction
- LimitAction
- ShutdownAction

Change-Id: Idec94beeb43e3b47c6aca19bcc0b8655243c8004
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tm1: Fix overflow issue reported by savce 25/173525/1 accepted/tizen/unified/20180322.145122 submit/tizen/20180322.071622
Chanwoo Choi [Thu, 22 Mar 2018 06:45:00 +0000 (15:45 +0900)]
pass-hal: tm1: Fix overflow issue reported by savce

Change-Id: I65d800449f2feedfcd167f4519d44cde5902d53b
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tm1: Add thermal resource name of CPU h/w resource 58/172658/4 accepted/tizen/unified/20180316.062457 submit/tizen/20180315.064910
Chanwoo Choi [Thu, 15 Mar 2018 02:02:57 +0000 (11:02 +0900)]
pass-hal: tm1: Add thermal resource name of CPU h/w resource

TM1 board has the 'ap_therm' resource name for thermal information.

Change-Id: I9275ae99b18f24a151a95b6e3b856aca21e5657b
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tm1: Add get_temp() of cpu h/w resource 57/172657/3
Chanwoo Choi [Thu, 15 Mar 2018 00:16:30 +0000 (09:16 +0900)]
pass-hal: tm1: Add get_temp() of cpu h/w resource

Add tm1_cpu_get_temp() which reads the temperature of CPU h/w resource.

Change-Id: If90e98f01d58eb816815ba62ed8030779e01dcf5
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tm1: Add new sysfs path to get temperature 56/172656/1
Chanwoo Choi [Thu, 15 Mar 2018 02:00:13 +0000 (11:00 +0900)]
pass-hal: tm1: Add new sysfs path to get temperature

Add new sysfs path to get temperature. Permit the only read permission.

Change-Id: I759b07fb760e07a5473ee8db984dd729e0a938a4
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tm1: Release v1.0.0 53/161053/1 accepted/tizen/unified/20171123.065851 submit/tizen/20171123.001235
Chanwoo Choi [Tue, 21 Nov 2017 08:00:04 +0000 (17:00 +0900)]
pass-hal: tm1: Release v1.0.0

Detailed description for this release:
- Provide the configuration files for Spreadtrum SoC-based TM1 board
- /etc/pass/pass.conf contains the list of supported h/w resources as following:
 : pass-resource0.conf indicates the CPU cluster h/w which have four CPU.
 : pass-resource1.conf indicates the non-standard device which sends
   the specific data from tizen framework to the pass-hal layer through PMQoS.

Change-Id: I84098cd59a46ea9dab5d5307ecc4b91270a57fa2
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tm1: Fix overrun issue of array 78/152578/2 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20170929.075614 accepted/tizen/unified/20170928.072152 submit/tizen/20170927.080101 submit/tizen_4.0/20170927.080359 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
Chanwoo Choi [Tue, 26 Sep 2017 10:38:05 +0000 (19:38 +0900)]
pass-hal: tm1: Fix overrun issue of array

The 'len + 1' of argument of read() might access
the out of range of 'buf' string. This patch fixes
the overrunt issue.

Change-Id: I58845d38c23307b85369d353d82448c35afa91f6
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tm1: Remove unused version info 57/147657/1 accepted/tizen/4.0/unified/20170919.170916 accepted/tizen/unified/20170913.070648 submit/tizen/20170911.052326 submit/tizen_4.0/20170915.014015
Chanwoo Choi [Tue, 5 Sep 2017 05:36:23 +0000 (14:36 +0900)]
pass-hal: tm1: Remove unused version info

This patch removes the unused version info.

Change-Id: Ib6c946d2a706f743a63ef07c3f4a82cf279f9198
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tm1: Change the way to restart daemon after install/uninstall 39/145539/1 accepted/tizen/unified/20170824.172541 submit/tizen/20170824.064003
Wook Song [Wed, 23 Aug 2017 01:04:09 +0000 (10:04 +0900)]
pass-hal: tm1: Change the way to restart daemon after install/uninstall

Since the binary of 'awk', which is exploited to check the state of the
pass daemon itself, is not included in the Tizen image for the headless
devices, this patch changes the way to restart the PASS daemon itself
after installing or uninstalling this package.

Change-Id: Id830ee185a1fbb5f9d3f8e3fe34b7627345d1d4e
Signed-off-by: Wook Song <wook16.song@samsung.com>
6 years agopass-hal: tm1: Make nonstandard HAL work even if without TRM 43/145443/2
Wook Song [Tue, 22 Aug 2017 09:19:45 +0000 (18:19 +0900)]
pass-hal: tm1: Make nonstandard HAL work even if without TRM

Since the nonstandard interfaces of HAL is designed under the assumption
that TRM is preliminarily installed and the unix domain socket file exists
to recieve the PMQoS scenario information, PASS does not work as
intended without TRM.

This patch fixes this problem by assigning a nop function to the
interface for setting PMQoS data when the file for recieving the
scenario information does not exist at the HAL open point.

Change-Id: I5d88e531ae1782d668df01054aca07c524b8af6e
Reported-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Wook Song <wook16.song@samsung.com>
6 years agopass-hal: tm1: Remove wrong dependency of pass-hal-devel 01/144301/1 accepted/tizen/4.0/unified/20170828.224408 accepted/tizen/unified/20170822.023811 submit/tizen/20170821.043932 submit/tizen_4.0/20170828.110001
Chanwoo Choi [Wed, 16 Aug 2017 07:35:16 +0000 (16:35 +0900)]
pass-hal: tm1: Remove wrong dependency of pass-hal-devel

This package does not depend on the pass-hal-devel package.
So, this patch removes the wrong dependency.

Change-Id: I87b6d40d39f333221568f08b90a06217fd227362
Reported-by: Wook Song <wook16.song@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tm1: Add dependency on PASS 30/142430/4
Dongwoo Lee [Fri, 4 Aug 2017 01:57:51 +0000 (10:57 +0900)]
pass-hal: tm1: Add dependency on PASS

Since PASS HAL for TM1 cannot run standalone, it should be check that
PASS is installed. To do this, dependency on PASS is added to RPM spec.

Change-Id: Ib6476adecfc9a0ed679e70c85dc05b566c88ba6e
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tm1: Force to restore initial state of resource 74/138874/2 accepted/tizen/4.0/unified/20170816.020150 accepted/tizen/unified/20170804.025538 submit/tizen/20170802.103729 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
Dongwoo Lee [Fri, 21 Jul 2017 01:54:14 +0000 (10:54 +0900)]
pass-hal: tm1: Force to restore initial state of resource

Though PASS supports save/restore initial state of each resource, but
tm1 has weird pmqos interface and thus it doesn't work well.
To resolve this, pass-hal-tm1 forces to restore initial state when it
is closed.

Change-Id: I8c0591538f44a24577fea4a88d1dd86316c5a94e
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
6 years agopass-hal: tm1: Add get functions to cpu resource 88/139888/1
Dongwoo Lee [Tue, 18 Jul 2017 05:04:58 +0000 (14:04 +0900)]
pass-hal: tm1: Add get functions to cpu resource

Currently, pass-hal-tm1 doesn't have get functions for min/max
frequency and min/max number of online cpu, and cannot get initial
state of cpu resource. However, they are necessary to support
save/restore feature. For this reason those functions are added.

Change-Id: I42e502bcdcf60fc1d39380455308d81cffa7ea0e
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
6 years agopass-hal: tm1: Clean up code 87/139887/1
Dongwoo Lee [Wed, 19 Jul 2017 06:48:19 +0000 (15:48 +0900)]
pass-hal: tm1: Clean up code

To improve readability of code, some missing blank line will be added
and unnecessary braces will be removed.

Change-Id: Ia12499bc019333dac54eba12e9deab44ec5c6797
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
6 years agopass-hal: tm1: Remove the specific author information 38/137638/1 accepted/tizen/unified/20170711.180632 submit/tizen/20170710.060912
Chanwoo Choi [Fri, 7 Jul 2017 02:23:13 +0000 (11:23 +0900)]
pass-hal: tm1: Remove the specific author information

This patch removes the specific author information
from HAL_MODULE_STRUCTURE.

Change-Id: Ic99f5e5e076eba58f9b8629f67576e05b2de7884
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tm1: Fix wrong function name 12/137612/1
Dongwoo Lee [Fri, 7 Jul 2017 00:53:50 +0000 (09:53 +0900)]
pass-hal: tm1: Fix wrong function name

The function with prefix 'tm2' will be fixed.

Change-Id: Ie6410bc5c1670e52c6a5f2648a8da14b6b904ca3
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
6 years agopass-hal: tm1: Add nonstandard HAL for PMQoS support with TRM 34/137034/1 accepted/tizen/unified/20170706.193440 submit/tizen/20170705.081057
Wook Song [Tue, 4 Jul 2017 07:32:21 +0000 (16:32 +0900)]
pass-hal: tm1: Add nonstandard HAL for PMQoS support with TRM

This patch allows TM1-HAL to support the PMQoS feature with TRM. By
using nonstandard interfaces of HAL, the information of PMQoS scenario
is sent to the TRM via the local UNIX Socket protocol whenever the pass
daemon receives it.

Change-Id: Ifede3e5f6e33f74ad901439c1a20767d8614b15b
Signed-off-by: Wook Song <wook16.song@samsung.com>
6 years agopass-hal: tm1: packaging: Use %{_libdir} macro instead of /usr/lib 50/135450/1 submit/tizen/20170629.044637
Wook Song [Thu, 22 Jun 2017 09:54:12 +0000 (18:54 +0900)]
pass-hal: tm1: packaging: Use %{_libdir} macro instead of /usr/lib

This patch replaces the path referring to /usr/lib in the spec file with
the macro %{_libdir}.

Change-Id: Ia6f85906bd01a1876cb02eea4873b78dbaccc1c3
Signed-off-by: Wook Song <wook16.song@samsung.com>
6 years agopass-hal: tm1: Apply the value type change of pass_res_type 19/134919/3
Wook Song [Tue, 20 Jun 2017 08:40:19 +0000 (17:40 +0900)]
pass-hal: tm1: Apply the value type change of pass_res_type

This patch applies the change of the value type of the entry,
"pass_res_type", to the PassResource0 section of the pass.conf file.

Change-Id: Ia74dc31f75ab043ebed803cfab227b9b0e99a40e
Signed-off-by: Wook Song <wook16.song@samsung.com>
6 years agopass-hal: tm1: packaging: Restart daemon after install/uninstall 77/134877/4
Wook Song [Tue, 20 Jun 2017 07:29:36 +0000 (16:29 +0900)]
pass-hal: tm1: packaging: Restart daemon after install/uninstall

This patch adds bits of code to %post and %postun sections so that the
daemon is restarted when the package is installed/uninstalled. Note that
the daemon is only restarted in the case of that the daemon is running
before the hal package is installed/uninstalled.

Change-Id: I9d5b1c7ae01e9dca61eedebe727685a066b9d0cd
Signed-off-by: Wook Song <wook16.song@samsung.com>
6 years agopass-hal: tm1: Add pass-hal.conf to change the permission of sysfs nodes 40/134240/3
Chanwoo Choi [Thu, 15 Jun 2017 10:34:56 +0000 (19:34 +0900)]
pass-hal: tm1: Add pass-hal.conf to change the permission of sysfs nodes

The pass-hal-tm1 package handles the many sysfs nodes in order
to change the state of h/w resources. All sysfs node should
be required to change the permission from root to system_fw
because PASS daemon has the system_fw permission.

So, this patch adds new pass-hal.conf which contains
the permission information for the required sysfs nodes.

Change-Id: I62b761c101841ec0db09389ac6476d3d00d14ab6
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tm1: Remove unused scenarios 39/134239/1
Chanwoo Choi [Thu, 15 Jun 2017 10:36:24 +0000 (19:36 +0900)]
pass-hal: tm1: Remove unused scenarios

This patch removes the unused scenarios except for AppLaunch and
UltraPowerSaving.

Change-Id: Iabfa7d26fbbb353cfecc43a55ae48128ce34b5a6
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tm1: Add missing license information 92/128692/1
Chanwoo Choi [Thu, 11 May 2017 05:26:50 +0000 (14:26 +0900)]
pass-hal: tm1: Add missing license information

This patch adds the missing license information for *.(c|h).
The pass-hal-tm1 uses the Apache-2.0 License

Change-Id: I2fd6b7a34230dcd34b3c55f323cc58c50899b60f
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tm1: Add LICENSE file 91/128691/1
Chanwoo Choi [Thu, 11 May 2017 05:23:01 +0000 (14:23 +0900)]
pass-hal: tm1: Add LICENSE file

This patch adds the missing LICENSE file which is Apache-2.0.

Change-Id: If59ec958744ff80ac2b4314113131752252e2c38
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm1: Add resource name for open and close function 06/127106/2 accepted/tizen/unified/20170426.200228 submit/tizen/20170426.080126 tizen_4.0.m1_release
Chanwoo Choi [Wed, 26 Apr 2017 07:42:52 +0000 (16:42 +0900)]
pass-hal: tm1: Add resource name for open and close function

This patch just adds the new argument of h/w resource name
when calling the open and close functions. The resource name
will be used to identify the h/w resource.

Change-Id: If919c848c89b94906bf5930216b2db678369c87c
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm1: Modify close function to unlock PMQoS 90/121690/3
Wook Song [Tue, 28 Mar 2017 11:09:27 +0000 (20:09 +0900)]
pass-hal: tm1: Modify close function to unlock PMQoS

This patch modifies the close function so that it unlocks all of the
PMQoS states for the CPU resource when the PASS daemon is stopped.

Change-Id: Ib2921253eab0c40454f0527b2ddd624235c6511d
Signed-off-by: Wook Song <wook16.song@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopackaging: Add ExclusiveArch property to build on armv7l architecture 91/121491/1 accepted/tizen_mobile accepted/tizen/mobile/20170331.082932 accepted/tizen/unified/20170331.083114 submit/tizen/20170330.074232
Chanwoo Choi [Tue, 28 Mar 2017 05:55:27 +0000 (14:55 +0900)]
packaging: Add ExclusiveArch property to build on armv7l architecture

This patch adds the 'ExclusiveArch' property in order to build
this package only for armv7l.

Change-Id: If70ed076cb54642082386f7e1435d54ab360f7cd
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm1: Fix value of governor type for CPU resource 85/116585/2
Chanwoo Choi [Mon, 27 Feb 2017 05:52:32 +0000 (14:52 +0900)]
pass-hal: tm1: Fix value of governor type for CPU resource

This patch fixes the value of governor type for CPU  h/w resource
because PASS core redefines the governor types as following:
- PASS_GOV_DUMMY         : -1
- PASS_GOV_BASIC         : 0
- PASS_GOV_HOTPLUG_ONLY  : 1
- PASS_GOV_RADIATION     : 2
- PASS_GOV_STEP          : 3

The CPU resource on TM1 use the PASS_GOV_HOTPLUG_ONLY governor
which uses both HAL interface, Resource controller and Hotplug interface.

Change-Id: I404c30a3879c8fbbee152e241c55025d1ef2c76f
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm1: Remove pass_compatible entry from resource conf file 00/114800/2
Wook Song [Wed, 15 Feb 2017 06:44:59 +0000 (15:44 +0900)]
pass-hal: tm1: Remove pass_compatible entry from resource conf file

This patch removes the pass_compatible entry from the resource config
file (e.g., pass-resource0.conf) because it is not required any more.

Change-Id: Id19e2194db9cfd98ea0b7cf90ee6d95fefa2df6c
Signed-off-by: Wook Song <wook16.song@samsung.com>
7 years agopass-hal: tm1: Add configuration files for resources 83/114783/5
Wook Song [Wed, 15 Feb 2017 05:15:31 +0000 (14:15 +0900)]
pass-hal: tm1: Add configuration files for resources

This patch adds the new configuration files for resources of TM1
board.
- pass.conf contains the number of supported resources and the
  information
- pass-resource0.conf is the configuration file for CPU cores on TM1.

Change-Id: I0edb434adc34e85051ddb6522032d8413aa7d0e1
Signed-off-by: Wook Song <wook16.song@samsung.com>
7 years agopass-hal: tm1: Add implementation of HAL for CPU 82/114782/4
Wook Song [Tue, 14 Feb 2017 08:37:23 +0000 (17:37 +0900)]
pass-hal: tm1: Add implementation of HAL for CPU

This patch adds an implementation of the PASS HAL for CPU.

Change-Id: I7d63c225a64cb6a422e22481c8fb690402eb7a64
Signed-off-by: Wook Song <wook16.song@samsung.com>
7 years agopass-hal-tm1: Create spec file for RPM package 81/114781/1
Wook Song [Thu, 9 Feb 2017 05:59:47 +0000 (14:59 +0900)]
pass-hal-tm1: Create spec file for RPM package

This patch creates files required to build the RPM package. After
applying this patch, you can build an empty RPM package named
pass-hal-tm1.

Change-Id: I8ceee3f10ef3134aefba8103ff9244d7189f218d
Signed-off-by: Wook Song <wook16.song@samsung.com>
7 years agoInitial empty repository master
Tizen Infrastructure [Mon, 13 Feb 2017 04:17:14 +0000 (20:17 -0800)]
Initial empty repository