platform/adaptation/npu/trix-engine.git
3 years ago[npubinfmt] add extra info to store number of visa insts
Dongju Chae [Tue, 26 Jan 2021 03:09:02 +0000 (12:09 +0900)]
[npubinfmt] add extra info to store number of visa insts

This patch adds extra info to npubinfmt storing number of visa insts.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Release] NPU Engine 2.3.0 release
Dongju Chae [Fri, 15 Jan 2021 08:07:52 +0000 (17:07 +0900)]
[Release] NPU Engine 2.3.0 release

This patch makes new release for NPU Engine, v2.3.0.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Profile] Implement vISA to layer (tensor name) mapping
Dongju Chae [Thu, 14 Jan 2021 10:57:50 +0000 (19:57 +0900)]
[Profile] Implement vISA to layer (tensor name) mapping

This patch implements vISA to layer (tensor name) mapping.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Doc/Fix] Update some documents to apply changed testdata path
Dongju Chae [Fri, 15 Jan 2021 03:56:15 +0000 (12:56 +0900)]
[Doc/Fix] Update some documents to apply changed testdata path

This patch updates some documents to apply changed testdata path.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Profile] Get per-layer profiling info. from extended metadata
Dongju Chae [Tue, 12 Jan 2021 07:21:07 +0000 (16:21 +0900)]
[Profile] Get per-layer profiling info. from extended metadata

This patch gets per-layer profiling info. from extended metadata.
The detail parsing will be implemented soon.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Apptest/Doc] Add sample usage example using libnpuhost.h
Dongju Chae [Thu, 14 Jan 2021 05:47:35 +0000 (14:47 +0900)]
[Apptest/Doc] Add sample usage example using libnpuhost.h

This patch adds sample usage example using libnpuhost.h
to provide straightforward API examples for newbies.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[UnitTest/NPU] Remove some testcases for TRIV1
Dongju Chae [Mon, 11 Jan 2021 05:50:48 +0000 (14:50 +0900)]
[UnitTest/NPU] Remove some testcases for TRIV1

This patch removes some testcases for TRIV1.
The kernel driver does not support TRIV1 anymore.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[UAPI] Set model's npubinfmt version
Dongju Chae [Thu, 7 Jan 2021 05:28:49 +0000 (14:28 +0900)]
[UAPI] Set model's npubinfmt version

This patch sets model's npubinfmt version.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[npubinfmt/profile] Add decription of extended metadata for profiling
Dongju Chae [Tue, 12 Jan 2021 03:32:01 +0000 (12:32 +0900)]
[npubinfmt/profile] Add decription of extended metadata for profiling

This patch adds some description of extended metadata for profiling.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[npubinfmt/profile] Rename the magiccode's extra field
Dongju Chae [Tue, 12 Jan 2021 03:16:08 +0000 (12:16 +0900)]
[npubinfmt/profile] Rename the magiccode's extra field

This patch renames `extra` field in npubinfmt's `magiccode`.
As it's confusing with extra version, it's renamed to `extended`.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Fix] Specify recurring test's target NPU to 8TOPS
Dongju Chae [Wed, 6 Jan 2021 04:54:39 +0000 (13:54 +0900)]
[Fix] Specify recurring test's target NPU to 8TOPS

This patch specifies recurring test's target NPU to 8TOPS.
Later, it will be changed to 2TOPS when testdata is ready.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Fix/UnitTest] Change the npu version for testing
Dongju Chae [Wed, 6 Jan 2021 03:38:45 +0000 (12:38 +0900)]
[Fix/UnitTest] Change the npu version for testing

This patch changes the npu version for testing.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Fix] fix a potential deadlock when calling join()
Dongju Chae [Tue, 5 Jan 2021 09:57:25 +0000 (18:57 +0900)]
[Fix] fix a potential deadlock when calling join()

This patch fixes a potential deadlock when calling join().

