platform/adaptation/rpi/pass-hal-rpi.git
2 years agopass-hal: rpi: Replace LF with space from buffer 25/279225/3 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_unified_riscv tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/7.0/unified/20221110.062053 accepted/tizen/7.0/unified/hotfix/20221116.104454 accepted/tizen/8.0/unified/20231005.092515 accepted/tizen/unified/20220805.131739 accepted/tizen/unified/20220809.093641 accepted/tizen/unified/riscv/20231220.095316 submit/tizen/20220805.011353 tizen_7.0_m2_release tizen_8.0_m2_release
Chanwoo Choi [Thu, 4 Aug 2022 02:27:55 +0000 (11:27 +0900)]
pass-hal: rpi: Replace LF with space from buffer

Change-Id: I007af41740cde0f6d1af358a17665af4437ce25d
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2 years agoscripts: Add display/disk resource configuration 20/279220/4
Chanwoo Choi [Fri, 22 Jul 2022 04:00:49 +0000 (13:00 +0900)]
scripts: Add display/disk resource configuration

Change-Id: Idb79195dc414aaa9f2c9cab2d7cc6a7409c05106
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agopass-hal: rpi: Update temperature property 46/264246/1 accepted/tizen_6.5_unified tizen_6.5 accepted/tizen/6.5/unified/20211028.093428 accepted/tizen/unified/20210926.235740 submit/tizen/20210924.100744 submit/tizen_6.5/20211028.161501 tizen_6.5.m2_release
Dongwoo Lee [Tue, 14 Sep 2021 06:39:21 +0000 (15:39 +0900)]
pass-hal: rpi: 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: Ie07c9f70334070ad9f83ead27aa91e4f51ba381d
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
3 years agopass-hal: rpi: Convert script format to json to improve readability 53/261953/3 accepted/tizen/unified/20210809.061431 submit/tizen/20210809.032652
Chanwoo Choi [Tue, 27 Jul 2021 05:39:07 +0000 (14:39 +0900)]
pass-hal: rpi: 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.

Change-Id: I378d14bfae6f0ae3bbb58362e2eda0212cef6b11
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agopass-hal: rpi: Add support of Performance mode 44/254444/2 accepted/tizen/unified/20210303.220413 submit/tizen/20210303.073452
Chanwoo Choi [Wed, 3 Mar 2021 04:00:01 +0000 (13:00 +0900)]
pass-hal: rpi: Add support of Performance mode

When Performance mode, set the highest CPU frequency
and maximize fault_around_bytes in order to guarantee the high-performance.

Change-Id: I5288885458ec9c7e0257b2d3b2d091be320d1583
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agopass-hal: rpi: Fix svace warnings 82/253782/1 accepted/tizen/unified/20210218.082042 submit/tizen/20210218.030331
Chanwoo Choi [Thu, 18 Feb 2021 03:09:22 +0000 (12:09 +0900)]
pass-hal: rpi: Fix svace warnings

Change-Id: I50d416383d832ef2430c313f46923a0c9593cb85
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agopass-hal: rpi: Remove unsupportd backend functions 70/253270/1 accepted/tizen/unified/20210208.134728 submit/tizen/20210208.080602
Chanwoo Choi [Mon, 8 Feb 2021 06:26:32 +0000 (15:26 +0900)]
pass-hal: rpi: Remove unsupportd backend functions

Remove unsupportd backend functions as following:
- remove hotplug_ops because rpi4 has been supported the dynamic CPU hotplug
- remove the up_threshold and down_threshold of ondemand governor
because rpi4 uses the schedutil cpufreq governor.

Change-Id: I1fe1a3f8eebae12608779d64bfbc554a9f024ee5
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agopass-hal: rpi: v1.2.0 and Remove unused dlog dependency 44/252244/2 accepted/tizen/unified/20210204.134505 submit/tizen/20210201.020414 submit/tizen/20210204.032624
Chanwoo Choi [Fri, 22 Jan 2021 04:52:33 +0000 (13:52 +0900)]
pass-hal: rpi: v1.2.0 and Remove unused dlog dependency

