Commit Graph

1724 Commits

Author SHA1 Message Date
Spruit, Neil R 9c6433e55e Fix to L3 Caching given unaligned memory & hostPtrCopy only for src host ptrs
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
2021-11-16 00:44:46 +01:00
Mateusz Hoppe 35795357e9 DebugSession - add printBitmask()
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-11-15 21:40:27 +01:00
T J Vivek Vilvaraj e1a1e96110 sysman:close diagnostics handles before reset
Relates-to:LOCI-2650

Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-11-15 21:30:13 +01:00
Mateusz Jablonski 75a5aed81d Refactor patching implicit args relocation
Related-To: NEO-5081
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-11-15 17:09:36 +01:00
Zbigniew Zdanowicz f90932cca7 Use references instead copy ctors
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-11-15 14:42:33 +01:00
Mateusz Jablonski edc8f6c1cd Remove gmock from mock context
Related-To: NEO-4914
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-11-15 13:57:33 +01:00
Mateusz Jablonski 767e7af797 Remove gmock from mock device 1/n
Related-To: NEO-4914
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-11-15 10:47:29 +01:00
Mateusz Jablonski c0dc88db33 Remove gmock from mock_fence and mock_event
Related-To: NEO-4914
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-11-12 17:23:35 +01:00
Mateusz Jablonski 37f16ac0db Remove gmock from mock command queue and mock sampler
Related-To: NEO-4914
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-11-12 14:27:43 +01:00
Mateusz Jablonski d2a4af9d9d CMake cleanup: move opencl logic to opencl folder
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-11-12 12:23:45 +01:00
Artur Harasimiuk ea373d2664 cmake: cleanup variable names
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-11-10 21:31:17 +01:00
Mateusz Jablonski c20ec6c148 Remove gmock from mock_module
Related-To: NEO-4914
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-11-10 15:26:23 +01:00
Kamil Diedrich 35f709b221 Add RGBP planar formats
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2021-11-10 14:17:04 +01:00
Pawel Cieslak bc11f7b4f7 Use prebuilt kernels if they exists
Related-To: NEO-6370
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2021-11-10 13:30:00 +01:00
Mateusz Hoppe c8ba0391e5 Add TBX mode support to L0 AubTests
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-11-10 12:22:20 +01:00
Artur Harasimiuk 5223ece08b clang diagnostic cleanup
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-11-10 11:17:46 +01:00
Mateusz Jablonski 0897cb11ca Improve MockKernel
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-11-10 08:06:45 +01:00
Artur Harasimiuk 7d00425f7e setup ULT timeout
Related-To: NEO-6413

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-11-09 21:04:38 +01:00
Artur Harasimiuk 39cb34047b temporarily skip sysman tests
Related-To: NEO-6412

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-11-09 20:28:25 +01:00
Filip Hazubski 7af07b6d8c Update cooperative dispatch logic
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-11-09 18:23:25 +01:00
Mateusz Jablonski 1bb7e50d49 Move mock method macros to separated header
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-11-09 17:37:54 +01:00
Zbigniew Zdanowicz df6829f361 Use event pool init code for result of event pool api creation function
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-11-09 16:29:49 +01:00
Krystian Chmielewski d29148a73a Populate linkerInput before allocating globals
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2021-11-09 12:20:13 +01:00
Mateusz Jablonski 3e5d68deab CMake cleanup: define cmd prefix for ocloc in one place
rename cloc_cmd_prefix -> ocloc_cmd_prefix
rename __cloc__options -> __ocloc__options


Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-11-09 10:46:01 +01:00
Pawel Cieslak 107a41a4c4 Revert "Use prebuilt kernels when NEO_DISABLE_BUILTINS_COMPILATION=TRUE"
This reverts commit 3bff852ac0.

Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2021-11-08 18:50:12 +01:00
Artur Harasimiuk 9d3ea387aa refactor test_loader to not include sysman
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-11-08 17:23:32 +01:00
Krystian Chmielewski 98eb086160 Don't generate local ids if not needed
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2021-11-08 13:10:00 +01:00
Pawel Cieslak 3bff852ac0 Use prebuilt kernels when NEO_DISABLE_BUILTINS_COMPILATION=TRUE
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2021-11-08 11:43:49 +01:00
Jitendra Sharma 1186c1aae3 zesSysmanDeviceReset: Reinitialize device after device reset
Before performing gpu device reset, first all level zero resources
and gpu device specific resources have to be cleaned up. Also as
after device reset, state of gpu device would be lost.
Hence after performing gpu device reset, level zero device have
to be reinitialized by querying gpu device again.
This change is aimed at reinitializing the level zero resources
after gpu device reset, so that user could continue using level zero
devices after device reset.

