Commit Graph

5014 Commits

Author SHA1 Message Date
Jitendra Sharma
1780cc01e3 Add support for zetSysmanTemperatureGetState API
Change-Id: I8c41cec6e2c7e69489882df7fc05352caef503c7
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-06-02 22:57:45 +02:00
Slawomir Milczarek
b156393615 Add mmap mock to DRM memory manager
Change-Id: I0799a909659842e6bba1f5ec5de8f6310ba1b329
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2020-06-02 22:08:35 +02:00
Mateusz Hoppe
d130575dd3 Cleanup header includes in tests
Change-Id: I37de20f7c074ddcb23f893b2cda7fd6fff7bd32b
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-06-02 19:40:26 +02:00
Maciej Plewka
008af5b6e4 Add event profiling for copy commandLists
Change-Id: I9f13e48b4139b3ce3c802c2d38b0ce054e64562c
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-06-02 19:35:13 +02:00
Mateusz Jablonski
cb24b95833 ocloc: dump files even if the entire build failed
if compilation spirv -> binary fails then spv file is created

cleanup MockOfflineCompiler

Change-Id: I6352baaa11a8f4ca15dcb358b4f2fbcae1b89d24
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-06-02 19:18:43 +02:00
Mateusz Jablonski
39b61b5928 Add .clang-tidy file for level zero and shared tests
add some extra checks for clang-tidy in tests:
- clang-analyzer-core.StackAddressEscape
- clang-analyzer-core.uninitialized.Assign
- clang-analyzer-core.NonNullParamChecker
- readability-identifier-naming.StructMemberCase

Change-Id: Ib8f82d5555f65635f2e7a6f82287bd480a508a7f
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-06-02 19:05:35 +02:00
Adam Cetnerowski
4d63405127 ULT renaming: Address Mapper tests
Related-To: NEO-2236

Change-Id: I8d65d73539533becb5a519c1730db0d4f0bd2691
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-06-02 18:59:52 +02:00
Filip Hazubski
e7e0529bd5 Correct gen12lp device caps tests
Related-To: NEO-4368

Change-Id: I5fb056ced6ab1faf3e912696c0d3d5bc7b01b256
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-06-02 16:53:40 +02:00
Jacek Danecki
4c72491a8a ci: remove support for Fedora 30
- Fedora 30 is EOL

Change-Id: Ic3b6db4cf77d6e8bbadc7e4f2dcb78c369406db8
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2020-06-02 16:40:08 +02:00
Mateusz Hoppe
2b0114846e Add getComputeEngineIndexByOrdinal function
Related-To: NEO-4710

Change-Id: Idaf84e2b5df608582b32602a6fc987e889173eac
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-06-02 16:23:53 +02:00
Filip Hazubski
4da9269d1b Correct Platform::initialize function
Initialize values only once.

Change-Id: I5261f3b8e6a088878fb7f240418bafb93612da1c
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
20.23.16988
2020-06-02 13:01:36 +02:00
Aravind Gopalakrishnan
6ee7c6d77c Use correct allocation type for timestamp events
Change-Id: I82dc122fd78045d548f95262c2155eab1b1eae39
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
2020-06-02 12:24:12 +02:00
Mraghuwa
b6ccfed471 Redesign ULT by mocking sysfs and implementing for pci
Change-Id: I5ee2219208d05c125d1fce1a4a5b992bc8c4646e
2020-06-02 08:46:10 +02:00
Jaime Arteaga
e25eb4057c Make sure CommandList methods are called within it
When calls are originated in CommandListImmediate objects,
CommandList calls may be rerouted back to CommandListImmediate,
causing executeCommanListImmediate() to be called twice.

Change-Id: I8cea4500de4d10c9ebeb9af7b5ffe00a733fa4dd
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-06-01 14:32:19 -07:00
Artur Harasimiuk
f5cd168f1e infrastructure update
Related-To: NEO-3995
Related-To: NEO-4664
Change-Id: I5056af8ab280dcecede312ab22ebebf0d1a5c65d
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2020-06-01 19:26:19 +02:00
Mateusz Jablonski
1db6d28754 Add MultiGraphicsAllocation to MemObj class
use it to get allocation type and coherency status