Change the version due to following changes and remove unused dlog
dependency.

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

Change-Id: Ibbdfa2cfd1841cdde0ba08e19600974a25f14857
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agopass-hal: rpi: Update pass-hal-rpi by using hal-api-power interface 61/251361/10
Chanwoo Choi [Thu, 7 Jan 2021 13:21:59 +0000 (22:21 +0900)]
pass-hal: rpi: Update pass-hal-rpi by using hal-api-power interface

Prior pass-hal-rpi 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-rpi 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

Change-Id: Ib705482d398b5d0d3b3249b896fb477e882f5da6
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agopass-hal: rpi: Remove unneeded header files 32/246032/2
Chanwoo Choi [Thu, 22 Oct 2020 10:58:59 +0000 (19:58 +0900)]
pass-hal: rpi: Remove unneeded header files

Change-Id: Ie9e2374e88f04f298b446ba2ef6dcb2e011e44c6
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agopass-hal: rpi: v1.1.0 30/240930/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.123552 accepted/tizen/6.0/unified/hotfix/20201103.051422 accepted/tizen/unified/20200831.122526 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:39:46 +0000 (11:39 +0900)]
pass-hal: rpi: 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: Ic1a239a842027b07efe85cdc1293e77dc723c06c
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agopass-hal: rpi: script: Add memory configuration file for fault_around_bytes 74/239674/3 accepted/tizen/unified/20200813.122636 submit/tizen/20200812.094312
Chanwoo Choi [Wed, 29 Jul 2020 01:18:25 +0000 (10:18 +0900)]
pass-hal: rpi: script: Add memory configuration file for fault_around_bytes

The fault_around_bytes has the follwowing policy:
- Default value : 4K
- In case of AppLaunch : 4K

Change-Id: I92b7c1bd010d2a093dcf37d12d1930a4c23b6d4c
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agopass-hal: rpi: Add support of memory resource for handling fault_around_bytes 73/239673/3
Chanwoo Choi [Wed, 29 Jul 2020 01:16:29 +0000 (10:16 +0900)]
pass-hal: rpi: Add support of memory resource for handling fault_around_bytes

In order to handle fault_around_bytes according to the PM QoS scenario,
add code for supporting the memory h/w resource.

Change-Id: Ie7681e7528eb2eab0643f00bb5401436ff7a26bc
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agopass-hal: rpi: Edit pass-hal.conf path into /usr/lib/tmpfiles.d 11/239611/2 accepted/tizen/unified/20200729.165601 submit/tizen/20200729.021734
Chanwoo Choi [Tue, 28 Jul 2020 06:30:06 +0000 (15:30 +0900)]
pass-hal: rpi: Edit pass-hal.conf path into /usr/lib/tmpfiles.d

The configuration file should be located in /usr/lib/tmpfiles.d/
regardless of architecture type.

Change-Id: If0b3e96c9ac6e2a5aef8cb1411f89fe97dcf2728
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agopass-hal: rpi: Change smack label to give read permission everyone for missing node 07/234307/1 accepted/tizen/unified/20200528.133006 submit/tizen/20200526.021149
Chanwoo Choi [Mon, 25 May 2020 10:05:59 +0000 (19:05 +0900)]
pass-hal: rpi: Change smack label to give read permission everyone for missing node

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

Change-Id: If164aaf542dc322d6a971eeb98f6cbabedb425b3
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agopass-hal: rpi: Change smack label to give read permission everyone 21/229021/2 accepted/tizen/unified/20200330.153413 submit/tizen/20200327.070246
Chanwoo Choi [Fri, 27 Mar 2020 06:01:20 +0000 (15:01 +0900)]
pass-hal: rpi: Change smack label to give read permission everyone

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

