Mateusz Hoppe
5e4604f66d
fix: Do not wait infinitely for fence when context is hung
...
- when driver is unloaded cleanup paths wait for not completed
fences. In case a context has hung - set finite wait timeout
Resolves: NEO-7613
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2023-01-11 11:29:44 +01:00
Lukasz Jobczyk
39df92a16f
Align only CPU VA for SVM_CPU
...
Resolves: NEO-7608
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2023-01-10 16:52:29 +01:00
Warchulski, Jaroslaw
bd81b5546d
Cleanup includes 25
...
Cleaned up files:
level_zero/core/source/device/device.h
opencl/source/helpers/dispatch_info.h
shared/source/os_interface/os_interface.h
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2023-01-10 12:54:45 +01:00
Mateusz Jablonski
1fd8b26499
refactor: rename IoctlHelper::get to IoctlHelper::getI915Helper
...
remove drm version parameter as i915 is always expected
Related-To: NEO-7578
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-01-09 12:32:45 +01:00
Kamil Kopryk
468d722efb
Move clGfxCoreHelper ownership to rootDeviceEnv
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-01-05 12:58:38 +01:00
Cencelewska, Katarzyna
19763db9a2
fix: Move setupHardwareInfo to avoid overwrriten values from blob
...
device setupHardwareInfo should be called before setupSystemInfo to not
override queried systemInfo values
Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com >
2023-01-05 11:37:13 +01:00
Mateusz Jablonski
43b790957d
style: format code using clang-format 15.0.6
...
Related-To: NEO-7500
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-01-05 10:33:47 +01:00
Compute-Runtime-Validation
af81c79076
Revert "Deferred deletion of allocations in main thread"
...
This reverts commit c268e30189 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2023-01-04 18:33:39 +01:00
Lukasz Jobczyk
fca4fbb0c0
[PVC] Restore 2MB alignment for SVM_CPU allocations
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2023-01-04 16:21:44 +01:00
HeFan2017
c268e30189
Deferred deletion of allocations in main thread
...
Add a clearQueueTillFirstFailure interface to DeferredDeleter, which
iterates the queue from the front and delete the allocations in the
queue till a failure. It is called by defer deletion of allocations
occupied by mutliple contexts to unlock the execution in main thread
Related-To: NEO-7532
Signed-off-by: HeFan2017 <fan.f.he@intel.com >
2023-01-03 13:51:15 +01:00
Warchulski, Jaroslaw
0eac749fcc
Cleanup includes 19
...
Cleaned up files:
opencl/source/api/cl_types.h
shared/source/compiler_interface/external_functions.h
shared/source/compiler_interface/linker.h
shared/source/device_binary_format/elf/elf.h
shared/source/helpers/preamble.h
shared/source/memory_manager/definitions/storage_info.h
shared/source/memory_manager/memory_manager.h
shared/source/memory_manager/os_agnostic_memory_manager.h
shared/source/program/program_info.h
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2023-01-03 11:02:05 +01:00
Lukasz Jobczyk
6255361fcf
Revert "[PVC] Remove tlb flush from CCS"
...
This reverts commit e711aa9bc7 .
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2023-01-02 16:44:48 +01:00
Kamil Kopryk
2eaae763bc
Refactor: don't use global ProductHelper getter in shared files 3/n
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-01-02 14:06:50 +01:00
Warchulski, Jaroslaw
a2fe929f0c
Cleanup includes 18
...
Cleaned up files:
shared/source/command_stream/command_stream_receiver_hw.h
shared/source/compiler_interface/compiler_interface.h
shared/source/direct_submission/direct_submission_hw.h
shared/source/helpers/dirty_state_helpers.h
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2023-01-02 13:28:29 +01:00
Andrzej Koska
52c7c96635
Moving rootDeviceIndex from DrmMemoryOperationsHandlerBind to base class
...
This fix will allow all DrmMemoryOperationsHandler objects
to be sorted correctly
Related-To: NEO-7505
Signed-off-by: Andrzej Koska andrzej.koska@intel.com
2022-12-30 12:27:29 +01:00
Kamil Kopryk
a55680e82e
Refactor: don't use global GfxCoreHelper getter in shared files 1/n
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-12-28 11:38:46 +01:00
Cencelewska, Katarzyna
2bc62deb0d
wa: program proper patIndex on mtl
...
override patIndex to uncached when timestamp_packet_tag_buffer
to avoid hang on linux
Related-To: NEO-7565
Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com >
2022-12-28 05:14:39 +01:00
Lukasz Jobczyk
e711aa9bc7
[PVC] Remove tlb flush from CCS
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-12-23 13:22:59 +01:00
Warchulski, Jaroslaw
c3a86232d9
Cleanup includes 15
...
Cleaned up files:
shared/source/command_stream/command_stream_receiver.h
shared/source/command_stream/submissions_aggregator.h
shared/source/helpers/flat_batch_buffer_helper.h
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-12-23 12:36:51 +01:00
Compute-Runtime-Validation
5652edb92f
Revert "Remove tlb flush from CCS"
...
This reverts commit 797f56bed4 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-12-23 11:42:08 +01:00
Warchulski, Jaroslaw
f275eea6ec
Cleanup includes 14
...
Cleaned up files:
shared/source/device/device.h
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-12-23 10:46:34 +01:00
Naklicki, Mateusz
a7d8a93b4e
feature: Add support for MTL
...
Related-To: NEO-7111
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com >
2022-12-23 10:22:50 +01:00
Lukasz Jobczyk
797f56bed4
Remove tlb flush from CCS
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-12-23 08:52:38 +01:00
Neil R Spruit
a829ce8941
Fix ReserveGPUAddress to reserve on specific RootDevice indices
...
Related-To: LOCI-3790
Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com >
2022-12-20 23:08:02 +01:00
Kamil Kopryk
772dec81e4
Don't use global productHelper in isBankOverrideRequired function
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-12-20 17:41:34 +01:00
Mateusz Jablonski
c8b55e38a0
Refactor: dont use global getters for Product/GfxCore helper in engine helpers
...
Related-To: NEO-6853
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-12-20 17:16:21 +01:00
Warchulski, Jaroslaw
803bbb89d2
Cleanup includes 13
...
Cleaned up files:
shared/source/helpers/blit_commands_helper.h
shared/source/helpers/heap_assigner.h
shared/source/memory_manager/alignment_selector.h
shared/source/memory_manager/gfx_partition.h
shared/source/memory_manager/memory_manager.h
shared/source/os_interface/os_memory.h
shared/source/utilities/heap_allocator.h
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-12-16 12:36:27 +01:00
Naklicki, Mateusz
810241e2a8
Remove unused useSingleSubdevice flag
...
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com >
2022-12-16 12:15:12 +01:00
Katarzyna Cencelewska
cf6d706d4b
Add missing check during ocl buffer create on Windows
...
resolves problem with debug break
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com >
2022-12-15 09:53:12 +01:00
Kamil Kopryk
232b886056
Rename HwInfoConfig to ProductHelper
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-12-14 14:39:52 +01:00
Mateusz Jablonski
ecea487cf0
Reduce usage of global gfx core helper getter [2/n]
...
Related-To: NEO-6853
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-12-12 13:43:21 +01:00
Mateusz Jablonski
8f308f24e5
Reduce usage of global gfx core helper getter [1/n]
...
Related-To: NEO-6853
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-12-09 17:27:37 +01:00
Kamil Kopryk
03b687881f
Rename HwHelper -> GfxCoreHelper
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-12-09 10:29:06 +01:00
Jaime Arteaga
675272a32c
Return a unique pointer for multiple calls to openIpcHandles
...
This to make zexMemOpenIpcHandles and zeMemOpenIpcHandle
behave similarly.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-12-08 21:56:21 +01:00
Kamil Diedrich
db24428cd3
Add wddm ult for wsl build [3/n]
...
Related-To: NEO-6066
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2022-12-08 16:50:02 +01:00
Jaime Arteaga
3bf416212b
Disable SET_PAIR by default.
...
To use, applications need to set EnableSetPair=1 explicitly.
When disabled, implicit scaling allocations require two IPC handles
to be exchanged with other processes using the zexMemGetIpcHandles
APIs.
When enabled, implicit scaling allocations only require one IPC
handle to be exchanged with other process using the zeMemGetIpcHandle
APIs. This is only available when allocation is imported in a different
device than the one in the exporter.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-12-08 01:52:39 +01:00
Slawomir Milczarek
5c1b50bccf
Add memory prefetch modes for single and multiple subdevices
...
Single-subdevice prefetch for cmd list copy-only (with bcs) and acc mode.
Multi-subdevice prefetch (default) for shared allocation with multiple BOs.
Related-To: NEO-6740
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com >
2022-12-07 15:25:32 +01:00
Mateusz Jablonski
e3ede4bb92
Correct naming in memadvise flags
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-12-07 14:49:43 +01:00
Warchulski, Jaroslaw
be647d42d9
Cleanup includes 12
...
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-12-07 13:14:15 +01:00
Mateusz Jablonski
103f522f18
Create definition of tag allocation layout
...
we use tag allocation for multiple purposes, therefore we should define
all offsets in one place
Resolves: NEO-7559
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-12-06 16:49:07 +01:00
Warchulski, Jaroslaw
c10aa90815
Cleanup includes 11
...
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-12-06 12:25:30 +01:00
Warchulski, Jaroslaw
1fa5710dff
Cleanup includes 10
...
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-12-05 12:39:33 +01:00
Kamil Kopryk
785b9eeece
Rename CompilerHwInfoConfig -> CompilerProductHelper
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2022-12-05 11:25:49 +01:00
Milczarek, Slawomir
f08e552f4d
Create multiple-BOs shared allocation in single lmem regions in non-acc mode
...
Related-To: NEO-6839
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2022-12-05 11:25:34 +01:00
Lukasz Jobczyk
dbc6ac2743
Set alignment for SVM_CPU properties on xe_hpc and later
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-12-02 12:35:54 +01:00
Milczarek, Slawomir
7d202c7871
Update i915 prelim headers to v2.0-rc16
...
Related-To: NEO-5838
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2022-12-02 11:37:16 +01:00
Jaime Arteaga
99655d34f9
Return a unique pointer for multiple calls to openIpcHandle
...
This to follow specification, which says:
zeMemOpenIpcHandle:
- Multiple calls to this function with the same IPC handle will return
unique pointers.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-12-01 18:42:54 +01:00
Spruit, Neil R
d81b0b14a1
L0 Virtual Memory Reservation support
...
- Enable support for L0 Virtual Memory reservation on Linux and Windows.
- Excludes support for Linux to allow pStart option
Related-To: LOCI-3397, LOCI-1543
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com >
2022-12-01 00:55:19 +01:00
Jaime Arteaga
4dfdbd612d
Fail when handle cannot be obtain for an allocation
...
If a handle cannot be obtained, like PRIME_HANDLE_TO_FD, then
properly check for the error and propagate it upwards.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-11-30 20:59:02 +01:00
Mateusz Jablonski
f7c11e8a94
Fix typos
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-11-29 17:12:10 +01:00