Commit Graph

462 Commits

Author SHA1 Message Date
Piotr Fusik 92584d8c64 Minor cleanup.
Change-Id: I0f345c4fbf49f6464dce7bafd8b8d59347ff2d77
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-04-26 14:34:58 +02:00
Mateusz Hoppe 582fc9cf10 Return true from 48BitAddressing when GTT size > max64BitAppAddress
Related-To: NEO-3133

Change-Id: I18711642a5f092be423fb921bc4940ef9b6312d4
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-04-25 13:17:53 +02:00
Venevtsev, Igor 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
Mateusz Hoppe 016d6eda4b Return 48Bit addressing based on I915_CONTEXT_PARAM_GTT_SIZE
Change-Id: I54dcce1708d0e7d2280da1b4acb06ee1a1da6c7f
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-04-25 09:09:43 +02:00
Venevtsev, Igor 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
Venevtsev, Igor 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
Mateusz Jablonski 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
Mateusz Jablonski 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
Mateusz Jablonski 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
Venevtsev, Igor 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
Mateusz Jablonski 1e11d8939f Add new allocation type for device queue's allocatons
remove not used mustBeZeroCopy flag

Related-To: NEO-2733

Change-Id: I8b8faf4e2d46249f897a06170dd777193c7f8729
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-04-16 10:34:18 +02:00
Venevtsev, Igor 3a008fafc6 Revert "[1/n] Use GfxPartition for 32-bit allocations - WddmMemoryManager"
This reverts commit 2bb451e76d922861673e052f5f889658ac7db15f.

Change-Id: I1deada59a291a96ef88c8b9b4f2b28861ad27347
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com>
2019-04-12 20:59:40 +02:00
Zbigniew Zdanowicz 971cbd55f3 Add new SVM types
Related-To: NEO-2917

Change-Id: Ica127129799c1e617a326a110348c2f70160b15c
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-04-11 15:27:38 +02:00
Mateusz Hoppe 115d700f49 Add getter in Drm for memoryInfo
Related-To: NEO-3014

Change-Id: I56c0e13b88d27f7c6b3816bf24342cdb04108dac
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-04-10 16:33:25 +02:00
Venevtsev, Igor fac6ddaebc [1/n] Use GfxPartition for 32-bit allocations - WddmMemoryManager
Related-To: NEO-2877

Change-Id: I13621bc984e8bb92bea82c07044d9a40bc9ca550
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com>
2019-04-10 12:58:26 +02:00
Mrozek, Michal 794fba189e Remove code.
Change-Id: I7e578ab0bc7e490520159bfaa4f8f193db40b23e
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-04-08 14:07:49 +02:00
Mateusz Jablonski fc86445079 Use MemoryProperties to setup cache policy for images
Related-To: NEO-2535

Change-Id: Ieb311cef1560d09c099b713d2cc81afb886cfc56
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-04-08 13:22:13 +02:00
Mateusz Hoppe 7a7cb3d33a Set correct AllocationType in createGraphicsAllocationFromSharedHandle
Resolves: NEO-3077

Change-Id: I893544f4bfc19ffa8f49878bc9b44df4820cd619
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-04-08 08:19:55 +02:00
Mateusz Jablonski ad62e32f76 Remove redudant AllocationProperties constructors
Related-To: NEO-2535, NEO-2860

Change-Id: Iea3061b7a3f9567b6ea8bc3a9ea49651c5f0fcdd
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-04-04 15:20:27 +02:00
Maciej Dziuban c43cdd23b3 Dump debug settings to a file
Related-To: NEO-3033

Change-Id: I1c4de1868ba68aada0e2e50f6b84b7f91e6dc45b
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-04-04 15:12:35 +02:00
Dunajski, Bartosz a8451b8aaa Support BCS context creation
Related-To: NEO-3020

Change-Id: I7ddd3816e7b9a5c8cd53a77e87625303a8549b8d
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-04-04 12:18:29 +02:00
Mateusz Jablonski 6e7f82c315 Obtain storage info internally, in allocateGraphicsMemoryInPreferredPool
Related-To: NEO-2860

Change-Id: Id7acb10793f3145238f6b930b4c64c20c87a1021
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-04-04 11:43:31 +02:00
Mrozek, Michal f946cdd288 Do not limit to 1 slice for throttle hint low.
Change-Id: Id42f2ba3af752d36dcf4c550129c4cf1aa68c530
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-04-03 18:20:49 +02:00
Dongwon Kim 52f51866eb unit_test for the previous change
realAllocationSize for keeping actual GPU allocation Size

Change-Id: Id414adccae4c4a88e7ec071bc976ff77e76fd7fb
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
2019-04-03 10:36:03 +02:00
Mateusz Hoppe b13bd16665 Add support for tiling mode selection to VA sharing
Change-Id: I459c472a4b8d74dba70df54c9da29865672114eb
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-04-03 10:06:42 +02:00
Mateusz Hoppe 5c0c1f77f9 Pass AllocationProperties to createGraphicsAllocationFromSharedHandle()
- only extends interface to MemoryManager

Change-Id: I585d91be95abd50e11eedb53e2acfa3f66491d44
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-04-02 08:55:38 +02:00
Jobczyk, Lukasz a025dc6985 Reverse logic of creating Memory Manager - part 6
-Remove a redundant condition from the MemoryManager constructor