Change-Id: Iafd552376f56ea3060975fd70beccaf71f927b35
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agopass-hal: rpi: Add read permission for cpufreq sysfs interface 90/228290/1 accepted/tizen/unified/20200323.173003 submit/tizen/20200320.083511
Chanwoo Choi [Fri, 20 Mar 2020 05:45:27 +0000 (14:45 +0900)]
pass-hal: rpi: Add read permission for cpufreq sysfs interface

Add read permission for cpufreq sysfs interface for other user.

Change-Id: I9710d710e7690bacdb2e22de8f9e67f098c08837
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agopass-hal: rpi: Add missing license information for sysfs.h 11/228011/1 accepted/tizen/unified/20200319.131248 submit/tizen/20200318.091008
Chanwoo Choi [Wed, 18 Mar 2020 06:07:54 +0000 (15:07 +0900)]
pass-hal: rpi: Add missing license information for sysfs.h

Change-Id: I3b2ae78ef1e0a229fa52260b9cd46921db387c92
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agopass-hal: rpi: Add configuration files for resources 64/225764/3 accepted/tizen/unified/20200227.121037 submit/tizen/20200227.020232
Chanwoo Choi [Fri, 7 Feb 2020 01:43:29 +0000 (10:43 +0900)]
pass-hal: rpi: Add configuration files for resources

This patch adds the new configuration files for resources of RPI4 board.
- pass.conf contains the number of supported resources and the information.
- pass-cpu0.conf is the configuration file for CPU core
  : The number of CPU is four in the one cluster
  : The supported CPU frequencies : 600MHz, 1500MHz
  : The thermal node of CPU is /sys/class/thermal/thermal_zone0/temp

- /etc/pass.conf
  : Contain one h/w resource information for Quad-core cluster

- /etc/pass/pass-cpu0.conf
  : Contain CPU h/w resource information for Quad-core cluster
  : Contain two PMQoS Scenarios
1. AppLaunch for boosting Tizen application launching time.
2. UltraPowerSaving by capping h/w resource to reduce power.
  : Contain four Thermal Scenarios
1. Release
2. Warning
3. LimitAction need to limit h/w resource for preventing overheating
4. Shutdown

- /usr/lib/tmpfiles.d/pass-hal.conf
  : Contain the list of sysfs interface which are accessed by PASS HAL library
  like /usr/lib/pass/cpu.so

Change-Id: Ie406f750c2fd334b1b27fd5d3ef068aa7b39f185
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agopass-hal: rpi: Implement HAL with standard interfaces for CPU 63/225763/3
Dongwoo Lee [Mon, 24 Feb 2020 05:31:34 +0000 (14:31 +0900)]
pass-hal: rpi: Implement HAL with standard interfaces for CPU

This provides PASS standard HAL for CPU.
Sicne this PASS HAL communicates with kernel using standard interface,
only the configuration for each resource is required, when PASS is
applied to the new target. If the target has nonstandard interface
for some resources, the specific HAL for the corresponding target
should be prepared.

Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
[cw00.choi: Pick up cpu.c from pass-hal-standard.git/src/cpu/cpu.c.
Instead of installing the pass-hal-standard hal pkg, add src/cpu.c hal
library for CPU h/w resource in order to reduce the memory usage
of unneeded PASS HAL library like bus.so, gpu.so and memory.so.]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Change-Id: I0fdc73b678dcd68a7f286c3de7f8dbba363552b6

4 years agopackaging: Add RPM spec file for build 62/225762/2
Chanwoo Choi [Fri, 7 Feb 2020 01:54:03 +0000 (10:54 +0900)]
packaging: Add RPM spec file for build

Add RPM spec file for building the package including the pass.conf and
pass-cpu0.conf files.

Change-Id: Iccd31229875cf9e1c7fdf404848061c8e182be11
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agoInitial empty repository master
Tizen Infrastructure [Fri, 14 Feb 2020 01:53:09 +0000 (01:53 +0000)]
Initial empty repository