Related-To: NEO-4672
Change-Id: Id1fdc358f7e2038e78c1225ebc986b2a7775c665
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-06-01 17:55:07 +02:00
Lukasz Jobczyk
aa0388e791 Add debug flag to print time stamps
Change-Id: I198dca8e1310f7663baeebb20f6ae2552e608e99
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2020-06-01 16:05:54 +02:00
Konstanty Misiak
aa8e9fb634 Rename ocl DeviceFixture and add shared tests specific one
Change-Id: Ib61e987388ba14b721a573e3e84332a7f6c9ef9c
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
2020-06-01 15:44:05 +02:00
Mateusz Jablonski
d5ad9b42c1 Silence clang-tidy checks for method names in overridden interface
Change-Id: I4decc88d10ea13f68896d9cfaea6f9f4de0feab2
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-06-01 15:37:17 +02:00
Mateusz Jablonski
b674b4aff7 Add missing override in Mock<Driver>
Change-Id: Ie07bc3c7c947bb5ba8b1cfd5fd380a7c1a40d2cf
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-06-01 15:09:07 +02:00
Bartosz Dunajski
f5cd218ee7 Change Test to HWTEST_F
Change-Id: I2de6a9d4e812d58c77d8b60bdf71b34402d35619
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-06-01 14:49:03 +02:00
Adam Cetnerowski
dad23e25a2 Documentation: Update OpenCL version
Change-Id: Id818444aa1b1e936fab10d5840040a4b1587d56d
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2020-06-01 09:51:51 +02:00
Jaime Arteaga
390ec9fd71 Return ZE_MEMORY_TYPE_UNKNOWN for non-runtime allocated pointers
This aligns more to spec definition

Change-Id: I3f6aaf50945ef82fa5ffe8f400972e944ad03e2b
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-06-01 09:45:07 +02:00
ocldev
497ebf1f1e igc revision update
Change-Id: I6a90d7f44b214d75dd22ddb441ee559df188b1fe
2020-06-01 04:49:05 +02:00
davidoli
c18939c7aa Simple fix for potential memory leak.
Change-Id: I3cb96ce810e5cd83fe3ce55182f39c6fc2264629
Signed-off-by: davidoli <david.olien@intel.com>
2020-05-30 00:39:41 +02:00
Igor Venevtsev
aa7bd6447d Allow zero alignment in OSMemory::reserveCpuAddressRange()
Related-To: NEO-4525

Change-Id: I19bcd37c70c413c7726f1cd1ba5c29b5d80dfb42
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2020-05-29 16:42:58 +02:00
Pawel Cieslak
62d04216f2 Update infra
Change-Id: I786431d86603d4e92ee7193bf172928e97525dd4
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2020-05-29 16:14:57 +02:00
Mateusz Jablonski
91dc953e1c Add virtual destructor to L0::Driver
Change-Id: Iaeebe3e45a172daa028111f6dd1d741ca6a24969
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-05-29 14:59:42 +02:00
Lukasz Jobczyk
02f2f22045 Add profiling support for blitter
Resolves: NEO-4121

Change-Id: I29dfcf07d48100c578cbc432fee4d87dfa18e8f4
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2020-05-29 13:43:14 +02:00
Mateusz Hoppe
f4ef256900 Program hardware context in L0 command queue
Related-To: NEO-4577

Change-Id: I204a5e86ad3b23b71071bbbfd58c23a408f6865f
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-05-29 13:07:38 +02:00
Filip Hazubski
ca459b8d59 Add new clGetPlatformInfo queries
Add support for following queries:
 - CL_PLATFORM_NUMERIC_VERSION
 - CL_PLATFORM_EXTENSIONS_WITH_VERSION

Related-To: NEO-4368

Change-Id: I88a1878b786d424a718f1b3351a8af26cf69479f
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-05-29 12:45:05 +02:00
Lukasz Jobczyk
cc5fd45b47 Extend mutex range in DrmMemoryOperationHandler
Related-To: NEO-4302

Change-Id: Id022a51071eeea076fbc91dd3a05000d5e85a417
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2020-05-29 09:50:10 +02:00
Zbigniew Zdanowicz
14f4d5c5b9 Fix delayed first execution in diagnostic mode of direct submission
Related-To: NEO-4338

