Commit Graph

200 Commits

Author SHA1 Message Date
Katarzyna Cencelewska
f4759425b9 Modify makro HWTEST2_F and HWTEST2_P
to not call SetUp and TearDown when not matched

Change-Id: I00b43a738fa3b33ba743f4f92f8ee16674bf9a50
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2020-05-23 14:10:46 +02:00
Maciej Plewka
89195ca4a3 Add support for copy images by bliter
Change-Id: I0082fafb3363c6c6eb6973e5e35fa4d3ba1b6465
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-05-22 17:24:34 +02:00
8tab
7937da71f6 Fix build with USE_ASAN=ON
Signed-off-by: Mateusz Tabaka <tab.debugteam@gmail.com>

https://github.com/intel/compute-runtime/pull/314

Change-Id: I2b699df3f158b961a1a329fb81de8cd7115d06bc
2020-05-22 13:17:50 +02:00
Robert Krzemien
9b3dd97f81 Passing drm file descriptor to Metrics Library
Change-Id: I16b566ba262e0eeff9cb62b2a6ecc48811cdee48
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-05-21 18:33:51 +02:00
Maciej Plewka
9131eeca09 Add MI_FLUSH for eventReset in copy only cmdList
Change-Id: I276ec874069e075e1712d813530ba64ab712262a
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-05-21 16:19:32 +02:00
Jaime Arteaga
42200bf7f3 Correct tidy issues
Change-Id: I3421f825c3f688491390d2c0305ff02b13fdcbec
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-20 16:17:24 +02:00
Jaime Arteaga
b2688554ce Correct alignment of events
Change-Id: I967bb5e201df5b881c4d1914d74258e6ceda373f
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-19 23:27:22 -07:00
Jitendra Sharma
68084042e5 add support for zetSysmanTemperatureGetState
-- add ULT support to validate temperature APIs.

Change-Id: I32bb576f81859f0f7ee22f9a63b0d1a8f192f790
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-05-20 07:50:49 +02:00
Jaime Arteaga
8ce44b0689 Expose devices according to ZE_AFFINITY_MASK
Change-Id: Ic8025a818b006c25f790688ef51bda6eeb4f03ad
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-19 19:35:46 +02:00
SaiKishore Konda
80f9b5e45a add support for zetSysmanPowerGetEnergyCounter
-- add ULT support for power

Change-Id: I37ebebb62c3433a1efe106d6b6546955a2d6effb
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-05-19 19:20:36 +02:00
Jitendra Sharma
135851e218 Fixes for APIs zetSysmanDeviceGetProperties and zetSysmanProcessesGetState
This change:
 - Fixes the problem of last character truncted from strings returned
   by zetSysmanDeviceGetProperties() API.
 - Fix ULT to validate them.
 - Return UNSUPPORTED_FEATURE in case zetSysmanProcessesGetState()
   fails to find required sysfs nodes in filesystem.

Change-Id: I4b18688c13b1971a1654a41a5a0ef1949330ed10
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-05-19 18:47:41 +02:00
Jacek Danecki
844a3e7f75 doc: update distributions lists
Change-Id: I6abfc8b481d2fb9add2145d96dec3e711c93cd34
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>
2020-05-19 13:44:11 +02:00
davidoli
a1c06bd8c8 Add code for GTPin handshake at init time.
Change-Id: I1f572d9e036d4d5b5c6999518d40c9c4ba094649
Signed-off-by: davidoli <david.olien@intel.com>
2020-05-18 21:18:03 +02:00
Mraghuwa
b9b34659c8 Redesign ULT by mocking sysfs and implementing for frequency
Change-Id: I5979132fc775fe227ed83f4d49f932f4ce2800cc
2020-05-15 22:36:40 +02:00
Piotr Maciejewski
8f70ba916a Disable Metrics Library after Metric Tracer usage.
Metric Tracer can use Metrics Library to generate gpu commands 
for Metric Tracer marker. Closing Metrics Library will force it to reintialize,
so Metric Query can use Linux time based sampling stream exclusively 
(needed to activate metric set or to obtain context switch/triggered reports).

Change-Id: I3105febfbbd78b537ef0688d1b9c08ab54f9a875
2020-05-15 22:13:18 +02:00
Jitendra Sharma
e61136d9bd Fix invalid case style clang-tidy warning
Fix clang tidy warning reported, by modifying get_prop_length()
to getPropLength().

