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
Lukasz Jobczyk
49cf6f79f5
Validate host ptr on VM it will be used
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-08-16 08:15:53 +02:00
Lukasz Jobczyk
816e95443f
Add missing ioctl to kmd migrated resource
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-08-13 14:45:14 +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
Michal Mrozek
8a506457d7
Add debug flag to skip freeing resources.
...
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2021-08-06 14:46:17 +02:00
Lukasz Jobczyk
1ddc83d0d5
Add flag to switch host ptr validation
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-08-03 16:45:21 +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
Lukasz Jobczyk
13632ebbc9
Fix gpu address alignment for SVM CPU allocations
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-06-09 10:31:25 +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
Maciej Dziuban
13b2c326fe
Add AlignmentSelector helper
...
Related-To: NEO-5750
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com >
2021-06-01 11:44:04 +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