Lukasz Jobczyk
dff2c2d8e3
Align external host ptr allocation gpu va to 2MB
...
Related-To: NEO-7116
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2023-01-13 12:37:10 +01:00
Compute-Runtime-Validation
ddb7eb07b0
Revert "Align external host ptr allocation gpu va to 2MB"
...
This reverts commit d24f403cc4 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2023-01-12 09:33:16 +01:00
Lukasz Jobczyk
d24f403cc4
Align external host ptr allocation gpu va to 2MB
...
Related-To: NEO-7116
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2023-01-11 13:45: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
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
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
Mateusz Jablonski
6648adef15
Handle error in register memory allocation methods
...
Related-To: NEO-7412
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-11-15 17:23:55 +01:00
Patryk Wrobel
9b26e96b11
Do not copy std::vector of OS handles when it is not needed
...
This change replaces unneeded copying of std::vectors
with usage of const references. Furthermore, it adds
reserve() call before filling the container via push_back().
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2022-10-21 10:28:58 +02:00
Milczarek, Slawomir
6edbfa04a0
Add regkey to create kmd-migrated shared allocation with multiple BOs
...
Related-To: NEO-7395
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2022-10-11 16:16:43 +02:00
Jaime Arteaga
a3b3f3e86e
Add support for PRELIM_I915_PARAM_SET_PAIR
...
This extension allows pairing two buffer objects so they can be
exported using a single dma-buf handle. When imported, a single
buffer object is created with a total size of the two buffer
objects.
Related-To: LOCI-3355
Sync to
https://github.com/intel-gpu/drm-uapi-helper/releases/tag/v2.0-rc15
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-09-29 23:41:39 +02:00
Patryk Wrobel
90ba50bf52
Warn when RAII lock returned from function is discarded
...
Discarding RAII lock returned from function almost always
is a bug. This change introduces usage of [[no_discard]]
attribute from C++17 to prevent such misues.
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com >
2022-09-01 16:53:03 +02:00
Mateusz Jablonski
db2d1a53b9
Cleanup includes in drm_memory_manager.h
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-07-26 20:53:21 +02:00
Bartosz Dunajski
39c1c4d530
Remove virtual padding support
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-06-08 12:42:44 +02:00
Bartosz Dunajski
9e1c9ec95e
Use MMAP_OFFSET ioctl to lock BufferObject
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-06-07 11:12:31 +02:00
Bartosz Dunajski
1a7c11e4f1
Dont pass redundant flags param to allocUserPtr
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-06-06 17:53:04 +02:00
Jaime Arteaga
3f26f45c10
Add support for IPC handles with implicit scaling
...
When using implicit scaling, device allocations may have
more than one internal allocation created internally. In that case,
a separate dma-buf handle per internal allocation needs to be
exported.
So introduced two driver experimental extensions to export and
import more than one IPC handle:
- zexMemGetIpcHandles
- zexMemOpenIpcHandles
Related-To: LOCI-2919
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-05-09 00:38:17 +02:00
Bartosz Dunajski
06fa316a75
Assign pat_index to BO during creation
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-04-21 13:25:13 +02:00
John Falkowski
789587bacc
Return nullptr for gfx alloc mmap error
...
Signed-off-by: John Falkowski <john.falkowski@intel.com >
2022-04-12 10:08:19 +02:00
Milczarek, Slawomir
f03f530327
Extend zeCommandListAppendMemoryPrefetch to migrate to associated device
...
Related-To: NEO-6740
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2022-03-23 14:21:17 +01:00
Milczarek, Slawomir
c0b7f05897
Add memory prefetch for kmd migrated shared allocations
...
This feature is disabled by default, controlled with the knob
AppendMemoryPrefetchForKmdMigratedSharedAllocations
Related-To: NEO-6740
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2022-03-09 16:02:18 +01:00
Jaime Arteaga
a010fb3634
Dont close shared handle on imported allocations
...
Related-To: LOCI-2272
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-03-06 04:35:47 +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
Michal Mrozek
592eb4607e
[4/n] Improve indirect allocations handling.
...
Add memory manager interfaces to obtain the status.
Only support when VmBind is supported.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2022-01-26 15:24:32 +01:00
Lukasz Jobczyk
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
Filip Hazubski
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
Zbigniew Zdanowicz
d44f3009b8
Add interface for user fence extension
...
Related-To: NEO-6575
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-01-19 19:58:22 +01:00
Jaime Arteaga
72d16c7cf2
Add rootDeviceIndex to BO
...
Related-To: LOCI-2502
This to be able to differentiate when a B0 comes from a shareable handle
and we need to know which device owns it. This is needed when inside
the same process we have more than one active P2P transaction.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-12-20 23:33:04 +01:00
Szymon Morek
e368e6c20b
Move free function to DrmMemoryManager
...
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-11-30 14:55:18 +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
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
Jitendra Sharma
f8c89fe984
Refactor memory manager so as to support device reset
...
Move out neoDevice dependent pieces of memory manager code into
separate methods. Those methods could be used for recreating a neoDevice
after a device reset is performed.
Related-To: LOCI-2615
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2021-10-19 07:16:29 +02:00
Milczarek, Slawomir
5aeae0cf99
Add mem advise control flags to drm alocation
...
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2021-10-12 11:39:06 +02:00
Milczarek, Slawomir
afa45bd9e7
Add support for mem advise to set cache policy in buffer object
...
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2021-10-07 22:16:58 +02:00
Kamil Diedrich
4390590831
Add shareable allocation for Windows
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2021-08-26 13:43:55 +02:00
Dominik Dabek
2a7757651a
Change percent of global memory returned
...
Related-To: NEO-5796
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2021-08-11 13:33:16 +02:00
Kamil Diedrich
2d5d071e66
Extended import device memory functionality
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2021-08-10 13:24:56 +02:00
Bartosz Dunajski
3c88492229
Revert "Extended import device memory"
...
This reverts commit ea6555e788c98314160a11898212c2d664999705.
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-07-16 09:56:52 +02:00
Kamil Diedrich
d5fdb949eb
Extended import device memory
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2021-07-07 16:12:36 +02:00
Lukasz Jobczyk
73b0df3211
Disable gem close worker in CSR constructor
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-06-29 15:22:51 +02:00
Jaime Arteaga
ddf75b8d23
Add IPC events support (2/N)
...
Fix shared allocation on multi DG1 systems
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-06-09 20:55:34 +02:00
Jaime Arteaga
5e29dccddc
Add IPC events support
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-06-08 08:11:15 +02:00
Jaroslaw Chodor
3b4ec5b3fa
Refactor of global factories
...
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com >
2021-05-28 19:09:24 +02:00
lgotszal
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
Igor Venevtsev
a2a3daeb50
Introduce DrmMemoryManager::createMultiHostAllocation() method
...
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com >
2021-05-14 16:01:19 +02:00
Lukasz Jobczyk
8e1e213bcf
Disable GEM_WAIT when new residency model available
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-05-10 14:59:21 +02:00
Mateusz Jablonski
9a22d06efe
Store default engine index per root device
...
Resolves: NEO-5768
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-04-20 14:55:13 +02:00
Slawomir Milczarek
693f2ff384
Ensure shared handle be closed once on Linux
...
Related-To: NEO-5644
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com >
2021-03-18 18:38:01 +01:00