Related-To: LOCI-2627

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-11-07 23:43:48 +01:00
Krystian Chmielewski 06eaef0352 Zebin: Use strings section for printf
Resolves: NEO-6143

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2021-11-07 19:10:47 +01:00
Aravind Gopalakrishnan 5d1c3c98a4 Use csr internal allocs for host pointers for flushTask
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com>
2021-11-05 21:58:13 +01:00
Mateusz Hoppe 5d4771a31b Add param to print number of tests
Related-To: NEO-6407


Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-11-05 15:57:04 +01:00
Zbigniew Zdanowicz 49d4b8f1d8 Add implicit scaling capability to L0 barriers
Related-To: NEO-6262

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-11-05 14:03:47 +01:00
Zbigniew Zdanowicz 3d3881e7ad Remove not needed virtual function from tests
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-11-05 12:04:14 +01:00
Szymon Morek dbeb263868 Fix CFE programming when usm transfer required
Resolves: NEO-6288

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2021-11-05 11:49:48 +01:00
Mateusz Jablonski fbf1f367f4 Dont create blitter engine when blitter support is disabled
Related-To: NEO-6325
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-11-05 11:07:07 +01:00
Mateusz Hoppe ee418efadf Per-thread scratch offset calculation
Related-To: NEO-6404

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-11-05 11:03:17 +01:00
Daniel Enriquez dbe0ba2a0f Sysman for Windows: Multiple fixes and optimizations
Signed-off-by: Daniel Enriquez <daniel.enriquez.montanez@intel.com>
2021-11-04 20:11:39 +01:00
Aravind Gopalakrishnan 0418c12c77 Move zello_events to master
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2021-11-04 19:35:23 +01:00
Kamil Diedrich 1d52a72809 Return proper result for BB tests
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2021-11-04 17:40:36 +01:00
Igor Venevtsev a3c3fe18ce Cleanup IGC includes
- Remove IGC_COMMON_PARENT_DIR WA

Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2021-11-04 14:44:59 +01:00
Kamil Diedrich 0e69eb47b5 Fix for BlackBox test
- fix fill test case
- spelling fix in image view test

Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2021-11-04 12:57:39 +01:00
Artur Harasimiuk 3b47a9766a cmake: L0 black_box_tests refactor
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-11-04 10:26:13 +01:00
Pichika Uday Kiran 99cbd1bb92 firmware: Read new firmware version from sysfs
- Read the newly added firmware version from sysfs node


Related-To: LOCI-2557
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-11-03 14:03:12 +01:00
Zbigniew Zdanowicz 7d109c42bc Do not execute multi-tile command list on single-tile command queue
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-11-03 13:27:49 +01:00
Mateusz Hoppe 4d6a2d0a57 Enhance logs in EuThread
- do not overwrite memoryHandle in resumeThread() when thread is
not stopped
- add SIP Commands

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-11-03 11:04:14 +01:00
Pichika Uday Kiran d9f47d6d7d firmware: Add canControl property to firmware properties
Related-To: LOCI-2679
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-11-03 10:04:25 +01:00
Pawel Cieslak 848d94f406 Improve prepare_test_kernels targets to build kernels required in ULTs
Related-To: NEO-6370
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2021-11-02 17:54:12 +01:00
Mateusz Hoppe 9ee8ee836d Disable fused EUs when debugging enabled
Related-To: NEO-6398

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-11-02 15:46:01 +01:00
Zbigniew Zdanowicz 4fbb199790 Add platform parameter to configure pipe control dispatch
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-11-02 12:14:10 +01:00
Pichika Uday Kiran 52cf6bf383 firmware: Enhance the firmware utility module
- There are functions exposed through Firmware Util interface to get
the firmware version and perform firmware flash based on firmware type.
Instead this functionality is being handled with generic functions. Hence
this commit removes the redundant code.