If we don't guard a stop variable with the lock, after checking
the predicate of wait(), notify_all() can be performed early before
calling actuall wait().

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[TRIV2.3/API] Add new API to get a device instance with tops info
Dongju Chae [Tue, 5 Jan 2021 01:23:03 +0000 (10:23 +0900)]
[TRIV2.3/API] Add new API to get a device instance with tops info

This patch adds new API to get a device instance with tops info.
It tries to find any available device with the given tops.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Release] npu-engine 2.2.10 release
Dongju Chae [Mon, 4 Jan 2021 01:57:32 +0000 (10:57 +0900)]
[Release] npu-engine 2.2.10 release

This patch makes npu-engine's new release, v2.2.10

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[2TOPS/Fix] Use dynamic data granularity
Dongju Chae [Wed, 30 Dec 2020 01:24:51 +0000 (10:24 +0900)]
[2TOPS/Fix] Use dynamic data granularity

This patch changes codes to use dynamic data granularity depending on
the npu tops and element size.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Coverage] Increase code coverage
Dongju Chae [Fri, 18 Dec 2020 04:43:29 +0000 (13:43 +0900)]
[Coverage] Increase code coverage

This patch increases code coverage. Recently, we added some APIs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Release] NPU Engine v2.2.9 Release
Dongju Chae [Mon, 14 Dec 2020 10:41:06 +0000 (19:41 +0900)]
[Release] NPU Engine v2.2.9 Release

This patch makes new release for NPU Engine, v2.2.9.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Packaging/Fix] Remove unnecessary dependency
Dongju Chae [Wed, 9 Dec 2020 07:14:49 +0000 (16:14 +0900)]
[Packaging/Fix] Remove unnecessary dependency

This patch removes unnecessary dependency for libncurses.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Profile] Revise profiling interface for TRIV2 kernel driver
Dongju Chae [Wed, 9 Dec 2020 07:14:49 +0000 (16:14 +0900)]
[Profile] Revise profiling interface for TRIV2 kernel driver

This patch revises profiling interface for TRIV2 kernel driver.
It tries to keep the same interface with simulator's one.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Utils] Fix minor defects from svace analysis
Dongju Chae [Fri, 4 Dec 2020 08:44:27 +0000 (17:44 +0900)]
[Utils] Fix minor defects from svace analysis

This patch fixes minor defects from svace analysis.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Release] npu-engine release v2.2.8
Dongju Chae [Thu, 3 Dec 2020 12:15:34 +0000 (21:15 +0900)]
[Release] npu-engine release v2.2.8

This patch makes new release of npu-engine library, v2.2.8.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Profile] Implement the profile interface and fix minor bugs
Dongju Chae [Thu, 3 Dec 2020 11:45:59 +0000 (20:45 +0900)]
[Profile] Implement the profile interface and fix minor bugs

This patch implements the profile interface synced with libmrpsim
updates and fixes some minor bugs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Release] npu-engine release v2.2.7
Dongju Chae [Mon, 23 Nov 2020 05:52:12 +0000 (14:52 +0900)]
[Release] npu-engine release v2.2.7

This patch makes new release of npu-engine library, v2.2.7.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Utils/Trinity-SMI] Add an option to wait the interval between updates
Dongju Chae [Tue, 24 Nov 2020 03:57:12 +0000 (12:57 +0900)]
[Utils/Trinity-SMI] Add an option to wait the interval between updates

This patch adds an option to wait the interval between updates in
the command line tool, trinity-smi. It requires ncurses as the extra
dependency.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Emul/2TOPS] Fix a wrong command filepath for 2TOPS NPU
Dongju Chae [Thu, 26 Nov 2020 02:41:17 +0000 (11:41 +0900)]
[Emul/2TOPS] Fix a wrong command filepath for 2TOPS NPU

This patch fixes a wrong command filepath for 2TOPS NPU
from triv2-2tops to triv2_2tops.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Host/Refactor] Move libnpuhost codes to ./src/host/
Dongju Chae [Mon, 23 Nov 2020 05:42:58 +0000 (14:42 +0900)]
[Host/Refactor] Move libnpuhost codes to ./src/host/

