dabbabd3c9
Refactor createDrmContext function
...
merge createDrmContext, createDrmContextExt and appendDrmContextFlag
Related-To: NEO-6591
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-02-16 15:15:35 +01:00
2d901f925c
Run aub tests for enqueue image operations with BCS enabled
...
Following API calls are being tested:
- enqueueWriteImage
- enqueueReadImage
- enqueueCopyImage
Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com >
Related-To: NEO-6135
2022-02-16 14:54:48 +01:00
1275c4e200
Detect GPU hang in remaining blocking calls of L0
...
This change introduces detection of GPU hangs in
zeEventHostSynchronize and zeFenceHostSynchronize.
Furthermore, if CommandQueueHw::executeCommandLists
uses ZE_COMMAND_QUEUE_MODE_SYNCHRONOUS and hang occurs,
the information about it is propagated to the caller.
Related-To: NEO-6681
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2022-02-16 14:47:29 +01:00
a59d285fde
Add function to create VmControlExtRegion
...
Related-To: NEO-6591
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-02-16 10:12:06 +01:00
17edd5abc2
Add CachePolicyGetPATIndex API support to GmmClientContext
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-02-15 16:23:35 +01:00
b681b2ae10
Create struct for vm bind params
...
add ioctl helper function for vm bind and vm unbind
Related-To: NEO-6591
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-02-15 16:11:11 +01:00
b71a12c252
Set cooperative flag for debuggable contexts during creation
...
Related-To: NEO-6668
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2022-02-15 16:00:25 +01:00
f7322d3b85
Extend EngineInfo with additional copy engines
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
2022-02-15 15:05:02 +01:00
12e2670b9a
Add ioctl helper function to check vm bind availability
...
Related-To: NEO-6591
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-02-15 12:43:50 +01:00
4e31612c31
Remove GMock from GMockDrmMemoryManager, MockOSMemoryLinux, MyCsr...
...
Removed Gmock from:
- GMockDrmMemoryManager
- MockOSMemoryLinux
- MyCsr
- GmockGfxPartition
Renamed:
- GMockDrmMemoryManager -> MockTestedDrmMemoryManager
Moved class body:
- GmockGfxPartition -> MockGfxPartition
- MockTestedDrmMemoryManager -> TestedDrmMemoryManager
Related-To: NEO-4914
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com >
2022-02-14 13:33:15 +01:00
173c86d6f1
Move ioctl strings to ioctl helper
...
move ioctl helper prelim tests with drm to separated file
Related-To: NEO-6591
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-02-14 10:47:31 +01:00
5ec8c004ce
Revert "Set cooperative flag for debuggable contexts during creation"
...
This reverts commit 5e0732f57e
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-02-13 04:43:35 +01:00
3467bc0994
Extend waitForBind function
...
use waitUserFence to wait for fence value
move some tests to shared
- ioctl helper tests
- drm memory info tests
- drm cache info
Related-To: NEO-6591
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-02-11 18:52:59 +01:00
5e0732f57e
Set cooperative flag for debuggable contexts during creation
...
Related-To: NEO-6668
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2022-02-11 14:58:57 +01:00
436fd7edce
Add PC before NP state commands on ATS
...
Add pipe control before state base address, state compute
mode and state sip commands.
Related-To: NEO-6615
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com >
2022-02-11 12:28:59 +01:00
5ce4bb4068
Revert "Add compiler mocks for new fcl interface"
...
This reverts commit b61d213f4f
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-02-11 04:45:45 +01:00
23999110ed
Add prelim DRM page fault allocation check support
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
2022-02-10 18:57:52 +01:00
ff7882bcbe
Add PC before NP state commands
...
Add pipe control before state base address, state compute
mode and state sip commands on DG2 and PVC when CCS flow is used.
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com >
2022-02-10 12:06:41 +01:00
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
85eb6d7403
[CP-1] Extend CLOS cache mechanism for DRM allocation
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
2022-02-09 16:51:48 +01:00
b61d213f4f
Add compiler mocks for new fcl interface
...
Signed-off-by: DmitryBushev <dmitry.bushev@intel.com >
2022-02-08 16:30:30 +01:00
a95198521e
Initial implementation of CacheSettingsHelper
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-02-08 16:18:06 +01:00
c88fce0def
Gmm construction cleanup
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-02-08 10:20:24 +01:00
10e4e62600
Don't use DEFAULT_PLATFORM in unit tests
...
testing for default supported platform may be disabled
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-02-04 17:57:39 +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
f2c4231a27
Extend DRM mock and queryTopology tests - part 1
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
2022-02-04 12:02:49 +01:00
52c6973e89
Rename blitBuffer method
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-02-03 15:02:55 +01:00
4d953fd125
Correct timestamps offset calculation
...
Related-To: NEO-6653
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-02-03 12:18:20 +01:00
678ce2ec57
Move signals to separate file
...
Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com >
Related-To: NEO-6647
2022-02-02 14:41:46 +01:00
65255ea38f
Allow pointer copy when copying from host to svm
...
Related-To: NEO-5737
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com >
2022-02-02 13:08:35 +01:00
2be98a1e62
Create kmd migrated allocation with initial placement
...
Implements ZE_HOST_MEM_ALLOC_FLAG_BIAS_INITIAL_PLACEMENT
for zeMemAllocShared with KMD migrated allocation.
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2022-02-01 15:42:10 +01:00
d9886f67ee
Make IoctlHelper member of Drm
...
Related-To: NEO-6575
This is needed to fix accessing IoctlHelper
after driver detach.
This way we are also reducing accessing
sysfs file in Drm::getPrelimVersion
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2022-02-01 08:26:59 +01:00
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
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
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
fc25495ecb
Add missing BlitCommandsHelper ULTs
...
Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com >
2022-01-28 14:49:04 +01:00
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
72edadb265
Remove not used GT type info
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-01-26 18:06:38 +01:00
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
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
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
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
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
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
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
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
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
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
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
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