Related-To: LOCI-2568
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-11-02 11:42:18 +01:00
T J Vivek Vilvaraj a9aa472b50 SysMan: close igsc context in destructor
igsc context is intialized by the device init call to igsc library.
When resources are freed, the context needs to be closed explicitly
by sysman to force igsc library to free and release the context
within the igsc library.

Related-To:LOCI-2695

Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-10-29 15:35:13 +02:00
Jaime Arteaga c58e8eeddd Return correct L0 API version
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-10-29 11:07:31 +02:00
Mateusz Jablonski f3afde1153 Dont expose internal copy engine if blitter operations are disabled
Related-To: NEO-6325
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-28 20:57:52 +02:00
Kamil Kopryk 03540d5301 Refactor per platform extra settings in ocloc
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-6382
2021-10-28 16:24:12 +02:00
Lukasz Jobczyk c7d5a96dfd Flush small task adjustments
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-10-28 11:39:55 +02:00
Jaime Arteaga 7363b3fc09 Return sucess for zeCommandListAppendMemAdvise when not supported
zeCommandListAppendMemAdvise is a performance hint, so on error,
we can just return success, while at the same time ignoring it.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-10-28 10:27:34 +02:00
Compute-Runtime-Validation 8c6fed2149 Revert "Flush small task adjustments"
This reverts commit 32ae9555f1.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2021-10-28 09:19:32 +02:00
Mateusz Jablonski ae610ea602 Remove compute_runtime_mockable_extra lib
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-27 17:41:17 +02:00
Lukasz Jobczyk 32ae9555f1 Flush small task adjustments
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-10-27 16:43:06 +02:00
Mateusz Jablonski 1d90de087b Cleanup compute_runtime_mockable_extra
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-26 14:34:15 +02:00
Lukasz Jobczyk 5a240e1d66 Enable direct submission controller
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-10-26 12:07:11 +02:00
Mateusz Jablonski 7fad2fd1c4 Cleanup multiple static lib linking
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-26 08:19:56 +02:00
Lukasz Jobczyk 99972e2a98 Add ZE_HOST_MEM_ALLOC_FLAG_BIAS_UNCACHED implementation
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-10-25 14:39:20 +02:00
Mateusz Jablonski 260997ccd1 Cleanup cross component dependencies
dont link opencl lib to non-opencl targets
link compute_runtime_mockable_extra only to l0 targets
reuse include paths and definitions from neo_shared lib

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-25 11:05:18 +02:00
Pichika Uday Kiran 3357b8b916 firmware: Add support for new firmware type
- This commit adds the support of new firmware flashing
- And also added the support in ULTs for the new firmware
flash APIs.

