platform/adaptation/npu/trix-engine.git
3 years ago[Svace] Fix svace issues newly detected
Dongju Chae [Mon, 10 Aug 2020 08:45:47 +0000 (17:45 +0900)]
[Svace] Fix svace issues newly detected

This patch fixes svace issues newly detected, which includes
- UNINT.CTOR
- NULL_AFTER_DEREF
- FALL_THROUGH
- ...

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Core/HwInputSrv] Use dev_t instead of the path of device node
Wook Song [Thu, 6 Aug 2020 08:00:52 +0000 (17:00 +0900)]
[Core/HwInputSrv] Use dev_t instead of the path of device node

To indicate the device that provides the HW input, this patch uses dev_t
instead of the path of the device node.

Signed-off-by: Wook Song <wook16.song@samsung.com>
3 years ago[Doc] Update usage example
Dongju Chae [Wed, 5 Aug 2020 05:55:56 +0000 (14:55 +0900)]
[Doc] Update usage example

This patch updates doc/usage_exampled.md due to renamed apptests.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Apptest] Rename all apptests to be more intuitive
Dongju Chae [Wed, 5 Aug 2020 02:16:11 +0000 (11:16 +0900)]
[Apptest] Rename all apptests to be more intuitive

This patch renames all apptests to be more intuitive.
Also, some apptests (e.g., dummy-asr) is enabled due to a code coverage issue.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[SAM/Segt] Reduce Cyclomatic Complexity in segment table creation
Dongju Chae [Mon, 3 Aug 2020 08:36:55 +0000 (17:36 +0900)]
[SAM/Segt] Reduce Cyclomatic Complexity in segment table creation

This patch reduces Cyclomatic Complexity in segment table creation
process, reported by SAM analysis.

Also, it fixes missing error handling for external segments with
non-zero segment offsets.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Tests/AppTests] Add an application test to verify GEM compatibility
Wook Song [Tue, 4 Aug 2020 09:38:37 +0000 (18:38 +0900)]
[Tests/AppTests] Add an application test to verify GEM compatibility

This patch adds an application-level test to verify GEM compatibility of
NPU DDK.

Signed-off-by: Wook Song <wook16.song@samsung.com>
3 years ago[Tests/App] Fix wrong indentations
Wook Song [Mon, 3 Aug 2020 01:50:54 +0000 (10:50 +0900)]
[Tests/App] Fix wrong indentations

This patch is a trivial one that fixes wrong indentations.

Signed-off-by: Wook Song <wook16.song@samsung.com>
3 years ago[Tests/Unittests/HwMem] Replace 'vgem' with 'cgem'
Wook Song [Tue, 4 Aug 2020 09:43:54 +0000 (18:43 +0900)]
[Tests/Unittests/HwMem] Replace 'vgem' with 'cgem'

This is a trivial ont that replaces the keyword, 'vgem', with 'cgem'.

Signed-off-by: Wook Song <wook16.song@samsung.com>
3 years ago[API/HwInput] Fix runInternal() API for HW input service
Dongju Chae [Wed, 29 Jul 2020 06:15:10 +0000 (15:15 +0900)]
[API/HwInput] Fix runInternal() API for HW input service

This patch fixes runInternal() APi for HW input service.
It requires extra variables in run_input ioctl structure.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Svace] Resolve unresolved svace issues
Dongju Chae [Mon, 3 Aug 2020 07:23:48 +0000 (16:23 +0900)]
[Svace] Resolve unresolved svace issues

This patch resolves some svace issued, which includes
- UNINIT_LOCAL_VAR.EX
- DEREF_OF_NULL.ASSIGN
- MEMORY_LEAK.EX
- INTEGER_OVERFLOW
...

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Tests/UnitTests] Add test cases for HWMemExternal (gem)
Wook Song [Wed, 22 Jul 2020 05:21:13 +0000 (14:21 +0900)]
[Tests/UnitTests] Add test cases for HWMemExternal (gem)

This patch adds basic test cases to check the HWMemExternal interface
with GEM.

Signed-off-by: Wook Song <wook16.song@samsung.com>
3 years ago[UnitTest/NPU] Fix the handling of runInput() return values
Dongju Chae [Wed, 29 Jul 2020 06:15:47 +0000 (15:15 +0900)]
[UnitTest/NPU] Fix the handling of runInput() return values