This patch makes refactoring for libnpuhost codes by
moving the codes to host/ne-host.cc from core/ne-handler.cc

In short, the patch includes
- Seperate host APIs from handler
- Move definitions from libnpuhost.h to typedef.h
- Remove inclusion of libnpuhost.h in core sources
- Remove unused variables

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[UTILS] Add a feature of trinity-smi to show list of apps/tasks
Dongju Chae [Fri, 20 Nov 2020 02:11:06 +0000 (11:11 +0900)]
[UTILS] Add a feature of trinity-smi to show list of apps/tasks

This patch adds a feature of trinity-smi to show list of apps/tasks

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Release] npu-engine 2.2.6 release
Dongju Chae [Wed, 18 Nov 2020 01:39:37 +0000 (10:39 +0900)]
[Release] npu-engine 2.2.6 release

This patch makes new release of npu-engine, 2.2.6.
Please refer to ./CHANGES for details.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[README] Add the quick-start guide using docker
Dongju Chae [Tue, 17 Nov 2020 08:48:45 +0000 (17:48 +0900)]
[README] Add the quick-start guide using docker

This patch adds the Quick-start guide using docker for npu-engine
users.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Utils] Prototype of trinity-smi for management and monitoring
Dongju Chae [Fri, 13 Nov 2020 10:39:11 +0000 (19:39 +0900)]
[Utils] Prototype of trinity-smi for management and monitoring

This patch implements the prototype of trinity-smi, which is a
command line util for management and monitoring of trinity devices.

- trinity-smi (Trinity System Management Interface)

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Handler/API] Add libnpuhost APIs to get NPU device's TOPS
Dongju Chae [Wed, 18 Nov 2020 04:17:07 +0000 (13:17 +0900)]
[Handler/API] Add libnpuhost APIs to get NPU device's TOPS

This patch adds libnpuhost APIs to get NPU device's TOPS

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Handler/API] Add libnpuhost APIs to get driver API level
Dongju Chae [Fri, 13 Nov 2020 10:36:59 +0000 (19:36 +0900)]
[Handler/API] Add libnpuhost APIs to get driver API level

This patch adds libnpuhost APIs to get driver API levle.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Util/Fix] Skip TRIV emulation on debian env.
Dongju Chae [Fri, 13 Nov 2020 03:29:02 +0000 (12:29 +0900)]
[Util/Fix] Skip TRIV emulation on debian env.

This patch skips TRIV emulation on debian env.
We don't support TRIV emulation libary from now on.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Emul/2TOPS] Use environment variable to set the command file
Dongju Chae [Thu, 12 Nov 2020 06:52:59 +0000 (15:52 +0900)]
[Emul/2TOPS] Use environment variable to set the command file

This patch uses environment variable to set the command file
for libmrpsim. The 2-TOPS emulation uses different arch spec.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Release] npu-engine 2.2.5 release
Dongju Chae [Wed, 4 Nov 2020 05:50:24 +0000 (14:50 +0900)]
[Release] npu-engine 2.2.5 release

This patch makes npu-engine 2.2.5 release.
Please refer to ./CHANGES for details.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Model/Tops] Check the TOPS which TRIV2 device supports
Dongju Chae [Mon, 9 Nov 2020 09:08:46 +0000 (18:08 +0900)]
[Model/Tops] Check the TOPS which TRIV2 device supports

This patch adds the routine to check the TOPS device supports.
It compares the device's TOPS and model-described TOPS.
For backward-compatability, if TOPS is zero, it's regarded as "don't care"

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[npubinfmt] Add the size of dsp memory to npubinfmt
Dongju Chae [Tue, 10 Nov 2020 07:22:03 +0000 (16:22 +0900)]
[npubinfmt] Add the size of dsp memory to npubinfmt

This patch adds the size of dsp memory to npubinfmt.h as extra
variable for DSP.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[npubinfmt] add macro to get 'TOPS' from npu_version
Dongju Chae [Wed, 4 Nov 2020 09:45:09 +0000 (18:45 +0900)]
[npubinfmt] add macro to get 'TOPS' from npu_version