Related-To: LOCI-2381
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-10-22 23:13:23 +02:00
Mateusz Jablonski 19b8a03d30 Move some files from opencl/source/dll to shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-22 19:59:55 +02:00
Bartosz Dunajski 1f2aa82c5b Remove UNUSED_VARIABLE macro
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-10-22 18:56:33 +02:00
Zbigniew Zdanowicz 8fe2b269f0 Correct cross library dependencies
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-10-22 18:30:35 +02:00
Bartosz Dunajski d34ef3170a Remove CPP_ATTRIBUTE_FALLTHROUGH macro
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-10-22 17:27:57 +02:00
Mateusz Jablonski ef3f93a178 Create neo_libult target
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-22 16:55:07 +02:00
Mateusz Jablonski 391e691cc1 Rename igdrcl_libult_common to neo_libult_common
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-22 14:46:16 +02:00
Mateusz Jablonski 802a272c5f Move mock_gmm_memory to shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-22 13:46:46 +02:00
Artur Harasimiuk d2a29ce458 DrmBO: canonize GPU addresses
Related-To: NEO-6364
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-10-21 18:25:48 +02:00
Filip Hazubski 28b37aea72 Correct handling unique_ptr in functions
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-10-21 18:17:14 +02:00
Zbigniew Zdanowicz f305e38b32 Refactor creation of buffer surface state 4/n
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-10-21 17:46:47 +02:00
Zbigniew Zdanowicz e80ec1df9c Refactor creation of buffer surface state 3/n
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-10-21 16:57:21 +02:00
Zbigniew Zdanowicz a7747fece5 Refactor creation of buffer surface state 2/n
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-10-21 16:09:54 +02:00
Zbigniew Zdanowicz 9d56939980 Refactor creation of buffer surface state 1/n
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-10-21 13:11:31 +02:00
Raiyan Latif f5210ed89f Account for offset pointer in P2P memory copies
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2021-10-21 03:09:31 +02:00
Mateusz Hoppe 2d8f037233 Mark EuThread methods with const
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-10-20 14:31:59 +02:00
Zbigniew Zdanowicz c097f405f1 Stop using virtual function in tests
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-10-20 13:15:10 +02:00
Matias Cabral 8a17cf3141 Allow debugger read ISA and ELF with single thread
Resolves: NEO-6309

Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
2021-10-19 20:41:27 +02:00
Mateusz Jablonski 271e0ee7fe Move ult dxgi/dxcore factories to shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-19 20:17:02 +02:00
Mateusz Jablonski cb2f18e3bc Move test to other file
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-19 17:04:47 +02:00
Kamil Diedrich 465bec3d76 Add NTHandle sharing
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2021-10-19 14:17:25 +02:00
Mateusz Jablonski 8133b6d213 Correct retVal in zello_image_view
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-19 13:10:08 +02:00
Mateusz Hoppe 2fb8edb69f Refactor SipKernel
- add debug bindless SipKernelType

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-10-19 11:45:24 +02:00
Pichika Uday Kiran e063b120de Revert "firmware: Add support for new firmware type"
This reverts commit 3c739cf687b9d47185c131231316e51a71cbefa0.

Related-To: LOCI-2381
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-10-18 17:45:02 +02:00
Krzysztof Gibala ca0138da2e Disable PC WA on specific engine type
Related-To: NEO-6056

Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2021-10-18 14:04:27 +02:00
Igor Venevtsev 226226a877 Fix IGC includes
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2021-10-18 13:23:17 +02:00
Mateusz Jablonski f5c20b924c Revert "Dont look for builtin with default revision"
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-18 13:06:16 +02:00
Pichika Uday Kiran 5ec0833fa8 firmware: Add support for new firmware type
- This commit adds the support of new firmware flashing
- And also added the support in ULTs for the new firmware
flash APIs

Related-To: LOCI-2381
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-10-18 06:23:03 +02:00
Robert Krzemien b7615f5e4b New Metrics black box test
Zello Metrics update to support zetMetricGroupCalculateMultipleMetricValuesExp
Resolves: LOCI-2626
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2021-10-15 20:12:29 +02:00
Mateusz Jablonski 439b8c51d9 Dont look for builtin with default revision
when revision doesnt match revision in registered resources
then use source or intermediate resource


Resolves: NEO-6170
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-15 13:55:40 +02:00
Igor Venevtsev 4286b3a55c Reserve precise amount of memory for debug surface
Resolves: LOCI-2209

Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2021-10-15 12:19:51 +02:00
Bartosz Dunajski 7fa3d0e8f6 Improve L0 Device creation
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-10-15 10:18:40 +02:00
Mateusz Jablonski 7b57e87ad1 Move some mocks to shared
- MockAllocationProperties
- MockBuiltinsLib
- MockWddmMemoryManager
- MockAubCsr


Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-15 09:59:47 +02:00
Bartosz Dunajski 8eb85e9365 Add missing override
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-10-15 09:47:28 +02:00
Compute-Runtime-Validation ca18850662 Revert "Dont look for builtin with default revision"
This reverts commit eafa8c8000.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2021-10-15 00:24:15 +02:00
T J Vivek Vilvaraj f27f430429 sysman: fix firmware device enumeration in firmware Utils
firmware Utils was always enumerating the same firmware
device handle for all sysman devices.

