Commit Graph

386 Commits

Author SHA1 Message Date
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
Mrozek, Michal 97bc604316 Make sure that resources are not made resident multiple times.
Related-To: NEO-3054

Change-Id: I32d01f8993e8d327ee117a352a8b4bcb1bbb7e30
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-04-17 10:27:11 +02:00
Mrozek, Michal 6223cd32cb Make sure that TBX requests 1 as preferred tag pool size.
Change-Id: I951117122b3e78cf40d413ce1899cd304f338ef6
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-04-16 16:28:19 +02:00
Piotr Fusik 745c20c78a Rename TimestampPacket to TimestampPacketStorage.
Related-To: NEO-2872

Change-Id: Id1f78491912c44890ae7ead2cac12ec8eb073628
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-04-16 15:34:28 +02:00
Dunajski, Bartosz 62e2ca05e1 Update latestSentTaskCount before flush during blit dispatch
Change-Id: I44e1f4e8a70c17b902164491c6d58e8523160ac3
Related-To: NEO-3020
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-04-16 14:30:51 +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
Dunajski, Bartosz e40a82336c Flush constructed Blitter command buffer
Related-To: NEO-3020

Change-Id: Ib5f4e111b3a64964ff2c79d4c057a616cdbf8d07
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-04-16 09:55:53 +02:00
Mateusz Jablonski ca18ce41a4 Use TAG_BUFFER type for tag allocation
sort usages of allocation types in switches

Related-To: NEO-2733

Change-Id: Ie44ea10733af28e9a15c3fcf749e51c29d39a66e
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-04-15 14:19:32 +02:00
Dunajski, Bartosz 9371bfb51f Add residency handling during blit dispatch
Change-Id: I797267af40ce8236a06d5b86fce2b673380c21a8
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-04-11 16:29:58 +02:00
Piotr Fusik 20985f426e Simplify and format code.
Change-Id: I12bda7a76ddb377f684bfed1ef4e0f5c2ace6b0c
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-04-10 15:59:42 +02:00
Dunajski, Bartosz ccd93e1ea8 Add method to dispatch blit operation from hostPtr to Buffer
Related-To: NEO-3020

Change-Id: If76f2c659c3ee343693a6d3ced86a47d7ed0bf61
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-04-10 15:17:44 +02:00
Milczarek, Slawomir 381ccfc0aa AUB capture with AubStream to support image dumps
Related-To: NEO-2717

Change-Id: I448627cc40776eadacaefaa321500a3cf5ff3593
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-04-08 17:28:14 +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
Filip Hazubski b2e16b7897 Update allocationForCacheFlush method
Related-To: NEO-2535

Change-Id: Ia24556814188263e2ebb54b6419feddd5d8ed707
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-04-03 18:07:13 +02:00
Mateusz Jablonski b4ed5468a2 Add device index to AllocationProperties
Change-Id: I3c9f7ea59bf85fbbc948ba23c2b1040f295f586c
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-04-03 10:48:30 +02:00
Mrozek, Michal 69f8e72816 Always go via CSR in multi OS Context scenarios.
Change-Id: I448db22a35c8c99ac9c7abe65c340842aeb883c2
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-04-01 17:35:24 +02:00
Stefanowski, Adam 73b8583759 [4/n] Move Hardware Info to Execution Environment
- remove hwInfo from ScratchSpaceController, pass it by
ExecutionEnvironment

Change-Id: I4d83e581560b8a56a51e09d0e2b8397fee59dc22
Signed-off-by: Adam Stefanowski <adam.stefanowski@intel.com>
2019-04-01 14:25:43 +02:00
Milczarek, Slawomir 17493426c1 AUB CSR with a capability to add AUB comment
Change-Id: Ia7e85468c3f1e937d34b67b0e279c013e8e3c190
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-04-01 14:14:58 +02:00
Mrozek, Michal e772321e82 Do not call pollForCompletion after flush.
Change-Id: I5bae360ceb38d4c955035b3a51938608c79058ed
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-04-01 10:10:03 +02:00
Maciej Dziuban 377aebce06 Move PIPE_CONTROL related functions to PipeControlHelper
Change-Id: Ie8220b06d2aa35a9fd0083b7db6925b577564d36
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-04-01 09:20:28 +02:00
Milczarek, Slawomir 404428b103 Call pollForCompletion if AUB subcapture is active only
Change-Id: I0f5c35efa6c5b828fe88c15084fec03bb24af4e7
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-03-29 15:49:07 +01:00
Filip Hazubski 9bbf1daa0e Update CommandStreamReceiver::expectMemory()
Change-Id: I3362f8beee2430f2bf5ff797ec804448682e41ea
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-03-29 08:52:02 +01:00
Milczarek, Slawomir 9f95e9b704 TBX with AUB dump to call open on aub manager
Call open on aub manager to open file stream.