This patch adds macro to get 'TOPS' from npu_version field
in npubinfmt.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[UnitTest] Add LD_LIBRARY_PATH to test envionment
Dongju Chae [Tue, 3 Nov 2020 09:51:15 +0000 (18:51 +0900)]
[UnitTest] Add LD_LIBRARY_PATH to test envionment

This patch adds LD_LIBRARY_PATH to test envionment.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
3 years ago[Emul] Revise NPU emulation to use libmrpsim.so
Dongju Chae [Fri, 30 Oct 2020 02:08:43 +0000 (11:08 +0900)]
[Emul] Revise NPU emulation to use libmrpsim.so

From now on, we don't use libnpu-engine-emul.so. Instead,
libmrpsim.so will do such work, and support profiling as well.
Also, the emulation on Tizen env. is now disabled.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Fix/Coverage] Fix the coverage script
Dongju Chae [Tue, 3 Nov 2020 03:14:14 +0000 (12:14 +0900)]
[Fix/Coverage] Fix the coverage script

This patch fixes the coverage script to generate gtest .xml output
files.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Debian/Coverage] Generage coverage report on debian
Dongju Chae [Mon, 2 Nov 2020 03:20:24 +0000 (12:20 +0900)]
[Debian/Coverage] Generage coverage report on debian

This patch enables coverage report generation on debian env.
Because libmrpsim.so does not support Tizen, the way to generate
line coverage also needs to be changed.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Fix/AppTest] Increase the timeout for triv2 bulk apptest
Dongju Chae [Mon, 2 Nov 2020 07:10:51 +0000 (16:10 +0900)]
[Fix/AppTest] Increase the timeout for triv2 bulk apptest

This patch increases the timeout for triv2 bulk apptest,
from 100ms to 5000ms. It was too tight to execute FSRCNN
on FastModel envionment.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Test/Util] Revise some apptests to use common test utility
Dongju Chae [Mon, 26 Oct 2020 11:06:50 +0000 (20:06 +0900)]
[Test/Util] Revise some apptests to use common test utility

This patch revises some apptests to use common test utility.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[DataConvert] Add missing warning messages on data converter
Dongju Chae [Mon, 26 Oct 2020 06:41:11 +0000 (15:41 +0900)]
[DataConvert] Add missing warning messages on data converter

This patch adds missing warning messages on data converter.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Release] npu-engine 2.2.4 release
Dongju Chae [Wed, 21 Oct 2020 09:46:18 +0000 (18:46 +0900)]
[Release] npu-engine 2.2.4 release

This patch makes npu-engine 2.2.4 release

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[FIX] Fix input/output data size calculation
Dongju Chae [Wed, 21 Oct 2020 09:44:05 +0000 (18:44 +0900)]
[FIX] Fix input/output data size calculation

This patch fixes input/output data size calculation.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Release] npu-engine 2.2.3 release
Dongju Chae [Wed, 23 Sep 2020 06:28:22 +0000 (15:28 +0900)]
[Release] npu-engine 2.2.3 release

This patch makes npu-engine 2.2.3 release.
Please check its details at ./CHANGES.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Profile] Implement the prototype of profiling APIs
Dongju Chae [Mon, 21 Sep 2020 05:51:52 +0000 (14:51 +0900)]
[Profile] Implement the prototype of profiling APIs

This patch implements the prototype of profiling APIs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Fix/Coverity] Resolve the reported coverity issues
Dongju Chae [Wed, 23 Sep 2020 06:53:46 +0000 (15:53 +0900)]
[Fix/Coverity] Resolve the reported coverity issues

This patch resolves the coverity issues reported by AnalysisHub,
which includes
- Uninitialized variables
- Resource leaks
- Race conditions

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Bug/Unregister] Fix the bug related to unregisterModels()
Dongju Chae [Wed, 23 Sep 2020 06:13:47 +0000 (15:13 +0900)]
[Bug/Unregister] Fix the bug related to unregisterModels()

