Commit Graph

60 Commits

Author SHA1 Message Date
Jablonski, Mateusz
018e585eb1 Extract HwDeviceId from Drm
Related-To: NEO-4208
Change-Id: I1678ad92cab2a369769b93da69dc46a1d515f261
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2020-02-07 12:11:40 +01:00
Maciej Plewka
52931156ed Move execution environment to Core
Change-Id: I3f5a1f5ef97f058f91d0be7e3c33df7fff04062e
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-02-06 15:00:37 +01:00
Pawel Wilma
315df91d9d Builtin kernels refactoring
Related-To: NEO-3220
Change-Id: Ib85a1f4fd69b47bc8e819a29cc4adec73bda72e0
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2020-01-24 11:56:02 +01:00
Daria Hinz
278efbdfe6 Split structures into core and OCL-specific ones
Change-Id: I349ed52bcc7ed26eb0ff892acadc456ae285b92e
Signed-off-by: Daria Hinz <daria.hinz@intel.com>
2020-01-21 15:36:11 +01:00
Zbigniew Zdanowicz
84d6a25b7f Replace instrisic pause call with NEO and ULT function
Change-Id: I40707ecc77ea59d5bb3ae6f7f505ef8168847f1a
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-01-15 14:55:11 +01:00
Hinz
804efc644c Move files enabling platform support in ULTs to core
Change-Id: Ic9e7eb7ce7ada98e3c14ca4c951e0a7e5184c9ec
Signed-off-by: Hinz <daria.hinz@intel.com>
2020-01-08 19:39:48 +01:00
Mateusz Hoppe
f0a6f6b057 Move DebugSettingsManager to core
- pass registry path in constructor

Change-Id: I2a121da2c9483a0df088989feea490a638c63016
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-12-17 10:39:53 +01:00
Dunajski, Bartosz
bb248d6742 Rename files with the same name
Change-Id: I46144a52d755e03587b3b1e41d1883ddf4230889
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-12-13 14:17:31 +01:00
Maciej Plewka
a1c4283e0c Add method for checking if deferr deleter is enabled
Change-Id: I5949a01ac312669824b8738f4bb7f8aedb2a056b
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-10-15 13:28:14 +02:00
Mateusz Jablonski
79e7a51908 CMake: rename IGDRCL_SOURCE_DIR to NEO_SOURCE_DIR
use NEO_SOURCE_DIR instead of CMAKE_SOURCE_DIR

Change-Id: Ib3774c80147941ded6bc884d83407461c89e7b8e
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-10-14 12:18:50 +02:00
Mateusz Jablonski
e4ed7e7f12 CMake: add IGDRCL_SOURCE_DIR to prefixes in create_project_source_tree macro
Change-Id: I0fceeab0b42fe58ec92fbaaa4b4704c0b2344647
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-10-10 16:08:21 +02:00
Dunajski, Bartosz
802ec4c879 Allow adding additional cmd_parse files
Change-Id: Id257c460c35b19fd6f20bfbf1930765f9cd3d960
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-09-24 10:46:15 +02:00
Filip Hazubski
552a1268eb Refactor blit buffer call
Resolves: NEO-3241

Change-Id: I726135ae55d1e0fcbacd80620e827ee5c7c0c8dc
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-08-09 16:43:40 +02:00
Zbigniew Zdanowicz
11c601b4ef Add CLFLUSH intrinsic call
Change-Id: Ibebd88b7347b53fbb6dd8563501ee7699ce7ff89
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-08-07 10:35:48 -07:00
Mrozek, Michal
6d2facd2b1 Move memory leak listener to core.
Change-Id: I7f8a732340c65bbe4cf2f511d9dfe38bed131c85
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-07-15 15:38:22 +02:00
Mrozek, Michal
a0d98f698c Move printCallStack to core.
- Move captureCallStacks as well.
- Delete always true printMemoryOpCallStack from code.

Change-Id: I46a4b1727c31b8f147d5151371c3d1a76657873b
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-07-15 15:35:38 +02:00
Mrozek, Michal
3a61e34030 Remove base object allocator.
- Not needed, memory leak listener is covering for memory leaks.
- This code just duplicates the same logic.

Change-Id: I8546ca55be4dba79f430ca4324ed78aaf6a7df3e
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-07-15 10:20:11 +02:00
Mrozek, Michal
e58273fac2 Move memory management to core.
Change-Id: Ifa9233960f81095e293df631da9422608535171d
2019-07-15 10:19:42 +02:00
Artur Harasimiuk
5dbf8f7b8d cmake: adding EXCLUDE_FROM_ALL to intermediate libraries
These targets should be built on demand when another target requires
this or explicitly requested. This applies to STATIC and OBJECT
libraries.