Change-Id: I68cce6ac66946f1cd0af9328231ccfbc2910c3c4
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-05-29 07:57:07 +02:00
Raiyan Latif
cb6823b1bd Allow for overriding the reported FP64 support in L0
Change-Id: Ib876e00e198c07dbae7b921e1e7dc2b142aee049
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2020-05-28 22:04:02 +02:00
Mateusz Jablonski
f0ef0d4d78 Remove redundancy from ModuleImp class
NEO::Device can be obtained from L0::Device
use modern API for MOCK_METHOD in Mock<Module>
remove not needed clang pragma from mock_module.h

Change-Id: I993fc77ee7cae56b3f21d6a60601fd649f984032
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-05-28 17:51:00 +02:00
Maciej Dziuban
46e67c892a Add overrideSupportedDevicesCount helper function
Change-Id: I3ae4a7534322956eda894b097e8a74cb9fb050e3
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2020-05-28 15:03:34 +02:00
Jacek Danecki
3871ced268 doc: add information about OpenSUSE Leap 15.2 repository
Change-Id: I3764576b9776e94a0f85dee69a8ca1dcea9c17a5
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2020-05-28 14:32:53 +02:00
Konstanty Misiak
a3a1f49dc0 Move shared tests to the new target [2/n]
Change-Id: I6d4f955adfecccc8c33ffa7a6c36605ccf5ab7a4
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
2020-05-28 14:21:35 +02:00
chmielew
3e8f05d702 remove kernelHeader from HeapInfo
Change-Id: Ic2d441df15a7f75b5f3ef41d484969148e59715f
2020-05-28 03:59:49 -07:00
Adam Cetnerowski
515b3787f5 ULT renaming: Subbuffer tests
Related-To: NEO-2236

Change-Id: I417d031d834a8b13e4331d0e5c1c6114ee81f3ec
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
20.22.16952
2020-05-28 12:12:33 +02:00
Jaime Arteaga
276269788b Add support for thread arbitration policies to Level Zero
Change-Id: I6bbb2ff75dbd930b72a4f60acb0c3a9f372671cb
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-28 11:40:05 +02:00
Igor Venevtsev
0bc5e158e5 Pass preferred base address to OSMemory::reserveCpuAddressRange()
Related-To: NEO-4525

Change-Id: I6d97ae41af1a0fba31993683bfc669f79aa5b77b
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2020-05-28 11:39:27 +02:00
Filip Hazubski
4e2097e427 Add new clGetDeviceInfo queries
Add support for following queries:
 - CL_DEVICE_BUILT_IN_KERNELS_WITH_VERSION
 - CL_DEVICE_EXTENSIONS_WITH_VERSION
 - CL_DEVICE_NUMERIC_VERSION
 - CL_DEVICE_OPENCL_C_ALL_VERSIONS

Related-To: NEO-4368

Change-Id: I920671869fdb8815521173e2ec5ab3a4b905ec19
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-05-28 11:23:44 +02:00
Mateusz Hoppe
23ad10731b Refactor hardware context programming
- expose programHardwareContext in CSR

Change-Id: I05caa352e3b7268c3e07edd6043316ecbb24f815
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-05-28 10:34:24 +02:00
Maciej Dziuban
639a5a64cd Add getAllocationDataExtra method
Change-Id: I99d9d55bf1b4116d7766f86471f6cd716374be5c
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2020-05-28 10:18:04 +02:00
Piotr Maciejewski
79c14983cb Sending Metric Tracer activity flag to Metrics Library.
Needed to make Metrics Library aware of Metric Tracer presence.

Change-Id: I3e3108e6b303adfcf5ab56ccadc2a8acc58f7ff5
2020-05-28 09:55:32 +02:00
Bartosz Dunajski
d5875b05e1 Use sizeof(COMMAND_BUFFER_HEADER) for Wddm queue submission
Change-Id: I01713f3772d25a7389c547ef412304712d60bbe0
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-05-28 09:38:07 +02:00
Mateusz Jablonski
1efa54edcf Add MultiGraphicsAllocation class to store multiple graphics allocations
Related-To: NEO-4672
Change-Id: I01c758b0a9b80e3087011b74bbf04ec2bfc23b19
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-05-28 08:21:19 +02:00
Jaime Arteaga
5b0a2ee09b Add support for specialization constants in Level Zero
Change-Id: Ifc1255365f4f25e83c5c6128f2ea4d8994e0ae8b
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-27 19:18:45 +02:00
Katarzyna Cencelewska
389e751cc1 Add new function setFilterMode
Change-Id: Ieebb851e739fe4568658c48ae4f416fc5902385b
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2020-05-27 19:18:06 +02:00