Commit Graph

10193 Commits

Author SHA1 Message Date
Pawel Cieslak 676c7dde4c Allow setting gtest_output for targets
Related-To: NEO-6715
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2022-04-29 11:43:56 +02:00
Lukasz Jobczyk 73d3d83e60 Assign gpgpu engine at first enqueue
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-04-29 11:33:12 +02:00
Artur Harasimiuk a6490062a9 fix code issues reported by clang 14
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-04-29 10:43:34 +02:00
Patryk Wrobel 96dd1de20c Detect GPU hangs in appendMemoryRangesBarrier()
This change introduces checking the error code returned by
executeCommandListImmediate() inside appendMemoryRangesBarrier().
When GPU hang is encountered, the error code is propagated.
This change contains also ULTs to cover the new code and improve
coverage of that function.

Related-To: NEO-6681
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-04-29 08:46:15 +02:00
Mateusz Hoppe 35a1a3fc2a Fix debug session thread conversion
- convertToPhysical must be called in polymorphic manner,
not on base DebugSession

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-04-28 18:59:34 +02:00
Mateusz Jablonski ac01f74924 style: fix gcc12 compilation errors
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-04-28 18:07:15 +02:00
Compute-Runtime-Validation 00a1a14652 Revert "Fix multi thread usage of external host alloc"
This reverts commit 54eee2a88b.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-04-28 17:42:07 +02:00
Compute-Runtime-Validation 46e4a389c2 Revert "fix rootDeviceIndex issue for PCI reorder"
This reverts commit d797d79f97.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-04-28 17:20:51 +02:00
Artur Harasimiuk ff7400d295 infra update
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-04-28 15:52:29 +02:00
Mateusz Jablonski ffd1c430b1 feature: use completion fence value from direct submission when available
Related-To: NEO-6643
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-04-28 15:38:11 +02:00
Mateusz Hoppe 702feba063 Enhance unit test
- expect makeResident calls based on number of ISAs

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-04-28 15:14:47 +02:00
Zbigniew Zdanowicz 819d648997 Use single event for multiple kernels
Related-To: NEO-6871

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-04-28 15:10:04 +02:00
Krzysztof Gibala a3745c28a3 Create peekGmmHelper function in CSR
Related-To: NEO-6523
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2022-04-28 12:54:32 +02:00
Lukasz Jobczyk 26221678aa Enable engines round robin assign
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-04-28 11:49:15 +02:00
Lukasz Jobczyk 72f6ef7d2b Do not submit to gpgpu during blit in immediate dispatch mode
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-04-28 11:36:42 +02:00
Patryk Wrobel 6ac6006217 Fix compilation error of ULTs on Windows
The build of test_cmdlist_append_launch_kernel_1.cpp caused
fatal error C1128 - number of sections exceeded object file
format limit.

Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-04-28 10:30:38 +02:00
Mateusz Jablonski cfad6ba273 Add check to avoid nullptr usage
Related-To: NEO-5081
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-04-27 18:13:32 +02:00
Igor Venevtsev f4182e37ee Add debugger support - debug session implementation
Resolves: NEO-6813

Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2022-04-27 17:53:48 +02:00
Filip Hazubski 55dcca993c Apply getPaddingForISAAllocation PVC implementation to PVC and later platforms
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2022-04-27 15:55:39 +02:00
Krzysztof Gibala 9b778863b4 Store GmmHelper in Gmm class
Store GmmHelper in Gmm class instead of GmmClientContext

Related-To: NEO-6523
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2022-04-27 15:45:49 +02:00
Lukasz Jobczyk 7eb70775ea Flush caches for cross CSR dependencies
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-04-27 15:03:27 +02:00
Mateusz Jablonski 98ecfb1275 test: adjust test to respect patching relocations in module
Related-To: NEO-5081
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-04-27 13:48:06 +02:00
Filip Hazubski 3900c9d24a Report to StreamProperties whether large grf should be programmed with SCM
Add helper method to UnitTestHelper to query programmed grf values.

Related-To: NEO-6659

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2022-04-27 13:20:14 +02:00
Compute-Runtime-Validation 903cf766b3 Revert "Move shared helper files to shared directory"
This reverts commit 459524f129.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-04-27 13:12:16 +02:00
Patryk Wrobel e3b1d8b43c Improve code coverage of BinaryDecoder
This change contains ULTs for BinaryDecoder.
It is intended to improve code coverage.

Related-To: NEO-6834
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-04-27 11:35:12 +02:00
Krystian Chmielewski e007ba499f feat(zebin): add support for build options section
This change:
* Adds support for build options section in zebinary - using
build options in binary when rebuilding.
* Appends "-cl-intel-allow-zebin" flag to build options when zebin is
used.