Change-Id: Id48ac4b3bdb212db4adc5912bacd28ccb895c9cf
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-03-27 23:59:57 +01:00
Mrozek, Michal 883a830636 Fix --tbx mode.
- There was a problem in make non resident function when AUB CSR was not
present in CSR with AUB dump , surfaces were not made not resident
properly
- For subsequent submissions they were not discovered as resources requiring
residency and were not made resident
- update task count can only be called when aub csr is actually present.

Change-Id: I12a4c1c14a8a7ecf63a0b0f8d633d35c4bf15b05
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
2019-03-27 15:44:22 +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
Milczarek, Slawomir 96db96fcb4 Add support for buffer dumps in BIN and TRE format
Change-Id: Ib7e59fd6812ca6adcb2dfc1defa74008fee17ec9
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-03-27 13:04:30 +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
Maciej Dziuban 0420c2948f Delete addDcFlushToPipeControl
Change-Id: Idd1af397a302755484f60e910929c2fe7d52857d
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-03-25 16:31:32 +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
Piotr Fusik cc13045ddd Move definitions out of engine_node.h.
Change-Id: I18692a444663c11103f8991415b38000c633f24a
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-25 13:22:55 +01:00
Maciej Dziuban 9bd4efbadf Enable dcFlush in addPipeControl
Change-Id: I429009d8a8b1a5e209b7de7de30d69193fb7ef45
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-03-25 11:26:49 +01:00
Piotr Fusik 6f84496e78 Move duplicate code to the base class.
Change-Id: I117a6e55fc51bf3ede3a69dbb8a874e71e74ddf9
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-22 13:23:02 +01:00
Maciej Dziuban 33c07c875f Do not insert PipeControl WA or DC Flush when not needed
Change-Id: I71030273708f243324a566232528bce00a0361df
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-03-22 12:37:27 +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
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
Piotr Fusik ddfb8a3ded Remove engineInfoTable.
Change-Id: Ibf614a2182485c46d826cf35bd5a83f8a767b4bb
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-20 08:55:22 +01:00
Milczarek, Slawomir 6919a63b51 AUB dump with HW mode to make command buffer resident
Change-Id: Iab8aff75500bd804ea1002fd821d3540dca57b09
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-03-19 19:08:29 +01:00
Piotr Fusik 8c95b45e2f Remove engineIndex.
Change-Id: I58f7cf2c394686409dc45e315d1b5af33db2a28e
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-19 15:26:49 +01:00
Milczarek, Slawomir a3369a9679 AUB dump with HW mode to call pollForCompletion
Change-Id: I9a4345c47394f19ecc63e2d598266e0889a6f8f0
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-03-18 17:59:05 +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
Milczarek, Slawomir 49c428d1ff AUB allocation dumps with pollForCompletion
Change-Id: I610a56d7b8d1b6f1f0d6029ce6d2e62742885698
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-03-15 16:13:31 +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
Piotr Fusik 2c524f94a4 Const correctness.
Change-Id: I68be05e6c1c3c9c0dc33ba8252a0a5bbeefc06a4
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-12 18:11:35 +01:00
Piotr Fusik ec72787b98 Remove MemoryManager::allocateGraphicsMemoryForHostPtr.
Change-Id: I629f2299a183fc135135dbaff89216b966554a95
Signed-off-by: Piotr Fusik <piotr.fusik@intel.com>
2019-03-12 15:51:32 +01:00
Milczarek, Slawomir 5fabd6e822 Fixed unlock resource in CSR HW with AUB dump mode
Change-Id: I186eb06a3a7ed50c8a18a4d08f3b5d2e991d7fcd
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2019-03-12 12:46:48 +01:00
Stefanowski, Adam 341fcfc091 [1/n] Move Hardware Info to Execution Environment
- remove gmm_environment_fixture
- remove hwInfo parameter from ExecutionEnvironment methods

Change-Id: Ieb0f9b5b89191fbbaf7676685c77644d42d69c26
Signed-off-by: Adam Stefanowski <adam.stefanowski@intel.com>
2019-03-12 08:39:26 +01:00
Jobczyk, Lukasz 878fd43a1a Reverse logic of creating Memory Manager - part 1
-remove CSR::createMemoryManager method
-create MM from platform before creating devices

Change-Id: I0e7f091c53b0e60ae7101e82a305253af626330e
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-03-08 09:47:29 +01:00
Mateusz Jablonski 5b22a50b28 Allow to create WddmAllocation with multiple handles
Change-Id: Iac9df91b08a6ce610b985586dfb6b5f63dc668cb
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-03-07 13:29:00 +01:00