Related-To:LOCI-2609

Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-10-14 18:02:55 +02:00
Pichika Uday Kiran 3efa0330f4 firmware: Avoid adding the FWtype if already exists in vector
- Avoid adding the duplicate FWtypes in case of multi GPU devices

Related-To: LOCI-2623
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-10-14 17:40:53 +02:00
Robert Krzemien c1a4e3ad50 Metric Api: Return error on calculate when multi metric values header is used.
Resolves: LOCI-2624
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2021-10-14 17:30:56 +02:00
Mateusz Jablonski eafa8c8000 Dont look for builtin with default revision
when revision doesnt match revision in registered resources
then use source or intermediate resource


Resolves: NEO-6170
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-14 16:46:57 +02:00
Artur Harasimiuk 467ce52916 link with gmmlib on all architectures
Related-To: NEO-6014
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-10-14 14:11:52 +02:00
Joshua Santosh Ranjan 7aae29f2cd Metric Detect Paranoid mode and fail gracefully
Related-To: LOCI-2143

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-10-13 22:17:50 +02:00
Mateusz Jablonski 0d74ab8ae8 Correct allocating event pool in device memory
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-13 17:36:46 +02:00
Jaime Arteaga e0a093b87a Make IPC events available for P2P operations
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-10-13 17:20:35 +02:00
Bartosz Dunajski 8605f06435 Fix L0 SubDevice creation
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-10-13 16:55:17 +02:00
Maciej Plewka 38eab0e70f Return correct status when module is not fully linked
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2021-10-13 16:18:42 +02:00
Mateusz Jablonski 76b1574618 Remove redundant test_mode.h files
cleanup include directories

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-13 15:44:30 +02:00
Aravind Gopalakrishnan 0e5a55d947 Reprogram mmio to constant value after use
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2021-10-13 12:23:47 +02:00
Mateusz Hoppe 10e4b54986 Copy ISA before making it resident
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-10-12 21:51:06 +02:00
Mateusz Jablonski bf25853799 Move some mocks to shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-12 21:46:53 +02:00
Mateusz Jablonski ada32e0a87 Move mock gmm page table manager to shared
add missing definitions to neo_shared_tests

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-12 15:21:04 +02:00
Joshua Santosh Ranjan 90bf2b29cc Metrics Improve Coverage for Streamer
Related-To: LOCI-2109

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-10-12 14:16:16 +02:00
Mateusz Jablonski 6e64c24df3 Move mock gmm resource info to shared
Remove allocator_helper.cpp files


Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-12 12:19:35 +02:00
Milczarek, Slawomir 5aeae0cf99 Add mem advise control flags to drm alocation
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2021-10-12 11:39:06 +02:00
Raiyan Latif 0859f99d64 Enable zeDeviceCanAccessPeer
- Propagate return value up from Batch Buffer exec
- Add zeDeviceCanAccessPeer functionality

Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2021-10-12 09:38:22 +02:00
Bartosz Dunajski 5856c283c5 Remove HardwareCapabilities struct
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-10-12 07:25:06 +02:00
Artur Harasimiuk c225923240 enable test kernels from prebuilt binaries
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-10-08 12:57:11 +02:00
Mateusz Jablonski b99adecece Correct test kernel dependencies for l0 aub tests
Related-To: NEO-6328
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-08 10:31:29 +02:00
Milczarek, Slawomir afa45bd9e7 Add support for mem advise to set cache policy in buffer object
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2021-10-07 22:16:58 +02:00
Mateusz Jablonski 5f97ff1513 Move common test files to shared libult
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-07 19:44:34 +02:00
Dominik Dabek 59a1adc41b Poll csr completion at CmdQueue
Related-To: NEO-6090

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2021-10-07 14:25:28 +02:00
Aravind Gopalakrishnan 37ec3cb74e Events workaround for L3Flush issue
Related-To: LOCI-2361

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com>
2021-10-07 03:49:10 +02:00
Jaime Arteaga 9d49c56b75 Include domain when ordering with ZE_ENABLE_PCI_ID_DEVICE_ORDER
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-10-06 21:34:36 +02:00
Zbigniew Zdanowicz 279181a384 Remove not needed include header
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-10-06 21:32:40 +02:00
Joshua Santosh Ranjan 102a950fee Metrics Coverage Improvement for OS Dependent Metric Query Implementation
Related-To: LOCI-2110

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-10-06 19:57:54 +02:00
Mateusz Jablonski 5d2d81b2d1 Use uint64_t instead of void * in indirect dispatch programming
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-06 18:37:36 +02:00
Mateusz Jablonski 92bf4b978a Implement implicit args for indirect dispatch
Related-To: NEO-5081
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-06 16:10:41 +02:00
Mateusz Jablonski 7187769744 Move kernel binary helpers to shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-06 13:41:34 +02:00
Maciej Plewka 3016ed1c39 Make clearComputeModePropertiesIfNeeded method virtual
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2021-10-06 11:19:44 +02:00
Jaime Arteaga 62de443660 Add copy engine support for USM shared migration
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-10-06 10:43:31 +02:00
Jitendra Sharma cfad41f28a Introduce new interface for reinitializing level zero device
This change introduce
- new method deviceReinit, which could be used, to reinitialize
existing level zero device.

