platform/adaptation/npu/trix-engine.git
4 years ago[Triv2] Fix model's internal id handling in triv2
Dongju Chae [Mon, 18 May 2020 05:49:01 +0000 (14:49 +0900)]
[Triv2] Fix model's internal id handling in triv2

This patch fixes model's internal id handling in triv2.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Core/DrvAPI] Implement the driver api for triv1
Wook Song [Mon, 11 May 2020 09:31:14 +0000 (18:31 +0900)]
[Core/DrvAPI] Implement the driver api for triv1

This patch implements TrinityVisionAPI, which is the device driver API
for Trinity Vision device.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Bug/Fix] Fix minor bugs in tizen/arm
Dongju Chae [Fri, 15 May 2020 09:37:30 +0000 (18:37 +0900)]
[Bug/Fix] Fix minor bugs in tizen/arm

This patch fixes some minor bugs in tizen/arm.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Triv2/Emul] Verify npubinfmt v3 model using triv2 apptest
Dongju Chae [Thu, 14 May 2020 03:57:13 +0000 (12:57 +0900)]
[Triv2/Emul] Verify npubinfmt v3 model using triv2 apptest

This patch adds triv2 apptest using npubinfmt v3 model.
It's tested with npu-engine-testdata (1.2.0).

Also, fix some minor bugs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[HWmemExternal] Support external hwmem (dmabuf)
Dongju Chae [Thu, 7 May 2020 10:58:59 +0000 (19:58 +0900)]
[HWmemExternal] Support external hwmem (dmabuf)

This patch supports external hwmem and revives dmabuf-related apptests.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[README] Revise related projects in README.md
Dongju Chae [Mon, 11 May 2020 03:01:15 +0000 (12:01 +0900)]
[README] Revise related projects in README.md

This patch revises related project in README.md

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Coverage] Increase the overall code coverage
Dongju Chae [Fri, 8 May 2020 07:14:06 +0000 (16:14 +0900)]
[Coverage] Increase the overall code coverage

This patch increase the overall code coverage to cover newly added
or changed source codes.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[API/Notimode] Add an extra API to set notification mode (intr or polling)
Dongju Chae [Thu, 7 May 2020 07:47:26 +0000 (16:47 +0900)]
[API/Notimode] Add an extra API to set notification mode (intr or polling)

This patch adds an extra APi to set notification mode, either interrupt
or polling.
It's one of VD requirements (11th).

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Badge] Add extra badges (e.g., version, issues, pull requests)
Dongju Chae [Fri, 8 May 2020 04:53:02 +0000 (13:53 +0900)]
[Badge] Add extra badges (e.g., version, issues, pull requests)

This patch adds extra badges (e.g., version, issues, pull requests).

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest/Segt] Add unittest cases for segment table impl.
Dongju Chae [Fri, 8 May 2020 03:45:15 +0000 (12:45 +0900)]
[UnitTest/Segt] Add unittest cases for segment table impl.

This patch adds unittest cases for segment table impl.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[TRIV2] Implement TRIV2 handling with segt and add its dummy apptest
Dongju Chae [Fri, 8 May 2020 03:55:59 +0000 (12:55 +0900)]
[TRIV2] Implement TRIV2 handling with segt and add its dummy apptest

This patch implements TRIV2 handling with segt and adds its dummy
apptest.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Metadata/V3] Implement metadata for npubinfmt v3 (TRIV2)
Dongju Chae [Thu, 23 Apr 2020 10:57:51 +0000 (19:57 +0900)]
[Metadata/V3] Implement metadata for npubinfmt v3 (TRIV2)

This patch implements metadata for npubinfmt v3 (TRIV2).

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Svace] Fix minor svace defects
Dongju Chae [Tue, 28 Apr 2020 04:16:07 +0000 (13:16 +0900)]
[Svace] Fix minor svace defects

This patch fixes minor svace defects
- SIGNED_TO_BIGGER_UNSIGNED
- DEREF_OF_NULL.DYN_CAST

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[API/Status] Implement the memory status API and add its testcases
Dongju Chae [Wed, 6 May 2020 09:56:37 +0000 (18:56 +0900)]
[API/Status] Implement the memory status API and add its testcases

