Commit Graph

2420 Commits

Author SHA1 Message Date
Michal Mrozek 51f7fbe0ec Remove not needed debug flag.
Change-Id: I2cfb1cf531654045242f64f045f6f8ff2cc10d9a
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2019-11-15 11:59:42 +01:00
Dunajski, Bartosz 9ecd43fe88 Fix compilation warnings
Change-Id: I2eda2617a60e54794490f932a80703e22e72a276
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-11-15 11:34:43 +01:00
Adam Cetnerowski 7311cf9fde ULT renaming: Read Buffer Rectangle tests
Related-To: NEO-2236

Change-Id: I72081fe65bf4f2fd96e00ab3670862177be88fa5
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2019-11-15 10:59:12 +01:00
Michal Mrozek 06941a51af USM - add new API for memory fill.
- This API will eventually replace memset API

Change-Id: I33bb43904d76a56f74493f2567a8526f7f2c1ee4
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2019-11-15 10:56:41 +01:00
Mateusz Jablonski a988607cc6 Improve aub tests
skip tests in fixture's setup instead of early returning from test body

Related-To: NEO-3919

Change-Id: Ic61d8857114121bfa6153852fa1046b0ddbf5925
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-11-15 08:21:26 +01:00
Filip Hazubski 60b4614f24 Remove OCL objects from HwHelper
Change-Id: I6b629421eae5e3c9c158f769ef1bb8d68e37aae7
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-11-14 19:17:10 +01:00
Maciej Dziuban 47645d6003 Unified memory sharing 6/n
Validate handle type upon buffer creation

Related-To: NEO-3771
Change-Id: I0fd16422220368ffdd41316e16c8506954d04d29
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-11-14 16:19:31 +01:00
Filip Hazubski cf246d73f5 Add wrapper for gen12lp tests
Change-Id: I32a8ef7752721a2cc330aca6d2efa68b1959efd9
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-11-14 15:25:34 +01:00
Kamil Kopryk 8bd641c418 Fix for stateless offsets
Change-Id: I32a252065bb667df9c92ff41601db0556b7d156b
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-3314
2019-11-14 15:06:58 +01:00
Michal Mrozek e7901775a8 Improve enqueue kernel error handling.
- Do not allow to enqueue parent kernel if there is no device queue.

Change-Id: I0f06b8ed2387fc87abd652653f2c8bb8c4939a12
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2019-11-13 19:29:19 +01:00
Dunajski, Bartosz 5ab6386581 Improve image aub tests
Change-Id: I14e37cbc87606a702f153c8823bbe883398f4365
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-11-13 19:23:56 +01:00
Slawomir Milczarek 75d0fb308a Fixed AUB Center class object initialization
Related-To: NEO-3916

Change-Id: Ia17abe09c638ee76b8fda98166938c1bab6629a7
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2019-11-13 18:55:39 +01:00
Filip Hazubski 8a047e24f2 Fix unit test
Move single HW test to proper directory

Change-Id: I9e1dd9a0403da11831a76fccd6615621cc4895b8
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-11-13 16:45:20 +01:00
Dunajski, Bartosz b6015b5293 Add TimestampPacketDependencies helper
Change-Id: I3945ac8e495baf442b4f892ba415f939e8d316da
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-11-13 16:04:48 +01:00
Maciej Dziuban df20a73622 Unified memory sharing 4/n
Extract MockSharingHandler to a separate file

Related-To: NEO-3771
Change-Id: I012ca62e376d953928e7b3254aa3aa5330a6c3d4
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-11-13 13:31:59 +01:00
Filip Hazubski 4b2a8e99d8 Add clGetExecutionInfoIntel API
This API allows querying for execution related information.
CL_EXECUTION_INFO_MAX_WORKGROUP_COUNT_INTEL parameter allows to query for
maximal work group count that is possible to run concurrently on the device.

Related-To: NEO-2712

Change-Id: I4e6b4c80aeb06ff966fb543c0a7f05ed54416dab
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-11-13 12:09:40 +01:00
Klein, Yaniv 340e80bb1a added support for 2 stages write memory of aub_manager
1. write ppgtt pages only by calling write memory with pagesOnly set to true
2. write the actual memory pages by calling writePhysicalMemoryPages

