Commit Graph

77 Commits

Author SHA1 Message Date
Jitendra Sharma b558c9ca30 Retrieve Temperature for multiple sensors
Create two handles for Global and Compute temperature
sensors.

Change-Id: I5da90135a803df71372c9c4be9dc891ca64fc214
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-06-16 05:52:14 +02:00
Jitendra Sharma 8dff60b6a5 Report correct PCI width from API zetSysmanPciGetProperties
If system reports incorrect PCI width, then check width against valid
value, and report correct PCI width accordingly.

Change-Id: I56f8fe96785ccd22032860d55dd96b81d5fc53f7
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-06-08 19:34:51 +02:00
SaiKishore Konda 16ee26f20d Add support for zetPowerGetEnergyCounter
Change-Id: I497e025690401ced668d653db4e0052852b6e570
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-06-08 17:40:49 +02:00
Mraghuwa 46b069b9d0 Redesign ULT by mocking sysfs and implementing for memory
Change-Id: I24206628212284f180fe4e5a239ab2ed58ffa8ea
2020-06-04 23:07:42 +02:00
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
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
Mraghuwa b6ccfed471 Redesign ULT by mocking sysfs and implementing for pci
Change-Id: I5ee2219208d05c125d1fce1a4a5b992bc8c4646e
2020-06-02 08:46:10 +02:00
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
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
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
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
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
Mraghuwa b9b34659c8 Redesign ULT by mocking sysfs and implementing for frequency
Change-Id: I5979132fc775fe227ed83f4d49f932f4ce2800cc
2020-05-15 22:36:40 +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
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
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
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
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 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
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
SaiKishore Konda f5211fa0bd Add Level zero Tools Sysman Engine ULT
Change-Id: I16b1cc695f729be71a5e8218b0c9363bf314f050
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-30 16:24:19 +02:00
Jaime Arteaga 1401b45018 Execute Level Zero Tools ULTs on each build
Also:
-Remove files already available in core ULTs, to avoid
duplication of code.
-Add a simple ULT for sysmanGet.
-Remove carriage-return symbols from tools/test/unit_tests/CMakeLists.txt.

Change-Id: Iab53ea3a5d8228dcf3d749dbed9f4bf35b5f4d26
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-04-28 17:24:30 +02:00
Mraghuwa 5426b34ea9 Add Tools ULT for level zero
Change-Id: Id4625b9c3fdadfb164d51a96a94af2dc0b49fa4b
Signed-off-by: Mraghuwa <mayank.raghuwanshi@intel.com>
2020-04-25 20:38:45 +02:00