This patch implements the memory status API and add its testcases.
It's one of VD requirements (17th).

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[npubinfmt/v3] Add an offset variable for each tensor segment
Dongju Chae [Tue, 28 Apr 2020 07:03:49 +0000 (16:03 +0900)]
[npubinfmt/v3] Add an offset variable for each tensor segment

This patch adds an offset variable for each tensor segment.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[README/Doc] Update README/doc texts about SPIN/ubuntu support
Dongju Chae [Tue, 28 Apr 2020 03:44:57 +0000 (12:44 +0900)]
[README/Doc] Update README/doc texts about SPIN/ubuntu support

This patch updates README/doc texts about SPIN/ubuntu support.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[TRIV2/Segt] Implement a segmenet table derived from HWmem class
Dongju Chae [Wed, 22 Apr 2020 04:47:08 +0000 (13:47 +0900)]
[TRIV2/Segt] Implement a segmenet table derived from HWmem class

This patch implements a segment table derived from HWmem class.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Coverage/Handler] Increase test coverage for host handler
Dongju Chae [Wed, 22 Apr 2020 03:47:34 +0000 (12:47 +0900)]
[Coverage/Handler] Increase test coverage for host handler

This patch increases test coverage for host handler.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Coverage/Apptest] Enable to run apptests in coverage analysis
Dongju Chae [Tue, 21 Apr 2020 10:30:07 +0000 (19:30 +0900)]
[Coverage/Apptest] Enable to run apptests in coverage analysis

This patch enables to run some apptests including 'example_visa'
in coverage analysis. To analyze code coverage for libnpuhost APIs,
we should run valid apptests.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Coverage/Inf] Increase test coverage for input services
Dongju Chae [Tue, 21 Apr 2020 08:42:57 +0000 (17:42 +0900)]
[Coverage/Inf] Increase test coverage for input services

This patch increases test coverage for input services.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Coverage/NPU] Increase test coverage for NPU driver APIs
Dongju Chae [Tue, 21 Apr 2020 07:36:49 +0000 (16:36 +0900)]
[Coverage/NPU] Increase test coverage for NPU driver APIs

This patch increases test coverage for NPU driver APIs.

- src/core/npu/NPUdrvAPI.h: 37.5% -> 100%
- src/core/npu/NPUdrvAPI_emul.cc: 88.5% -> 98.8%

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Build] Fix build flags for C/C++ in meson.build
Dongju Chae [Tue, 21 Apr 2020 07:08:09 +0000 (16:08 +0900)]
[Build] Fix build flags for C/C++ in meson.build

This patch fixes build flags in meson.build.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Svace] Fix svace issues due to unittest codes
Dongju Chae [Tue, 21 Apr 2020 09:59:45 +0000 (18:59 +0900)]
[Svace] Fix svace issues due to unittest codes

This patch fixes svace issues due to unittest codes.

This includes
- NO_CAST.INTEGER_OVERFLOW
- DEREF_OF_NULL.RET.STAT
- INTEGER_OVERFLOW
- DOUBLE_FREE.EX

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Core/NPU/Meson] Add fallback dependency on npu-engine-emul
Wook Song [Tue, 21 Apr 2020 06:21:12 +0000 (15:21 +0900)]
[Core/NPU/Meson] Add fallback dependency on npu-engine-emul

This patch makes meson find the npu-engine-emul without user-defined
PKG_CONFIG_PATH.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[UnitTests] Fix build warnings about -Werror=sign-compare
Wook Song [Tue, 21 Apr 2020 03:20:36 +0000 (12:20 +0900)]
[UnitTests] Fix build warnings about -Werror=sign-compare

This patch fixes build warnings about -Werror=sign-compare in the unit
test cases.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[NPUdrvAPI] Add init() to check a device is available
Dongju Chae [Tue, 21 Apr 2020 04:54:41 +0000 (13:54 +0900)]
[NPUdrvAPI] Add init() to check a device is available

This patch adds init() to check a device is available.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Coverage] Use gcovr for coverage analysis, instead of unstable lcov
Dongju Chae [Mon, 20 Apr 2020 11:39:02 +0000 (20:39 +0900)]
[Coverage] Use gcovr for coverage analysis, instead of unstable lcov