This patch fixes the bug related to unregisterModels ().
The original codes just clear a model vector structure,
which was supposed to call unsetModel() per each model.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[AppTests] Skip the test when the given model is not compatible
Wook Song [Thu, 17 Sep 2020 12:04:45 +0000 (21:04 +0900)]
[AppTests] Skip the test when the given model is not compatible

When the given model is not compatible with the test case, this patch
makes the test skip that model with a proper message instead of
regarding it as a failed case.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[libnpuhost/profile] Add new APIs for NPU profiling
Dongju Chae [Tue, 15 Sep 2020 07:10:45 +0000 (16:10 +0900)]
[libnpuhost/profile] Add new APIs for NPU profiling

This patch adds new APIs for NPU profiling, but
they are not yet implemented.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[AppTests] Do not install the dummy apptests in normal release
Wook Song [Thu, 17 Sep 2020 05:00:35 +0000 (14:00 +0900)]
[AppTests] Do not install the dummy apptests in normal release

Since the dummy apptests are only for the line coverage calculation,
this patch tunrns off the installation of those apptests in the normal
release.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[AppTests/BulkGem] Fix a bug in destroying a DRM handle
Wook Song [Thu, 17 Sep 2020 03:21:10 +0000 (12:21 +0900)]
[AppTests/BulkGem] Fix a bug in destroying a DRM handle

This is a trivial patch that fixes a bug in destroying a DRM handle. It
returns 0 when it succeeds in destroying the given DRM handle.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[UnitTest/Bug] Add deregisterModel() after runInput()
Dongju Chae [Fri, 11 Sep 2020 08:14:35 +0000 (17:14 +0900)]
[UnitTest/Bug] Add deregisterModel() after runInput()

This patch adds deregisterModel() after runInput().
When we run this unittest twice, the kernel panic occurs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest] Reduce the sleep time for npu unittest
Dongju Chae [Fri, 11 Sep 2020 07:08:14 +0000 (16:08 +0900)]
[UnitTest] Reduce the sleep time for npu unittest

This patch reduces the sleep time for npu unittest.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Fix/AppTest] Deprecated enum in libtinyxml2-dev
Dongju Chae [Wed, 9 Sep 2020 05:15:43 +0000 (14:15 +0900)]
[Fix/AppTest] Deprecated enum in libtinyxml2-dev

This patch removes the build error in Ubuntu 18.04 (SPIN),
due to the deprecated enum (XML_NO_ERROR) in libtinyxml2-dev,

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[AppTest] Add apptest to test models with different constraints
Dongju Chae [Mon, 7 Sep 2020 05:56:18 +0000 (14:56 +0900)]
[AppTest] Add apptest to test models with different constraints

This patch adds apptests to test models with different constraints
(e.g., priority), which can be used for multi-tasking.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest] Add unit test cases to test functional of api in invalid case
kaka [Tue, 1 Sep 2020 10:55:57 +0000 (17:55 +0700)]
[UnitTest] Add unit test cases to test functional of api in invalid case
and increase coverage

This patch add some test case and expectation
- ne_libnpuhost_test : call getNPUdeviceByType with invalid num_devices
- ne_core_sched_test: add negative test case for set/get apis.
- ne_core_handler_test: call unsetModel in uninitilized test case,
add triv_prepare_dma_input_buffers to test BUFFER_DMABUF type,
add triv_prepare_input_buffers2_n to test with empty buffers,
add handler_generic_buffers_n to test with BUFFER_UNDEFINED type,
add handler_triv_stop_internal_n to check stopInternal with invalid id,
add handler_common_get_npu_device_by_type_n to check getNPUdeviceByType
with invalid type.

Signed-off-by: Truong Van bac <bac.truong@samsung.com>
This patch add some test case, assertion and  expectation
- Increase coverage
- Add need assertion in some object
Signed-off-by: Truong Van bac <bac.truong@samsung.com>
4 years ago[Fix/Utils] Use the standard library to restore format changes
Dongju Chae [Thu, 3 Sep 2020 04:03:51 +0000 (13:03 +0900)]
[Fix/Utils] Use the standard library to restore format changes

