Mateusz Hoppe
1110410caf
fix: change emplace() on map to insert()
...
- fixes problem with some compilers
Related-To: GSD-10365, GSD-10367, GSD-10441
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2024-12-18 17:51:22 +01:00
Slawomir Milczarek
3a6ce6dca9
feature: Improve ioctl helper function to synchronize userptr allocation
...
Related-To: NEO-11817
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com >
2024-12-18 17:40:27 +01:00
Filip Hazubski
a0cc124b2e
performance: Pass RootDeviceIndicesContainer by reference
...
Additionally pass std::map by reference in UsmMemAllocPoolsManager c-tor.
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2024-12-17 14:18:30 +01:00
Mateusz Jablonski
49c028858a
fix: optimize bind info in ioctl helper xe
...
bind info container is needed to distinguish between userptr and handles
with this change it stores only userptrs and their corresponding gpu va
Related-To: NEO-13501
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-12-13 16:07:30 +01:00
Mateusz Hoppe
0589a70dc7
feature(sysman): reinitialize gfxPartition on reset
...
Related-To: NEO-13203
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2024-12-12 16:27:25 +01:00
Slawomir Milczarek
edaac6ce43
feature: Add ioctl helper function to synchronize userptr allocations
...
Related-To: NEO-12846
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com >
2024-11-22 17:58:25 +01:00
Wenbin Lu
2ba80ce114
feature: support physical host memory
...
Related-To: NEO-11981
Signed-off-by: Wenbin Lu <wenbin.lu@intel.com >
2024-11-20 08:19:52 +01:00
Slawomir Milczarek
f005574f3e
feature: ioctl helper for allocUserPtr in createAllocWithAlignmentFromUserptr
...
Related-To: NEO-12846
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com >
2024-11-19 18:13:46 +01:00
Slawomir Milczarek
8b7aa340ad
feature: Add ioctl helper function to allocate user ptr
...
Related-To: NEO-12846
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com >
2024-11-15 22:10:29 +01:00
Slawomir Milczarek
d745f41a76
feature: Ioctl helper mmap/acquireGpuRange functions in creating usm allocation
...
Related-To: NEO-12846
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com >
2024-11-13 16:56:13 +01:00
Slawomir Milczarek
a331ffcb55
feature: Add ioctl helper functions to mmap/unmap and acquire/releaseGpuRange
...
Related-To: NEO-11817
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com >
2024-11-08 15:22:44 +01:00
Alicja Lukaszewicz
654fdc1345
feature: add query for additional device properties
...
Related-To: NEO-12590
Signed-off-by: Alicja Lukaszewicz <alicja.lukaszewicz@intel.com >
2024-10-29 20:40:27 +01:00
Wenbin Lu
a8a40d2afd
feature: support SVM heap in reserveVirtualMem
...
Related-To: NEO-11981
Signed-off-by: Wenbin Lu <wenbin.lu@intel.com >
2024-10-22 16:47:14 +02:00
Bartosz Dunajski
f430279d62
fix: change doorbell type
...
Related-To: NEO-12870
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2024-10-14 14:58:11 +02:00
Compute-Runtime-Validation
41df1a6f47
Revert "feature: support SVM heap in reserveVirtualMem"
...
This reverts commit bfaeeb01d6 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-10-03 14:53:50 +02:00
Dominik Dabek
ac8dcdb298
fix: do not unregister shared allocation
...
Allocations imported from shared handle are not using registerAlloc in drm
manager but on free, unregister was called.
This could lead to problems with allocation size tracking.
This change will skip the unregisterAllocation call if allocation is
imported from shared handle.
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2024-10-02 16:32:24 +02:00
Maciej Plewka
80f75ceace
fix: submit dummy exec to pin memory during zeContextMakeMemoryResident call
...
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2024-09-23 14:43:59 +02:00
Chandio, Bibrak Qamar
27c7fbc611
feature: set error description in os_interface/linux
...
Added setErrorDescription for drm_buffer_object, drm_memory_manager,
and ioctl_helper_prelim
Related-To: NEO-12456
Signed-off-by: Chandio, Bibrak Qamar <bibrak.qamar.chandio@intel.com >
2024-09-12 18:48:41 +02:00
Young Jin Yoon
675ec13439
fix: add rootDeviceIndex for BufferObjectHandleWrapper
...
Modified sharedBoHandles to use the (boHandle, rootDeviceIndex) pair
as a key instead of boHandle, and added rootDeviceIndex variable in
the BufferObjectHandleWrapper class of drm_buffer_object.h.
Previously sharedBoHandles uses boHandle as a key. However, this will
not work with the system using multiple devices, because each devices
can return the same handle to refer different memory region.
Related-To: GSD-9024
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com >
2024-09-10 19:27:19 +02:00
Wenbin Lu
bfaeeb01d6
feature: support SVM heap in reserveVirtualMem
...
Related-To: NEO-11981
Signed-off-by: Wenbin Lu <wenbin.lu@intel.com >
2024-09-09 23:22:04 +02:00
Compute-Runtime-Validation
d842f65cf1
Revert "fix: submit dummy exec to pin memory during zeContextMakeMemoryReside...
...
This reverts commit f9b87d53e6 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-09-05 03:28:03 +02:00
Maciej Plewka
f9b87d53e6
fix: submit dummy exec to pin memory during zeContextMakeMemoryResident call
...
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
Related-To: NEO-11879
2024-09-04 14:07:29 +02:00
Compute-Runtime-Validation
99f62ac866
Revert "feature: support SVM heap in reserveVirtualMem"
...
This reverts commit 93cde3ee12 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-09-03 20:20:25 +02:00
Wenbin Lu
93cde3ee12
feature: support SVM heap in reserveVirtualMem
...
Related-To: NEO-11981
Signed-off-by: Wenbin Lu <wenbin.lu@intel.com >
2024-09-03 11:38:51 +02:00
Bartosz Dunajski
aeb5e0d5ad
fix: pass vm_id to createMediaContext
...
Related-To: NEO-9777
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2024-08-23 12:53:39 +02:00
Naklicki, Mateusz
1317aa539b
fix: unblock xekmd recoverable pagefaults vmbind
...
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com >
2024-08-14 10:46:45 +02:00
Compute-Runtime-Validation
a860adc457
Revert "fix: unblock xekmd recoverable pagefaults vmbind"
...
This reverts commit cc3e6d5055 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-08-09 14:17:41 +02:00
Naklicki, Mateusz
cc3e6d5055
fix: unblock xekmd recoverable pagefaults vmbind
...
Related-To: HSD-13011898606
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com >
2024-08-09 09:10:27 +02:00
Bartosz Dunajski
bca8478bd4
feature: use iotclhelper to get num media engines
...
Related-To: NEO-9777
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2024-08-08 09:36:28 +02:00
Dominik Dabek
e9e6cc05e3
fix: mem alloc size tracking safety
...
Make sure local mem alloc size atomic array is initialized with 0.
Add debug breaks to catch possible overflow on unregistering
allocations.
Related-To: NEO-11356
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2024-08-05 11:51:17 +02:00
Dominik Dabek
26428d5af3
feature: track used memory by allocations
...
Track memory used by memory allocations. System and local per device.
Will be used for heuristics in memory pooling.
Related-To: NEO-11356
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2024-08-02 17:54:34 +02:00
Compute-Runtime-Validation
ae68df3832
Revert "fix: unblock xekmd recoverable pagefaults vmbind"
...
This reverts commit 8f4472a26c .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-07-23 16:48:15 +02:00
Naklicki, Mateusz
8f4472a26c
fix: unblock xekmd recoverable pagefaults vmbind
...
Related-To: HSD-13011898606
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com >
2024-07-23 12:00:25 +02:00
Szymon Morek
b03ac6abd1
fix: disable usm compression on linux
...
Related-To: NEO-12047
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2024-07-16 14:59:33 +02:00
Szymon Morek
432ecbc8f4
fix: disable compression for exported allocations
...
Related-To: NEO-12021
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2024-07-16 05:41:14 +02:00
Bartosz Dunajski
bb21d25ed0
feature: initial support for creating media context
...
Related-To: NEO-11386
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2024-07-03 12:23:31 +02:00
Maciej Bielski
f99846a108
feature: add Drm-specific memoryBanks computation logic
...
Related-To: NEO-9754
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com >
2024-07-03 10:01:39 +02:00
Filip Hazubski
6992cb8aeb
fix: Add experimental debug toggle to force 2M local memory size alignment
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2024-06-27 15:21:35 +02:00
Compute-Runtime-Validation
2800282bdb
Revert "fix: unblock xekmd recoverable pagefaults vmbind"
...
This reverts commit 5e144dae16 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-06-25 18:09:25 +02:00
Naklicki, Mateusz
5e144dae16
fix: unblock xekmd recoverable pagefaults vmbind
...
Related-To: HSD-13011898606
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com >
2024-06-25 13:23:48 +02:00
Compute-Runtime-Validation
d19f58019f
Revert "feature: add Drm-specific memoryBanks computation logic"
...
This reverts commit 11f7166c5a .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-06-25 12:31:26 +02:00
Maciej Bielski
11f7166c5a
feature: add Drm-specific memoryBanks computation logic
...
Related-To: NEO-9754
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com >
2024-06-24 11:22:41 +02:00
Jaroslaw Warchulski
0ac1be7669
refactor: pass arrayIndex to Wddm::openSharedHandle function
...
Related-To: NEO-11498
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com >
2024-06-07 09:51:26 +02:00
Bartosz Dunajski
64af8dd956
feature: allocating interrupt support
...
Related-To: NEO-8179
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2024-06-03 18:35:24 +02:00
Katarzyna Cencelewska
12d1bce6b9
fix: change gmm resource for externalHostPtr
...
Resolves: NEO-10157
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com >
2024-05-22 16:50:17 +02:00
Compute-Runtime-Validation
94a4bbac57
Revert "fix: change gmm resource for externalHostPtr"
...
This reverts commit 63843862df .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-05-21 07:43:53 +02:00
Katarzyna Cencelewska
63843862df
fix: change gmm resource for externalHostPtr
...
Resolves: NEO-10157
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com >
2024-05-21 00:43:29 +02:00
Maciej Bielski
d79c952d2b
fix: set single localMemBanksCount when no MemoryInfo
...
Support legacy case.
Related-To: NEO-9754
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com >
2024-05-20 12:22:16 +02:00
Maciej Bielski
dc32da2507
feature: prepare StorageInfo for Drm-specific customization
...
Get the local memory regions count from the primary source (MemoryInfo)
and store for further use when using DrmMemoryManager.
Add a point of dispatch (virtual `createStorageInfoFromProperties`) for
further Drm-specific customizations related to StorageInfo. As the
function became virtual, move one of its callers
(`isLocalMemoryUsedForIsa()`) from the constructor of `MemoryManager` to
respective constructors of all derivative classes. This prevents
bypassing the virtual call dispatch.
Related-To: NEO-9754
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com >
2024-05-16 12:24:48 +02:00
Maciej Bielski
014720fc29
refactor: use DeviceBitfield where appropriate
...
Replace less type-safe uint32_t and reduce conversions between both
types.
Related-To: NEO-9754
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com >
2024-05-14 09:13:11 +02:00