Related-To: LOCI-2612

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-10-06 07:16:33 +02:00
Daniel Enriquez afaef2b234 Fix Voltage Offset, signed value.
Voltage Offset was incorrectly set as unsigned.

Signed-off-by: Daniel Enriquez <daniel.enriquez.montanez@intel.com>
2021-10-06 06:08:24 +02:00
Mateusz Jablonski ae340ff6f5 Add L0 aub tests for indirect dispatch
Related-To: NEO-5081
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-05 21:05:40 +02:00
Mayank Raghuwanshi e1ad48ccb5 Pass device handles to sysman power module
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-10-05 20:47:21 +02:00
Robert Krzemien b5e0d32fe1 Metric Api: Fix activation for sub devices
Resolves: LOCI-2611
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2021-10-05 18:39:22 +02:00
Artur Harasimiuk 9bea74a780 move mock_memory_manager to shared
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-10-05 16:22:38 +02:00
Maciej Plewka 22725e5840 Pass device bit field to create bindless heaps allocations
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2021-10-05 14:36:59 +02:00
Zbigniew Zdanowicz 068832d178 Move kernel_info_from_patchtokens to shared directory
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-10-05 11:50:28 +02:00
davidoli 3c5a81d27a Add ProcAddrTable for metrics exp api.
Related-To: LOCI-2607
Signed-off-by: davidoli <david.olien@intel.com>
2021-10-05 11:07:18 +02:00
Mayank Raghuwanshi 52e9dd26a6 Modify canRead and CanWrite functions of fsaccess class
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-10-05 10:52:17 +02:00
Spruit, Neil R 12ab2961b1 L0 support for SPIRv static module linking
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
2021-10-05 07:09:53 +02:00
Mateusz Jablonski b891ec2588 Correct cross thread data GPU address in indirect dispatch programming
Related-To: NEO-5081
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-10-04 14:59:41 +02:00
Zbigniew Zdanowicz 96fef37834 Move shared local work size code to shared directory
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-10-04 14:04:28 +02:00
Jitendra Sharma 135ec380fc Dont initialize sysman for linux if Driver Model is not DRM
Related-To: LOCI-2533

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-10-04 12:15:21 +02:00
Jaime Arteaga 560c951b8c Increase size of command buffer for copy blit operations
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-10-04 10:28:27 +02:00
Kamil Kopryk 1a34586dd4 Make sure sip kernel is initialized for aub tests
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2021-10-01 12:54:04 +02:00
Pichika Uday Kiran 27bf56ee5a firmware-utils: Read IGSC version from IGSC config
- This commit reads the IGSC version from the IGSC config
rather parsing the igsc library path.