This patch uses gcovr for coverage analysis, instead of unstable lcov.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest/Handler] Add HostHandler unittests
Dongju Chae [Fri, 17 Apr 2020 04:56:47 +0000 (13:56 +0900)]
[UnitTest/Handler] Add HostHandler unittests

This patch adds HostHandler unittests.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Revision] Revise handler and related components
Dongju Chae [Fri, 17 Apr 2020 04:51:27 +0000 (13:51 +0900)]
[Revision] Revise handler and related components

This patch revises handler and related components.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest/Buffer] Revise buffer impl. and add its unittests
Dongju Chae [Thu, 16 Apr 2020 10:49:23 +0000 (19:49 +0900)]
[UnitTest/Buffer] Revise buffer impl. and add its unittests

This patch revises buffer impl. and add its unittests

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest/Sched] Revise the scheduler impl. and add its unittests
Dongju Chae [Thu, 16 Apr 2020 10:47:46 +0000 (19:47 +0900)]
[UnitTest/Sched] Revise the scheduler impl. and add its unittests

This patch revises the scheduler impl. and add its unittests.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest/Model] Revise model and add its unittests
Dongju Chae [Tue, 14 Apr 2020 08:30:03 +0000 (17:30 +0900)]
[UnitTest/Model] Revise model and add its unittests

This patch revises model and add its unittests

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest/Mem] revise memory allocator and add its unittests
Dongju Chae [Thu, 16 Apr 2020 04:14:48 +0000 (13:14 +0900)]
[UnitTest/Mem] revise memory allocator and add its unittests

This patch revises memory allocator and add its unittests

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest/Inf] Revise inf impl. and revise its unittests
Dongju Chae [Tue, 14 Apr 2020 02:53:57 +0000 (11:53 +0900)]
[UnitTest/Inf] Revise inf impl. and revise its unittests

This patch revises inf impl. and revises its unittests.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest/InputService] Revise inputservice and add its unittests
Dongju Chae [Fri, 10 Apr 2020 05:57:26 +0000 (14:57 +0900)]
[UnitTest/InputService] Revise inputservice and add its unittests

This patch revises inputservice add add its unittests

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest/HWmem] Revise HWmem impl. and add unittests
Dongju Chae [Wed, 8 Apr 2020 08:00:49 +0000 (17:00 +0900)]
[UnitTest/HWmem] Revise HWmem impl. and add unittests

This patch revises HWmem impl. and add unittests

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Svace] Fix unresolved svace issues
Dongju Chae [Fri, 10 Apr 2020 06:09:37 +0000 (15:09 +0900)]
[Svace] Fix unresolved svace issues

This patch fixes unresolved svace issues.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[doc] Update the spin repo url, missed in the previous commit
Dongju Chae [Fri, 10 Apr 2020 09:12:41 +0000 (18:12 +0900)]
[doc] Update the spin repo url, missed in the previous commit

Thie updates the spin repo url in doc missed in the previous commit.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Svace] Fix svace defects reported by ahub service
Dongju Chae [Thu, 9 Apr 2020 08:39:51 +0000 (17:39 +0900)]
[Svace] Fix svace defects reported by ahub service

This patch fixes save defects reported by ahub service

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Doc] Update some documentation due to the changed SPIN repos.
Dongju Chae [Fri, 10 Apr 2020 05:07:31 +0000 (14:07 +0900)]
[Doc] Update some documentation due to the changed SPIN repos.

This patch updates some documentation due to the changed SPIN repos.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest/Utils] Revise conf/utils and add their negative unittests
Dongju Chae [Wed, 8 Apr 2020 06:38:08 +0000 (15:38 +0900)]
[UnitTest/Utils] Revise conf/utils and add their negative unittests

This path modifies the naive impl. of getConf(), and adds negative test
cases for utils/conf.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest/ThreadPool] Revise ThreadPool and add its unittests
Dongju Chae [Wed, 8 Apr 2020 06:04:36 +0000 (15:04 +0900)]
[UnitTest/ThreadPool] Revise ThreadPool and add its unittests

This patch revises the thread pool sources and add the unittests.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Badge] Add a SAM Score badge
Dongju Chae [Thu, 9 Apr 2020 12:00:03 +0000 (21:00 +0900)]
[Badge] Add a SAM Score badge