Resolves: NEO-6916

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-04-27 11:26:42 +02:00
Bartosz Dunajski 0d82216f43 Refactor handling unknown builtins
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2022-04-27 10:49:16 +02:00
Filip Hazubski 459524f129 Move shared helper files to shared directory
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2022-04-27 10:34:42 +02:00
Krzysztof Gibala f6dae5ecf2 Test: Refactor ioctl mock call to be more deterministic
Add flag forceExtraIoctlDuration for controlling duration in
ioctl ULT call.

Related-To: NEO-6537
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2022-04-27 09:32:16 +02:00
Aravind Gopalakrishnan 31b2433b2f Avoid implicit sync for async mode immediate copy queue
Related-To: LOCI-1988

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2022-04-27 08:50:18 +02:00
Mateusz Hoppe ced22d45e9 test: enable aub test with nested bbs
Related-To: NEO-6858

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-04-26 17:59:14 +02:00
Mateusz Hoppe ed43964f05 Use Bindless debug sip when L0 debug enabled part 2
- fix module debug area when bindless sip is used

Related-To: NEO-5613

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-04-26 17:50:12 +02:00
Artur Harasimiuk e8b49bee47 infra update
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-04-26 17:32:15 +02:00
Mateusz Jablonski 188bf3c6fa Remove not needed relocation name for implicit args
Related-To: NEO-5081
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-04-26 17:29:54 +02:00
Jitendra Sharma 34028355af Update zesFrequencySetRange implementation
While setting max frequency also clamp boost frequency
to max frequency.
Clamping boost frequency to max, will ensure that with workload
execution, max frequency that we are setting would not be violated.

Related-To: LOCI-3075

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2022-04-26 17:12:52 +02:00
Maciej Plewka 54eee2a88b Fix multi thread usage of external host alloc
With this commit OpenCL will track if external host memory is used from
few threads and will secure to update task count in all threads before
destroing allocation.

Resolves: NEO-6807

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2022-04-26 15:31:24 +02:00
Patryk Wrobel 1d7b99140c Test buildFatBinary()
This change introduces ULTs for buildFatBinary() function.
It is intended to improve code coverage.

Related-To: NEO-6834
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-04-26 14:55:24 +02:00
Compute-Runtime-Validation e8e3355a93 Revert "Assign BCS at first blit enqueue"
This reverts commit 5f5a1a6f81.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-04-26 09:40:46 +02:00
Slawomir Milczarek 652ca907b0 Improve zello world usm blackbox test
Fix kernel args set in reverse order, add new cmd line parameter
to specify allocation size and improve input/output validation

Related-To: NEO-6839

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2022-04-26 08:07:22 +02:00
Bellekallu Rajkiran cee2051db8 Update power control/query interface
Add support for getCardPowerDomain API.
Modify check to verify whether hwmon dir exists.
Modify ULTs to verify updated power interface.

Update power control/query interface.

Related-To: LOCI-2735, LOCI-3046
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-04-25 22:10:13 +02:00
John Falkowski d797d79f97 fix rootDeviceIndex issue for PCI reorder
Signed-off-by: John Falkowski <john.falkowski@intel.com>
2022-04-25 19:59:58 +02:00
Bartosz Dunajski 192ffa4c26 Add support for allocating RT globals
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2022-04-25 17:56:09 +02:00
Mateusz Jablonski 4a5f1b9358 refactor: extract common logic for waiting on user fences in Drm
Related-To: NEO-6643
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-04-25 17:34:23 +02:00
Patryk Wrobel 0a5f78fbfe Test remaining parts of ocloc_arg_helper
This change introduces remaining ULTs for ocloc_arg_helper
to ensure, that its files are fully covered.

Related-To: NEO-6834
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-04-25 17:23:31 +02:00
Mateusz Hoppe 37c792da96 Add L0 debugger unit test
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-04-25 16:42:35 +02:00
Mateusz Hoppe bcbe3278a9 Metrics: Fix potential divide by zero
- return error when frequency is zero

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-04-25 14:49:08 +02:00
Lukasz Jobczyk 5f5a1a6f81 Assign BCS at first blit enqueue
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-04-25 13:48:21 +02:00
Mateusz Jablonski 03185f7111 feature direct submission: use tag allocation as a completion fence
use tag allocation address as a completion address in exec call
wait for completion value before destroying drm direct submission

Related-To: NEO-6643
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-04-25 13:30:55 +02:00
Kamil Kopryk 38190c5d17 Infra update
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2022-04-25 10:39:54 +02:00
Dominik Dabek d0a32b1437 Fix: svm pointer caching
Given a following sequence of setting kernel arg svm pointers: A, nullptr, A
the kernel arg was not being set to A

Related-To: NEO-6895

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2022-04-25 07:59:47 +02:00