Aravind Gopalakrishnan
1abfb23a21
[2/n] L0 Immediate commandlist improvements
...
Allow flushTask usage only for Compute
Related-To: LOCI-1988
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com >
2022-02-01 09:37:45 +01:00
Aravind Gopalakrishnan
63a8908744
[1/n] L0 Immediate Commandlist improvements
...
Add indirect allocs to residency in flushTask
Related-To: LOCI-1988
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com >
2022-02-01 01:39:23 +01:00
Jaime Arteaga
efdfdeba7f
Add ze_eu_count_t to get total number of EUs
...
Related-To: LOCI-2667
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-02-01 00:19:08 +01:00
Maciej Plewka
9d8ce7aace
Command container appends BB_END on cmd buffer allocation end
...
When linear stream created for command container has not enough space
for command and BB_END it will program BB_END and allocate new command
buffer allocation. Pointer returned from getSpace in this case will
return storage from new command buffer allocation.
Related-To: NEO-5707
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2022-01-31 16:15:37 +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
Spruit, Neil R
ae77bd1bd2
Enable Device Memory to be shared in WSL-2 with L0
...
- Add getMemoryManagerType to check which memory manager has been init
to determine if Linux + WDDM memory manager is in use.
- Add isNTHandle to test and verify if a handle is an NT handle during
L0 Open IPC Handle.
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com >
2022-01-27 23:14:29 +01:00
Dominik Dabek
07c75c2de3
Revert "Check IndirectStatelessCount from igc"
...
This reverts commit 01f368ac147d99fd0dcb4d71a9a2543cd215adfd.
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-01-27 16:06:13 +01:00
Dominik Dabek
3a030d9b8b
Optimize Level Zero indirect allocations handling.
...
Remove find in cmdlist makeResidentAndMigrate,
not needed, CSR resolves duplicates at makeResident calls
Co-authored-by: Michal Mrozek <michal.mrozek@intel.com >
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-01-26 16:50:58 +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
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
Michal Mrozek
08d361260e
Optimize event creation time.
...
Prevent accessing local memory from the host.
Create an array on stack with desired value and pass it to filling function.
175x faster call execution for scenario with profiling and device events.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2022-01-26 11:15:04 +01:00
Dominik Dabek
63f406a58c
Check IndirectStatelessCount from igc
...
If kernel has no stateless indirect accesses don't set the
kernelHasIndirectAccess flag.
Don't make resident or migrate if kernel has no indirect accesses.
Changed initial values in KernelAttributes.
Related-To: NEO-6597
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-01-26 11:10:04 +01:00
Compute-Runtime-Validation
15b9ec57d1
Revert "Enable Flush task by default for immediate commandlist"
...
This reverts commit 22bbce42dd .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-01-26 04:53:03 +01:00
Jaime Arteaga
e3ac89adbe
Remove non-needed DEBUG_BREAK_IF
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-01-25 23:39:40 +01:00
Jaime Arteaga
dbf0f90186
Return pageSize in getMemAllocProperties
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-01-25 18:26:13 +01:00
Michal Mrozek
6df17f5a30
[3/n] Optimize indirect allocations handling.
...
Add new debug variable to trigger new mode.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2022-01-25 16:40:56 +01:00
Michal Mrozek
a12f9cb377
[2/n] Optimize indirect calls.
...
Migrate shared allocation when command list sets indirect flags.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2022-01-25 13:10:53 +01:00
Aravind Gopalakrishnan
22bbce42dd
Enable Flush task by default for immediate commandlist
...
Related-To: LOCI-1988
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com >
2022-01-25 01:12:30 +01:00
Jaime Arteaga
c54633388d
Release support for L0 v1.3
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-01-24 15:12:33 +01:00
Mateusz Hoppe
ad7f2f1f6e
Notify kernel loads after copying fully linked ISA
...
- notify through make resident call
Related-To: NEO-6556
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2022-01-21 14:28:22 +01:00
Maciej Plewka
6968bfdb33
Use correct enum values for sampler in clamp mode
...
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2022-01-20 18:15:53 +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
Zbigniew Zdanowicz
8aaa927869
Return default context for multi-tile device in low-priority queue
...
Related-To: NEO-6589
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-01-20 14:48:11 +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
Zbigniew Zdanowicz
d3d803cdb0
Enable Implicit Scaling on Level Zero
...
* This commits enables by default implicit scaling, but only on PVC B step
* Users can disable this feature by debug flag EnableImplicitScaling=0|
Related-To: NEO-6589
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-01-19 19:13:43 +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
Kamil Kopryk
de9112d942
Simplify code - remove not needed static cast
...
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-01-18 14:29:06 +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
Kacper Nowak
fc224202d6
Create debug zebin in OCL
...
This commit adds debug zebin creation in OCL.
- Added returning debug zebin in build/linking paths in OCL if
corresponding device binary format was detected.
- Refactored getZebinSegments() method - added common ctor for both
L0/OCL paths
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2022-01-17 14:27:23 +01:00
Igor Venevtsev
d9aae805c7
Do not apply L0 debugger WA (Disable L3 cache) for highest DG2 steppings
...
Related-To: NEO-6320
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com >
2022-01-17 13:46:40 +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
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
Neil R Spruit
79bf9401ef
Fallback to buildFromSpirV given < 2 static link targets
...
Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com >
2022-01-14 02:17:52 +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
Compute-Runtime-Validation
182042b04d
Revert "Update default thread arbitration policy"
...
This reverts commit 8c3e9ace69 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-01-13 21:32:29 +01:00
Bartosz Dunajski
8c3e9ace69
Update default thread arbitration policy
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-01-13 16:24:11 +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
Igor Venevtsev
71746a2fff
Register zebin binary in L0 debugger
...
Related-To: NEO-5571
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com >
2022-01-12 23:17:59 +01:00
Maciej Plewka
e39a09e6db
Unify core and product commandList structures
...
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2022-01-12 22:33:11 +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
Katarzyna Cencelewska
45ae4fe881
Remove device enqueue part 3
...
- isSchedulerKernel
Related-To: NEO-6559
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com >
2022-01-12 13:50:18 +01:00
Jaime Arteaga
f182259a97
Return user size on zeMemGetAddressRange
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-01-11 23:12:23 +01:00
Aravind Gopalakrishnan
8030b7001c
Fix magic value used to skip odd packets for timestamps
...
Related-To: LOCI-2718
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com >
2022-01-11 20:21:52 +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
Compute-Runtime-Validation
b249c10e09
Revert "Add ze_eu_count_t to get total number of EUs"
...
This reverts commit 635c02e1ff .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-01-10 20:06:52 +01:00
Zbigniew Zdanowicz
5e626a15bf
Add untyped flush to level zero barrier command
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-01-10 16:42:30 +01:00
Compute-Runtime-Validation
3c1ee0aaa5
Revert "Fix magic value used to skip odd packets for timestamps"
...
This reverts commit 7968823b3c .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-01-07 08:01:12 +01:00