Patryk Wrobel
835b344968
Add debug flag to disable GPU hang detection
...
This change introduces the new flag called DisableGpuHangDetection.
By default it is disabled. When someone wants to disable hang checking,
then this flag can be set to true.
Related-To: NEO-6681
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2022-03-09 18:07:42 +01:00
Patryk Wrobel
7f729b7f89
Detect GPU hang in clWaitForEvents
...
This change:
- moves NEO::WaitStatus to a separate file
- enables detection of GPU hang in clWaitForEvents
- adjusts most of blocking calls in CommandStreamReceiver to return WaitStatus
- adds ULTs to cover the new code
Related-To: NEO-6681
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2022-02-23 13:33:09 +01:00
Bartosz Dunajski
6a111e41ff
Improve submission logging
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-02-11 17:36:14 +01:00
Patryk Wrobel
18cafd3a52
Implement GPU hang detection on Windows
...
This change uses value of cpuAddress from monitored fence
to detect GPU hang.
Related-To: NEO-5313
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2022-02-09 17:22:52 +01:00
Lukasz Jobczyk
b60d963ff5
Add debug variable to force default heap allocation size
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-02-09 13:27:05 +01:00
Lukasz Jobczyk
538e0aea87
Add debug flag to bind at creation time
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-02-09 09:26:02 +01:00
Bartosz Dunajski
4b0d986876
Move AllocationType enum out of GraphicsAllocation class
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-02-04 17:49:09 +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
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
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
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
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
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
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
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
1f0c58d0bf
Refactor timestamp wait mechanism
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-12-16 13:22:19 +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
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
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
Zbigniew Zdanowicz
3e1023fa1a
Unify memory layout for all multi tile post sync operations
...
Related-To: NEO-6262
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-12-02 18:00:40 +01:00
Lukasz Jobczyk
36efe72e3e
Add wait on timestamp mechanism
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-12-01 08:48:00 +01:00
Bartosz Dunajski
995cb88bfa
Improve ftr/wa flags packing
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-11-25 16:05:57 +01:00
Zbigniew Zdanowicz
f56773d166
Setup partition registers once per context
...
Related-To: NEO-6262
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-11-22 22:41:09 +01:00
Jaroslaw Chodor
c4e802f01b
WSL - fixing resource cleanup on process shutdown
...
Resolves issues with coexistance of NEO L0 and NEO OCL libraries
within a single process running in WSL and using WDDM GPU PV
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com >
2021-11-20 21:51:51 +01:00
Lukasz Jobczyk
7176e609a1
Do not wait for task count when free empty allocation list
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-11-17 16:12:07 +01:00
Mateusz Jablonski
95610188af
Fallback to cpu copy when filling work partition allocation
...
move some command stream receiver tests to shared
Related-To: NEO-6325
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-11-03 12:17:02 +01:00
Lukasz Jobczyk
4ea452040d
Defer direct submission control until first submit
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-10-29 14:27:25 +02:00
Compute-Runtime-Validation
782a287b27
Revert "Fallback to cpu copy when filling work partition allocation"
...
This reverts commit 93e3d948f5 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2021-10-29 04:39:22 +02:00
Mateusz Jablonski
93e3d948f5
Fallback to cpu copy when filling work partition allocation
...
move some command stream receiver tests to shared
Related-To: NEO-6325
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-28 14:30:00 +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
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
Kamil Diedrich
5fdcb14d57
WSL fallback to staging buffer on blocking reads
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2021-10-28 03:34:58 +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
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
Zbigniew Zdanowicz
24ff191e61
Verify completion on all tiles
...
Related-To: NEO-6244
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-10-15 15:43:28 +02:00
Artur Harasimiuk
6d8318501a
temporarily disable some c-t checks
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2021-10-14 23:25:57 +02:00
Zbigniew Zdanowicz
a51b385e80
Wait on all tiles when clearing allocation list
...
Related-To: NEO-6244
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-10-12 11:55:43 +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
Jaroslaw Chodor
f1c24ddcbb
WDDM - guard against duplicated host ptr allocs
...
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com >
2021-10-06 22:33:40 +02:00
Katarzyna Cencelewska
a157963e79
Fix problem with compression hang on gen12lp
...
add creating of pageTableManager for non regular engins
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com >
2021-10-06 17:02:08 +02:00
Katarzyna Cencelewska
30b3f5cdb0
Move PageTableManager from rootDeviceEnvironment to CommandStreamReceiver
...
Also add init of pageTable registers to blitter path
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com >
2021-09-30 12:59:11 +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
d348526941
Simplify checkAndActivateAubSubCapture method
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-09-22 20:23:56 +02:00
Zbigniew Zdanowicz
cd4f3c221a
Synchronize switching command buffers for all partitions
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-09-08 12:12:23 +02:00
Zbigniew Zdanowicz
6b299a3ab0
Make partitioned post sync operations for partitioned workloads
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-09-03 20:20:29 +02:00
Bartosz Dunajski
0345d9f707
Improve queries with number of SubDevices
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-09-01 14:01:57 +02:00
Rafal Maziejuk
c6ee7065db
Move isPageTableManagerSupported function from HwHelper to HwInfoConfig
...
Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com >
Related-To: NEO-4541
2021-08-19 17:35:08 +02:00
Michal Mrozek
d3fd5077e7
Do not allocate surface if not needed.
...
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2021-08-03 12:43:12 +02:00
Lukasz Jobczyk
cb178f951e
Wait for completion while evict unused resources
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-07-30 16:11:40 +02:00
Maciej Dziuban
7979dcb757
Improve PrintDeviceAndEngineIdOnSubmission flag
...
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com >
2021-06-24 20:14:27 +02:00