platform/adaptation/tw2/pass-hal-tw2.git
4 years agopass-hal: tw2: Update configuration using scenario pass_level for CPU0/Memory 01/225801/2 accepted/tizen/unified/20200227.121032 submit/tizen/20200227.020232
Chanwoo Choi [Mon, 24 Feb 2020 11:35:34 +0000 (20:35 +0900)]
pass-hal: tw2: Update configuration using scenario pass_level for CPU0/Memory

Change-Id: I0006fcae5985be209e17249a9a28d606f595ced4
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
5 years agopass-hal: tw2: Send exact size of pmqos data 71/213771/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.004200 accepted/tizen/5.5/unified/mobile/hotfix/20201027.082855 accepted/tizen/5.5/unified/wearable/hotfix/20201027.123914 accepted/tizen/unified/20190916.111611 submit/tizen/20190916.022543 submit/tizen_5.5/20191031.000010 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 06:37:40 +0000 (15:37 +0900)]
pass-hal: tw2: Send exact size of pmqos data

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

Change-Id: I8e7ef967e619a5f722546754479a1aaed9a10c8c
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agopass-hal: tw2: Change name of thermal actions 76/203376/1 accepted/tizen/unified/20190530.043116 submit/tizen/20190528.074510
Dongwoo Lee [Fri, 12 Apr 2019 06:13:26 +0000 (15:13 +0900)]
pass-hal: tw2: Change name of thermal actions

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

Change-Id: I4668b70877598ca2435ce186402e7e0d29230268
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
5 years agopass-hal: tw2: Add post dependency on security-config 08/201508/1 accepted/tizen/unified/20190318.150627 submit/tizen/20190317.235546 submit/tizen/20190317.235722
Dongwoo Lee [Fri, 15 Mar 2019 05:12:22 +0000 (14:12 +0900)]
pass-hal: tw2: 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 tw2 image
creation doesn't have warning messages yet, this patch adds dependency
on security-config to prevent it proactively.

Change-Id: I3b0912bd46853abe5930160761146c6a3eed8bea
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
6 years agopass-hal: tw2: Add support of 'thermal monitor' property 73/174773/2 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.012821 accepted/tizen/5.0/unified/20181106.202851 accepted/tizen/unified/20180410.063603 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: tw2: Add support of 'thermal monitor' property

TW2 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: tw2: Fix overflow issue reported by svace 26/173526/1 accepted/tizen/unified/20180322.145124 submit/tizen/20180322.071622
Chanwoo Choi [Thu, 22 Mar 2018 06:46:07 +0000 (15:46 +0900)]
pass-hal: tw2: Fix overflow issue reported by svace

Change-Id: I2b5df07f99074bff5b54f57bb18f878fdd826106
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tw2: Add thermal resource name of CPU h/w resource 64/172664/3 accepted/tizen/unified/20180316.062459 submit/tizen/20180315.064910
Chanwoo Choi [Thu, 15 Mar 2018 05:37:07 +0000 (14:37 +0900)]
pass-hal: tw2: Add thermal resource name of CPU h/w resource

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

Change-Id: I0521326c6e3e93c37ed160da6d0a5621e4b755a9
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tw2: Add get_temp() of cpu h/w resource 63/172663/2
Chanwoo Choi [Thu, 15 Mar 2018 05:36:06 +0000 (14:36 +0900)]
pass-hal: tw2: Add get_temp() of cpu h/w resource

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

Change-Id: I3b3a9f39fe7a797db7e13a8e31b7df6489d45f5f
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: tw2: Add new sysfs path to get temperature 62/172662/1
Chanwoo Choi [Thu, 15 Mar 2018 05:34:24 +0000 (14:34 +0900)]
pass-hal: tw2: Add new sysfs path to get temperature

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

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

Detailed description for this release:
- Provide the configuration files for Exynos7270-based TW2 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 two CPU.
 : pass-resource1.conf indicates the Memory h/w.
 : pass-resource2.conf indicates the non-standard device which sends
   the specific data from tizen framework to the pass-hal layer through PMQoS.

