summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Tizen Infrastructure [Wed, 12 Jul 2017 10:51:34 +0000 (10:51 +0000)]
Initial empty repository