This patch fixes the handling of runInput() return values.
Now, runInput can return 0 or positive values.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[NPUBINFMT] Add an NPU (i.e., arch) version in npubinfmt
Dongju Chae [Thu, 23 Jul 2020 09:00:04 +0000 (18:00 +0900)]
[NPUBINFMT] Add an NPU (i.e., arch) version in npubinfmt

This patch adds an NPU version (e.g., v2.1.1) in npubinfmt

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[API/RunInternal] Implement run_internal (HW recurring) API
Dongju Chae [Wed, 22 Jul 2020 05:40:54 +0000 (14:40 +0900)]
[API/RunInternal] Implement run_internal (HW recurring) API

This patch implements run_internal (HW_recurring) API, and
adds its apptest.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[libnpuhost] Revisiting alloc/dealloc APIs
Dongju Chae [Thu, 23 Jul 2020 01:57:45 +0000 (10:57 +0900)]
[libnpuhost] Revisiting alloc/dealloc APIs

This patch revisits alloc/dealloc APIs in libnpuhost.
It adds generic alloc/dealloc functions for input/model aliases,
and alloc() for multi-tensors no longer forces contiguous memory space.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[AppTest] test cpu polling for output notification
Dongju Chae [Wed, 15 Jul 2020 04:12:49 +0000 (13:12 +0900)]
[AppTest] test cpu polling for output notification

This patch adds new option to enable cpu polling, instead of interrupt,
for output notification in the 'multiple_runs' apptest.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[AppTest] Add apptest for multiple runs with the same model
Dongju Chae [Thu, 9 Jul 2020 10:12:55 +0000 (19:12 +0900)]
[AppTest] Add apptest for multiple runs with the same model

This patch adds apptest for multiple runs with the same model

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Release] npu-engine 2.0.5 release
Dongju Chae [Mon, 6 Jul 2020 06:20:42 +0000 (15:20 +0900)]
[Release] npu-engine 2.0.5 release

This patch makes npu-engine 2.0.5 release.

Changelog
- Fix tensor size calculations on TRIV2 layout
- Add some testcases to run infernces using an async thread

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Triv2] Fix calculating input/output tensor sizes on TRIV2 layout
Dongju Chae [Mon, 6 Jul 2020 06:17:11 +0000 (15:17 +0900)]
[Triv2] Fix calculating input/output tensor sizes on TRIV2 layout

This patch fixes calculating input/output tensor sizes on TRIV2 layout

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[AppTest] Add extra arg to dump the obtained output
Dongju Chae [Mon, 6 Jul 2020 08:00:19 +0000 (17:00 +0900)]
[AppTest] Add extra arg to dump the obtained output

This patch adds extra arg to dump the obtained output.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[README] Fix a broken link to meta-trinity
Dongju Chae [Mon, 6 Jul 2020 08:31:21 +0000 (17:31 +0900)]
[README] Fix a broken link to meta-trinity

This patch fixes a broken link to meta-trinity due to the changed
branch name.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Tests/NPU] Add test cases running inference using an async thread
Wook Song [Wed, 1 Jul 2020 05:17:14 +0000 (14:17 +0900)]
[Tests/NPU] Add test cases running inference using an async thread

This patch adds positive test cases that run inference using an async
thread.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Release] npu-engine 2.0.4 release
Dongju Chae [Fri, 19 Jun 2020 09:52:29 +0000 (18:52 +0900)]
[Release] npu-engine 2.0.4 release

This patch makes npu-engine 2.0.4 release.
Please check out the change log (./CHANGES).

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[AppTest/Dmabuf] add missing setDataInfo() in apptest_dmabuf_buffers
Dongju Chae [Mon, 22 Jun 2020 06:43:41 +0000 (15:43 +0900)]
[AppTest/Dmabuf] add missing setDataInfo() in apptest_dmabuf_buffers

This patch adds missing setDataInfo() in apptest_dmabuf_buffers.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Triv2/Model] Add the model's finalize() to apply user configurations
Dongju Chae [Mon, 22 Jun 2020 04:49:59 +0000 (13:49 +0900)]
[Triv2/Model] Add the model's finalize() to apply user configurations

This patch adds the model's finalize() to apply user configurations
before running inference.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Debugging] Add log verbose mode for debugging.
Dongju Chae [Fri, 19 Jun 2020 07:41:37 +0000 (16:41 +0900)]
[Debugging] Add log verbose mode for debugging.

This patch adds log verbose mode for debugging.

