platform/adaptation/tm2/pass-hal-tm2.git
7 years agopass-hal: tm2: Fix build error for gpu.c 21/137721/1 accepted/tizen/unified/20170711.180634 submit/tizen/20170710.060912
Chanwoo Choi [Fri, 7 Jul 2017 07:38:31 +0000 (16:38 +0900)]
pass-hal: tm2: Fix build error for gpu.c

The cd740cbf75cf9 ("pass-hal: tm2: Update TMU HAL functions to use
pass_res_thermal_name") patch has the build errors. So, this patch
fixes the build error on gpu.c.

Change-Id: I92fd86cfbee586638c8d9b2868a85d5ec694c02b
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm2: Remove the specific author information 37/137637/2
Chanwoo Choi [Fri, 7 Jul 2017 02:20:55 +0000 (11:20 +0900)]
pass-hal: tm2: Remove the specific author information

This patch removes the specific author information
from HAL_MODULE_STRUCTURE.

Change-Id: I6e8f36e957b7d13b18e1be5a4e53d3f25af47915
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm2: Add pass_res_thermal_name properties for CPU and GPU 46/137646/4
Wook Song [Fri, 7 Jul 2017 02:42:51 +0000 (11:42 +0900)]
pass-hal: tm2: Add pass_res_thermal_name properties for CPU and GPU

This patch adds new pass_res_thermal_name properties and their values
for the CPU and GPU resources to the 'pass.conf' file.

Change-Id: I5a9b257bb668cd4187921377d29c54d7a5376f47
Signed-off-by: Wook Song <wook16.song@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm2: Update TMU HAL functions to use pass_res_thermal_name 47/137647/3
Wook Song [Fri, 7 Jul 2017 02:46:18 +0000 (11:46 +0900)]
pass-hal: tm2: Update TMU HAL functions to use pass_res_thermal_name

This patch updates all HAL function bodies for TMU to use the new
pass_res_thermal_name property of the 'pass.conf' file.

Change-Id: I7f9b4507576d0d5e79ce7b503710193501617eab
Signed-off-by: Wook Song <wook16.song@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm2: Use only /usr/lib/tmpfiles.d path for pass-hal.conf 34/136434/3 accepted/tizen/unified/20170706.193442 submit/tizen/20170630.040102 submit/tizen/20170705.081057
Chanwoo Choi [Thu, 29 Jun 2017 11:28:50 +0000 (20:28 +0900)]
pass-hal: tm2: Use only /usr/lib/tmpfiles.d path for pass-hal.conf

Even if architecture is aarch64, the systemd spec applies the rule files
under the /usr/lib/tmpfiles.d. On aarch64, /usr/lib64/tmpfiles.d/pass-hal.conf
is not applied. So, this patch changes the path of tmpfiles.d in order to
support the PASS on aarch64. So, this patch changes the tmpfiles.d path
to support the PASS on aarch64 as following:
- /usr/lib64/tmpfiles.d -> /usr/lib/tmpfiles.d

Change-Id: Icfa83149960235251b22df2ad7a82671c406c046
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm2: Apply the value type change of pass_res_type 04/134904/3 submit/tizen/20170629.044637
Wook Song [Tue, 20 Jun 2017 08:19:26 +0000 (17:19 +0900)]
pass-hal: tm2: Apply the value type change of pass_res_type

This patch applies the change of the value type of the entry,
"pass_res_type", to each PassResource section of the pass.conf file.

Change-Id: I87ec4b72737ba30a3cdbb2446d852db484ff5fe5
Signed-off-by: Wook Song <wook16.song@samsung.com>
7 years agopass-hal: tm2: packaging: Restart daemon after install/uninstall 34/134834/6
Wook Song [Tue, 20 Jun 2017 06:33:29 +0000 (15:33 +0900)]
pass-hal: tm2: packaging: Restart daemon after install/uninstall

This patch adds bits of code to %post and %postun sections so that the
daemon is restarted when the package is installed/uninstalled. Note that
the daemon is only restarted in the case of that the daemon is running
before the hal package is installed/uninstalled.

Change-Id: I89aca56051e44b91fc8bda4c1f47d5e5f260ba45
Signed-off-by: Wook Song <wook16.song@samsung.com>
7 years agopass-hal: tm2: packaging: Fix bug in applying systemd-tmpfiles 79/135379/2
Wook Song [Thu, 22 Jun 2017 05:43:34 +0000 (14:43 +0900)]
pass-hal: tm2: packaging: Fix bug in applying systemd-tmpfiles

This patch changes the path which systemd-tmpfiles uses in %post from
/usr/lib to %{_libdir}. Since the defualt path for the libraries is
/usr/lib64 for aarch64, the daemon does not work properly with the
hard-coded path used before.

Change-Id: If18c89efe327ec2afc8ee3d974af269dadf56837
Signed-off-by: Wook Song <wook16.song@samsung.com>
7 years agopass-hal: tm2: Add pass-hal.conf to change the permission of sysfs nodes 33/134233/4
Chanwoo Choi [Thu, 15 Jun 2017 09:57:04 +0000 (18:57 +0900)]
pass-hal: tm2: Add pass-hal.conf to change the permission of sysfs nodes

The pass-hal-tm2 package handles the many sysfs nodes in order
to change the state of h/w resources. All sysfs node should
be required to change the permission from root to system_fw
because PASS daemon has the system_fw permission.

So, this patch adds new pass-hal.conf which contains
the permission information for the required sysfs nodes.

Change-Id: Iab55cdc120e3283e35f2d97b4f3e887400a2fcfd
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm2: Remove unused scenarios 30/133230/1
Chanwoo Choi [Fri, 9 Jun 2017 08:59:31 +0000 (17:59 +0900)]
pass-hal: tm2: Remove unused scenarios

This patch removes the unused scenarios except for AppLaunch and
UltraPowerSaving.

Change-Id: Ic2f1570bf22bd9d2cc5043ff5bb72d9f2fc0abb7
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm2: Add missing LICENSE file and license information 29/132429/1
Chanwoo Choi [Mon, 5 Jun 2017 06:08:11 +0000 (15:08 +0900)]
pass-hal: tm2: Add missing LICENSE file and license information

This patch adds the missing license information for *.(c|h).
and pass-hal-tm2 uses the Apache-2.0 License.

Also, this patch adds the LICENSE file for Apache-2.0.

Change-Id: Iec366e8a9cbc4ab6b0fb5c37bfae75d2c23205a4
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm2: Add resource name for open and close function 03/127103/1 accepted/tizen/unified/20170426.200230 submit/tizen/20170426.080126 tizen_4.0.m1_release
Chanwoo Choi [Wed, 26 Apr 2017 07:33:44 +0000 (16:33 +0900)]
pass-hal: tm2: Add resource name for open and close function

This patch just adds the new argument of h/w resource name
when calling the open and close functions. The resource name
will be used to identify the h/w resource.

Change-Id: I4a96eb44dbea3afbc221472a5c51fd0dfc53ca59
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm2: Prevent attempt to turn off CPU0 84/121684/2 accepted/tizen_mobile accepted/tizen/mobile/20170331.082859 accepted/tizen/unified/20170331.083037 submit/tizen/20170330.074020
Chanwoo Choi [Tue, 28 Mar 2017 11:17:49 +0000 (20:17 +0900)]
pass-hal: tm2: Prevent attempt to turn off CPU0

This patch prevents the attempt to turn off CPU0
because TM2 uses the Exynos5433 SoC which doesn't
permit to turn off the CPU0 due to the h/w design
issue.

Change-Id: I6795aad5ff80c1728db42bc808bac8806d5daa76
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm2: Adjust the condition to improve the performance 83/121683/2
Chanwoo Choi [Tue, 28 Mar 2017 11:05:50 +0000 (20:05 +0900)]
pass-hal: tm2: Adjust the condition to improve the performance

This patch adjusts the condition value of each pass level
for big.LITTLE core in order to improve the performance
- pass-resource0.conf for LITTLE core
- pass-resource1.conf for big core

And this patch contains the simple test result according to the test case.
- Test 1: Enable PASS with the adjustment of this patch.
- Test 2: Enable PASS without the adjustment.
- Test 3: Disable PASS (Normal state)

[Test result with TPMS]
----------------------------------------------------------------------------------------
                                           |Test 1        |Test 2        |Test      3  |
TPMS test case                             |PASS enable   |PASS enable   |PASS disable |
----------------------------------------------------------------------------------------
App Launching Time - org.tizen.helloworld  | 0.378  (s)   | 0.425  (s)   | 0.421  (s)  |
Booting Time                               | 21.13  (s)   | 21.16  (s)   | 21.15  (s)  |
GLBench - Egypt_Offscreen                  | 161.08 (fps) | 158.24 (fps) | 147.71 (fps)|
GLBench - Egypt_Standard                   | 42.0   (fps) | 38.94  (fps) | 41.7   (fps)|
GLBench - Pro_Offscreen                    | 263.23 (fps) | 243.52 (fps) | 210.77 (fps)|
GLBench - Pro_Standard                     | 53.24  (fps) | 52.11  (fps) | 53.84  (fps)|
Web App Launching Time - 5OPuG0pfe7.basic  | 0.528  (s)   | 0.516   (s)  | 0.55   (s)  |
----------------------------------------------------------------------------------------

Change-Id: I8290c3f9078f388338786672ff5b83bed96c1ff1
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopackaging: Add ExclusiveArch property to build on armv7l and aarch64 86/121486/1
Chanwoo Choi [Tue, 28 Mar 2017 05:18:58 +0000 (14:18 +0900)]
packaging: Add ExclusiveArch property to build on armv7l and aarch64

This patch adds the 'ExclusiveArch' property in order to build
this package only for both armv7l and aarch64.

Change-Id: I232653570a88e6ef5bfb48c6cdbd084efdd7ac3d
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm2: Fix value of governor type for bus/gpu resource 84/116584/1
Chanwoo Choi [Fri, 17 Feb 2017 06:39:11 +0000 (15:39 +0900)]
pass-hal: tm2: Fix value of governor type for bus/gpu resource

This patch fixes the value of governor type for BUS/GPU h/w resource
because PASS core redefines the governor types as following:
- PASS_GOV_DUMMY         : -1
- PASS_GOV_BASIC         : 0
- PASS_GOV_HOTPLUG_ONLY  : 1
- PASS_GOV_RADIATION     : 2
- PASS_GOV_STEP          : 3

The BUS/GPU resource on TM2 use the PASS_GOV_BASIC governor
which uses both HAL interface and Resource controller.

Change-Id: I408784aa0a1539b32b83b87b6f621655d504784f
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm2: Remove unneeded pass_compatible from pass-resource*.conf 04/114804/2
Chanwoo Choi [Wed, 15 Feb 2017 07:03:35 +0000 (16:03 +0900)]
pass-hal: tm2: Remove unneeded pass_compatible from pass-resource*.conf

This patch removes the unneeded the 'pass_compatible' entry
from the pass-resource*.conf because it is not required any more.

Change-Id: I0a3772cf14c627844e44e17a8663190328ca7727
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm2: Add new path_compatible entry to conf file 86/114786/1
Wook Song [Wed, 15 Feb 2017 05:29:12 +0000 (14:29 +0900)]
pass-hal: tm2: Add new path_compatible entry to conf file

This patch adds the new pass_path_compatible entry, that indicates the
path where the pass can get the compatible board information, to the
PassResource section in the pass.conf file. If the following patch
(895f20b pass: parser: Add parsing of pass_path_compatible) is applied
to the pass, you should apply this patch to the pass-hal-tm2 in order to
make the pass work correctly.

Change-Id: I563c6f451918765bd282e4c9b8a1edaee606cd3b
Signed-off-by: Wook Song <wook16.song@samsung.com>
7 years agopass-hal: tm2: Update hotplug ops for set/get functions of min/max online CPUs 35/114635/2
Wook Song [Tue, 14 Feb 2017 08:43:24 +0000 (17:43 +0900)]
pass-hal: tm2: Update hotplug ops for set/get functions of min/max online CPUs

This patch updates the hotplug ops for the CPU resource in order to
include the new functions which set and get the minimum/maximum number
of online CPUs.

Change-Id: Ied59bdf57db5be3f4d7600198d79d17802a2af7d
Signed-off-by: Wook Song <wook16.song@samsung.com>
7 years agopass-hal: tm2: Add the configuration files for resources 02/114102/2
Chanwoo Choi [Fri, 10 Feb 2017 04:10:07 +0000 (13:10 +0900)]
pass-hal: tm2: Add the configuration files for resources

This patch adds the new configuration files for resources of TM2 board.
- pass.conf contains the number of supported resources and the information
  of each resource such as CPU, BUS and GPU.
- pass-resource0.conf is the configuration file for LITTLE Cores on TM2.
- pass-resource1.conf is the configuration file for big Cores on TM2.
- pass-resource2.conf is the configuration file for Memory Bus (INT block) on TM2.
- pass-resource3.conf is the configuration file for Memory Bus (MFI block) on TM2.
- pass-resource4.conf is the configuration file for MALI GPU on TM2.

Change-Id: Idd77b63c12a96633ed1feed327513db92e4ead33
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm2: Modify the sysfs path for BUS/GPU resource
Chanwoo Choi [Thu, 9 Feb 2017 09:52:25 +0000 (18:52 +0900)]
pass-hal: tm2: Modify the sysfs path for BUS/GPU resource

This patches modifes the default sysfs path for bus/gpu resource as following:
Because TM2 uses the devfreq subsystem in Linux Kernel for memory bus and gpu.
- /sys/class/devfreq/(devfreq device name)

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
7 years agopass-hal: tm2: Add implementation of HAL for GPU
Wook Song [Wed, 8 Feb 2017 06:26:18 +0000 (15:26 +0900)]
pass-hal: tm2: Add implementation of HAL for GPU

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

Change-Id: I1002bcce81c7ff35ef46ab09ceaed27a255a5611
Signed-off-by: Wook Song <wook16.song@samsung.com>
7 years agopass-hal: tm2: Add implementation of HAL for BUS
Wook Song [Wed, 8 Feb 2017 06:12:44 +0000 (15:12 +0900)]
pass-hal: tm2: Add implementation of HAL for BUS

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

Change-Id: Idf118b9df51c0fad13e0d5db8d1ff58a541a7aab
Signed-off-by: Wook Song <wook16.song@samsung.com>
7 years agopass-hal: tm2: Add implementation of HAL for CPU
Wook Song [Wed, 8 Feb 2017 05:57:22 +0000 (14:57 +0900)]
pass-hal: tm2: Add implementation of HAL for CPU

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

Change-Id: I74afc0c021ad462e1630d84bbe922ee3fac52b6e
Signed-off-by: Wook Song <wook16.song@samsung.com>
7 years agopass-hal: tm2: Create spec file for RPM package
Wook Song [Wed, 8 Feb 2017 05:45:41 +0000 (14:45 +0900)]
pass-hal: tm2: 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: I5d573623669d2284d8b285af67faa54cc0fe6cef
Signed-off-by: Wook Song <wook16.song@samsung.com>
7 years agoInitial empty repository master
Tizen Infrastructure [Wed, 8 Feb 2017 02:18:39 +0000 (18:18 -0800)]
Initial empty repository