Change-Id: I4b6c56f30a19e77a7a20f68c6d85516aaa52d102
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-04-01 10:27:29 +02:00
Mrozek, Michal 5bb0d8c8ed Remove type that is not used.
Change-Id: I00571ce2f8a1dddbce6645ae753bc99de1ff7a33
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-03-29 12:47:59 +01:00
Pawel Wilma af64a54a88 Fail AUB tests execution if AUB file cannot be created
Change-Id: Id0474cc5c00be90e69d498ec5674089086a82350
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2019-03-27 15:40:48 +01:00
Piotr Fusik d4a0c4852b Move EngineType to aub_stream.
Change-Id: Ieaa75aaf4aca4487833754eb38ff709adcbf0f11
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-27 10:06:29 +01:00
Maciej Plewka 9e52684f5b Change namespace from OCLRT to NEO
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2019-03-26 15:48:19 +01:00
Jobczyk, Lukasz e42e952d21 Reverse logic of creating Memory Manager - part 5
-Remove a Drm* parameter from the DrmMemoryManager constructor

Change-Id: Idb6faccdbb512691a8b14f86cdd935d1a8374a23
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-03-26 10:47:03 +01:00
Jobczyk, Lukasz ee1854bfe8 Reverse logic of creating Memory Manager - part 4
-Remove a redundant parameter from WddmMemoryManager constructor

Change-Id: Ied9118d136e7d1f3e93b1bb6ce0e29d748bdbe01
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-03-25 16:14:51 +01:00
Jobczyk, Lukasz 9ecb3193af Reverse logic of creating Memory Manager - part 3
-Move a Device::getEnabled64kbPages method's logic
 to the Memory Manager constructor

Change-Id: Ide88898000e5817a79f9a6ad5dfc9d680bec0533
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-03-25 14:42:16 +01:00
Stefanowski, Adam 16aee8cc46 [2/n] Move Hardware Info to Execution Environment
- remove hwInfo from the csr functions where it was passed as a parameter,
now csr functions have access to hwInfo by Execution Environment

Change-Id: I756ae63d9728c9c963571147bab97f9e1c15797b
Signed-off-by: Adam Stefanowski <adam.stefanowski@intel.com>
2019-03-22 10:08:26 +01:00
Liwei Wang ca4b47f7f4 Add support of GPU preemption (v1.00).
https://github.com/intel/compute-runtime/pull/119

Change-Id: I3134d62b66751c8621b80002373a7a9b198e044e
2019-03-22 08:49:11 +01:00
Mateusz Jablonski 6abc3f7d9b Add logic to create wddm allocation with many handles
Change-Id: I1eeffddf7108183ad867d2b05d313f0cf6941c01
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-21 11:28:55 +01:00
Dunajski, Bartosz 7f2bf217f1 Refactor DeviceFactory::getDevices
Change-Id: If3b20cc8ed74bdb1c32ae17c23374b7c267933a3
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-03-20 15:25:36 +01:00
Mateusz Hoppe 432591a88a Adding MemoryInfo to Drm
- call queryMemoryInfo on Drm::create()

Change-Id: Ib0532894f271bd4ab3dcbb281d0bddf2a01d4afe
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-03-20 15:04:43 +01:00
Piotr Fusik db9afd06cd Remove EngineInstanceT.
Change-Id: I08543b5f4ef5e91e6beb8390d448e53702cd9dac
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-20 10:56:22 +01:00
Mateusz Hoppe 832c620dc1 Return error code from handleRemainingRequests
Change-Id: Iea47322546f86870720a7ede553a6dd45cb09908
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-03-20 10:03:34 +01:00
Mateusz Jablonski 5367440fab Refactor Wddm map gpu address method
Change-Id: I9d3d8675bf80af4079e25b84ba6e09b7883c9e28
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-20 08:40:47 +01:00
Mateusz Jablonski e5a40502aa Release memory when allocation created from shared handle fails on map call
Change-Id: Ic2745c32f54ea9a0418ebb4d29cc41f84deb247d
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-19 15:42:20 +01:00
Venevtsev, Igor ddf3aa186d Use HEAP_STANDARD for Limited-range allocations
Change-Id: I8b35cda2b5542e98a83021b4ce1c9f5118e6697d
Signed-off-by: Venevtsev, Igor <igor.venevtsev@intel.com>
2019-03-19 10:18:21 +01:00
Piotr Fusik 429487fad0 Add constructor parameter to select low priority context.
Change-Id: Ieb3fa008a2f1b54052e393516038c88f00944fa0
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-18 15:09:59 +01:00
Zbigniew Zdanowicz 8e743cc1bd Refactor Wddm interface of mapping GPU VA
Change-Id: Ic807dfb17fd0ab664af281db757e48b0cc424fcb
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-03-15 07:50:53 +01:00
Mateusz Hoppe 16e1a05375 Test for DrmMemoryManager allocateGraphicsMemoryInDevicePool
Change-Id: If04321fc1045d01c0001e27eed8b2a128b830f25
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-03-14 19:25:15 +01:00
Zbigniew Zdanowicz cdb52400c4 Add new functions reserving address range to Memory Manager
Change-Id: I947203c24495c9e5a206b95bb0c69440824586b6
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-03-14 15:06:11 +01:00
Mateusz Jablonski 395e79fee8 Add support for many GMMs in Graphics Allocation
Change-Id: I955b8dd50b502f91700c5529d0a0a291632aa157
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-13 15:44:45 +01:00
Mateusz Hoppe a2835490b1 Support for handling remaining ioctl requests in DrmMock
Change-Id: I5672bcaa746f70c77be85a47e0dcaf59aec6023d
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2019-03-13 04:54:35 +01:00