This patch adds a SAM Score badge.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest/NPU] Add NPUdrvAPI (emulation only) unittests
Dongju Chae [Tue, 7 Apr 2020 08:25:46 +0000 (17:25 +0900)]
[UnitTest/NPU] Add NPUdrvAPI (emulation only) unittests

This patch adds NPUdrvAPI (emulation only) unitests.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest/Comm] Add CommPlugin unittests
Dongju Chae [Tue, 7 Apr 2020 11:12:57 +0000 (20:12 +0900)]
[UnitTest/Comm] Add CommPlugin unittests

This patch adds CommPlugin unittests

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[npubinfmt/triv2] NPU binary format for TRIV2 models
Dongju Chae [Wed, 11 Mar 2020 11:17:53 +0000 (20:17 +0900)]
[npubinfmt/triv2] NPU binary format for TRIV2 models

This commit appends the NPU binary format for TRIV2 models.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years agoUpdate software stack url and log tag info
Dongju Chae [Tue, 7 Apr 2020 07:13:45 +0000 (16:13 +0900)]
Update software stack url and log tag info

this patch updates software stack url and log tag info.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Refactor/Build/Tests] Revise meson.build and test sources
Dongju Chae [Fri, 3 Apr 2020 07:05:09 +0000 (16:05 +0900)]
[Refactor/Build/Tests] Revise meson.build and test sources

This patch revises meson.build and some test sources.
Also, most of test cases are disabled temporally.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Refactor/libnpuhost/Handler] Revise host handler and libnpuhost.h
Dongju Chae [Fri, 3 Apr 2020 06:48:24 +0000 (15:48 +0900)]
[Refactor/libnpuhost/Handler] Revise host handler and libnpuhost.h

This patch revises the host handler and libnpuhost APIs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Refactor/Scheduler/Inf] Revise scheduler/inference engine
Dongju Chae [Fri, 3 Apr 2020 06:24:13 +0000 (15:24 +0900)]
[Refactor/Scheduler/Inf] Revise scheduler/inference engine

This patch revises the scheduler and inference engine.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Refactor/InputService] Revise input services
Dongju Chae [Fri, 3 Apr 2020 05:32:04 +0000 (14:32 +0900)]
[Refactor/InputService] Revise input services

This patch revises the input service interface.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Refactor/ThreadPool] Revise thread pool for input services
Dongju Chae [Fri, 3 Apr 2020 05:31:20 +0000 (14:31 +0900)]
[Refactor/ThreadPool] Revise thread pool for input services

This path revises the thread pool for input services.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Refactor/Comm] Revise Comm. Plugin interface and IP plugin impl.
Dongju Chae [Fri, 3 Apr 2020 04:48:04 +0000 (13:48 +0900)]
[Refactor/Comm] Revise Comm. Plugin interface and IP plugin impl.

This patch revises comm. plugin interface and IP plugin implementation.
It now handles only data transfer between npu-engine and outside.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Refactor/Mem] Revise memory allocator
Dongju Chae [Fri, 3 Apr 2020 04:33:25 +0000 (13:33 +0900)]
[Refactor/Mem] Revise memory allocator

This patch revises memory allocator in npu engine.
The configuration devices which memory allocator will be used.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Refactor/Model/Buffer] Revise Model/Buffer derived from HWmem
Dongju Chae [Fri, 3 Apr 2020 04:13:18 +0000 (13:13 +0900)]
[Refactor/Model/Buffer] Revise Model/Buffer derived from HWmem

This patch revises model and buffer implementations, derived from
HWmem class.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Refactor/HWmem] Revise Hardwar memory (HWmem)
Dongju Chae [Fri, 3 Apr 2020 03:37:22 +0000 (12:37 +0900)]
[Refactor/HWmem] Revise Hardwar memory (HWmem)

This patch revise Hardware memory structure & implementation.
Model and Buffer will be derived class of HWmem, and HWmem has
different implementation. It's designed to use bridge pattern.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Refactor/NPU] Revise NPU driver APIs
Dongju Chae [Thu, 2 Apr 2020 10:13:06 +0000 (19:13 +0900)]
[Refactor/NPU] Revise NPU driver APIs

This patch revises NPU driver source codes in npu-engine.

1) Seperate each device impl. into different files.
2) Use the driver API instance in npu-engine components.