Change-Id: I5d78e397b5cbc0ce97d675520e28239d37387213
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tw2: Disable AppLaunch scenario for memory h/w resource 84/155184/1 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20171017.211715 accepted/tizen/unified/20171016.064739 submit/tizen/20171016.044753 submit/tizen_4.0/20171016.044801 tizen_4.0.IoT.p2_release tizen_4.0.m2_release
Chanwoo Choi [Thu, 12 Oct 2017 08:27:40 +0000 (17:27 +0900)]
pass-hal: tw2: Disable AppLaunch scenario for memory h/w resource

This patch disables the 'AppLaunch' scenario for memorh h/w resource
in order to keep the 4096 byte of the fault_around_bytes.

Change-Id: Id9b133629fea223fb11224da1a94b81920c39d85
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tw2: Fix overrun issue of array 75/152575/3 accepted/tizen/4.0/unified/20170929.075609 accepted/tizen/unified/20170928.072147 submit/tizen/20170927.080101 submit/tizen_4.0/20170927.080359 tizen_4.0.IoT.p1_release
Chanwoo Choi [Tue, 26 Sep 2017 10:30:04 +0000 (19:30 +0900)]
pass-hal: tw2: 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 overrun issue of array.

Change-Id: If227dd582b74fc5fc0dc3a875526a642c098f84c
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tw2: Add pass-resource5.conf for memory h/w device 55/148155/2 accepted/tizen/4.0/unified/20170919.170911 accepted/tizen/unified/20170913.070642 submit/tizen/20170911.052326 submit/tizen_4.0/20170915.014015
Chanwoo Choi [Wed, 6 Sep 2017 08:18:17 +0000 (17:18 +0900)]
pass-hal: tw2: Add pass-resource5.conf for memory h/w device

This patch adds the new resource configuration for the memory h/w device
in order to handle the 'fault_around_bytes'[1] element.

The 'fault_around_bytes' indicates the number of bytes to be mapped
around the fault. If the value is low(e.g., 4096), it is able to
increase the empty memory on normal case. On the other hand,
if the value is high (e.g., 65536), it is able to improve
the performance by mapping the huge pages such as the app launching.

[1] https://lkml.org/lkml/2016/4/18/612

And this patch adjusts the sequence between memory and
nonstanard type because when writing the pass.conf file,
please recommend to locate the 'nonstandard' resource type
on the last in the pass.conf.

Change-Id: I585587c705f04844602a01b2f3ec7ef4269ddb88
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tw2: Remove unused version info 60/147660/1
Chanwoo Choi [Tue, 5 Sep 2017 05:38:58 +0000 (14:38 +0900)]
pass-hal: tw2: Remove unused version info

This patch removes the unused version info.

Change-Id: I46e989671472b912a9e38e10eca8c4b48b05a67e
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tw2: Make nonstandard HAL work even if without TRM 77/145677/1 accepted/tizen/unified/20170824.172536 submit/tizen/20170824.064003
Wook Song [Wed, 23 Aug 2017 08:16:10 +0000 (17:16 +0900)]
pass-hal: tw2: Make nonstandard HAL work even if without TRM

Since the nonstandard interfaces of HAL are 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 to receive the scenario
information does not exist at the HAL open point.

Change-Id: Iea895670268aa49ed3878b10253f0266e8804f5d
Reported-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Wook Song <wook16.song@samsung.com>
7 years agopass-hal: tw2: Change the way to restart daemon after install/uninstall 45/145545/1
Wook Song [Wed, 23 Aug 2017 01:40:34 +0000 (10:40 +0900)]
pass-hal: tw2: Change the way to restart daemon after install/uninstall

This patch simply changes the way to restart the pass daemon after
installing or uninstalling this package. 'awk' is no longer needed. Note
that the option 'try-restart' of systemctl is to restart one or more
units (in this context, the pass daemon) if active.