Change-Id: Id3766704e4b8f84f77336f78da6b9270bfd44b70
2019-11-13 11:45:08 +01:00
Mateusz Jablonski 5a8f455a84 Remove csrsContainer from root device environment
improve mocking:
- add method to create RootDevice in Platform
- add method to create SubDevice in RootDevice
- add method to create CommandStreamReceiver in Device

Related-To: NEO-3691

Change-Id: Ie9fe3de260492604333c8ca93796bfbffae518c4
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-11-13 10:05:09 +01:00
Dongwon Kim 48b12337e3 ULT for the previous commit
Author: James Xiong <james.xiong@intel.com>
Date:   Mon Oct 7 10:54:39 2019 -0700

    Enable midthread preemption after the setup is completed

Change-Id: I9639e31233998a98ade6992dc3d5666e53dd3808
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
2019-11-13 09:17:49 +01:00
Pawel Cieslak 70af3e33db Remove tbx tests.
Change-Id: I8511c55483504dfb463869958b274d02b45d4079
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2019-11-12 22:12:22 +01:00
Maciej Dziuban 6dd65f2f9e Unified memory sharing 3/n
Require CL_CONTEXT_INTEROP_USER_SYNC

Related-To: NEO-3771
Change-Id: I973635a25d2b2ac5d05557804a4351eb59786bcd
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-11-12 18:05:37 +01:00
Jobczyk, Lukasz 7b7ac67e47 Extend an allocation properties constructor
Related-To: NEO-2998

Signed-off-by Jobczyk, Lukasz <lukasz.jobczyk@intel.com>

Change-Id: Ia2a99ff3bae574cc0cc40a973a30bdca126fe12d
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
2019-11-12 16:21:54 +01:00
Dunajski, Bartosz 80407aec15 Program barrierTimestampPacketNodes only on first unblocked command
Change-Id: I8ebba9f8326e3da2365c001b0c350efb372a3774
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-11-12 15:37:51 +01:00
Maciej Dziuban 125e2a0ff8 Unified memory sharing 2/n
Move acquire/release handling to a base class

Related-To: NEO-3771
Change-Id: I0127e393ce30c0b214b3c9cad590751ad9e386bc
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2019-11-12 14:56:21 +01:00
Slawomir Milczarek 9063e310af Removed deprecated DRM interface
Related-To: NEO-3008

Change-Id: Id3464129c61dbe5afb777e331581c82b1c7a029e
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2019-11-12 13:34:16 +01:00
Filip Hazubski f8a9eb642e Remove not needed ifdef
Resolves: NEO-3891

Change-Id: I37e66cc2229969409c6eb52e12267ae5531c3abf
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2019-11-12 12:44:11 +01:00
Adam Cetnerowski b855852500 ULT renaming: Read buffer event tests
Related-To: NEO-2236

Change-Id: I25282c327180629020fdebc2aeeb321543455dc1
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2019-11-12 12:31:53 +01:00
Dunajski, Bartosz af8ce96ab4 Add move logic to TimestampPacketContainer
Change-Id: Ib666fd57b4ca9123e324a82c3e648b0da49abffc
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-11-12 08:50:00 +01:00
Dunajski, Bartosz 50f9674d79 Change HostPtrSurface ownership to target CSR
Change-Id: I56ab5f7f961f92cf195600b11e836d2f264c9d0d
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-11-08 18:11:37 +01:00
Dunajski, Bartosz ad2b8a0bbe Allow dispatching multiple blit commands with single flush
Change-Id: I57ea32dfa8cfd89ec37fc2f1f82ee6f72598c18a
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-11-08 14:35:44 +01:00
Mateusz Jablonski 900818b8fd CMake: refactor compiling test kernels
Change-Id: I50b75a06fa8d3de4e79ad24623738fa582f8f122
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-11-08 10:28:27 +01:00
Kamil Kopryk b2fbab7f28 Add support for stateless write buffer rect
Change-Id: Id10c97ff2b7c07ca828b17d6bcbc36e97fadfb83
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-3314
2019-11-07 16:13:04 +01:00
Kamil Kopryk 0ef81b2bc0 Add support for stateless read buffer rect
Change-Id: I794be4cacaa9de661c0c7e6ec67da85b0d5eed9a
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-3314
2019-11-07 16:07:03 +01:00
Adam Cetnerowski 3f42625dcc ULT renaming: Migrate Mem Objects tests
Related-To: NEO-2236

