Commit Graph

621 Commits

Author SHA1 Message Date
Jaime Arteaga
c7e65a90d8 Free IPC memory on closeIpcMemHandle() call
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-03-27 11:25:57 +01:00
Bartosz Dunajski
5a50ad098c Refactor TagAllocator
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-03-26 15:16:56 +01:00
Jaime Arteaga
0dc73ad686 Isolate host allocations with respect to context
Related-To: LOCI-1996

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-03-25 06:15:59 +01:00
Jaime Arteaga
bf90fabcd2 Expand zello_ipc_copy_dma_buf to spawn several child processes
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-03-25 05:54:25 +01:00
Aravind Gopalakrishnan
e977de564c Add L0 event ULTs (2)
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2021-03-24 17:11:15 +01:00
Bartosz Dunajski
f9197d4e0d Improve memoryPrefetch method
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-03-24 15:12:05 +01:00
Mateusz Jablonski
35ff284944 Cleanup Kernel class
move deviceVector to MultiDeviceKernel class
remove Device arg from Kernel's methods

Related-To: NEO-5001
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-03-24 09:17:41 +01:00
Compute-Runtime-Validation
46a971de81 Revert "Free IPC memory on closeIpcMemHandle() call"
This reverts commit cda914f7d0.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2021-03-24 06:58:47 +01:00
Jaime Arteaga
cda914f7d0 Free IPC memory on closeIpcMemHandle() call
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-03-23 19:09:12 +01:00
Jim Snow
39d450bc84 Refactor L0 sampler error path and add ULTs
Signed-off-by: Jim Snow <jim.m.snow@intel.com>
2021-03-23 06:52:08 +01:00
Jaime Arteaga
47bdcce4c6 Add ULTs for missing branches in driverHandleGet()
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-03-22 20:31:42 +01:00
Filip Hazubski
8d55bfe21d Implement zeCommandListAppendLaunchCooperativeKernel
Resolves: NEO-4725


Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-03-22 19:26:41 +01:00
Bartosz Dunajski
3dc3ad36f8 Refactor TimestampPacket class
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-03-22 17:42:41 +01:00
Jaime Arteaga
689028992a Add ULT for ZE_DEVICE_PROPERTY_FLAG_ONDEMANDPAGING
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-03-22 16:31:35 +01:00
Jaime Arteaga
673198ab34 Add ULT for missing branches in getCsrForOrdinalAndIndex()
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-03-22 16:27:19 +01:00
Daria Hinz
9ac7f1d370 Adding a parameter to a encode function
Signed-off-by: Daria Hinz <daria.hinz@intel.com>
2021-03-19 17:54:46 +01:00
Mateusz Hoppe
1544c6d001 Split getDebugSession and createDebugSession logic
Related-To: NEO-4554

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-03-19 15:38:36 +01:00
Zbigniew Zdanowicz
d6dde3df33 Add internal argument to encode method
Related-To: NEO-5244

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-03-19 09:37:05 +01:00
Jaime Arteaga
521cc56096 Add support for zeContextCreateEx
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-03-19 06:14:53 +01:00
Mateusz Hoppe
d264dc858f Return all devices from helper function in bbox tests
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-03-19 04:58:36 +01:00
Aravind Gopalakrishnan
279349bfab Add ULTs for L0 events
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2021-03-18 22:04:48 +01:00
Slawomir Milczarek
693f2ff384 Ensure shared handle be closed once on Linux
Related-To: NEO-5644

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2021-03-18 18:38:01 +01:00
Mateusz Hoppe
232faf1bd8 Fix test_memory.cpp
- expect correct result

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-03-18 17:43:16 +01:00
Mateusz Hoppe
0897f997d6 Fix zeModuleGetGlobalPointer()
- return size correctly
- check if pSize and pPtr is != nullptr

Resolves: NEO-5641

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-03-18 17:29:41 +01:00
Jaime Arteaga
5b10cdd5d5 Correct variable misusage in ULT
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-03-18 06:17:17 +01:00
Aravind Gopalakrishnan
7764ac44ae Implement support for zeDeviceGetGlobalTimestamps
Related-To: LOCI-1933

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2021-03-17 20:29:07 +01:00
Aravind Gopalakrishnan
3c6d026d7b Add ULTs for fence
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2021-03-17 20:20:41 +01:00
Maciej Dziuban
8df7128901 Make work partition allocation resident in LevelZero
Related-To: NEO-5546
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2021-03-17 13:27:10 +01:00
Jaime Arteaga
6156fb2673 Add ULTs for L0 context interfaces
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-03-16 21:03:25 +01:00
Mateusz Hoppe
3bbbe9facb Print debug string with error when legacy debugger used with env
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-03-16 17:08:15 +01:00
Maciej Dziuban
3f5b9df122 Pass EngineUsage to getEngine
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
Related-To: NEO-5610
2021-03-16 16:31:44 +01:00
Daria Hinz
bd35d2b3bd Use only first event packet when PC
If PIPE_CONTROL is used to collect timestamps, only the first event packet is
used and overwritten

