a230f267e1
Poll task count indefinitely on high throttle command queue
...
Resolves: NEO-6781
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-03-25 10:06:16 +01:00
05e17e90d8
Remove dead code from tests - SurfaceMock
...
This change removes unused mock, which was
defined in source file of tests.
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2022-03-22 16:38:46 +01:00
4cde6ea1ce
Detect GPU hangs in CommandMapUnmap::submit()
...
This change introduces detection of GPU hangs
in CommandMapUnmap::submit() as well as in Event::submitCommand().
ULTs have been added to cover the new code.
Related-To: NEO-6681
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2022-03-15 13:17:41 +01:00
05bf7a4315
Detect GPU hang in AsyncEventsHandler
...
This change introduces detection of GPU hangs
in asynchronous events handler. ULTs have also
been added to cover the new code.
Related-To: NEO-6681
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2022-03-01 11:41:12 +01:00
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
cd9cc53159
Correct setting usesStringMap flag in printf
...
This commit fixes setting usesStringMap flag for printf, taking into
account using indirect functions in legacy (non-zebinary) path. It also
adds new field to kernelDescriptor, specifying the binary type
(legacy/zebin).
Related-To: NEO-6604
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2022-02-15 15:39:10 +01:00
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
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
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
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
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
e4bbed49d0
Use full path to include test.h 1/n
...
fix files in opencl
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-12-15 12:34:34 +01:00
3a2b018eb6
Enable blitterOperationsSupported on DG1
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-28 14:16:19 +02:00
58ebebeec6
Move drm_memory_manager_tests.h and related fixtures to shared
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-21 20:46:58 +02:00
7b57e87ad1
Move some mocks to shared
...
- MockAllocationProperties
- MockBuiltinsLib
- MockWddmMemoryManager
- MockAubCsr
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-15 09:59:47 +02:00
852b2f6e6e
Move mock_ostime to shared
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-13 11:24:00 +02:00
bf25853799
Move some mocks to shared
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-12 21:46:53 +02:00
c910a58aa0
Store bcsEngine in an std::vector in OpenCL CommandQUeue
...
Related-To: NEO-6057
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com >
2021-10-07 21:55:21 +02:00
9bea74a780
move mock_memory_manager to shared
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2021-10-05 16:22:38 +02:00
684b9e5f51
Fix missing submit time calculation
...
Related-To: NEO-5799
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com >
2021-10-05 12:58:04 +02:00
a63b9b1273
move common files to shared/
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2021-09-27 11:10:20 +02:00
04b6a604ec
Refactor BCS in OpenCL CommandQueue
...
- use CopyEngineState class to hold task count and engine type
- pass engine type to updateBcsTaskCount
Related-To: NEO-6057
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com >
2021-09-22 10:39:46 +02:00
2707618fe3
Pass engine type to getBcsCommandStreamReceiver in OpenCL
...
Related-To: NEO-6057
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com >
2021-09-21 16:27:07 +02:00
c7d86af500
Pass blitter CSR to event
...
Related-To: NEO-6057
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com >
2021-09-15 12:49:22 +02:00
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
ad19eda689
Fix event profiling for marker commands
...
Related-To: NEO-5799
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com >
2021-08-13 15:02:01 +02:00
9bca773b91
Remove command queue constructor
...
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com >
2021-07-23 14:16:02 +02:00
d18172c00e
Add debug flag to control tryFlushEvent
...
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2021-07-15 11:40:13 +02:00
e1f42c2ae1
Remove TSP atomic dependency tracking
...
This reverts commit d17668f023bee409ee68e766bbc7d5f16ce8d52b.
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-06-23 16:59:41 +02:00
2e97aeccfd
Revert TSP changes
...
This commit reverts:
a1d2bdc76666059653c79fe39a26113ce47c632a,
71a115129c1698ff15305fd0ea3828cba861be47,
e1a9087a466bfba54d84a64247e6596092034a91.
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-06-21 12:44:12 +02:00
080b1e2f66
Remove redundant TSP completion tracking logic
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-06-15 17:29:19 +02:00
843c332c7e
ULT renaming: Event tests
...
Related-To: NEO-2236
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com >
2021-05-25 20:24:17 +02:00
3bd4bca911
Copyright header update
...
Dates corrected in copyright headers to reflect original publication date
(2018 for OpenCL, 2020 for Level Zero).
Signed-off-by: lgotszal <lukasz.gotszald@intel.com >
2021-05-17 20:38:19 +02:00
9c5dee54dc
Fix root device residency for TagNode
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-05-17 14:51:23 +02:00
ef71915c71
Remove KernelArgInfo and use KernelDescriptor's args instead
...
Related-To: NEO-4729
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2021-04-23 15:12:09 +02:00
5a50ad098c
Refactor TagAllocator
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-03-26 15:16:56 +01:00
7098e9c5f2
Store single KernelInfo in Kernel
...
remove root device index from Kernel's methods
Related-To: NEO-5001
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-03-22 21:30:03 +01:00
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
184ec7d07d
Dont allocate HwTimeStamp when TimestampPacket is used
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-02-26 11:18:41 +01:00
9bb229f771
Use printfSurfaceAddress arg instead of patchToken
...
Use KernelDescriptor's printfSurfaceAddress arg instead of storing
SPatchAllocateStatelessPrintfSurface token in KernelInfo's patchInfo.
Related-To: NEO-4729
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2021-02-24 15:51:30 +01:00
8a700c5187
Move non-ult shared files to single directory
...
Add SKIP_SHARED_UNIT_TESTS flag
Related-To: NEO-5201
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com >
2021-02-10 21:03:13 +01:00
9bd0c69913
Add ClearColor allocation support for blitter
...
Related-To: NEO-5175
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com >
2020-12-14 18:22:05 +01:00
c8d1e082dd
Update getKernelInfo method
...
add root device index parameter to return proper kernel info
Related-To: NEO-5001
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-12-08 09:14:44 +01:00
9f96552007
ULT renaming: Event tests
...
Related-To: NEO-2236
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com >
2020-11-30 10:24:23 +01:00
6c4b1f951c
Do not force cl_khr_3d_image_writes extension when compiling kernels
...
Update usage of SUPPORTED_IMAGES flag and do not use images when disabled.
Use SUPPORTED_2_0 only on fully OCL 2.1 conformant platforms.
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2020-11-27 17:20:46 +01:00
97119f5f3e
Store ClDevice in DispatchInfo
...
Related-To: NEO-5001
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-11-17 10:29:20 +01:00
c678f3d9b0
Make DeviceBitfield argument constant
...
Related-To: NEO-5225
Change-Id: I14a5a4cc3394cd2b58a74bda183c734a0d17ac25
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2020-10-30 13:45:32 +01:00
30a67618f8
Add DeviceBitfield argument to CSR constructor
...
Related-To: NEO-5225
Change-Id: I8cf0aef3ec16314cfb1a787852b6c20ce0f65955
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2020-10-28 17:10:31 +01:00
51dcccad76
Create timestamp packet container for events if command queue created it
...
Related-To: NEO-5120
Change-Id: I00505647343da1876b25290b95a2009b5e4041d6
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com >
2020-10-02 12:11:38 +02:00
fb821f21f5
Cmake format script
...
Related-To: NEO-1157
Change-Id: Ie1b907e838cfb9ad0d75cc8971d415f7c77103c9
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com >
2020-08-19 16:36:30 +02:00