This patch uses the standard library (i.e., std::ios_base::fmtflags)
to retore format changes in std::cout. It removes any side-effect.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Fix/Utils] Fix missing format restoration of model inspector
Dongju Chae [Wed, 2 Sep 2020 05:02:13 +0000 (14:02 +0900)]
[Fix/Utils] Fix missing format restoration of model inspector

This patch fixes missing format restoration of model inspector,
reported by coverity.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Release] npu-engine 2.2.2 release
Dongju Chae [Fri, 21 Aug 2020 02:21:18 +0000 (11:21 +0900)]
[Release] npu-engine 2.2.2 release

This patch makes npu-engine 2.2.2 release.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[TRIV2] Add data manipulation support for TRIV2
Dongju Chae [Thu, 20 Aug 2020 06:25:51 +0000 (15:25 +0900)]
[TRIV2] Add data manipulation support for TRIV2

This patch adds data manipulation support for TRIV2,
which converts data layout between NHWC and HW format.

It includes data quantization as well.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[DataManip] Implement data converter class
Dongju Chae [Tue, 25 Aug 2020 10:48:51 +0000 (19:48 +0900)]
[DataManip] Implement data converter class

This patch adds data converter class, which mainly perform
the data format conversion and quantization.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Fix/Utils] Fix typo in model-inspect.cc
Dongju Chae [Fri, 21 Aug 2020 02:50:35 +0000 (11:50 +0900)]
[Fix/Utils] Fix typo in model-inspect.cc

This patch fixes typo in model-inspect.cc

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Bug/Weight] fix bug accessing weight seg idx when the data is empty
Dongju Chae [Thu, 27 Aug 2020 05:01:33 +0000 (14:01 +0900)]
[Bug/Weight] fix bug accessing weight seg idx when the data is empty

This patch fixes the bug accessing weight segment index
even when the weight data is empty.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Utils] Add npu-engine-utils packages
Dongju Chae [Thu, 20 Aug 2020 08:19:53 +0000 (17:19 +0900)]
[Utils] Add npu-engine-utils packages

This patch adds npu-engine-utils packages.
Currently, we support only model-inspect.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[libnpuhost] remove unused APIs
Dongju Chae [Thu, 20 Aug 2020 02:15:04 +0000 (11:15 +0900)]
[libnpuhost] remove unused APIs

This patch removes unused APIs.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[FIX/DMABUF] Fix external segments handling
Dongju Chae [Thu, 20 Aug 2020 02:00:04 +0000 (11:00 +0900)]
[FIX/DMABUF] Fix external segments handling

This patch fixes external segments handling.
It was creating only one external segment.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Release] npu-engine 2.2.1 release and code freeze for release
Dongju Chae [Wed, 19 Aug 2020 05:29:50 +0000 (14:29 +0900)]
[Release] npu-engine 2.2.1 release and code freeze for release

This patch makes npu-engine 2.2.1 release and freezes the codes
for release.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest] Remove unnecessary ifdef for emulation
Dongju Chae [Wed, 19 Aug 2020 06:27:39 +0000 (15:27 +0900)]
[UnitTest] Remove unnecessary ifdef for emulation

This patch removes unnecessary ifdef for emulation.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Doc/Test] Add documentation for nnstreamer-private-subplugin
Dongju Chae [Wed, 19 Aug 2020 04:34:34 +0000 (13:34 +0900)]
[Doc/Test] Add documentation for nnstreamer-private-subplugin

This patch adds documentation for nnstreamer-private-subplugin

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Fix/UnitTest] Resolve memory leaks in unittest
Dongju Chae [Wed, 19 Aug 2020 02:49:05 +0000 (11:49 +0900)]
[Fix/UnitTest] Resolve memory leaks in unittest

