platform/adaptation/pass-hal-standard.git
3 years agopass-hal: standard: Fix svace warnings 80/253780/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_unified tizen tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/6.5/unified/20211028.094025 accepted/tizen/7.0/unified/20221110.062035 accepted/tizen/7.0/unified/hotfix/20221116.104452 accepted/tizen/8.0/unified/20231005.092513 accepted/tizen/unified/20210218.082027 submit/tizen/20210218.030331 submit/tizen_6.5/20211028.161501 tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
Chanwoo Choi [Thu, 18 Feb 2021 02:57:52 +0000 (11:57 +0900)]
pass-hal: standard: Fix svace warnings

Change-Id: I35cff46ff50908a9f2a861f0982744fea9a5fce8
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agopass-hal: standard: v1.1.0 and Remove unused dlog dependency 55/252255/1 accepted/tizen/unified/20210204.134530 submit/tizen/20210201.020414 submit/tizen/20210204.032624
Chanwoo Choi [Tue, 26 Jan 2021 05:14:58 +0000 (14:14 +0900)]
pass-hal: standard: v1.1.0 and Remove unused dlog dependency

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

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

Change-Id: I4055cb9adfb0f4db26e36347cc8842ae3e75ec80
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agopass-hal: standard: Update pass-hal-standard by using hal-api-power interface 75/251475/2
Chanwoo Choi [Thu, 14 Jan 2021 06:34:37 +0000 (15:34 +0900)]
pass-hal: standard: Update pass-hal-standard by using hal-api-power interface

Prior pass-hal-standard 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-standard 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: Ib0e73a85112b875ae769bca87aee8250580bbb36
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
3 years agopass-hal: standard: Change smack label to give read permission everyone 11/234311/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.123544 accepted/tizen/6.0/unified/hotfix/20201103.052449 accepted/tizen/unified/20200528.133016 submit/tizen/20200526.021149 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 [Mon, 25 May 2020 10:11:48 +0000 (19:11 +0900)]
pass-hal: standard: Change smack label to give read permission everyone

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

Change-Id: Icecce9378ccd104037f2d2ce66f6a10929671859
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agopass-hal: standard: Fix the return value when accessing sysfs interface 65/226065/1 accepted/tizen/unified/20200228.123655 submit/tizen/20200228.012941
Chanwoo Choi [Wed, 26 Feb 2020 10:16:52 +0000 (19:16 +0900)]
pass-hal: standard: Fix the return value when accessing sysfs interface

Change-Id: I59a67537f664f9bd91b4dda1ea1ac6d91defa73e
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
4 years agopass-hal: standard: Fix bug of get_temp when reading the temperature 02/225702/3
Chanwoo Choi [Fri, 7 Feb 2020 08:08:42 +0000 (17:08 +0900)]
pass-hal: standard: Fix bug of get_temp when reading the temperature

Thermal framework of linux kernel provides the current temperature
as five digits interger like 54430 when temperature is 54.430
degrees centigrade. But, Thermal Monitor in Tizen usually uses
double digits interger without decimal point. So that round temperature value.

Change-Id: I3eebe5bf7293c1a7edec7cadc27c81d18ac35ad6
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
5 years agopass-hal: standard: Fix warning during image creation 85/201485/3 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.014822 accepted/tizen/5.5/unified/mobile/hotfix/20201027.082336 accepted/tizen/5.5/unified/wearable/hotfix/20201027.123545 accepted/tizen/unified/20190318.150632 submit/tizen/20190317.235327 submit/tizen_5.5/20191031.000001 submit/tizen_5.5_mobile_hotfix/20201026.185101 submit/tizen_5.5_wearable_hotfix/20201026.184301 tizen_5.5.m2_release
Dongwoo Lee [Tue, 12 Mar 2019 07:58:47 +0000 (16:58 +0900)]
pass-hal: standard: Fix warning during image creation

When this 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 yet, warning message is printed out. This can be
resovled by adding dependency for security-config.

Change-Id: I5355ff7c0d7edc2d13c99897abb892aa61320ce8
Reported-by: INSUN PYO <insun.pyo@samsung.com>
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
6 years agopass-hal: standard: Fix bug for wrong path of cpufreq sysfs entries 14/164614/2 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.012519 accepted/tizen/unified/20171221.071221 submit/tizen/20171220.050639 submit/tizen_5.0/20181101.000001
Chanwoo Choi [Tue, 5 Sep 2017 05:35:51 +0000 (14:35 +0900)]
pass-hal: standard: Fix bug for wrong path of cpufreq sysfs entries