Change-Id: Ib3fc49b49f93cd7900e2556098ca64c2afe7014b
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-05-15 22:07:38 +02:00
kamdiedrich
caef990788 Silence clang-tidy
Change-Id: I56abcad79d59164d2f7bf906fb34b0c8b4c03c13
2020-05-15 10:46:39 +02:00
Mraghuwa
070c9b060b Redesign ULT by mocking sysfs and implementing for standby
Change-Id: Id2558122406f23e96e3115d57e7b82d04463bfc4
2020-05-14 19:41:28 +02:00
Jitendra Sharma
596c1a8e70 Implement zetSysmanProcessesGetState API
This change does the following:
 - Implement API zetSysmanProcessesGetState.
 - Implement ULT to validate zetSysmanProcessesGetState's implementation
 - Redesign ULTs for zetSysmanDeviceGetProperties to mock only OS specific
   classes, and validate zetSysmanDeviceGetProperties's implementation end
   to end.
 - Some bug fixes in code that are caught by these new ULTs

Change-Id: I4a83789771d32978576ff62859628df2c0c795ad
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-05-14 19:33:46 +02:00
Vinod Tipparaju
c98949fd37 Fix thread safety violations within runtime allocators
Change-Id: I925d15429de314e3d3287f41a054732181911851
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com>
2020-05-14 16:27:55 +02:00
Mateusz Hoppe
ac426b5108 TBX csr downloads allocations on queryStatus calls
Change-Id: I57fd98f4227b6d03430db6b96cfd21dd726919a3
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-05-13 16:28:19 +02:00
Piotr Maciejewski
982c26202b Metric query/tracer fixes.
1. Disable oa configuration cache on Linux.
2. Do not allow to create mertic query during tracer usage and vice versa.

Change-Id: I139416a92ac8604c8b46b254b533abf6038c2351
2020-05-12 22:58:22 +02:00
Jaime Arteaga
415954e7a7 Correctly use debug variable for enabling copy lists and queues
Change-Id: If7dd67e6d2f2aa49f15ca6ce0e6b2dac6ff8e04e
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-12 21:16:01 +02:00
Jitendra Sharma
fe719f2665 Redesign ULT by mocking sysfs and implementing for scheduler
- Redesign the ULT to implement OSSpecific ULT by mocking only sysfs
- Fixing the Engine type "RCS" to use by default

Change-Id: I551374ab02da03fe2e4168fd6a30aa8ccaf3dd3e
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-05-12 21:02:45 +02:00
kamdiedrich
080609e174 Add flush after write to CPU memory
Change-Id: I199c8b203f1afdf648f6520f13b0498efb760c84
2020-05-12 20:34:28 +02:00
SaiKishore Konda
fda985aa0e Engine OSspecific ULT implementation
- by Mocking sysfs class and implementing OSSpecific(Linux)

Change-Id: I2eabf24e44e92b72e73bc323206776440b330b83
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-05-12 18:18:37 +02:00
Filip Hazubski
6df11b5201 Enable OpenCL 3.0 enums by default
Related-To: NEO-4368

Change-Id: I3547d0adb47a870b33191b5c2356ad625d2a04c5
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-05-12 13:35:41 +02:00
Bill Jordan
b3b67c39b3 Implement zetSysmanFrequencyGetAvailableClocks.
Change-Id: Idb8e9edd89f3d3e228fb51501ae51a872bb60d23
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-05-08 19:03:03 +02:00
SaiKishore Konda
7c1eaadf50 Engine Sysman APIs using RCS Engine
- Fixing the engine sysfs node path
- Using default engine as RCS (compute) engine for engine APIs
- Updating the ULT for the same

Change-Id: If11aea422ac7e73b7f5fd0bc30d0918915d73848
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-05-08 18:15:24 +02:00
Jaime Arteaga
ac443acbc9 Create Level Zero command queue based on queue desc ordinal (2)
Improve ULTs

Related-to: NEO-4590

Change-Id: I73a554d25f1cbce93d7ed6b356a495951204d09a
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-08 17:31:42 +02:00
kamdiedrich
fa8a5d6451 Add programming crossThreadData for image and sampler
Change-Id: I3322548c60e11d0d0bf2f2b5d76f5932032fe569
2020-05-08 10:02:10 +02:00
Aravind Gopalakrishnan
d176462fb0 Use memcpy for getting and setting event values
Direct pointer dereference may not yield expected results

