platform/adaptation/pass-hal-standard.git
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