Related-To: LOCI-2527
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-10-01 07:12:43 +02:00
Jaime Arteaga 11980db8eb Create L0 list and module with correct NEO device on explicit mode
When implicit scaling is not used, a root device in L0 defaults to
sub-device 0. In that case, all allocations need to be made against
that sub-device.

For list and module creation, we were passing the root NEO device
instead, and we were allocating their internal allocations using
the least-occupied bank, which meant we were allocating alternately
between the two sub-devices.

This patch makes sure the NEO device used on explicit mode for
the root device is sub-device 0.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-10-01 00:43:53 +02:00
Robert Krzemien eb1802cf2f Metric Api: Pass workload partition client option
Resolves: LOCI-2583
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2021-09-30 21:03:09 +02:00
Joshua Santosh Ranjan 4cb7c1014a Revert "Add flexibility to disable root device metrics"
Reverted the change which disabled metrics collection for multi-device

Related-To: LOCI-2580

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-09-30 19:05:20 +02:00
Igor Venevtsev da982b41be Add readSbaBuffer() interface
Related-To: NEO-6277

Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2021-09-30 18:02:00 +02:00
Krzysztof Gibala b786099a7e Split ULT file
Split test_metric_query_pool file


Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2021-09-30 17:53:56 +02:00
Jitendra Sharma c46f591a99 Do not initialize Sysman if OsSysman Init failed
Related-To: LOCI-2552

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-09-30 09:11:55 +02:00
T J Vivek Vilvaraj aba7d74bcd remove unused libxml module from sysman
Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-09-30 09:01:35 +02:00
T J Vivek Vilvaraj 26779e2f34 sysman: fix diagnostics handle creation
Resolves:LOCI-2601

Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-09-30 07:58:18 +02:00
Zbigniew Zdanowicz 25c71a6c13 Move kernel info to shared directory
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-09-29 23:49:49 +02:00
Robert Krzemien f3ea565121 Add implementation for zetMetricGroupCalculateMultipleMetricValuesExp.
Resolves: LOCI-2409
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2021-09-29 22:49:26 +02:00
Joshua Santosh Ranjan 4848c67edd Program CommandList for Metric Query
Add commands to the command list for multi-device execution of Metric Queries