This patch resolves memory leaks in libnpuhost unittest

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Doc/Fix] Fix 'how_to_test.md' to distinguish host/fastmodel shell
Dongju Chae [Tue, 18 Aug 2020 02:47:06 +0000 (11:47 +0900)]
[Doc/Fix] Fix 'how_to_test.md' to distinguish host/fastmodel shell

This patch fixes 'how_to_test_md' documentation to make it possible
to distinguish host and FastModel's shells.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[FIX] resolve minor svace/coverity issues
Dongju Chae [Tue, 18 Aug 2020 04:17:33 +0000 (13:17 +0900)]
[FIX] resolve minor svace/coverity issues

This patch resolves minor svace/coverity issues such as
- Uninitialized variables in constructor
- Memory leaks in unittests

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Release] npu-engine release 2.2.0
Dongju Chae [Tue, 4 Aug 2020 04:37:07 +0000 (13:37 +0900)]
[Release] npu-engine release 2.2.0

This patch makes new release, 2.2.0, of npu-engine library.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[FIX/FPGA] Add driver-assisted memcpy for workaround solution
Dongju Chae [Fri, 7 Aug 2020 08:05:55 +0000 (17:05 +0900)]
[FIX/FPGA] Add driver-assisted memcpy for workaround solution

This patch adds driver-assisted memcpy for workaround solution.

In the current FPGA env, memcpy() between FPGAs makes bit-flip
for a certain memory regions. This workaround codes can avoid
this issue by driver-assisted codes.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Tests/Unit/Handler] Add a negative TC for registerModel()
Wook Song [Thu, 13 Aug 2020 09:12:42 +0000 (18:12 +0900)]
[Tests/Unit/Handler] Add a negative TC for registerModel()

This patch adds a negative TC for registerModel() in HostHandler.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Tests/Unit] Fix no-assertion TCs reported by TCM
Wook Song [Thu, 13 Aug 2020 08:56:01 +0000 (17:56 +0900)]
[Tests/Unit] Fix no-assertion TCs reported by TCM

This patch fixes two no-assertion test cases for utilities reported by
TCM.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Core/Utils] Make logWrite have a return value
Wook Song [Thu, 13 Aug 2020 08:21:14 +0000 (17:21 +0900)]
[Core/Utils] Make logWrite have a return value

This patch makes the logWrite method of Logger class have a return
value.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[UnitTest] Add some negative cases for libnpuhost unittest
Dongju Chae [Thu, 13 Aug 2020 07:03:06 +0000 (16:03 +0900)]
[UnitTest] Add some negative cases for libnpuhost unittest

This patch adds some negative cases for libnpuhost unittest

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest] Add new unittest for libnpuhost
Dongju Chae [Thu, 13 Aug 2020 06:02:00 +0000 (15:02 +0900)]
[UnitTest] Add new unittest for libnpuhost

This patch adds new unittest for libnpuhost.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Test/Util] Add util class for testing
Dongju Chae [Thu, 13 Aug 2020 05:59:26 +0000 (14:59 +0900)]
[Test/Util] Add util class for testing

This patch adds util class for testing.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Doc] Describe how to test NPU-DDK packages on FastModel
Dongju Chae [Tue, 11 Aug 2020 10:56:31 +0000 (19:56 +0900)]
[Doc] Describe how to test NPU-DDK packages on FastModel

This patch makes new doc for describing how to test NPU-DDK packages.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[AHub/TCM] Add config.yaml for TCM on AHub
Wook Song [Wed, 12 Aug 2020 08:33:00 +0000 (17:33 +0900)]
[AHub/TCM] Add config.yaml for TCM on AHub

This patch adds a config.yaml file for Test Case Manager running on
the Analysis Hub infra.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Fix/UnitTest] Fix some unittests of ne-inf.cc due to timing issue
Dongju Chae [Wed, 12 Aug 2020 09:39:54 +0000 (18:39 +0900)]
[Fix/UnitTest] Fix some unittests of ne-inf.cc due to timing issue

