42b87654eb
Add preemption allocation for each of the Csr
...
Change-Id: Id14fbfbf6e9a6a85f035e75b4a20ca198c0996e5
Signed-off-by: Hinz <daria.hinz@intel.com >
2019-07-03 08:17:38 +02:00
27654c9282
Buffer-to-Buffer blit operations support
...
Change-Id: I76c9fae83fa2a31bd6108999c7f77f4a47c47f1b
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
Related-To: NEO-3020
2019-07-01 23:46:07 +02:00
832814cefa
Add debug flag to enable calling freeMemory in memory Manager
...
Change-Id: I61a3c6e768bd9a479731f9e3e000069c9b677c33
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2019-07-01 18:10:48 +02:00
165d1e4e55
Use GfxPartition for GPU address range allocations
...
[2/n] - OsAgnosticMemoryManager
Related-To: NEO-2877
Change-Id: I887126362381ac960608a2150fae211631d3cd5b
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com >
2019-06-25 12:54:20 +02:00
0758661c52
[9/n] Unified Shared Memory
...
- Wire in support for clMemFreeINTEL.
Related-To: NEO-3148
Change-Id: Ibef61b7d9bdfa3021533faa0019b6b443145f1be
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com >
2019-06-19 16:06:52 +02:00
d06fcc8599
Dont force system memory for pipe and global surface
...
Related-To: NEO-3127
Change-Id: Iffb1b04401a19043bdb898b7896068bc760f4797
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2019-06-19 12:46:30 +02:00
e279804c0c
[6/n] Unified Shared Memory
...
- Move definitions to core folder.
- Add tests for core related code.
Change-Id: I9ae0473f965ba56cbe2f5458160b8a24d06595ae
Related-To: NEO-3148
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com >
2019-06-18 07:18:18 +02:00
2e8e625024
[5/n] Unified Shared Memory
...
- Add kernel support for host um allocations
- During make resident call choose only appropriate resources for residency
- change resource types to binary bit friendly values
- enhance memory manager to only make resident compatible types
Related-To: NEO-3148
Change-Id: Ic711a4425a0d8db151a335e0357440312dc09b7e
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com >
2019-06-17 15:47:30 +02:00
dd0d81672b
[4/n] Unified Shared Memory
...
- Add allocation logic for host allocation.
Change-Id: Ic250b2165a050bbff7dea1b33b904d6d66cf8113
Related-To: NEO-3148
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com >
2019-06-17 12:40:37 +02:00
5956164451
AubManager to call freeMemory upon cleaning osHandles of host ptr storage
...
Related-To: NEO-3231
Change-Id: I028a5985f1bdffebd673f4b5fead1a314d773b6d
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2019-06-14 10:30:56 +02:00
8e969684f1
[2/n] Unified Shared Memory
...
- Add kernel flags specifying indirect usage of device allocations.
- make device usm allocation resident when kernel requires this
Related-To: NEO-3148
Change-Id: I689347a0ea9b0f84c83f7883ca2381be63c61af9
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com >
2019-06-14 09:56:40 +02:00
329d940285
Add multiStorageResource flag to AllocationProperties
...
Related-To: NEO-3242
Change-Id: If31adaead389acd3bef6af1931b91396c43b305e
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com >
2019-06-14 06:59:28 +02:00
ff4e668440
Adding GraphicsAllocation::getUsedPageSize()
...
Change-Id: I1e8ebe7d24d0c647e0ce3bc73e662e427acc4212
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2019-06-13 15:44:10 +02:00
4188f6dce8
[1/n] Unified Shared Memory
...
- Add Internal Allocation type to differentiate SVM allocs from UM allocs.
- Add API to make internal allocations resident.
- Add API to allocate UM.
Related-To: NEO-3148
Change-Id: I9787891c5a0ffccac45c43bc5fde4ea50f37d703
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com >
2019-06-13 14:48:02 +02:00
145f5b20e9
Require cpu access for constant surface
...
Related-To: NEO-3234
Change-Id: Ie0ccd3d3fc144400e63123d6c27b228bb7207f33
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2019-06-13 14:32:49 +02:00
b86d8f060b
Do not force system memory for constant surface
...
Related-To: NEO-3234
Change-Id: I1c78d15840e1071e4d7451f85e2e76ba7bff2ee5
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com >
2019-06-13 08:40:33 +02:00
b04fc1121e
Apply memory flag when creating Gmm with image info
...
Resolves: NEO-3294
Change-Id: I2702611c5b3b2ccd8d48219b90479a6fd3fbe1f7
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2019-06-12 17:36:07 +02:00
70f92cf03c
Rename KernelCommandsHelper to HardwareCommandsHelper
...
Change-Id: I0b92a2d74bc96658274e4a02fec0f322e87681b2
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-06-12 13:45:12 +02:00
d535638198
Removing unused struct CheckedFragments
...
Change-Id: I169b23bdf6de18cede28d8328b9aa598e8cb3dc0
Related-To: NEO-3172
Signed-off-by: Koska, Andrzej <andrzej.koska@intel.com >
2019-06-11 10:20:49 +02:00
007982b51f
Add the supportsMultiStorageResources flag
...
Related-To: NEO-3182
Change-Id: I618b734b37c5fb983be55b50d89a965eaedc78fe
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com >
2019-06-10 17:57:49 +02:00
5244030e31
Call ioctl to obtain file handle from prime bo
...
Related-To: NEO-3252
Change-Id: I8d976ae29875db83dd75802e0309cb4438d1332b
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com >
2019-06-10 09:06:59 +02:00
92a29a3e86
OsAgnosticMemoryManager to call freeMemory on AubManager for hostPtr
...
Related-To: NEO-3231
Change-Id: I83d5c9036d7f5531c1e7290058b8e2635e42ec18
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2019-06-09 14:42:23 +02:00
0d19aa2bfa
Use SpinLock instead of std::mutex.
...
- SpinLock uses atomics and is much faster then std::mutex
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com >
Change-Id: Ica443a3aef37a4831ace3b7d042831c6be451abf
2019-06-04 15:41:58 +02:00
987264bdb4
Removing checkedFragments parameter
...
Change-Id: I2396cc133fbe6737176498c2c81fc1f856cee510
Related-To: NEO-3172
Signed-off-by: Koska, Andrzej <andrzej.koska@intel.com >
2019-06-04 12:07:22 +02:00
14b8bbb3aa
Add capability to query internal handle from cl_mem.
...
Related-To: NEO-3252
Change-Id: I935c308dfa3f77c6d965df7316fe3fb4c21b112a
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com >
2019-06-03 13:40:08 +02:00
17f9cc006d
OsAgnosticMemoryManager to call freeMemory on AubManager
...
Resolves: NEO-3231
Change-Id: I89a3cc9f2a63931c6c87ec70bbedc19716a885c1
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2019-05-29 18:09:49 +02:00
b98b51b0d9
Move ptr.h to core folder
...
Change-Id: Icf0db7c767b2b1ea44fccc02b135f0f6c1f78c8f
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2019-05-29 00:11:34 -07:00
edb78834cb
Move allocateGraphicsMemoryInDevicePool to Os Agnostic memory manager.
...
Change-Id: Ica179986f401b99e61c3485d549790489cbb1fd5
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com >
2019-05-25 02:12:16 +02:00
b64210d3db
Add local memory usage selector in memory manager
...
Related-To: NEO-2906
Change-Id: I3172e9551b8d06437c273b122dc6e9d529155b5c
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com >
2019-05-23 11:05:36 +02:00
34013c03fc
Minor refactoring to allocateSystemMemory and selectHeap
...
Change-Id: I2cf3917d56773535b7a06a7d091c14c4320ef734
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2019-05-20 07:41:17 -07:00
4f4ef14b9b
Accept different copy directions during blit operations
...
Change-Id: Idb59458b46337ca0095056857dbd75bf116b6723
Related-To: NEO-3020
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-05-16 18:53:30 +02:00
b8fb5e683b
Move basic_math.h and vec.h to core directory
...
Change-Id: I143b7af450ff48d4958b4bc7137b393a2dc0eb64
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2019-05-14 21:32:55 +02:00
cc6a94b5b6
Fixed TBX with AUB dump mode without AubStream
...
Related-To: NEO-3150
Change-Id: I9ee7fc3c44f3021c61db7c27c01522cbe7d7445d
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2019-05-10 14:23:17 +02:00
97245a2ca6
Refactor MemoryManager::allocateGraphicsMemoryInDevicePool
...
- create MemoryAllocation for OsAgnosticMemoryManager so that
freeGraphicsMemory is freeing correct object type
- other memory managers do not go this path
Change-Id: If2ada9b77bb4a41d09f82b79502594e0eda9f11b
Signed-off-by: Hoppe, Mateusz <mateusz.hoppe@intel.com >
2019-05-10 13:14:08 +02:00
67d39b19db
Add pitch programming to Blit dispatch and align max width to cacheline
...
Change-Id: I37a15ddc64c9e41cd4cd718133b17d572bb71ba2
Related-To: NEO-3020
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-05-09 16:08:06 +02:00
0f87e9aa1a
Rename HardwareInfo members
...
Change-Id: I85f56b677bafdd75dd958b488522393fc18b68af
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-05-09 09:13:55 +02:00
bb80d327c7
Move HardwareInfo ownership to ExecutionEnvironment [1/n]
...
Change-Id: I5e5b4cc45947a8841282c7d431fb69d9c397a2d4
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-05-08 16:11:01 +02:00
cadc461712
Create storage info while getting allocation data
...
Related-To: NEO-3127
Change-Id: I716a1d5624cf34d74bafd8c9ab3f5cc5ded43275
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2019-05-07 14:17:34 +02:00
42e255969a
Move createStorageInfoFromProperties method to MemoryManager class
...
Change-Id: I09bbc19aeb377d8fabfe144920c6377cf68066d2
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2019-05-06 11:30:37 +02:00
ddcd3fbbed
Simplify getAllocationProperties
...
Change-Id: I006337ec700e50259c46be1fd73fde34562c8b83
Related-To: NEO-2535
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2019-04-26 15:47:22 +02:00
92584d8c64
Minor cleanup.
...
Change-Id: I0f345c4fbf49f6464dce7bafd8b8d59347ff2d77
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com >
2019-04-26 14:34:58 +02:00
188c0797b6
Revert "[2/n] Use GfxPartition for 32-bit allocations - DrmMemoryManager"
...
This reverts commit 1ce2f9564a
.
Related-To: NEO-2877
Change-Id: Id17e0bce560ed1d934412067f9e41d39c529018f
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com >
2019-04-25 10:34:32 +02:00
1ce2f9564a
[2/n] Use GfxPartition for 32-bit allocations - DrmMemoryManager
...
Related-To: NEO-2877
Change-Id: Ic57d1e2cfb2629f50c6fd16e71861e8ee47f2b10
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com >
2019-04-23 14:05:17 +02:00
fae1d882f8
Add SvmAllocationProperties
...
Change-Id: Ie96aeab5597a1b3f2db8611a8a04597516730ce8
Related-To: NEO-2535
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2019-04-23 10:30:04 +02:00
f77cd94cd5
[1/n] Use GfxPartition for 32-bit allocations - WddmMemoryManager
...
Related-To: NEO-2877
Change-Id: Ie3d94f68d5c9958b0b7bade600b964b778aeb4cf
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com >
2019-04-18 16:41:38 +02:00
6e97a69a2b
Remove allocation type UNDECIDED
...
Resolves: NEO-2733
Change-Id: If6102ca04f557feeedaf702fa0d9f63c79017fe4
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2019-04-18 15:13:09 +02:00
1d42fe169a
Add allocation types for MCS, preemption and shared context image
...
Related-To: NEO-2733
Change-Id: I3e3e4ea6d4fe084c8c32c0e24c537c9131ce1e60
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2019-04-17 14:41:01 +02:00
74ae06b131
Add new allocation type for internal allocations in system memory
...
Related-To: NEO-2733
Change-Id: I256d414c1e92647469dd2a80f83bdbfc8721cf43
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2019-04-17 11:20:50 +02:00
2ca97d3881
Introduce MemoryManager::getExternalHeapBaseAddress()
...
Related-To: NEO-2877
Change-Id: I4307224c3be9609f7fc60d7fcb4f91ccdc8a9883
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com >
2019-04-16 13:30:10 +02:00
beceb6aedb
Fix logging allocation while changing allocation type
...
Change-Id: I7d1774e8b9cfcaec68415318ec357bbf8255a311
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2019-04-16 11:09:38 +02:00