When it's enabled, npu-engine prints log message to stderr
as well as log file, and also dumps the emulated layer data.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Ioctl] Add numRequests/stop ioctl() impl for trinity devices
Dongju Chae [Fri, 19 Jun 2020 09:43:36 +0000 (18:43 +0900)]
[Ioctl] Add numRequests/stop ioctl() impl for trinity devices

This patch adds numRequests/stop ioctl impl for trinity devices.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Triv2/Fix] Add error handling codes to check too large input data
Dongju Chae [Fri, 19 Jun 2020 05:50:04 +0000 (14:50 +0900)]
[Triv2/Fix] Add error handling codes to check too large input data

This patch adds error handling codes to check too larget input data.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Release] npu-engine 2.0.2 release
Dongju Chae [Wed, 17 Jun 2020 02:15:02 +0000 (11:15 +0900)]
[Release] npu-engine 2.0.2 release

This patch makes npu-engine 2.0.2 release.
Please check out the change log (./CHANGES).

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Scheduler] Implement the request stop feature
Dongju Chae [Wed, 17 Jun 2020 06:39:49 +0000 (15:39 +0900)]
[Scheduler] Implement the request stop feature

This patch implements the request stop feature to terminate
all submitted requests. If a request is already running, it's
expected for runInput() to return -ECANCELED within a short time.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[API] Add new API to check the device status before running
Dongju Chae [Wed, 17 Jun 2020 02:47:06 +0000 (11:47 +0900)]
[API] Add new API to check the device status before running

This patch adds new API to check the device status before running.
It's one of VD requirments in July release.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[ioctl] apply memory status ioctl() for trinity devices
Dongju Chae [Thu, 11 Jun 2020 05:36:40 +0000 (14:36 +0900)]
[ioctl] apply memory status ioctl() for trinity devices

This patch applies memory status ioctl() for trinity devices

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Emul] Revise model id calculation
Dongju Chae [Thu, 11 Jun 2020 02:50:38 +0000 (11:50 +0900)]
[Emul] Revise model id calculation

This patch revises model id calculation

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[README] Add extra info to README.md for the FPGA porting guide
Dongju Chae [Tue, 9 Jun 2020 07:57:47 +0000 (16:57 +0900)]
[README] Add extra info to README.md for the FPGA porting guide

This patch adds extra info to README.md for the FPGA porting guide.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Meson] Revise the build script to check sysroot and kernel header file
Wook Song [Thu, 4 Jun 2020 06:39:01 +0000 (15:39 +0900)]
[Meson] Revise the build script to check sysroot and kernel header file

This patch revises the build script to check sysroot and the kernel
header file, 'misc/trinity.h'.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Fix] Add missing data size calculation for TRIV2 quant types
Dongju Chae [Mon, 1 Jun 2020 08:36:03 +0000 (17:36 +0900)]
[Fix] Add missing data size calculation for TRIV2 quant types

This patch adds missing data size calculation for TRIV2 quant types.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Meson] Add a fallback mechanism for build dependency on iniparser
Wook Song [Mon, 1 Jun 2020 07:21:10 +0000 (16:21 +0900)]
[Meson] Add a fallback mechanism for build dependency on iniparser

The upstream of iniparser does not provide .pc or .cmake files.
Therefore, in order to distribute the development package for iniparser,
providing those files is up to the package maintainers for various
platforms. This is the reason why some platforms have the .pc file for
iniparser and others don't. To resolve this issue, this patch adds a
fallback mechanism for build dependency on iniparser to the meson build
script.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Dist] Remove build dependency on libdrm
Wook Song [Mon, 1 Jun 2020 06:18:36 +0000 (15:18 +0900)]
[Dist] Remove build dependency on libdrm

This patch removes build dependency on libdrm, which is not used
anymore.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Handler] Fix triv's weight offset setting
Dongju Chae [Thu, 28 May 2020 02:23:47 +0000 (11:23 +0900)]
[Handler] Fix triv's weight offset setting

This patch fixes triv's weight offset setting.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Release] NPU Engine new release 2.0.1
Dongju Chae [Tue, 26 May 2020 11:42:21 +0000 (20:42 +0900)]
[Release] NPU Engine new release 2.0.1

This patch makes new release 2.0.1

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[npubinfmt/v3] skip checking weight segment if weight size is zero
Dongju Chae [Wed, 27 May 2020 10:57:24 +0000 (19:57 +0900)]
[npubinfmt/v3] skip checking weight segment if weight size is zero

This patch fixes weight segment check. We don't have to check weight
segment if the model does not use weight data.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Coverage] Increase the code coverage by excluding some files
Dongju Chae [Wed, 27 May 2020 07:27:10 +0000 (16:27 +0900)]
[Coverage] Increase the code coverage by excluding some files