The commit 2727486add81b ("pass-hal: standard: Fix wrong info of
sysfs entries and add new nodes") modified/added the following
sysfs patch for cpufreq. But, it was wrong. In result, when pass stopped,
happen error which could not write the up_threshold.
- /sys/device/system/cpu/cpufreq/ondemand/up_threshold
- /sys/device/system/cpu/cpufreq/ondemand/sampling_rate

So, this patch fixes the wrong path of cpufreq sysfs entries as following:
- /sys/device/system/cpu/*/cpufreq/ondemand/up_threshold
- /sys/device/system/cpu/*/cpufreq/ondemand/sampling_rate

Fixes: 2727486add81b ("pass-hal: standard: Fix wrong info of
sysfs entries and add new nodes")
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Change-Id: I7bd0228710887f2f7b817084434884cef35b34e4

6 years agopass-hal: standard: Release v1.0.0 49/158849/1 accepted/tizen/unified/20171123.065843 submit/tizen/20171123.001235
Chanwoo Choi [Tue, 24 Oct 2017 06:35:36 +0000 (15:35 +0900)]
pass-hal: standard: Release v1.0.0

This release support the standard HAL library for PASS.
If embedeed board uses the Linux kernel standard interface,
there are no additional development for HAL library.

Detailed description for this release:
- src/bus/cpu.c provides the /lib/pass/cpu.so for CPU h/w.
- src/bus/bus.c provides the /lib/pass/bus.so for Memory Bus h/w.
- src/bus/gpu.c provides the /lib/pass/gpu.so for GPU h/w.
- src/bus/memory.c provides the /lib/pass/memory.so for Memory h/w.

Change-Id: Id1e087b969828764b2ba8f94f1e199621a7f49ed
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: standard: Fix overrun issue on bus.c 52/152852/1 accepted/tizen/4.0/unified/20170929.221006 accepted/tizen/unified/20170929.081307 submit/tizen/20170928.043027 submit/tizen_4.0/20170928.011543 tizen_4.0.IoT.p1_release tizen_4.0.m2_release
Chanwoo Choi [Wed, 27 Sep 2017 08:24:43 +0000 (17:24 +0900)]
pass-hal: standard: Fix overrun issue on bus.c

The size of defined character array must need one space (char)
for the last char ('\0'). This patch fixes the overrunt issue
by extending the size of array with +1.

Change-Id: Iec072a0337054c719bfcc59a5f0a29df9386ded4
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: standard: Fix overrun issue of array 76/152576/3 accepted/tizen/4.0/unified/20170929.075606 accepted/tizen/unified/20170928.072145 submit/tizen/20170927.080101 submit/tizen_4.0/20170927.080359
Chanwoo Choi [Tue, 26 Sep 2017 10:36:46 +0000 (19:36 +0900)]
pass-hal: standard: 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.

Change-Id: I68d0bd4404515f492a0dc2624aba2d7f51630118
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: standard: Fix wrong info of sysfs entries and add new nodes 49/150949/1
Chanwoo Choi [Tue, 19 Sep 2017 06:42:23 +0000 (15:42 +0900)]
pass-hal: standard: Fix wrong info of sysfs entries and add new nodes

This patch fixes the wrong permission and patch for the sysfs entries
and add the new sysfs entries in order to handle the cpu/bus/gpu h/w
resources as following:

Fixed sysfs entries as following:
- /sys/device/system/cpu/cpufreq/ondemand/up_threshold
- /sys/devices/platform/soc/*/devfreq/*/governor

Additional sysfs entries as following:
- /sys/device/system/cpu/cpufreq/ondemand/sampling_rate
- /sys/devices/platform/soc/*/devfreq/*/polling_interval

Change-Id: Ibe632576c447c940f3c732a47880ba835401df06
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: stanard: Fix the checkpatch's warning to keep the coding style 72/149272/1 accepted/tizen/4.0/unified/20170919.170909 accepted/tizen/unified/20170915.194630 submit/tizen/20170915.013740 submit/tizen_4.0/20170915.014015
Chanwoo Choi [Tue, 12 Sep 2017 04:21:08 +0000 (13:21 +0900)]
pass-hal: stanard: Fix the checkpatch's warning to keep the coding style

This patch just fixes the following checkpatch's warning.

[Warning results from Tizen's checkpatch]
src/cpu/cpu.c
:317: ERROR: [IDT_M_TAB] code indent should use tabs where possible

Change-Id: I83998bb50e3b4763f4c2388648f2233b0e72f295
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: standard: Add new library for memory h/w device 48/146348/4 accepted/tizen/unified/20170913.070639 submit/tizen/20170911.052326
Chanwoo Choi [Mon, 28 Aug 2017 04:53:30 +0000 (13:53 +0900)]
pass-hal: standard: Add new library for memory h/w device

This patch adds the new library (memory.so) in order to
support the memory[1] h/w device. And the struct pass_resource_memory
supports the 'fault_around_bytes'[2] feature.

The 'fault_around_bytes'[2] was supported from Linux Kernel v3.15.

[1] https://en.wikipedia.org/wiki/Computer_memory
[2] https://lkml.org/lkml/2016/4/18/612

Change-Id: I76f73c2af32f5d09061a54fab20df5d4f43f3eec
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: standard: Remove unused version info 54/147654/2
Chanwoo Choi [Tue, 5 Sep 2017 04:25:23 +0000 (13:25 +0900)]
pass-hal: standard: Remove unused version info

This patch just removes the unused version info.

Change-Id: I8f4ba62ee9b3679f505744a01620ea78ee5934ef
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: standard: Change the way to restart daemon after (un)install 43/145543/1 accepted/tizen/unified/20170824.172534 submit/tizen/20170824.064003
Wook Song [Wed, 23 Aug 2017 01:18:32 +0000 (10:18 +0900)]
pass-hal: standard: Change the way to restart daemon after (un)install

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: Ib80558692c0b16998b10d9e55b15e25cdc3d501e
Signed-off-by: Wook Song <wook16.song@samsung.com>
6 years agopass-hal: standard: Remove wrong dependency of pass-hal-devel 99/144299/2 accepted/tizen/4.0/unified/20170828.224354 accepted/tizen/unified/20170822.023803 submit/tizen/20170821.043932 submit/tizen_4.0/20170828.110001
Chanwoo Choi [Wed, 16 Aug 2017 07:32:26 +0000 (16:32 +0900)]
pass-hal: standard: 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: I96ab18c355fbaadafde958ef564085b0eace5136
Reported-by: Wook Song <wook16.song@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
6 years agopass-hal: standard: Add implementation for get_available_min/max_freq() 44/143144/7
Dongwoo Lee [Mon, 7 Aug 2017 06:55:32 +0000 (15:55 +0900)]
pass-hal: standard: Add implementation for get_available_min/max_freq()

The new functions for getting available minimum/maximum frequency
is added to dvfs callback. For cpu it can be done by accessing cpuinfo
node, but devfreq has no sysfs node which has available max, so the
value is retrieved from the available frequency lists.

Change-Id: I4b09149d3d434837462e412412eb022489ab96b3
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
6 years agopass-hal: standard: Add permissions for the available min/max frequency 05/143305/6
Dongwoo Lee [Wed, 9 Aug 2017 06:47:50 +0000 (15:47 +0900)]
pass-hal: standard: Add permissions for the available min/max frequency

To add implementation for the new function to get available frequency
of cpu and memory bus, PASS should have the proper permission for
sysfs node which the new functions access. For this, the permission
for these sysfs node will be added to pass-hal.conf

Change-Id: I96aafa604390efe97b7059ce6e45b0ea8d243450
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
6 years agopass-hal: standard: Add pass-hal.conf to change the permission of sysfs nodes
Dongwoo Lee [Wed, 9 Aug 2017 07:02:36 +0000 (16:02 +0900)]
pass-hal: standard: Add pass-hal.conf to change the permission of sysfs nodes

The standard HAL package handles the many sysfs nodes to change the
state of h/w resources. Therefore, the proper permission for all
sysfs node to system_fw because PASS daemon has the system_fw
permission. To do this, this patch adds pass-hal.conf which contains
the permission information for the required sysfs nodes.

Change-Id: Ica5bfc55f2cc7e0ac1e9e914b25d8237daaacdcd
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
6 years agopass-hal: standard: Implement HAL with standard interfaces 96/140496/12
Dongwoo Lee [Wed, 8 Feb 2017 05:57:22 +0000 (14:57 +0900)]
pass-hal: standard: Implement HAL with standard interfaces

This provides PASS standard HAL for CPU, GPU, and memory bus. Since
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.

Change-Id: I3dee9be02cc843cfffb940e86ffcac9ae8126205
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
6 years agopass-hal: standard: Create spec file for RPM package 91/140091/1 accepted/tizen/4.0/unified/20170816.013711 accepted/tizen/unified/20170803.161411 submit/tizen/20170803.052703 submit/tizen_4.0/20170811.094300
Dongwoo Lee [Wed, 8 Feb 2017 05:45:41 +0000 (14:45 +0900)]
pass-hal: standard: Create spec file for RPM package

This patch creates files required to build the RPM package. Although it
is possible to build the package, only one empty RPM file would be
created since source files are not implemented yet.

Change-Id: I5132d84314e2329f17082d41d5e0b71836b0c0c0
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
6 years agoInitial empty repository master
Tizen Infrastructure [Wed, 12 Jul 2017 10:51:34 +0000 (10:51 +0000)]
Initial empty repository