Baj, Tomasz
7daee00df4
Add alarmTime to ULTs
...
Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com>
Related-To: NEO-6413
2022-01-31 13:51:57 +01:00
Patryk Wrobel
498cf5e871
Implement GPU hang detection
...
This change uses DRM_IOCTL_I915_GET_RESET_STATS to detect
GPU hangs. When such situation is encountered, then
zeCommandQueueSynchronize returns ZE_RESULT_ERROR_DEVICE_LOST.
Related-To: NEO-5313
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-01-31 13:48:17 +01:00
Mateusz Jablonski
2b177cabb7
Correct programming width of media block surface
...
Programmed value should be a number of all dwords, rounded up
Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-28 16:28:25 +01:00
Rafal Maziejuk
fc25495ecb
Add missing BlitCommandsHelper ULTs
...
Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com>
2022-01-28 14:49:04 +01:00
John Falkowski
28345061f0
Update maxMemAlloc for PVC with Implicit Scaling
...
Signed-off-by: John Falkowski <john.falkowski@intel.com>
2022-01-28 08:50:16 +01:00
Kamil Diedrich
d2fbcc1960
Updating wsl compute helper tokens and enbaling local memory
...
Adding tokens needed for DG2 local mem enabling in WSL
Enabling local memory for DG2 for WSL
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2022-01-27 14:26:24 +01:00
Bartosz Dunajski
72edadb265
Remove not used GT type info
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2022-01-26 18:06:38 +01:00
Michal Mrozek
3d9548cee9
[5/n] Optimize Indirect Allocations.
...
Enable mechanism where feasible.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2022-01-26 16:01:10 +01:00
Igor Venevtsev
af7a475cb0
Fix debug zebin creation
...
- ELF type is EXEC
- Absolute GPU addresses in program headers as load addresses
- All relocations are applied (not only for debug info as before)
- Default section alignment for debug zebin is set to 4,
this fix the problem with .notes section parsing
Related-To: NEO-5571
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2022-01-26 13:55:32 +01:00
Maciej Plewka
f8c104feaa
Use fw declaration of IndirectHeap in CommandContainer
...
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2022-01-26 13:30:26 +01:00
Lukasz Jobczyk
44596f6e4d
Revert "Improve mmap logic in createAllocWithAlignment"
...
This reverts commit adb5c58292165f1d5a144548c5d5148021d2152e.
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-01-26 08:52:12 +01:00
Filip Hazubski
0424f30782
Improve mmap logic in createAllocWithAlignment
...
Group small allocations and reuse mapped memory in order to keep map
count small.
Related-To: NEO-6417
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2022-01-25 15:30:29 +01:00
Mateusz Jablonski
010186d0da
Correct GivenTwoCommandQueuesWhenEnqueuingKernelThenThereIsOneVfeState test
...
parse commands after flushing command queues
correct getCommandNameHwSpecific behaviour for STATE_COMPUTE_MODE
Related-To: NEO-5618
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-25 14:53:42 +01:00
Mateusz Jablonski
bf7b2674a5
Correct programming of horizontal alignment on Xe Hpc
...
for linear surfaces we should program value of 128
Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-25 11:14:44 +01:00
Mateusz Jablonski
0dbac9cec7
Move compute mode tests from opencl to shared
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-25 10:14:00 +01:00
Lukasz Jobczyk
9330f737d4
Revert "Check if direct submission available once"
...
This reverts commit 7ab6d2801a
.
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-01-25 10:01:15 +01:00
Mateusz Jablonski
0c933d83af
Update RENDER_SURFACE_STATE for Xe Hpc
...
For Xe Hp and later rename RSS tile mode enum from YMAJOR to TILE4
Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-24 18:06:42 +01:00
Compute-Runtime-Validation
1634ac9ec3
Revert "Dont generate gen file by default"
...
This reverts commit 95943dee0f
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-01-24 14:46:29 +01:00
Zbigniew Zdanowicz
a7455b5767
Add tweaks and control flags to linux completion fence
...
Related-To: NEO-6575
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-21 13:41:23 +01:00
Mateusz Jablonski
fdef257b01
Move some Xe Hpc tests from opencl to shared
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-21 13:23:29 +01:00
Mateusz Jablonski
bbea52f3f9
Update CFE_STATE for Xe Hpc
...
Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-21 10:55:20 +01:00
Aravind Gopalakrishnan
e29a85ebb3
Use ImmediateDispatch mode for L0 command queues
...
Related-To: LOCI-1988
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2022-01-21 00:23:04 +01:00
Zbigniew Zdanowicz
ec40b6562e
Add unit tests for completion fence
...
Related-To: NEO-6575
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-20 21:15:34 +01:00
Mateusz Jablonski
8e03ce9c54
Correct programming of horizontal alignment on Xe Hp
...
for linear surfaces we should program value of 128
Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-20 16:41:22 +01:00
Fabian Zwolinski
d9bf1886c2
Remove GMock from GMockMemoryManagerFailFirstAllocation, GMockMemoryManager...
...
Removed GMock from
- GMockMemoryManagerFailFirstAllocation
- GMockMemoryManager
- TestEventCsr
- MockKmdNotifyCsr
- MockMemoryOperationsHandlerTests
- GmockGmmMemory
- MockMemoryManagerCommandQueueSBA
- TestCmdQueueCsr
Renamed:
- GMockMemoryManagerFailFirstAllocation -> MockMemoryManagerFailFirstAllocation
Moved class body:
- GMockMemoryManager to MockMemoryManager
- GmockGmmMemory to MockGmmMemoryBase
Related-To: NEO-4914
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2022-01-20 16:08:34 +01:00
Filip Hazubski
af8f712010
Move gen9 preamble tests to gen9 directory
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2022-01-20 12:38:04 +01:00
Compute-Runtime-Validation
6082865eb4
Revert "Optimize Level Zero indirect allocations handling."
...
This reverts commit 3ecbc55ba9
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-01-20 11:41:13 +01:00
Mateusz Jablonski
c79b8f0e90
Correct programming of horizontal alignment on Xe Hpg
...
for linear surfaces we should program value of 128
Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-20 11:08:04 +01:00
Mateusz Jablonski
dfe23a08b2
Update RENDER_SURFACE_STATE for Xe Hp
...
Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-20 10:53:54 +01:00
Zbigniew Zdanowicz
d44f3009b8
Add interface for user fence extension
...
Related-To: NEO-6575
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-19 19:58:22 +01:00
Mateusz Jablonski
ac39f424ce
Correct expectations of horizontal alignment programmed value
...
change value in mock to verify non-default value programming
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-19 18:36:34 +01:00
Mateusz Jablonski
5cd76aef6a
Refactor surface state programming, add enum value for default halign value
...
Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-19 14:31:28 +01:00
Michal Mrozek
3ecbc55ba9
Optimize Level Zero indirect allocations handling.
...
Make them resident directly instead of populating residency container
Remove finds, not needed, CSR resolves duplicates at makeResident calls
Observed gain is 32x for 10k indirect allocations.
Co-authored-by: Michal Mrozek <michal.mrozek@intel.com>
Co-authored-by: Dominik Dabek <dominik.dabek@intel.com>
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2022-01-19 13:08:35 +01:00
Katarzyna Cencelewska
20f17f775e
Remove device enqueue part 8
...
- remove hasDeviceEnqueue
Related-To: NEO-6559
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-01-19 11:16:35 +01:00
Mateusz Jablonski
8ebef3769c
Update RENDER_SURFACE_STATE for Xe Hpg
...
Program Multi Gpu params in surface state only on Xe Hp Sdv
Respect zero-size image scenario when programming surface state
Move XeHp-only tests to dedicated subdir
Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-18 21:06:14 +01:00
Zbigniew Zdanowicz
4238679078
Refactor implicit scaling device support
...
Related-To: NEO-6589
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-18 13:08:43 +01:00
Kamil Kopryk
40483acd17
Improve blitter programming
...
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2022-01-18 10:36:05 +01:00
Mateusz Borzyszkowski
95943dee0f
Dont generate gen file by default
...
Ocloc can dump gen file when we add -gen_file flag to cmd.
Otherwise gen is not generated
Signed-off-by: Mateusz Borzyszkowski <mateusz.borzyszkowski@intel.com>
2022-01-17 18:14:50 +01:00
Zbigniew Zdanowicz
625575209a
Add new test matcher
...
Related-To: NEO-6589
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-17 16:13:45 +01:00
Mateusz Jablonski
e5a18177c5
Add unit test helper function to set pipe control hdc flush
...
Separate unit test helper definitions bdw_and_later / xe_hp_and_later
Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-17 15:45:29 +01:00
Zbigniew Zdanowicz
03366f11d2
move aub test suite to shared tests executable
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-17 12:24:03 +01:00
Zbigniew Zdanowicz
c36c083812
Refactor implicit scaling parameters for surface state
...
Related-To: NEO-6589
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-17 09:30:58 +01:00
Mateusz Jablonski
ff79c84115
Correct INTERFACE_DESCRIPTOR_DATA definitions for XeHp and later
...
Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-14 19:06:55 +01:00
Zbigniew Zdanowicz
b78bb26cbf
Refactor partitioning of state base address
...
Related-To: NEO-6589
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-14 19:06:24 +01:00
Patryk Wrobel
53482e6821
Allow ocloc to link files
...
Added 'link' option to ocloc CLI, which allows linking of
several IR files to single output file. Supported formats
of output file are ELF and LLVM BC.
Related-To: NEO-6163
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-01-14 16:18:36 +01:00
Milczarek, Slawomir
370b4b94c8
Minor fix for linux ULTs
...
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2022-01-14 16:06:07 +01:00
Zbigniew Zdanowicz
9c4f05387b
Refactor partitioning of dispatched kernels
...
Related-To: NEO-6589
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-13 22:54:07 +01:00
Rafal Maziejuk
201c3347ff
Rename dispatchBlitCommandsRegion to dispatchBlitCommandsForImageRegion
...
As this function no longer applies to buffers it needed to be renamed.
Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com>
2022-01-13 15:42:12 +01:00
Zbigniew Zdanowicz
caa19489fc
Tweak dispatch kernel args structure
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-13 15:06:12 +01:00
Zbigniew Zdanowicz
9785ab7828
Refactor encode dispatch kernel class interface
...
Related-To: NEO-6589
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-13 12:08:38 +01:00
Raiyan Latif
394c0e90e1
Return error when failing on submission
...
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2022-01-12 16:42:30 +01:00
Fabian Zwolinski
44ebe800df
Move MockWddm body to WddmMock
...
This commit cleans the code after previously removed GMock from the
MockWddm(GmockWddm) class by merging MockWddm class into WddmMock.
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2022-01-12 16:08:46 +01:00
Mateusz Jablonski
37c78b9ef7
Disable bliter on DG1 Linux
...
move dg1 hw info config tests to shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-12 15:10:14 +01:00
Krystian Chmielewski
af7cb3ff35
Test closing GEM worker is blocking during cleanup
...
Added test checking if closing GEM worker during
DRM memory manager clean up is blocking.
Related-To: NEO-6213
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-01-12 12:48:05 +01:00
Kamil Diedrich
7604a15abd
Enable local memory for images for DG2 + WSL
...
Change GMM resource info params, so that buffers
remain in system memory while images are being
routed to local memory additionally, fixes single
sku builds
Related-To: NEO-6391
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2022-01-11 20:06:53 +01:00
Mateusz Jablonski
61e5e0687d
Patch all implicit args relocations within every kernel
...
Related-To: NEO-5081
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-01-11 14:34:28 +01:00
Rafal Maziejuk
8729521769
Use dispatchBlitCommandsForBufferRegion when copying buffers in L0
...
First step to separate dispatch blit commands for buffers
from dispatch blit commands for images.
Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com>
Related-To: NEO-6134
2022-01-11 13:52:56 +01:00
Krystian Chmielewski
325ae63d05
Sort program headers by virt addr
...
When encoding ELF binary sort program headers by
virtual addresses incrementally.
This change is needed for compatibility with GDB.
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-01-11 13:23:59 +01:00
Kamil Diedrich
34856747b4
Add implementation for reading logical subDevice from builtin
...
Related-To: NEO-6258
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2022-01-11 13:06:15 +01:00
Szymon Morek
26a24e8fde
Query engine info with distances
...
If prelim kernel is being used, query distances
and set correctly number of available engines
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2022-01-10 13:30:26 +01:00
Joshua Santosh Ranjan
54d377d025
Fix clang-tidy issue
...
Fix clang-tidy issues about adding override keyword for MockClasses
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-01-10 10:56:25 +01:00
Spruit, Neil R
02f075c541
Power Saving Hint Support for Level Zero in Windows
...
- Added Functionality to pass ze_power_saving_hint_type_t to zeContextCreate
included in the pNext extensions in ze_context_desc_t.
- Enables handling a hint value 0-100 with 0 being no power savings
and 100 being maximum power savings.
- ZE_RESULT_ERROR_INVALID_ENUMERATION is returned given an invalid hint.
Related-To: LOCI-2567
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
2022-01-06 23:56:59 +01:00
Kamil Diedrich
8ec74558ea
Temporarily disabling local memory for DG2 in WSL
...
Forcing system memory pool for all allocations in WSL for DG2
while local memory support is being implemented
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2022-01-06 11:15:25 +01:00
Joshua Santosh Ranjan
7fc9b2c3dc
Implement UUID using pcie bdf
...
This patch implements the fallback method for Device UUID
using the BDF of the device for all product families.
Related-To: LOCI-2827
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-01-05 23:31:00 +01:00
Fabian Zwolinski
1d48e97649
Remove GMock from MockAubCsr, GmockAubFileStream, AsyncEventsHandlerTests...
...
GMock Removed from:
- MockAubCsr
- GmockAubFileStream
- AsyncEventsHandlerTests
- AsyncEventsHandlerTests::MyEvent
- MockGmmPageTableMngr
- GmockWddm
Additionally:
- GmockAubFileStream body moved to MockAubFileStream class
- Deleted unused GmockAubFileStream class
- Deleted NiceMocks from AsyncEventsHandlerTests
- Renamed GmockWddm to MockWddm
Related-To: NEO-4914
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2022-01-05 14:45:13 +01:00
Dominik Dabek
a18c706408
Move neo device caps tests to shared
...
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2022-01-03 18:05:11 +01:00
Katarzyna Cencelewska
534280fad6
Disable device enqueue
...
on icllp, cfl, kbl, skl
Resolves: NEO-6559
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-01-03 17:34:30 +01:00
Zbigniew Zdanowicz
0cbc320e57
Move memory fixtures to shared
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-03 16:47:02 +01:00
Lukasz Jobczyk
7ab6d2801a
Check if direct submission available once
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-12-31 11:53:29 +01:00
Zbigniew Zdanowicz
2047fc88f9
Move execution environment helper to shared
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-12-31 11:36:44 +01:00
Dominik Dabek
24621e8d16
Add test for getMaxParameterSizeFromIGC
...
Test is using MockCompilerInterface
Related-To: NEO-4851
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2021-12-30 18:17:40 +01:00
Filip Hazubski
5be4d89b73
Rename function
...
Rename MemorySynchronizationCommands::isDcFlushAllowed
to MemorySynchronizationCommands::getDcFlushEnable
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-30 17:03:22 +01:00
Mateusz Jablonski
187120f44e
Program Media Sampler DOP Clock Gate Enable on Xe Hp Sdv
...
remove skipped tests
Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-30 16:45:40 +01:00
Lukasz Jobczyk
b5ffad2fec
Revert "Check if direct submission available once"
...
This reverts commit 70a7840da3
.
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-12-30 10:31:00 +01:00
Kopryk, Kamil
446a78a134
Force stateless addressing mode for PVC
...
PVC will support buffers greater than 4GB, hence we have to
use stateless accessing mode as default.
Signed-off-by: Kopryk, Kamil <kamil.kopryk@intel.com>
2021-12-29 14:53:18 +01:00
Dominik Dabek
67fff7fc51
Rename igcFeWa to igcFtrWa
...
It references features and workarounds
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2021-12-29 11:52:43 +01:00
Szymon Morek
e07b27c0e2
Allow to query memory info with prelim ioctl
...
If prelims are supported, query memory info with
specific ioctl.
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2021-12-29 10:21:23 +01:00
Maciej Plewka
615688336f
Program all fields in SCM
...
Related-To: NEO-6432
This change applies WA that always programs all fields in SCM for
gen12lp. Also for those platforms Force Non-Coherent is set to 0x2.
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2021-12-28 16:30:47 +01:00
Dominik Dabek
300a971af3
Use igc interface to get max param size
...
IGC will be queried for max parameter size at the end of initializing
device caps.
Related-To: NEO-4851
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2021-12-28 16:10:05 +01:00
Fabian Zwolinski
76565529f6
Remove GMock: GMockProgram, MockDispatchKernelEncoder, GMockSourceLevelDebugger
...
New name for mock class:
GMockProgram -> MockProgramAppendKernelDebugOptions
Also GMockSourceLevelDebugger class body has been merged with
MockSourceLevelDebugger.
Related-To: NEO-4914
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2021-12-28 12:58:31 +01:00
Szymon Morek
694046d30e
Remove C-style casts when casting to osHandle
...
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2021-12-28 11:11:49 +01:00
Szymon Morek
d9f6757378
Change return type from unique_ptr to vector
...
In some of the drm functions there is a pattern
to store array in unique_ptr and pass it's length
as an argument. This commit simplifies this.
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2021-12-28 10:33:53 +01:00
Lukasz Jobczyk
b59b0b6b36
Download timestamps before checking completion
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-12-28 08:14:27 +01:00
Maciej Plewka
df7723411f
Patch image descriptor fields with dword width
...
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2021-12-27 17:55:42 +01:00
Kamil Diedrich
2bbe7438ce
Revert "Add implementation for reading logical subDevice from builtin"
...
This reverts commit 901e1e71f95a8cd90611ed7cbd25705a14f38170.
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2021-12-27 15:58:51 +01:00
Lukasz Jobczyk
70a7840da3
Check if direct submission available once
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-12-23 18:00:46 +01:00
Zbigniew Zdanowicz
b6da6471f2
Add notify parameter to direct submission post sync operations
...
Related-To: NEO-5845
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-12-23 17:35:48 +01:00
Zbigniew Zdanowicz
732fbe5c7f
Move aub unit tests to shared directory
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-12-23 17:35:33 +01:00
Patryk Wrobel
3599e7aeda
Add warning when device binary had to be recompiled
...
Introduced a new warning, which is printed to build log, when the
binary needs to be recompiled. Added a new flag -Wno-recompiled-from-ir
to allow suppression of that message. Removed a bug related to memcpy_s
from ModuleBuildLogImp::getString() and aligned it with specification.
Related-To: NEO-5819
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2021-12-23 16:13:59 +01:00
Lukasz Jobczyk
205e2e1957
Wait for fence before store cmd buffer in reusable pool
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-12-23 15:36:54 +01:00
Mateusz Jablonski
eb9746987e
Move API agnotic gen8 tests to shared
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-23 13:49:13 +01:00
Mateusz Jablonski
896e01c1cb
Require exact revision when getting binary builtin for PVC
...
this change also implements logic for recompilation of builtin from spv in L0
in case when binary resource is not available
Related-To: NEO-6170
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-22 19:56:54 +01:00
Filip Hazubski
9a450d1b74
Pass hwInfo to appendMiFlushDw
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-22 15:22:47 +01:00
Zbigniew Zdanowicz
1df68ad71f
Move command stream tests to shared
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-12-22 13:00:43 +01:00
Szymon Morek
2647d563c7
Remove i915 structs from MemoryInfo
...
Use structs defined in ioctl_helper.h instead of
i915 dependent ones to avoid conflicts between
different kernels
Related-To: NEO-6149
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2021-12-22 12:46:59 +01:00
Filip Hazubski
0fd685541d
Add isDcFlushAllowed function to HwInfoConfig
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-21 18:29:43 +01:00
Zbigniew Zdanowicz
4176cac845
Move shared mocks to shared directory
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-12-21 13:26:59 +01:00
Dominik Dabek
17beabc32d
Add full src path to ocloc cmd
...
Makes it easier to copy and execute the command
Related-To: NEO-6002
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2021-12-21 13:01:58 +01:00
Filip Hazubski
6d439f88bb
Explicitly set dcFlushEnable value
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-21 12:21:11 +01:00
Mateusz Jablonski
ab4640635d
Cleanup command stream receiver tests 1/n
...
cmd parse tests
aub subcapture tests
aub command stream receiver tests
aub command stream receiver fixture
mock aub subcapture manager
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-20 20:02:50 +01:00
Zbigniew Zdanowicz
7680331b4a
Move shared object mocks to shared directory
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-12-20 18:48:37 +01:00
Mateusz Jablonski
4694b7ac5c
Move linear / tbx stream tests from opencl to shared
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-20 17:45:53 +01:00
Lukasz Jobczyk
bc58172075
Revert "Enable task count update from wait"
...
This reverts commit 8db36ddf28d0b85516e0adf77dbfc78000d22146.
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-12-20 16:53:16 +01:00
Krystian Chmielewski
9d5907c8d0
Debug zebin copy section header's flags
...
When creating debug ZEBinary copy section header's flags
from ZEBinary to debug binary.
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2021-12-17 21:01:18 +01:00
Filip Hazubski
461e6d841d
Remove redundant thread arbitration policy variables for SCM
...
Remove CommandStreamReceiver::lastSentThreadArbitrationPolicy
Remove CommandStreamReceiver::requiredThreadArbitrationPolicy
Related-To: NEO-5995
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-17 19:47:59 +01:00
Kacper Nowak
1c74eca1ae
Add source offset entry for arg by value in zebin
...
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2021-12-17 16:45:49 +01:00
Lukasz Jobczyk
6e5bc0d5ee
Enable task count update from wait
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-12-17 15:21:51 +01:00
Fabian Zwolinski
617f65c285
Add wrapper for snprintf
...
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2021-12-17 13:07:49 +01:00
Mateusz Jablonski
66bf806018
Remove magic number from set/getBatchBufferStartAddressGraphicsaddress methods
...
rename methods to set/getBatchBufferStartAddress
Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-16 19:03:01 +01:00
Bartosz Dunajski
ae31fec9a7
Add missing PVC test traits
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-12-16 17:09:23 +01:00
Zbigniew Zdanowicz
59b9ee0127
Drop stalling command for partitioned kernels on xe hpc platform
...
Related-To: NEO-6262
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-12-16 16:51:38 +01:00
Fabian Zwolinski
ab580bdc11
Remove GMock from GMockCommandQueueHw, MockFlatBatchBufferHelper
...
Related-To: NEO-4914
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2021-12-16 16:39:45 +01:00
Zbigniew Zdanowicz
0a139caf77
Use timestamp post sync always for multi tile partitioned walkers
...
Related-To: NEO-6262
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-12-16 16:03:16 +01:00
Lukasz Jobczyk
1f0c58d0bf
Refactor timestamp wait mechanism
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-12-16 13:22:19 +01:00
Artur Harasimiuk
9d063f29d2
refactor support of other architectures
...
- cmake refactor to disable ld.gold and ld.lld usage when cross-compiling
- skip some ULTs when CPU feature is not available
Related-To: NEO-6017
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-12-16 12:54:51 +01:00
Mateusz Jablonski
3e862d1fbc
Add test matcher for at least Skylake platform
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-15 19:52:00 +01:00
Dominik Dabek
4f71b9ea61
Add flag forcing 2dimage as array in surface state
...
Workaround for a hw bug causing invalid texture address request
Related-To: NEO-5653
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2021-12-15 19:47:17 +01:00
Mateusz Jablonski
ee18008750
Remove duplicated test.h header
...
use full path to include test.h
add missing headers to source list
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-15 15:34:45 +01:00
Mateusz Jablonski
527806b3ed
Use full path to include test.h 2/n
...
fix files in shared
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-15 13:09:50 +01:00
Mateusz Jablonski
03e617d14f
Refactor memory object control state methods in generated commands
...
remove setters/getters for Index To Mocs Tables fields
all information contained in MOCS from gmm client context is now handled
by dedicated method set/get MemoryObjectControlState
Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-15 12:01:20 +01:00
Filip Hazubski
e182aa6055
Unify program thread abitration logic for gen9 and gen11
...
Use single call for programming thread arbitration logic in flushTask.
Related-To: NEO-5995
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-14 17:10:26 +01:00
Mateusz Jablonski
5700619f24
Refactor test.h header
...
move platform/core specific definitions to separated files
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-12-14 16:44:58 +01:00
Igor Venevtsev
fe250d99b1
Disable L3 caches for debug on ATS and DG2
...
Resolves: NEO-6320
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2021-12-14 13:59:09 +01:00
Milczarek, Slawomir
21f6e7e17c
Remove mock function to check for page fault support
...
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2021-12-14 12:50:12 +01:00
Zbigniew Zdanowicz
01348451db
Add multi tile barrier to marker command on multi tile device
...
Related-To: NEO-6262
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-12-13 18:14:39 +01:00
Krystian Chmielewski
7e08e56d50
Zebin: allow undef symbols
...
Skip undefined symbols when decoding ELF symbol table
instead of treating them as error in zebin path in
order to support dynamic linking scenarios.
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2021-12-13 15:31:56 +01:00
Lukasz Jobczyk
616580637b
Reuse command buffers in L0 command list
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-12-13 14:52:45 +01:00
Filip Hazubski
64aec8dc4e
Rename functions
...
Rename getEngines to getAllEngines
Rename engines to allEngines
Rename getEngineGroups to getRegularEngineGroups
Rename engineGroups to regularEngineGroups
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-13 14:27:02 +01:00
Zbigniew Zdanowicz
56bef79733
Add multi tile support for OCL post sync barrier
...
Related-To: NEO-6262
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-12-10 17:33:12 +01:00
Joshua Santosh Ranjan
06be26fd1e
Add uuid support using inband information
...
Added chipset specific uuid retrieving functionality
This is used by zeDeviceGetProperties
Related-To: LOCI-2636
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-12-10 08:02:33 +01:00
Filip Hazubski
3511b4755f
Remove redundant coherency variables for SCM
...
Remove CommandStreamReceiver::lastSentCoherencyRequest
Remove CsrSizeRequestFlags::coherencyRequestChanged
Related-To: NEO-5995
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-09 14:43:21 +01:00
Bartosz Dunajski
8c93004937
Unify device id tests
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-12-09 13:53:10 +01:00
Bartosz Dunajski
4dde9393ad
Extend engine checkers to support more engine types
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-12-09 13:41:25 +01:00
Kamil Diedrich
24c19509b3
Add implementation for reading logical subDevice from builtin
...
- add function for resolving builtins using relocations
- add relocation for __SubDeviceID symbol
Related-To: NEO-6258
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2021-12-09 13:20:49 +01:00
Zbigniew Zdanowicz
bac79244d5
Add multi tile event signal capability
...
Related-To: NEO-6262
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-12-09 12:13:23 +01:00
Filip Hazubski
1107fdfe55
Rename function and remove unused parameter
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-12-08 22:47:40 +01:00
Bartosz Dunajski
2fd536104d
Extend GfxPartition to support 57b addressing
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-12-08 16:05:05 +01:00
Mateusz Hoppe
694e8ac5ac
Add ULT for kernel descriptor population
...
- enhanced testing for non-bindless mode with UpdateCrossThreadDataSize
debug variable
Related-To: NEO-6448
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-12-08 10:28:40 +01:00
Jim Snow
2dfb7df63b
Add RTDispatchGlobals allocation for ray tracing
...
If a kernel has ray tracing calls, we allocate and initialize
per-device RTDispatchGlobals if needed, and hand off pointer to
the same into a running kernel via an implicit parameter.
Related-To: NEO-5384
Signed-off-by: Jim Snow <jim.m.snow@intel.com>
2021-12-08 09:44:13 +01:00
Bartosz Dunajski
27f20b302b
Add PVC shared unit tests
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-12-07 17:32:54 +01:00
Mateusz Hoppe
9483070b18
Enable bindless aub in L0
...
- update crossthreaddata size according to argument offsets
when processing patchtoken binary when DATA PARAMETER STREAM SIZE
is lower than size required for arguments
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-12-07 17:28:31 +01:00
Bartosz Dunajski
5ab00bbab4
Add PVC test macros
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-12-07 17:07:23 +01:00
Bartosz Dunajski
dfdd3c597a
Remove redundant BUFFER_COMPRESSED allocation type
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-12-07 13:35:49 +01:00
Bartosz Dunajski
2b1aa8b331
Compilation fix: Add missing LrcaHelper types
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-12-07 13:19:36 +01:00
Bartosz Dunajski
76c730bee8
Add new Stream Property fields
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-12-07 13:04:31 +01:00
Katarzyna Cencelewska
3979af1dcc
Move slice enable to setHwInfoValuesFromConfig
...
Fix problem with not enabled slices in mode SetCommandStreamReceiver=1
Related-To: NEO-6507
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2021-12-07 09:59:17 +01:00
Milczarek, Slawomir
f29e4acd7e
Add regkey to control cache policy for scratch space
...
Introduce the regkey OverrideL1CacheControlInSurfaceStateForScratchSpace
to control cache policy in surface state for scratch space
Related-To: NEO-3227
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2021-12-06 19:51:38 +01:00
Lukasz Jobczyk
09d2ffb9ed
Add missing cache flush
...
Resolves: NEO-6505
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-12-06 17:28:12 +01:00
Jitendra Sharma
8b51358054
In level zero create single tag allocation for csr
...
Multi tag allocation is useful only in openCL to ensure cross root
device synchronization based on tag address.
It is not required in level zero.
Futher multi tag allocation is causing instability in sysman
device reset. So, for level zero instead of multi tag allocation
create single tag allocation.
Related-To: LOCI-2651
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-12-06 15:16:34 +01:00
Bartosz Dunajski
68aea5bf62
Rename compression flags and helpers
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-12-03 18:09:02 +01:00