This only implementes APIs of emulation. We need to implement
other device's APIs in near future.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Refactor/Utils] Revise utility/conf features
Dongju Chae [Thu, 2 Apr 2020 10:06:47 +0000 (19:06 +0900)]
[Refactor/Utils] Revise utility/conf features

This patch revises utility/conf features in npu-engine.

1) Move the related sources to ./utils folder
- To remove the Module Cycle Dependency (MCD) in SAM analysis.

2) Replace C-based library implementation to standard library

3) Remove 'working_dir' and add 'num_threads' in configuration.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years agoRemove the unused header, NPUARMPlugin.h
Dongju Chae [Fri, 3 Apr 2020 07:11:03 +0000 (16:11 +0900)]
Remove the unused header, NPUARMPlugin.h

This patch removes the unsed header, NPUARMPlugin.h

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[SAM] Remove unused files before applying SAM report
Dongju Chae [Tue, 31 Mar 2020 07:02:38 +0000 (16:02 +0900)]
[SAM] Remove unused files before applying SAM report

This patch removes unused files before applying SAM report.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[IOCTL] Rename GET_READY to GET_STATE
Wook Song [Fri, 20 Mar 2020 02:49:02 +0000 (11:49 +0900)]
[IOCTL] Rename GET_READY to GET_STATE

According to changes in the device driver, this patch renames the IOCTL
named TRINITY_IOCTL_GET_READY to TRINITY_IOCTL_GET_STATE.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Core/IP] Use the device name prefix for trinity vision as 'triv-'
Wook Song [Fri, 27 Mar 2020 09:19:09 +0000 (18:19 +0900)]
[Core/IP] Use the device name prefix for trinity vision as 'triv-'

This patch fixes a bug related to the device node name for the trinity
vision device.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Core/NPU] Change the device name of vision npu to triv-$id
Wook Song [Mon, 23 Mar 2020 07:17:15 +0000 (16:17 +0900)]
[Core/NPU] Change the device name of vision npu to triv-$id

This patch changes the device name of vision npu to use the suffix,
'-${device_id}'.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Fix/ioctl] always initialize the ioctl arguments to zero
Dongju Chae [Thu, 19 Mar 2020 10:43:24 +0000 (19:43 +0900)]
[Fix/ioctl] always initialize the ioctl arguments to zero

This patch initializes ioctl arguments to zero.

It's to prevent from forgetting to initialize newly added variables
in the ioctl argument structures.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[npubinfmt] variable-length metadata size
Dongju Chae [Wed, 18 Mar 2020 11:07:00 +0000 (20:07 +0900)]
[npubinfmt] variable-length metadata size

This patch makes the metadata size be a variable-size.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Mem/GEM] add the memory/GEM API to allocate segments
Dongju Chae [Wed, 18 Mar 2020 05:27:29 +0000 (14:27 +0900)]
[Mem/GEM] add the memory/GEM API to allocate segments

This patch adds the memory/GEM API to allocate segments

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Refactor/GEM] Refactor GEMdrvAPI to seperate emulation codes
Dongju Chae [Wed, 18 Mar 2020 05:24:44 +0000 (14:24 +0900)]
[Refactor/GEM] Refactor GEMdrvAPI to seperate emulation codes

This patch makes refactor of GEMdrvAPI to seperate emulation codes

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[ASR] Disable the ASR apptest for a while
Dongju Chae [Tue, 17 Mar 2020 09:19:04 +0000 (18:19 +0900)]
[ASR] Disable the ASR apptest for a while

This patch disables the ASR apptest until the TRIA driver is prepared.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[cgem/version] Fix the version handling in cgem driver API
Dongju Chae [Tue, 17 Mar 2020 07:02:48 +0000 (16:02 +0900)]
[cgem/version] Fix the version handling in cgem driver API

This patch fixes the version handling in cgem driver API.

After the Tizen base is updated, the original version checking
is not working. Thus, we now reply on the standard drm driver
version check API (i.e., drmGetVersion) in libdrm/xf86drm.h.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Handler] Fix error handling on output allocation
Dongju Chae [Mon, 16 Mar 2020 03:05:09 +0000 (12:05 +0900)]
[Handler] Fix error handling on output allocation