Change-Id: I872dd837ae21bc8a0e1833527cc9a8791cad5295
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
2020-05-07 16:03:16 -07:00
Jaime Arteaga
77791ba889 Create Level Zero command queue based on queue desc ordinal
And correctly return the number of engines available.

Related-to: NEO-4590

Change-Id: I637b3a94473e146003ea5e1c86d38e311406ce7e
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-07 12:10:54 +02:00
kamdiedrich
b7e65150d3 Add the missing keyword and ASSERT
Change-Id: I74f371a4cf7dec808e9bf6ecffbda578e93ef5fd
2020-05-07 11:46:12 +02:00
Katarzyna Cencelewska
ae17fdf63b Add tests for builtin to L0
Change-Id: Ic6ab3dd6b249b339412c71d2d393dbf34e45371d
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2020-05-07 10:25:46 +02:00
Mateusz Hoppe
ef4fae3903 Enable TBX mode in level zero
RelatedTo: NEO-4644

Change-Id: I76913d6b7c7d978a5a90a7a574778c67283497c1
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-05-06 16:33:15 +02:00
Jaime Arteaga
0c1282ab82 Add levelZeroSupported field to RuntimeCapabilityTable
So initialization fails gracefully when Level Zero is
executed in unsupported platforms.

Change-Id: I06bd9f00260ebb1266108bd4ccee7abbc9275200
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-06 07:59:46 +02:00
Mraghuwa
562e45db81 Add sysman ULT for level zero
Change-Id: I3fafb5efb03a933ea27f43c1954497791e862115
2020-05-06 03:16:58 +02:00
Raiyan Latif
031ea89465 Return silently when memory hint/prefetch unsupported for alloc type
Change-Id: I26324d47358ebcfe2d5af9e4fb22448e7e453d15
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2020-05-06 01:18:43 +02:00
Jim Snow
f0c7f5f5de Propagate errors in ModuleImp::createKernel
Change-Id: I71612013e27315841103ceaf1de9ea11c1876ac6
Signed-off-by: Jim Snow <jim.m.snow@intel.com>
2020-05-05 11:56:28 -07:00
Maciej Plewka
35d9b4365b Return correct engines count in device properties
Change-Id: Ic1272973fd0f5340ac3c2ade43f59021f54f424b
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-05-05 17:04:52 +02:00
Mateusz Hoppe
4c23b60b30 Refactor setArgBufferWithAlloc, add zello_world blackbox test
Change-Id: I793f960582ce8c066dedd466befcbf534d6d7ddc
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-05-05 14:41:45 +02:00
kamdiedrich
70c39ec57b Add re-mapping for hostPtr for copyRegion
Change-Id: I40db767a9bca7bc9a19ce6b5f760db62605bdb96
2020-05-05 10:19:20 +02:00
Jaime Arteaga
a6a8a69f4c Return build number in Level Zero driverVersion
Change-Id: I5c1790b291fe536801bfe4aa5f9ac9b7ed230f66
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-05 10:04:25 +02:00
Aravind Gopalakrishnan
b42d789e04 Fix event sizing for kernel timestamps
Standardize the format for kernel timestamps
and logic used to read the data.

Change-Id: I9418c2e09987dc778302026b705d056c84996983
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
2020-05-05 00:34:59 +02:00
Jaime Arteaga
2b663dda11 Execute Level Zero Tools ULTs on each build (2)
-Remove duplicated gen folders.

Change-Id: I2789b52c61382ca6b4e3b400f3a99626ebb71d0e
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-05-04 16:34:21 +02:00
Lukasz Jobczyk
536c50234f Pass linear stream to encode MMIO
Change-Id: I07bafc49676e31fb457a63f4655a98fd0c793389
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2020-05-04 14:48:49 +02:00
Filip Hazubski
22f9893495 Add debug flag to override device enqueue support
Enabling the new debug flag will disable support of device enqueue feature.

Related-To: NEO-4368

Change-Id: Icd17b44986bb682873364a2603633b7e44723a06
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-05-04 11:01:14 +02:00
Vilvaraj, T J Vivek
98c6e85ae9 fixes for RAS implementation class
- add default constructor
- fix init function to be a public method

Change-Id: I9e9c3c0d1305497f030f44a1f50b2499b93d3e0c
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-05-01 21:25:48 +02:00
Jaime Arteaga
e9b93010cc Some cleanup in Level Zero metrics
Change-Id: Ib9818eebdae8550973a75f44182480ca7412f6b6
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-04-30 21:16:23 +02:00