Change-Id: Ia0eb4e803b09c0ce594fd348ad53c10cdf5b3a9f
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2019-06-24 17:11:01 +02:00
Mrozek, Michal
794fba189e Remove code.
Change-Id: I7e578ab0bc7e490520159bfaa4f8f193db40b23e
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-04-08 14:07:49 +02:00
Jobczyk, Lukasz
878fd43a1a Reverse logic of creating Memory Manager - part 1
-remove CSR::createMemoryManager method
-create MM from platform before creating devices

Change-Id: I0e7f091c53b0e60ae7101e82a305253af626330e
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-03-08 09:47:29 +01:00
Hoppe, Mateusz
3a5209ccf4 Disable osEnableLocalMemory on 32 bits
Change-Id: Id405a57064d17293ede48f82992ab1bde4f3b9ce
2019-01-28 08:18:51 +01:00
Chodor, Jaroslaw
e663d51481 Adding support for debug variables translation
Additionally, adding flag to override gdi

Change-Id: I52759aa8c5f1149a34167429289d3f3876cdcb92
2019-01-19 20:12:41 +01:00
Maciej Plewka
9e81469d9f Disable debug keys for ults
Change-Id: I7f69a770b21a741b5ff79e735c26d988d2b83aab
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2018-12-19 12:30:03 +01:00
Kowalczuk, Jakub
344e92acfa Add source level debugger header from SDK
Change-Id: I9898ec8892798facb71ccae0547c894b6b5a0288
2018-11-23 12:22:08 +01:00
Zdanowicz, Zbigniew
8504b37a08 Add branch prefix to unit_tests/gen_common subdirectory
Change-Id: I7661dbd8a65aaa50c21afb982b23edb9080d6f84
2018-11-01 00:15:04 +01:00
Stefanowski, Adam
c202c95634 Stop creating osInterface in WddmCSR and DrmCSR constructors
Change-Id: Ic8ca21824882dfae5df3fe05c7ec1ff96311f286
2018-10-31 15:01:50 +01:00
Kowalczuk, Jakub
1822fb0747 Control enabling of local memory based on OS and HW Capabilities part 2
- add EnableLocalMemory debug variable
- separate OSInterface::osEnableLocalMemory for dll and unit tests

Change-Id: I78a1f60364eece28b30ce3e91418e7d72ba3e0d9
2018-10-31 13:59:42 +01:00
Filip Hazubski
f5b55c5c7e Remove code duplication from cmd_parse_genX files
Change-Id: I64bb9d8be018ea4da6cb006439c58b1d52100e06
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2018-10-25 18:00:27 +02:00
Artur Harasimiuk
40146291ad Update copyright headers
Updating files modified in 2018 only. Older files remain with old style
copyright header

Change-Id: Ic99f2e190ad74b4b7f2bd79dd7b9fa5fbe36ec92
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-09-20 18:02:35 +02:00
Dunajski, Bartosz
5408913d38 Set HwInfo to GmmHelper on Device creation
This allows querying HwInfo from code that doesnt have access to Device

Change-Id: I0084f824f557cd85c2fdfbf0ff2ec71118e9af2e
2018-06-29 11:02:52 +02:00
Stefanowski, Adam
ded1a445f8 Group gen specific small cpp files together part 3
Change-Id: Id49acae4f9748a1db51c1a4051992269e21f1048
2018-06-11 15:46:55 +02:00
Stefanowski, Adam
8b4fdc5b8f Group gen specific small cpp files together part 2
Change-Id: I3b1065af349c783c2d0af10107da284f92a11be7
2018-06-05 17:52:35 +02:00
Stefanowski, Adam
c2368739ce add gen suffix for each gen files
Change-Id: Ie00e23fc6a7abf2114e62f70d66a07beaed2b502
2018-05-21 15:00:47 +02:00
Dunajski, Bartosz
e4857867a9 Wddm interface [4/n]: Make 2.0 default version
- Create Wddm20 interface by default for runtime and ULTs
- Add Windows dll test for Wddm creation

Change-Id: Id0a1b86e68112c31078b6965c647a5218790150f
2018-05-15 09:16:28 +02:00
Artur Harasimiuk
10e5b71111 dependencies cleanup
move gmock/gtest to third party

Change-Id: I96b43a3de2b6f2151659a9b2eed27eb58db5ce48
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-05-11 15:04:45 +02:00
mplewka
2bc2869fe1 Refactor ult's for preemption enabling part 2
Change-Id: If8e335e87f3a78d35cab12a17880fb1922d479f5
2018-05-10 13:12:03 +02:00
Hoppe, Mateusz
efda64eb4a Source Level Debugger - debugger library interface
- interface to debugger dynamic library
- code is included when source level debugger header exists,
otherwise implementation is exluded from build
- unit tests do not load real dynamic library,
instead test version (DebbugerLibrary) of OsLibrary is used.