This commit fixes error handling on output allocation

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Release] NPU Engine 1.2.0 release
Dongju Chae [Tue, 10 Mar 2020 03:21:28 +0000 (12:21 +0900)]
[Release] NPU Engine 1.2.0 release

This commit makes the NPU Engine 1.2.0 release

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Version] Make meson.build forward the version info. to sources
Dongju Chae [Tue, 10 Mar 2020 03:13:39 +0000 (12:13 +0900)]
[Version] Make meson.build forward the version info. to sources

This commit is to make meson.build forward the version info. to sources.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Priority] Disable the comment-out of priority setting
Dongju Chae [Tue, 10 Mar 2020 03:25:17 +0000 (12:25 +0900)]
[Priority] Disable the comment-out of priority setting

This commit disables the comment-out of priority setting as
the kernel header was newly updated.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Refactor] Refactor according the changes in the device driver
Wook Song [Fri, 6 Mar 2020 06:26:34 +0000 (15:26 +0900)]
[Refactor] Refactor according the changes in the device driver

This patch applies the recent changes in the kernel device driver [1] to
the related modules.

[1] 27ff14af [Drivers/SRNPU] Restructure SRNPU Core and Vision drivers

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Release] NPU Engine release 1.1.4
Dongju Chae [Fri, 6 Mar 2020 03:04:08 +0000 (12:04 +0900)]
[Release] NPU Engine release 1.1.4

This commit makes a NPU Engine release 1.1.4

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest] change the way to run unittests in debian/rules
Dongju Chae [Fri, 6 Mar 2020 05:37:51 +0000 (14:37 +0900)]
[UnitTest] change the way to run unittests in debian/rules

This commit changes the way to run unittests in debian/rules

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Fix] Rename DSP-related ones to HW/Recurring
Dongju Chae [Fri, 6 Mar 2020 05:33:18 +0000 (14:33 +0900)]
[Fix] Rename DSP-related ones to HW/Recurring

This commit renames DSP to HW/recurring because TRIV2 already
contains DSP inside SoC, and we don't know exact HW used in VD.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Dist] Fix .spec file for Tizen dist
Dongju Chae [Fri, 6 Mar 2020 03:34:55 +0000 (12:34 +0900)]
[Dist] Fix .spec file for Tizen dist

This commit fixes .spec file (e.g., wrong syntax, missing manifest)

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Dist] Add install_rpath for test cases
Dongju Chae [Thu, 5 Mar 2020 10:26:10 +0000 (19:26 +0900)]
[Dist] Add install_rpath for test cases

This commit adds install_rpath for test cases

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[ThreadPool/UnitTest] Add unittest to test thread pool functionality
Dongju Chae [Mon, 2 Mar 2020 10:09:18 +0000 (19:09 +0900)]
[ThreadPool/UnitTest] Add unittest to test thread pool functionality

This commit adds unittest to test the functionality of thread pool.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[CleanUp/UnitTest] Revise some unittests
Dongju Chae [Mon, 2 Mar 2020 10:08:37 +0000 (19:08 +0900)]
[CleanUp/UnitTest] Revise some unittests

This commit revises some unittests.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[DSP/ThreadPool] Handle tasks with high priority immediately
Dongju Chae [Mon, 2 Mar 2020 10:05:24 +0000 (19:05 +0900)]
[DSP/ThreadPool] Handle tasks with high priority immediately

This commit handles tasks with high priority immediately.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[InputService/DSP] Add internal input service with DSP
Dongju Chae [Thu, 27 Feb 2020 08:22:34 +0000 (17:22 +0900)]
[InputService/DSP] Add internal input service with DSP

This commit implements DSP input service for TRIV-2.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[ThreadPool] Seperate the thread pool impl. from host inputservice.
Dongju Chae [Thu, 27 Feb 2020 07:18:20 +0000 (16:18 +0900)]
[ThreadPool] Seperate the thread pool impl. from host inputservice.

This commit seperates the thread pool impl. from host inputservice for
other input services.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[API/DSP] Implement runNPU_internalInput() for VDNPU with DSP inputs
Dongju Chae [Thu, 27 Feb 2020 04:48:16 +0000 (13:48 +0900)]
[API/DSP] Implement runNPU_internalInput() for VDNPU with DSP inputs