This patch increases the coverage by excluding some files such as
NPUdrvAPI_triv and NPUdrvAPI_triv2 because they're available in
FastModel only. Also, remove deprecated functions in libnpuhost.h

In short, the final code coverage is 85.9 %.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Core/NPU/DrvAPI] Fix bugs in checking the sanity of the driver
Wook Song [Wed, 27 May 2020 04:53:36 +0000 (13:53 +0900)]
[Core/NPU/DrvAPI] Fix bugs in checking the sanity of the driver

This patch fixes bugs in the function that checks the sanity of the
device driver.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Doxygen/libnpuhost] Revise some comments in libnpuhost.h
Dongju Chae [Tue, 26 May 2020 11:45:07 +0000 (20:45 +0900)]
[Doxygen/libnpuhost] Revise some comments in libnpuhost.h

This patch revises some comments in libnpuhost.h

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[handler] implement each device's unsetModel() to call deregisterModel()
Dongju Chae [Tue, 26 May 2020 06:58:46 +0000 (15:58 +0900)]
[handler] implement each device's unsetModel() to call deregisterModel()

This patch adds missing unsetModel() to call api->deregisterModel().

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Dmabuf] Revise the dmabuf apptest using TRIV2 device
Dongju Chae [Mon, 25 May 2020 03:48:46 +0000 (12:48 +0900)]
[Dmabuf] Revise the dmabuf apptest using TRIV2 device

This patch revises the dmabuf apptest using TRIV2 device.
To emulate external memory, it uses TRIV1 device as backing storage.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years agoRevise some documents (e.g., removing ubuntu 18.04, additional notes)
Dongju Chae [Mon, 25 May 2020 01:42:46 +0000 (10:42 +0900)]
Revise some documents (e.g., removing ubuntu 18.04, additional notes)

This patch revises some documents (e.g., removing ubuntu 18.04,
additional notes)

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTests/NPU/Triv2] Add an inference test with valid input data
Wook Song [Mon, 25 May 2020 09:03:30 +0000 (18:03 +0900)]
[UnitTests/NPU/Triv2] Add an inference test with valid input data

This patch adds a unit test case that runs inference with valid
segmentation information for the Trinity Vision 2 device.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Triv2] Implement driver API for Triv2 device
Wook Song [Wed, 20 May 2020 05:23:54 +0000 (14:23 +0900)]
[Triv2] Implement driver API for Triv2 device

This patch implements the driver API class body for Triv2 device and
revises related test cases.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Fix/Svace] Resolve a few svace issues
Dongju Chae [Fri, 22 May 2020 08:12:15 +0000 (17:12 +0900)]
[Fix/Svace] Resolve a few svace issues

This patch resolves a few svace issues, which includes
- UNINIT.CTOR
- UNREACHABLE_CODE

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Fix] Make the weight segment instead of reusing model binary
Dongju Chae [Thu, 21 May 2020 10:42:20 +0000 (19:42 +0900)]
[Fix] Make the weight segment instead of reusing model binary

This patch makes an additional weight segment instead of reusing model binary.
But, in this case, we cannot support model binaries with BUFFER_DMABUF.

Also, it removes uncessary weight data memcpy.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Release] NPU SystemService 2.0.0
Dongju Chae [Fri, 8 May 2020 06:42:00 +0000 (15:42 +0900)]
[Release] NPU SystemService 2.0.0

This patch makes a new release, NPU SystemService 2.0.0.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Fix] Make memory leak checking be optional
Dongju Chae [Tue, 19 May 2020 07:09:23 +0000 (16:09 +0900)]
[Fix] Make memory leak checking be optional

This patch makes memory leak checking be optional in apptests.
We cannot force this until memory status APIs are implemented.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Fix/Bug] memory allocator's allocMemory() should not create hwmem
Dongju Chae [Tue, 19 May 2020 04:27:59 +0000 (13:27 +0900)]
[Fix/Bug] memory allocator's allocMemory() should not create hwmem

This patch fixes the bug that memory allocator's allocMemory() has
created hwmem instance. It could make a double-free bug.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Fix/Bug] Resolve the bug overwriting some region in input_config
Dongju Chae [Mon, 18 May 2020 09:08:06 +0000 (18:08 +0900)]
[Fix/Bug] Resolve the bug overwriting some region in input_config

This patch resolves the bug overwriting some region in input_config.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
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>