Change-Id: Id3229c77963352e8001043ee41b7d48c6b180a59
2018-04-23 11:31:37 +02:00
mplewka
079f94cd2d Refactor ult for preemption enabling
Refactoring in ULTs around preemption:
    -refactoring ULTS to not fail with default preemption mode
    -fixing ULT memory leaks observed after enabling preemption
    -mocking getSipKernel in ULTs (to minimize ULT execution time)

Change-Id: I194b56173d7cb23aae94eeeca60051759c817e10
2018-04-16 12:55:30 +02:00
Mateusz Jablonski
e3b1ba2112 Cmake refactor part 21
Add macro to simplify iteration for gens, platforms and test configs
Common usage:
1. Write macro "macro_for_each_platform", you can use variables:
   GEN_TYPE, GEN_TYPE_LOWER, PLATFORM_IT, PLATFORM_IT_LOWER
2. Write macro "macro_for_each_gen", you can use variables:
   GEN_TYPE, GEN_TYPE_LOWER
3. In macro "macro_for_each_gen" call "apply_macro_for_each_platform"
4. Call "apply_macro_for_each_gen" with gen type (SUPPORTED/TESTED)

When needed iterate over test configurations:
1. Write macro "macro_for_each_test_config", you can use variables from
   parent macro and SLICES, SUBSLICES and EU_PER_SS
2. In macro "macro_for_each_platform" call "apply_macro_for_each_test_config"
   with specified type (AUB_TESTS/MT_TESTS/UNIT_TESTS)

Change-Id: Icd537f409a224a1ffade1874065f8fee66189350
2018-03-26 17:51:34 +02:00
Chodor, Jaroslaw
d65128d4e8 Refactor around sharings
- exposing additional handles in common code
- adding proxy for CreateEvent (windows)

Change-Id: I90872682c6c518c98d9d43e79f5112ee869e94aa
2018-03-26 15:32:25 +02:00
Mateusz Jablonski
575d1bf381 Cmake refactor part 20
set global properties with runtime sources, libult sources and
os interface tests

Change-Id: I9a84edf2f021b4581a16c19c7dbb0b2f94c33f4d
2018-03-23 15:51:12 +01:00
Maciej Dziuban
aa727b3bcc CapabilityTable adjustments part 1
- Extract hw_info_config.h from Linux directory
- Extract enabling HwInfoConfig from Linux directory
- Create dummy implementations for HwInfoConfig on Windows

Change-Id: Ic9c7525ba9d9b654f238fb661cdbb3eecc421e29
2018-03-23 09:37:39 +01:00
Mateusz Jablonski
c0a8522eb1 Cmake refactor part 19
- create new object library igdrcl_libult_env
- move sources shared between igdrcl_tests, igdrcl_aub_tests and
  igdrcl_mt_tests to igdrcl_libult_env
- partially cleanup unit_tests/mt_tests/CMakeLists.txt

Change-Id: I4f4bbfa5649d84d79133b9d5c9bd137c68b7d82e
2018-03-22 16:30:15 +01:00
Zdanowicz, Zbigniew
029094437a Change identification of gen families from number to type
Change-Id: I780528aeb2572fc95d8cd9a20eba26687156726b
2018-03-21 19:22:46 +01:00
Mateusz Jablonski
e21e220540 Cmake refactor part 16
igdrcl_tests: define gen specific sources in subdirectories
libult: append gen specific sources needed to link hw tests

Change-Id: I72505729f1ff27439cd43904688de9c2cfbe080f
2018-03-16 14:07:37 +01:00
Mateusz Jablonski
894060de50 Cmake refactor part 15
Cleanup unit_tests/CMakeLists.txt
Move shared sources to libult
define linux test projects in linux subdirectory

Change-Id: I0da18c79e6581412a04ddfb3795750db862ad95c
2018-03-15 12:12:09 +01:00
Mateusz Jablonski
36a8bd8878 Cmake refactor part 14
cleanup unit_tests/aub_tests/CMakeLists.txt
cleanup unit_tests/elflib/CMakeLists.txt
cleanup unit_tests/libult/CMakeLists.txt
cleanup unit_tests/tbx/CMakeLists.txt
partially cleanup unit_tests/CMakeLists.txt

solution source tree changes:
 - make test projects folder as variable
 - make platform specific targets folder as variable
 - move platform specific targets to \"test platforms\" folder

Change-Id: Iff7da009e13c3ac9e5af76325be32e5056e8cd7b
2018-03-13 13:40:42 +01:00
Mateusz Jablonski
2466f9363f Cmake refactor part 7
generate project source tree in all projects with sources
source tree is based on real paths

Change-Id: Ie10a6bffedb8020f25ebcb24a2f797086d8accbb
2018-03-06 14:26:05 +01:00
Zdunowski, Piotr
e3268f8a9c Revert "Allow custom props settings."
This reverts commit f43a04d3b2.

Change-Id: Ib4cd854c19fe96b0ea9d5e3782d1247c265927c9
2018-02-23 16:01:31 +01:00