This commit implements runNPU_internalInput() for VDNPU with DSP inputs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Tests] Revise unit/apptests to sync with updated interfaces
Dongju Chae [Tue, 25 Feb 2020 11:35:18 +0000 (20:35 +0900)]
[Tests] Revise unit/apptests to sync with updated interfaces

This commit revises unit/apptests to sync with updated interfaces.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Revision] Revise ne-host-inputservice.c to use thread pool
Dongju Chae [Tue, 25 Feb 2020 11:28:27 +0000 (20:28 +0900)]
[Revision] Revise ne-host-inputservice.c to use thread pool

This commit revises ne-host-inputservice.c to use thread pool.
For no buffering mode, user library needs to manage multiple threads.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Revision] Implement no buffering for NPU inference
Dongju Chae [Tue, 25 Feb 2020 11:26:54 +0000 (20:26 +0900)]
[Revision] Implement no buffering for NPU inference

This commit implements no buffering for NPU inference.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Option] Add the option to manage buffering
Dongju Chae [Tue, 25 Feb 2020 11:14:57 +0000 (20:14 +0900)]
[Option] Add the option to manage buffering

This commit adds the option to manage buffering.
We are going to move the duty of scheduling to kernel driver.
This option will handle this.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[API/Priority] Add the API to set timeout/priority per model
Dongju Chae [Tue, 25 Feb 2020 11:07:48 +0000 (20:07 +0900)]
[API/Priority] Add the API to set timeout/priority per model

This commit adds the API to set timeout/priority per model.
Note that per-request handling requires more software burdens, and API
modification, which are not desirable.
Also, we now support three types of priorities for inference requests,
HIGH, MID, and LOW.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Release] NPU Engine release 1.1.3
Dongju Chae [Thu, 5 Mar 2020 04:55:25 +0000 (13:55 +0900)]
[Release] NPU Engine release 1.1.3

This commit makes NPU Engine release 1.1.3

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Dist] Specify install_rpath for ubuntu users
Dongju Chae [Thu, 5 Mar 2020 04:35:02 +0000 (13:35 +0900)]
[Dist] Specify install_rpath for ubuntu users

This commit specifies install_rpath for ubuntu users

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Testdata] Remove unnecessary model testdata
Dongju Chae [Tue, 3 Mar 2020 10:31:21 +0000 (19:31 +0900)]
[Testdata] Remove unnecessary model testdata

This commit removes unnecessary model testdata.
This was already moved to another repo.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[AppTest] Skip model apptests to remove testdata build dependency
Dongju Chae [Wed, 4 Mar 2020 09:59:47 +0000 (18:59 +0900)]
[AppTest] Skip model apptests to remove testdata build dependency

This commit skips model apptests in npu-engine, but CI server will
perform this test instead.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[NPU/UnitTest] Add a missing setup related to timeout, before run_input()
Dongju Chae [Tue, 3 Mar 2020 09:56:42 +0000 (18:56 +0900)]
[NPU/UnitTest] Add a missing setup related to timeout, before run_input()

This commit adds a missing setup of timeout before run_input()

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Release] NPU Engine v1.1.2 release
Dongju Chae [Tue, 3 Mar 2020 03:24:21 +0000 (12:24 +0900)]
[Release] NPU Engine v1.1.2 release

This commit makes NPU Engine v1.1.2 release.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Doc] Fix updated information
Dongju Chae [Wed, 26 Feb 2020 08:10:44 +0000 (17:10 +0900)]
[Doc] Fix updated information

This commit fixes updated information

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[VOC/API] Add a host API to get model metadata
Dongju Chae [Mon, 24 Feb 2020 07:49:50 +0000 (16:49 +0900)]
[VOC/API] Add a host API to get model metadata

This commit adds a host API to get model metadata.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Release] 1.1.1 release
Dongju Chae [Mon, 2 Mar 2020 04:59:50 +0000 (13:59 +0900)]
[Release] 1.1.1 release

This commit makes a NPU-Engine release, 1.1.1.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Bug/DataManip] Fix bug: skip data manip. when LAYOUT_SRNPU is used
Dongju Chae [Mon, 2 Mar 2020 04:55:06 +0000 (13:55 +0900)]
[Bug/DataManip] Fix bug: skip data manip. when LAYOUT_SRNPU is used

This commit fixes the bug that performed data manipulation on LAYOUT_SRNPU.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>