Signed-off-by: Daria Hinz <daria.hinz@intel.com>
Related-To: NEO-5611
2021-03-16 13:13:49 +01:00
Bartosz Dunajski
43d5397de6 Set correct L0 CommandQueue type
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-03-16 12:09:47 +01:00
Maciej Dziuban
264f20ea00 Pass EngineTypeUsage to OsContext creation
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
Related-To: NEO-5610
2021-03-16 10:21:18 +01:00
Igor Venevtsev
52e118fe49 Add extra parameters to Buffer::setSurfaceState() method
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2021-03-16 10:17:59 +01:00
Jaime Arteaga
6a81edfbe1 Add support for ZE_RELAXED_ALLOCATION_LIMITS_EXP_FLAG_MAX_SIZE
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-03-15 16:20:10 +01:00
Konstanty Misiak
88a1593913 Add software tags
Related-To: NEO-344

Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
2021-03-15 15:51:08 +01:00
Jaime Arteaga
71940061b8 Make sure IPC handles are correctly copied
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-03-13 18:22:56 +01:00
Filip Hazubski
6a4ed40a16 Correct Host Mem Capabilities values
Related-To: NEO-5054

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-03-11 08:54:59 +01:00
Jitendra Sharma
4fd3ac6399 Add device memory name
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-03-10 18:44:10 +01:00
Krzysztof Gibala
4abe4a96b8 Add multiGraphicsAllocation to CSR
Related-To: NEO-5508
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2021-03-10 12:42:01 +01:00
Zbigniew Zdanowicz
779253c49c Add new flag to USM memory manager
Related-To: NEO-5498

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-03-10 11:47:34 +01:00
Krystian Chmielewski
41f3bd00ff Remove PatchTokens from KernelInfo
Use KernelDescriptor instead of patchTokens stored in KernelInfo's
patchInfo.
Removed: SPatchMediaInterfaceDescriptorLoad, SPatchAllocateLocalSurface,
SPatchMediaVFEState(slot 0), SPatchMediaVFEState(slot 1),
SPatchInterfaceDescriptorData, SPatchSamplerStateArray,
SPatchBindingTableState, SPatchDataParameterBuffer,
SPatchDataParameterStream, SPatchThreadPayload,
SPatchKernelAttributesInfo, SPatchAllocateStatelessPrivateSurface,
SPatchAllocateSyncBuffer,
SPatchAllocateStatelessConstantMemorySurfaceWithInitialization,
SPatchAllocateStatelessGlobalMemorySurfaceWithInitialization,
SPatchAllocateSystemThreadSurface.

Related-To: NEO-4729
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2021-03-09 17:09:13 +01:00
Jim Snow
142fe1efdb Add sampler ULT to increase branch coverage, remove a sampler branch
Signed-off-by: Jim Snow <jim.m.snow@intel.com>
2021-03-09 00:31:18 +01:00
Adam Cetnerowski
07eb59d400 ULT renaming: Level Zero Misc tests
Related-To: NEO-2236

Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2021-03-08 19:14:22 +01:00
Mateusz Hoppe
9f3218775d Fix version-script for ze_intel_gpu
Related-To: NEO-5509
-make only ze* functions globally exported

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-03-08 09:55:38 +01:00
Maciej Plewka
72b13e9bbd Use copy only command queue in zello_copy_only
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2021-03-07 12:38:23 +01:00
Mateusz Hoppe
7d808bd560 Optimize preemption programming
- limit number of LRI cmds

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-03-05 13:37:14 +01:00
Maciej Dziuban
1350aa52fb Pass DispatchInfo to estimation functions
Related-To: NEO-5546

Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2021-03-05 12:47:55 +01:00
Aravind Gopalakrishnan
db892eaa95 Revert "Use device allocation for events if host visibility not set"
This reverts commit b204a4f135.

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2021-03-05 03:31:17 +01:00