Change-Id: I05c5a076831babdf63dc644b4b9e4daa13c0ec2c
Signed-off-by: Wook Song <wook16.song@samsung.com>
7 years agopass-hal: tw2: Remove wrong dependency of pass-hal-devel 03/144303/1 accepted/tizen/4.0/unified/20170828.224450 accepted/tizen/unified/20170822.023806 submit/tizen/20170821.043932 submit/tizen_4.0/20170828.110001
Chanwoo Choi [Wed, 16 Aug 2017 07:37:38 +0000 (16:37 +0900)]
pass-hal: tw2: 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: I8ff87679c3f40a170242ed0c2beb5e83631c0174
Reported-by: Wook Song <wook16.song@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tw2: Add dependency on PASS 22/142522/1
Dongwoo Lee [Fri, 4 Aug 2017 01:57:51 +0000 (10:57 +0900)]
pass-hal: tw2: Add dependency on PASS

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

Change-Id: I7c1248aab0845ac65b5e644459a8c18c62a78a99
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
7 years agopass-hal: tw2: Force to restore initial state of resource 66/139866/3 accepted/tizen/4.0/unified/20170816.013938 accepted/tizen/4.0/unified/20170816.020305 accepted/tizen/unified/20170804.025534 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 00:38:36 +0000 (09:38 +0900)]
pass-hal: tw2: Force to restore initial state of resource

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

Change-Id: Ia6420122f1bd858c8a38a2702bcffa2e8524d395
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
7 years agopass-hal: tw2: Add get functions to cpu resource 65/139865/2
Dongwoo Lee [Tue, 18 Jul 2017 05:04:58 +0000 (14:04 +0900)]
pass-hal: tw2: Add get functions to cpu resource

Currently, pass-hal-tw2 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: I85d00f0e2b18caed30a9deeddad5fbe89cb12579
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
7 years agopass-hal: tw2: Clean up code 64/139864/1
Dongwoo Lee [Wed, 19 Jul 2017 06:48:19 +0000 (15:48 +0900)]
pass-hal: tw2: Clean up code

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

Change-Id: Ic7771c5fe3de75483ea8735eae2c2c2dc675bb81
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
7 years agopass-hal: tw2: Add nonstandard HAL for PMQoS support with TRM 76/137576/3 accepted/tizen/unified/20170711.180627 submit/tizen/20170710.060912
Wook Song [Tue, 4 Jul 2017 07:32:21 +0000 (16:32 +0900)]
pass-hal: tw2: Add nonstandard HAL for PMQoS support with TRM

This patch allows TW2-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.

Signed-off-by: Wook Song <wook16.song@samsung.com>
[retrieved from PASS-hal-tm1]
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Change-Id: Id3ff97cc24c88c639aeb98ecc7a4c04454380be1

7 years agopass-hal: tw2: Add configuration files for resources 75/137575/3
Wook Song [Wed, 15 Feb 2017 05:15:31 +0000 (14:15 +0900)]
pass-hal: tw2: Add configuration files for resources

This patch adds the new configuration files for resources of tw2
board.
- pass.conf contains the number of supported resources and the
  information.
- pass-hal.conf contains the permission information for the required
  sysfs node.
- pass-resource0.conf is the configuration file for CPU cores on tw2.

Signed-off-by: Wook Song <wook16.song@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
[Retrieved from pass-hal-tm1]
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Change-Id: Ibac9ee4acfb92b7608fc771b88fd37f00baad7ef

7 years agopass-hal: tw2: Add implementation of HAL for CPU 74/137574/3
Wook Song [Tue, 14 Feb 2017 08:37:23 +0000 (17:37 +0900)]
pass-hal: tw2: Add implementation of HAL for CPU

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

Signed-off-by: Wook Song <wook16.song@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
[Retrived from pass-hal-tm1]
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Change-Id: I38d34319a3a98fd142cca755dacbb65d557dbd7c

7 years agopass-hal: tw2: Create spec file for RPM package 73/137573/3
Wook Song [Thu, 9 Feb 2017 05:59:47 +0000 (14:59 +0900)]
pass-hal: tw2: 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-tw2.

Signed-off-by: Wook Song <wook16.song@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
[retrieved from pass-hal-tm1]
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Change-Id: I109a4502c4500cfeb52e346928ec3b9dccee73f1

7 years agoInitial empty repository master
Tizen Infrastructure [Mon, 3 Jul 2017 02:56:30 +0000 (02:56 +0000)]
Initial empty repository