Related-To: LOCI-2570

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-09-29 22:15:09 +02:00
Bartosz Dunajski 4ba4c32766 Remove SBA->IOH programming on XE_HP_SDV
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-09-29 12:35:43 +02:00
Bartosz Dunajski 7f3b90b07f Enable Engine Instanced SubDevices
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-09-29 12:01:34 +02:00
Robert Krzemien f431b569b7 Metric Api: Query begin/end for sub devices
Resolves: LOCI-2467
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2021-09-28 22:51:01 +02:00
Aravind Gopalakrishnan c4d6802684 Fix ult coverage gap for memory extensions
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2021-09-28 21:57:10 +02:00
Compute-Runtime-Validation 33f88884bd Revert "Add copy engine support for USM shared migration"
This reverts commit 91e9587a07.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2021-09-28 19:48:14 +02:00
Jaroslaw Chodor 996dd18b76 WSL - partition layout for 48-bit limited addressing
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
2021-09-28 18:09:46 +02:00
Jaime Arteaga 91e9587a07 Add copy engine support for USM shared migration
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-09-28 15:30:59 +02:00
Bartosz Dunajski c525ff7eb4 Disable single tile engine instanced subdevices
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-09-27 16:20:53 +02:00
Artur Harasimiuk a63b9b1273 move common files to shared/
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-09-27 11:10:20 +02:00
Robert Krzemien 8d2fcad63f Metric Api: Query get data for sub devices
Resolves: LOCI-2470
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2021-09-27 08:13:36 +02:00
Artur Harasimiuk 0b4bc865d3 move drm_mock to shared
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-09-24 08:55:45 +02:00
Mateusz Hoppe 0e58821455 Change DebugMode and TdCtl registers on xehp
- refactor tests to use UnitTestHelper

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-09-24 07:38:48 +02:00
Compute-Runtime-Validation e7a7a61b4e Revert "L0 support for SPIRv static module linking"
This reverts commit 479035c839.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2021-09-24 05:47:50 +02:00
Artur Harasimiuk 8939ca94f7 move options_unit_tests.cpp to libult_common
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-09-24 00:36:00 +02:00
Zbigniew Zdanowicz e295e74c0a Add preemption flags creation to shared code
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-09-23 15:20:13 +02:00
Zbigniew Zdanowicz 3b35ba504f Adapt command stream receiver to multiple active partitions
Related-To: NEO-6244

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-09-23 14:32:20 +02:00
Mateusz Jablonski 34ad95ae12 Handle printf output when implicit args are required
Related-To: NEO-5081
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-09-23 13:49:40 +02:00
Mateusz Jablonski 8b36473a9a Move command stream receiver files to shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-09-23 12:47:21 +02:00
John Falkowski a59ededd00 update num_sublices based upon implicit scaling
Signed-off-by: John Falkowski <john.falkowski@intel.com>
2021-09-23 04:31:28 +02:00
Pawel Cieslak 4e4218e3cc Add flag for disabling kernel compilations
Related-To: NEO-6012
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2021-09-23 00:02:26 +02:00
Mateusz Jablonski f8867e0b97 Move generic command stream receiver files to shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-09-22 23:55:31 +02:00
Spruit, Neil R 479035c839 L0 support for SPIRv static module linking
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
2021-09-22 23:38:50 +02:00
Kamil Kopryk d2a776bcc6 Remove L3 flush from postSync
Related-To: NEO-6111
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2021-09-22 17:49:58 +02:00
Mateusz Hoppe b0ec436b3e Fill devices from api thread
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-09-22 16:34:10 +02:00
Rafal Maziejuk dc8b92d8a6 Move heapInLocalMem function from HwHelper to HwInfoConfig
Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com>
Related-To: NEO-4541
2021-09-22 11:44:44 +02:00
Artur Harasimiuk 1ec3035cb1 rename igdrcl_libult_cs to neo_libult_cs
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-09-22 10:56:29 +02:00
Joshua Santosh Ranjan d6bb9bf0dd Metrics MultiDevice Support Add SubDevice Check
Adding isSubdevice check to support multi devices


Related-To: LOCI-2554

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-09-22 09:45:08 +02:00
Compute-Runtime-Validation 172f99b70f Revert "Fix a couple sampler addressing modes that were flipped"
This reverts commit 85dfd5cf9d.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2021-09-22 04:35:55 +02:00
Aravind Gopalakrishnan 4f7f70fa96 Revert "Events workaround for L3Flush issue"
This reverts commit 473d61d95f169dfe300f0fb7ba8564ac3628a3a9.

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2021-09-21 21:50:50 +02:00
Bartosz Dunajski a2e41716e2 Fix L0 CommandQueue command buffer allocation properties
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-09-21 16:33:48 +02:00
Rafal Maziejuk 0b0edcf1f2 Correct MOCS index calculation
Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com>
Related-To: NEO-4541
2021-09-21 11:23:53 +02:00
Szymon Morek d61741dd9f Refactor memory info
Related-To: NEO-6149


Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2021-09-21 11:17:25 +02:00
Maciej Plewka caa536b6a0 Test compute mode WA based on TestTraits
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2021-09-21 10:02:33 +02:00
Jaime Arteaga 8a2612a754 Correct event signaling in zello_ipc_event
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-09-21 09:54:07 +02:00
Jim Snow 85dfd5cf9d Fix a couple sampler addressing modes that were flipped
Related-To: LOCI-2545
Signed-off-by: Jim Snow <jim.m.snow@intel.com>
2021-09-21 09:52:08 +02:00
Mateusz Hoppe 4d4433fa5f Fixes for MultiDevice fixture and DebugSession
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-09-20 17:27:46 +02:00
Artur Harasimiuk b505bcdf79 move custom event listener to shared
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-09-20 16:46:50 +02:00
John Falkowski 92c2c07bff Correct device handle for device/shared alloc
Signed-off-by: John Falkowski <john.falkowski@intel.com>
2021-09-17 23:25:19 +02:00