This fixes some unitests of ne-inf.cc.
Sometimes, invoke() returns -EBUSY due to the previous one.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[UnitTest] Increase unittests' sleep time to 100ms
Dongju Chae [Wed, 12 Aug 2020 06:48:48 +0000 (15:48 +0900)]
[UnitTest] Increase unittests' sleep time to 100ms

This patch increases unittests' sleep time to 100ms.
In some emulated envionment, the original sleep time is too fast
to check certain negative cases.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Fix/UnitTest] Fix some unresolved coverity issues in handler unittest
Dongju Chae [Wed, 12 Aug 2020 04:33:57 +0000 (13:33 +0900)]
[Fix/UnitTest] Fix some unresolved coverity issues in handler unittest

This patch fixes some unresolved coverity issues in handler unittest

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Fix/AppTest] Remove a model instance in TesterTRIV2
Dongju Chae [Wed, 12 Aug 2020 04:33:31 +0000 (13:33 +0900)]
[Fix/AppTest] Remove a model instance in TesterTRIV2

This patch removes a model instance in TesterTRIV2 for each TRIV2
apptest. It makes svace/coverity warnings due to assigned file names.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Tests/App] Update the application-level test for hw-recurring task
Wook Song [Tue, 11 Aug 2020 12:45:50 +0000 (21:45 +0900)]
[Tests/App] Update the application-level test for hw-recurring task

This patch updates the application-level test for hw-recurring task
according to the changes in the kernel driver.

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Core/NPUDrvAPI/Triv2] Implement stop_target()
Wook Song [Tue, 11 Aug 2020 12:44:29 +0000 (21:44 +0900)]
[Core/NPUDrvAPI/Triv2] Implement stop_target()

This patch adds implementation of the virtual function, stop_target().

Signed-off-by: Wook Song <wook16.song@samsung.com>
4 years ago[Test] Slightly increase test time
Dongju Chae [Tue, 11 Aug 2020 10:22:05 +0000 (19:22 +0900)]
[Test] Slightly increase test time

This patch slightly increases test time. Otherwise, some unittests
are failed due to timing issue.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Coverage] Increase the code coverage for HWmem
Dongju Chae [Tue, 11 Aug 2020 08:28:55 +0000 (17:28 +0900)]
[Coverage] Increase the code coverage for HWmem

This patch increases the code coverage for HWmem.
The final coverage for 'ne-hwmem.cc' is 100%.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Coverity] Resolve coverity issues due to uninitialized variables
Dongju Chae [Tue, 11 Aug 2020 10:11:35 +0000 (19:11 +0900)]
[Coverity] Resolve coverity issues due to uninitialized variables

This patch resolves coverity issues due to uninitialized variables
(UNINIT_CTOR, UNINIT).

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Coverity] Resolve coverity issues due to object scope escape
Dongju Chae [Tue, 11 Aug 2020 09:52:04 +0000 (18:52 +0900)]
[Coverity] Resolve coverity issues due to object scope escape

This patch resolves coverity issues due to wrapper object use after
free (WRAPPER_ESCAPE).

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Coverity] Resolve coverity issues due to unchecked return value
Dongju Chae [Tue, 11 Aug 2020 09:46:12 +0000 (18:46 +0900)]
[Coverity] Resolve coverity issues due to unchecked return value

This patch resolves coverity issues due to unchecked return value
from library (CHECKED_RETURN).

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Coverity] Resolve coverity issues due to resource leak
Dongju Chae [Tue, 11 Aug 2020 09:42:12 +0000 (18:42 +0900)]
[Coverity] Resolve coverity issues due to resource leak

This patch resolves coverity issues due to resource leak
in test codes (RESOURCE_LEAK).

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
4 years ago[Coverity] Resolve coverity issues due to parsing warning
Dongju Chae [Tue, 11 Aug 2020 09:36:24 +0000 (18:36 +0900)]
[Coverity] Resolve coverity issues due to parsing warning

This patch resolves coverity issues due to parsing warning
, which hides parameters (PW.PARAMETER_HIDDEN).

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