Mateusz Jablonski
9d502dea25
Refactor waitOnCompletionFence method in DrmMemoryManager
...
get completion address and value from command stream receiver
Related-To: NEO-6643
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-03-31 19:30:16 +02:00
Daniel Chabrowski
fc8e795f26
Remove use of alternative not operator
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
2022-03-24 13:13:34 +01: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
Daniel Chabrowski
28b867f883
Move and extend local memory DRM allocations
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
2022-03-22 13:47:05 +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
e959597546
Dont return on void function
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-03-07 21:48:38 +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
0634aa3f1b
Create resource with given address
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-02-24 17:06:19 +01:00
Compute-Runtime-Validation
e984760423
Revert "Move and extend local memory DRM allocations"
...
This reverts commit b84b0015d5 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-02-22 08:48:46 +01:00
Daniel Chabrowski
b84b0015d5
Move and extend local memory DRM allocations
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
2022-02-21 16:04:53 +01:00
Daniel Chabrowski
2e9925c231
Extend createMultiHostAllocation, allocWithAlignment
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
2022-02-16 17:11:22 +01:00
Compute-Runtime-Validation
6fe91498d8
Revert "Extend DRM memory manager"
...
This reverts commit dec634c2cd .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-02-12 23:41:31 +01:00
Daniel Chabrowski
dec634c2cd
Extend DRM memory manager
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
2022-02-11 17:28:32 +01:00
Bartosz Dunajski
71f48c89c8
CacheSettingsHelper - timestamp allocations
...
Related-To: NEO-6664
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-02-09 19:32:39 +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
a95198521e
Initial implementation of CacheSettingsHelper
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-02-08 16:18:06 +01:00
Bartosz Dunajski
c88fce0def
Gmm construction cleanup
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-02-08 10:20:24 +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
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
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
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
Szymon Morek
962d98a2d8
Enable MemoryInfo for platforms without local mem
...
Query for memory regions on all platforms.
Fix createPaddedAllocation when input allocation
was made by KMD
Resolves: NEO-6472
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-12-23 17:35:18 +01:00
Krystian Chmielewski
45810d9918
Make closing drm workers blocking
...
This change fixes segfault happening when driver is used in
parallel processes.
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2021-12-22 15:42:45 +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
Raiyan Latif
abb91a7dae
Return error in canAccessPeer when P2P appendMemoryCopy fails
...
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com >
2021-12-10 10:19:53 +01:00
Bartosz Dunajski
68aea5bf62
Rename compression flags and helpers
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-12-03 18:09:02 +01:00
Bartosz Dunajski
7b55d38e34
Refactor [1/n]: Make compression preference allocation property
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-12-02 15:24:35 +01:00
Mateusz Jablonski
caaa918705
Add missing maybe_unused keywords
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-12-01 12:59:17 +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
Lukasz Jobczyk
71ed3eba16
Add mapping based colouring
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-10-25 09:51:54 +02:00
Bartosz Dunajski
1f2aa82c5b
Remove UNUSED_VARIABLE macro
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-10-22 18:56:33 +02:00
Artur Harasimiuk
d2a29ce458
DrmBO: canonize GPU addresses
...
Related-To: NEO-6364
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2021-10-21 18:25:48 +02:00
Artur Harasimiuk
275ec1118e
break friendship between DrmMM and DrmBO
...
Related-To: NEO-6364
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2021-10-21 15:09:57 +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
Michal Mrozek
c8e79b7447
Change shared allocations required alignment to 64KB.
...
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2021-10-08 13:08:11 +02:00
Lukasz Jobczyk
7392b5fb8d
Add new colouring policy
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-10-07 23:33:26 +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
Szymon Morek
1301f77e17
Move createDrmAllocation to common file
...
Related-To: NEO-6149
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-09-23 18:41:09 +02:00
Bartosz Dunajski
610d3c9b18
Remove incorrect local variables
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-09-23 17:09:36 +02:00
Szymon Morek
5c1c96fa94
Refactor gem creation with extensions
...
Related-To: NEO-6149
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-09-22 15:36:27 +02:00
Mateusz Hoppe
d4a4c35759
Zero-initialize debug surface
...
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2021-09-22 14:36:36 +02:00
Szymon Morek
3adc3c5ca0
Move allocation in device pool to a shared file
...
Related-To: NEO-6149
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-09-20 18:08:30 +02:00
Szymon Morek
1799e78b18
Move drm memory manager functions to common file
...
Related-To: NEO-6149
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-09-14 10:30:11 +02:00
Szymon Morek
efd66a32c2
Add multitile arch. code in drm getLocalMemorySize
...
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-09-13 13:51:47 +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