Change-Id: If6469c42fd906d115cfa87adc3df9e97409d32f8
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2019-11-07 15:30:01 +01:00
Michal Mrozek ed88bc69f6 Enhance kernel testing.
Change-Id: I7e9a3c8ba64df82e878a3514a8ed87604cd6f839
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2019-11-07 12:27:27 +01:00
Adam Cetnerowski 7e6b47cc14 ULT renaming: Enqueue Marker tests
Related-To: NEO-2236

Change-Id: Ib907867e6b711266b8588934458291672391d208
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2019-11-07 11:59:53 +01:00
Kamil Kopryk 011701ee5e Fix for forceStateless check
Change-Id: Ic1d4787c3d8c7bdd70f13451d703bbc9958af7c7
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-3314
2019-11-07 08:28:51 +01:00
Michal Mrozek fb409e87fc Do not detect pointers as buffers.
Change-Id: I43cf354ad7de9dd802759f7cf6fdb15bec679349
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2019-11-06 15:09:12 +01:00
Adam Cetnerowski 9b87eabadc ULT renaming: Media kernel tests
Related-To: NEO-2236

Change-Id: I7c38b860128e2e07c77e4ee194247eb054ca763f
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2019-11-06 14:11:11 +01:00
Cencelewska e2c4ec47ac Refactor of programComputeMode in CommandStreamReceiverHw
Change-Id: If3ca7e89fe9f2fff371cd88224fe3a669d17f000
Signed-off-by: Cencelewska <katarzyna.cencelewska@intel.com>
2019-11-06 11:31:26 +01:00
Maciej Dziuban 603bce2164 Unified memory sharing 1/n
This change introduces creating and releasing buffers from
memory handle. Currently Windows NT Handles are supported.

Change-Id: I61b89d97946ce61617ad98922b7e9731d4a754a9
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
Related-To: NEO-3771
2019-11-06 10:43:34 +01:00
Igor Venevtsev 684d58d2aa Make GraphicsAllocation constructors unambiguous
Related-To: NEO-2941

Change-Id: Iedd16d0dcb4158b5e7832043289e2e6aba1549d5
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2019-11-06 10:12:26 +01:00
Dunajski, Bartosz afb96b0b57 Change temporary allocations cleanup order
Change-Id: I7c6d52d985da14fb6c7a0bd15e4384c1ddfae622
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2019-11-05 15:36:33 +01:00
Mateusz Jablonski 5e56c8e25d Correct validation of allocation usage before freeGraphicsMemory call
when allocation was used but not by registered engines then we can destroy it

Related-To: NEO-3857

Change-Id: Ibf6a92603e9317d3355283adecd5e156d7b5ab0a
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-11-05 14:33:18 +01:00
Mateusz Jablonski d617219665 Add getter for sub device index
Related-To: NEO-3691

Change-Id: I1375b3b422997d280e2006b00af8f6fab2314f8b
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-11-05 13:17:05 +01:00
Kamil Kopryk 1bfe9f548e Add support for stateless write buffer
Change-Id: Ie5d5abc9fac268c3467cafed5741828d84b13795
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-3314
2019-11-05 12:04:10 +01:00
Kamil Kopryk 2599a712fe Add support for stateless read buffer.
Change-Id: Iadf46a6d8651de3fd6bb07efc0eda278e04c86f6
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-3314
2019-11-05 12:03:29 +01:00
Jobczyk, Lukasz 3fc748c0f9 Use newer GMM API
Related-To: NEO-3832

Change-Id: I9c97a20a6a611118eb14348a8c6960115a20777d
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-11-05 08:30:09 +01:00
Zbigniew Zdanowicz aa7058a2a9 Enable thread-group preemption for GEN12LP
Related-To: NEO-3880

Change-Id: Ia8ffc54f923578d3e7334d414e0087feff42eb7d
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2019-11-04 18:30:58 +01:00
Jaroslaw Chodor cab8968e1a Fixing regression in rebuildFromIr
Change-Id: If1604861180d935575cd06fb2978df114453a070
2019-11-02 21:52:16 +01:00