Mateusz Hoppe
95b9880385
Add initialize() to DebugSession
...
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-04-01 16:51:31 +02:00
vinod krishna
8db55b246b
ULT for GetMetricType
...
Resolves: LOCI-2163
Signed-off-by: vinod krishna <vinod.krishna@intel.com>
2021-04-01 07:18:40 +02:00
Jitendra Sharma
022f139bd5
Add ult for uncovered branches in Sysman memory API and PMT interface
...
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-03-30 20:29:32 +02:00
vinod krishna
9cbfbd1d53
Functional ULT Coverage for LoadMetricDiscovery
...
Resolves: LOCI-2164
Signed-off-by: vinod krishna <vinod.krishna@intel.com>
2021-03-29 19:17:30 +02:00
Kamil Diedrich
7d64d8e00e
Unify reading pci paths
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2021-03-29 15:59:09 +02:00
Mayank Raghuwanshi
a9ab9f0789
Fix for absence of busy node for clients
...
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-03-29 14:20:27 +02:00
Mayank Raghuwanshi
027a916107
Improve code coverage for Pmu Interface
...
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-03-26 09:08:52 +01:00
Jaime Arteaga
0dc73ad686
Isolate host allocations with respect to context
...
Related-To: LOCI-1996
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-03-25 06:15:59 +01:00
Mayank Raghuwanshi
d89b51edd3
Update sysman events API for bug fixes
...
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-03-23 09:34:42 +01:00
Mayank Raghuwanshi
faac0a82ef
Update pmu interface
...
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-03-22 14:31:31 +01:00
Mateusz Hoppe
1544c6d001
Split getDebugSession and createDebugSession logic
...
Related-To: NEO-4554
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-03-19 15:38:36 +01:00
Vilvaraj, T J Vivek
9ed68131c3
sysman: add ULT to check Device Reset
...
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2021-03-19 05:41:35 +01:00
Vilvaraj, T J Vivek
457d05420d
sysman: add diagnostics boilerplate code
...
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2021-03-19 05:33:20 +01:00
Jitendra Sharma
249f7e45cc
Adding more features to Sysman's memory and Temperature APIs
...
This change -
- Add support for memoryGetBandwidth API
- Update temperature offsets
- Update ULTs accordingly
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-03-15 18:01:52 +01:00
Piotr Maciejewski
aa05b5adb4
L0 and Ocl Metric Api sub device support
...
Signed-off-by: Piotr Maciejewski <piotr.maciejewski@intel.com>
2021-03-15 17:14:55 +01:00
davidoli
2a4f00fd5e
Add Windows metrics ULTs
...
Signed-off-by: davidoli <david.olien@intel.com>
2021-03-05 07:32:41 +01:00
Aravind Gopalakrishnan
db892eaa95
Revert "Use device allocation for events if host visibility not set"
...
This reverts commit b204a4f135
.
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2021-03-05 03:31:17 +01:00
Mateusz Hoppe
6356de6511
Add debug api handlers 2
...
Related-To: NEO-4554
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-03-04 12:45:40 +01:00
Vilvaraj, T J Vivek
1bf331c282
sysman:add ULT to Global operations
...
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2021-03-02 21:28:40 +01:00
Mayank Raghuwanshi
0f973f146e
Implement zesRasGetConfig and zesRasSetConfig
...
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-03-02 16:07:01 +01:00
Adam Cetnerowski
0c035cfcc9
ULT renaming: Sysman Memory tests
...
Related-To: NEO-2236
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2021-03-02 15:24:48 +01:00
Adam Cetnerowski
6a543a15e1
ULT renaming: Sysman Linux tests
...
Related-To: NEO-2236
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2021-03-02 11:35:36 +01:00
Adam Cetnerowski
ce33aafbcb
ULT renaming: Sysman Misc tests
...
Related-To: NEO-2236
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2021-03-02 11:35:23 +01:00
Mateusz Hoppe
a4102fb812
Add subdirectories in blackbox tests Cmakelists.txt
...
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-03-01 15:49:46 +01:00
Mateusz Hoppe
8f87dfaf0c
Add Debug API handlers
...
Related-To: NEO-4554
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-03-01 15:26:43 +01:00
Jaime Arteaga
d69ffd3641
Revert "Revert e94c942ecb90cd9fa21aa5729c0c0a7ec22ba768"
...
This reverts commit 71805fd61a
.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-02-25 19:16:48 +01:00
Compute-Runtime-Validation
71805fd61a
Revert e94c942ecb
...
Have Tools and Sysman Process Address Tables fail on mismatched versions
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2021-02-25 10:55:56 +01:00
T J Vivek Vilvaraj
2bcbaa294a
sysman: improve coverage of firmware API
...
added ULT to check for nullptr dereference.
Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-02-22 18:48:41 +01:00
Mayank Raghuwanshi
0cc71827ee
Update pmt telemetry node
...
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-02-19 07:14:13 +01:00
Jaime Arteaga
e94c942ecb
Have Tools and Sysman Process Address Tables fail on mismatched versions
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-02-16 20:50:44 +01:00
Daniel Enriquez
e88ef75c57
Implementing Reset Device Level 0 Sysman Windows
...
Enabling Device Reset for Windows.
Signed-off-by: Daniel Enriquez daniel.enriquez.montanez@intel.com
2021-02-12 03:41:48 +01:00
Pawel Cieslak
8a700c5187
Move non-ult shared files to single directory
...
Add SKIP_SHARED_UNIT_TESTS flag
Related-To: NEO-5201
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2021-02-10 21:03:13 +01:00
Artur Harasimiuk
03ab61c8e8
unit tests cleanup
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-02-10 13:52:30 +01:00
Aravind Gopalakrishnan
b204a4f135
Use device allocation for events if host visibility not set
...
Related-To: LOCI-1684
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2021-02-09 16:12:24 +01:00
T J Vivek Vilvaraj
31a04b4708
sysman: add support to handle multiple firmwares
...
Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-02-08 20:32:47 +01:00
Jitendra Sharma
3597093758
Update Temperature APIs to get correct temperature
...
This change updates Temperature APIs to get correct current
temperature based on updated PMT interface.
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-02-06 18:39:58 +01:00
Adam Cetnerowski
13961eea3f
ULT renaming: Miscellaneous Level Zero and Sysman tests
...
Related-To: NEO-2236
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2021-02-02 11:54:59 +01:00
Daniel Enriquez
3aff89199d
L0 Sysman Windows DG2 Readyness Patch.
...
Implemented Fan Curve, Moved to OAG Counters, Fixed Frequency Range.
2021-01-30 05:59:27 +01:00
Adam Cetnerowski
3574858c6c
ULT renaming: Sysman Manager tests
...
Related-To: NEO-2236
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2021-01-26 14:48:24 +01:00
Adam Cetnerowski
b567da4819
ULT renaming: XML Parser tests
...
Related-To: NEO-2236
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2021-01-26 13:10:50 +01:00
Adam Cetnerowski
a742791f0e
ULT renaming: PCI tests
...
Related-To: NEO-2236
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2021-01-26 10:35:56 +01:00
Adam Cetnerowski
992e69592b
ULT renaming: Sysman Memory tests
...
Related-To: NEO-2236
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2021-01-26 08:10:40 +01:00
Adam Cetnerowski
147dc0fbc8
ULT renaming: Global Operations
...
Related-To: NEO-2236
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
2021-01-25 01:51:39 +01:00
Vilvaraj, T J Vivek
b41a8d29dd
Sysman: add firmware flash API ( #1368 )
...
* Sysman: add firmware flash API
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
* Sysman: fixed windows implementation of firmware flash API.
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
* add unit tests to test flashing.
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
* sysman: add firmware flashing support to zello sysman
Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
* sysman: added progress update function to firmware flash API
Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-01-22 19:55:40 +01:00
Mayank Raghuwanshi
5cd5705239
Implement clear option for zesRasGetState
...
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-01-21 15:00:13 +01:00
William Jordan
bcd4e38eca
Add subdirectories to unit tests for fabric ports.
...
Signed-off-by: William Jordan <bill.jordan@intel.com>
2021-01-21 02:28:55 +01:00
Pawel Cieslak
26fcdf7599
Add SKIP_L0_BLACK_BOX_TESTS flag
...
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2021-01-20 11:21:48 +01:00
Jitendra Sharma
a931ce24fe
Remove DG1 directory from Sysman Power API implementation
...
As there is no need to keep Sysman's power API's OS specific code
in DG1 folder. So, lets remove that DG1 directory.
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-01-18 01:13:32 +01:00
Piotr Maciejewski
4a5599b1ee
L0 Metrics Api: multi adapter support
...
Switching to Metrics Discovery adapter interface.
2021-01-13 22:45:59 +01:00
Daniel Enriquez
bb5d252c4d
Sysman for Windows: Fix timestamp units for power and engines.
...
Returning now in usecs as the documentation state it should be.
2021-01-07 03:30:47 +01:00
Jitendra Sharma
73c7ebdfb8
Add support for performance factor Sysman API
...
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-01-06 12:03:36 +01:00
Jitendra Sharma
ea6e2982fb
Query free memory info inside zesMemoryGetState API
...
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-12-26 02:32:49 +01:00
Kanhaiya Singh
9ff19c5fbd
Handling for invalid event argument
...
Signed-off-by: Kanhaiya Singh <kanhaiya.singh@intel.com>
2020-12-23 11:25:38 +01:00
Vilvaraj, T J Vivek
bddc63e8bd
add firmware flashing utility interface
...
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-12-22 09:10:11 +01:00
William Jordan
b04cd08cc8
Add netlink and gen netlink library loader.
...
Netlink and generic netlink are standard linux
interfaces to allow management traffic between
user space and kernel subsystems over sockets.
This patch adds a loader for the generic netlink
library to allow Level 0 Sysman to manage
linux hardware that implements the generic
netlink interface. ULTs updated.
Signed-off-by: William Jordan <bill.jordan@intel.com>
2020-12-18 22:19:27 +01:00
Konstanty Misiak
e665111013
Verify debug manager state in UltConfigListener
...
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
2020-12-18 14:18:36 +01:00
Mayank Raghuwanshi
328ef7a6f6
Update zello sysman for ras module
...
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2020-12-16 15:25:01 +01:00
Daniel Enriquez
b83922ecdb
Fix energy counter precision for Sysman in Windows.
...
Conversion to mJ was faulty and losing precision, this fix the problem.
2020-12-16 09:43:15 +01:00
Artur Harasimiuk
05ab806126
cmake: refactor unit tests targets dependencies
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2020-12-14 14:57:42 +01:00
Jitendra Sharma
f514fd7b35
Adding some more ULTs for sysman Engine
...
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-12-12 08:53:51 +01:00
Mateusz Hoppe
d3f3730989
Refactor L0 core tests
...
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-12-09 17:51:15 +01:00
wpjordan
ab14df5aa6
Revert "Add netlink and gen netlink library loader."
...
This reverts commit 864f069b8f
.
2020-12-08 20:41:09 +01:00
Mayank Raghuwanshi
29254cb683
update <pid> case for zetSysmanProcessesGetState
...
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2020-12-08 19:55:03 +01:00
Kacper Nowak
4804eca86d
Refactoring Level Zero ULTs in order to use standalone spirv builtins
...
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2020-12-08 09:19:05 +01:00
William Jordan
864f069b8f
Add netlink and gen netlink library loader.
...
Netlink and generic netlink are standard linux
interfaces to allow management traffic between
user space and kernel subsystems over sockets.
This patch adds a loader for the generic netlink
library to allow Level 0 Sysman to manage
linux hardware that implements the generic
netlink interface. ULTs updated.
Signed-off-by: William Jordan <bill.jordan@intel.com>
2020-12-08 01:40:25 +01:00
Artur Harasimiuk
294624e03b
Revert "Add netlink and gen netlink library loader."
...
This reverts commit 660ad6a1f3
.
2020-12-01 17:52:52 +01:00
William Jordan
4732a4e692
Level 0 Sysman FabricPort updates.
...
Add fabric port routines to zello_sysman.
Add subdevice support to FabricPort routines.
Update source paths for additional FabricPort development.
Signed-off-by: William Jordan <bill.jordan@intel.com>
2020-12-01 05:38:06 +01:00
William Jordan
660ad6a1f3
Add netlink and gen netlink library loader.
...
Netlink and generic netlink are standard linux
interfaces to allow management traffic between
user space and kernel subsystems over sockets.
This patch adds a loader for the generic netlink
library to allow Level 0 Sysman to manage
linux hardware that implements the generic
netlink interface.
Signed-off-by: William Jordan <bill.jordan@intel.com>
2020-11-30 20:18:25 +01:00
Krzysztof Gibala
baea633bdd
Correct logic in MultiRootDeviceFixture
...
Related-To: NEO-4589
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2020-11-27 16:22:39 +01:00
Vilvaraj, T J Vivek
53b1dded2f
Sysman zesPowerGetProperties() implementation.
...
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-11-24 11:48:37 +01:00
Aravind Gopalakrishnan
223de6dd8c
Revert "Use device allocation for events if host visibility not set"
...
This reverts commit 2c312bc70a
.
Reverting due to failures in CI
2020-11-20 21:21:11 +01:00
Aravind Gopalakrishnan
2c312bc70a
Use device allocation for events if host visibility not set
...
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2020-11-19 22:51:04 +01:00
Jitendra Sharma
514b191bb6
Add support for sysman event ZES_EVENT_TYPE_FLAG_MEM_HEALTH
...
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-11-19 17:38:02 +01:00
Jitendra Sharma
4c55491dc1
Update Sysman Memory APIs
...
This change:
- Currently for all subdevices in LinuxMemoryImp::getState function,
free and size values are returned similar values. This change fixes this
issue and now correct value of size and free memory is returned as
per subdevice.
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-11-19 08:27:14 +01:00
Daniel Enriquez
a116d454fe
Sysman: Enabling events for Windows
...
Enabling events for Sysman in Windows Os Specific path HAL.
2020-11-17 16:37:19 +01:00
Mayank Raghuwanshi
9c1739c095
Update zesFrequencyGetState and zesFrequencyGetRange
...
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2020-11-13 06:04:50 +01:00
Vilvaraj, T J Vivek
e096e5b0f8
fix CmakeLists for sysman frequency
...
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-11-11 17:32:43 +01:00
Jitendra Sharma
f4158e10ff
Add support for DEVICE_DETACH and DEVICE_ATTACH sysman events
...
Change-Id: I2da57ec50a0f3e87499660d37fa248a06f9fdb08
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-11-04 03:31:32 +01:00
Jitendra Sharma
17970ad5e7
Add sysman handles for subdevice only after subdevices are created
...
Move location of assigning sysman handles, such that sysman handle
will be assigned to device and then assign that sysman handle
to subdevices of that device.
Change-Id: Ia606954a866c491e45803b903c8419ee09b1a939
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-10-30 09:45:08 +01:00
mraghuwa
4e4affe53b
Modify tdp sysfs path
...
Change-Id: Ie387a96f67b5760d8f1e359eea61c66aec631afd
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-10-29 10:33:23 +01:00
mraghuwa
978003e96e
Add subdevice support for RAS module
...
Change-Id: Iced5aeed86d6b19a4710992155257e420ae1296f
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-10-27 17:54:29 +01:00
Mrozek, Michal
f53a6acb7f
Revert "Use device allocation for events if host visibility not set"
...
This reverts commit 27e2c32daa
.
Change-Id: I8035aad67a1aa1ed37d95a9bcd4354a64d75ac07
2020-10-26 00:21:27 -07:00
Aravind Gopalakrishnan
27e2c32daa
Use device allocation for events if host visibility not set
...
Change-Id: I244cfd617ae77a88dd2f4e5818d39ac7e658b216
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
2020-10-23 22:28:45 +02:00
Jitendra Sharma
6cce17e9a0
Add boiler plate support for sysman event API
...
Change-Id: I046620abb9943b2283215a5d2d85d71dcb8b98be
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-10-21 10:20:00 +05:30
mraghuwa
a8a013b0c3
Implement zesRasGetState to retrieve cache errors
...
Change-Id: I9fbba505db6551f510cb20ea71604af53db61960
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-10-20 15:45:36 +02:00
Bill Jordan
ccd5abfbfd
Add zesDeviceReset ULTs.
...
This patch adds two ULTs.
Verify that an IN USE error is returned if the device is open by another
process.
Verify that reset succeeds if device is not in use.
Verify that reset with force succeeds if device is in use.
Verify that reset without force succeeds if device is opened during
reset, and process is killed.
Verify that reset with force fails with device in use
if device is opened during reset, and process will not die
Change-Id: I232572c192bc481d8d63ef39c7494976100325ff
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-10-19 15:01:19 +02:00
Robert Krzemien
1bf270a804
Metric Api: Use 32-bit streamer marker value
...
Change-Id: I8488a93aa3e27828cef9da090e41e6384270cc99
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-10-16 09:15:54 +02:00
Vilvaraj, T J Vivek
113a5170b1
Implement zesDeviceGetState() API
...
Change-Id: I035bdd0ddd7b8bdf6054c743a9f2723ee292a897
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-10-12 14:27:19 +02:00
Kanhaiya
872049978a
Fix TDP/REQUEST reading
...
Change-Id: I7b4f2f176696a4f4636934accebf71ed3285427c
Signed-off-by: Kanhaiya <kanhaiya.singh@intel.com>
2020-10-09 16:38:48 +02:00
mraghuwa
2643346b48
Update Sysman RAS Module
...
Change-Id: I2b99dae4336811ea4b539da48c1434657a9cf62a
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-10-09 08:23:19 +02:00
Jitendra Sharma
cfb1fec19a
Implement sysman power set/get limit APIs
...
Change-Id: I35232902cf96d20594adbd128064c362cf154711
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-10-06 17:33:11 +02:00
Kanhaiya
da3bc90df3
Cleaning the zello_sysman.
...
Change-Id: If9eef0404b0b3f550ad222e148923fda8367bdbd
Signed-off-by: Kanhaiya <kanhaiya.singh@intel.com>
2020-10-06 16:57:55 +02:00
Maciej Plewka
4dc3827b8e
Prepare object lib for precompiled builtins in bindless mode
...
Releated-To: NEO-5138
Change-Id: I18e564a9e32041fba5e887bc18d2195a1c4ddda8
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-10-06 16:57:11 +02:00
Jitendra Sharma
1962a89b05
In Sysman fix C++ programming warnings
...
Fix warnings related to unused/uninitialized variables etc.
Change-Id: I2e75ede434442d7b99d6e28253e7811aac205323
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-10-06 16:35:53 +02:00
Bill Jordan
909107cab6
Fix zesDeviceReset for Spec version 1.
...
This patch does the following:
- Fixes a bug in FsAccess::listDirectory that could return
ZE_RESULT_UNKNOWN_ERROR when no error has occurred.
- Fixes a bug in zesDeviceReset that would reset the device
if force was set to false, even if the device was in use.
- Fixes a bug in zesDeviceReset that would reset the device
if force was set to false without closing the file descriptor.
- Added a releaseResources method method to Device object.
This method does the same thing as the DeviceImp
destructor except it does not free the DeviceImp object
and it does not free the SysmanDeviceImp object.
- Added the releaseResources methods to Mock<Device> object.
- Moved the reset of the debugger out of DriverHandleImp
destructor and into DeviceImp releaseResources.
- Added a releaseEngine method to the EngineHandleContext. This
method frees all the Engine handles.
- On reset, I call the Devcie->releaseResources and
EngineHandleContext->releaseEngines before resetting the device.
- Added a -r (--reset) option to zello_sysman so I
could easily test resets.
With these patches, the L0 Sysman CTS for zesDeviceReset
both pass.
Change-Id: I31fad1b27bc5cc6befe31cd6f9319748e2683424
2020-10-05 19:55:14 +02:00
mraghuwa
78feb47d6c
Add subdevice support for standby
...
Change-Id: I4209d11a8305ba524e56cddbee5ad3432b32554f
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-09-30 15:03:14 +02:00
Jaime Arteaga
3015b95752
Revert "Link zello samples to ze_loader"
...
This reverts commit d0e1d5cffb
.
Change-Id: Id66620e50e770492e4fa99e734eaf2b39729210f
2020-09-29 10:14:36 -07:00
Jitendra Sharma
77f88f9a96
Add Subdevice support for sysman scheduler API
...
Change-Id: I7b2222645d93346cfd3bfd3b6561dbe21154b61f
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-09-29 16:30:20 +02:00
SaiKishore Konda
e28f937683
Add SubDevice support for Sysman Memory module
...
Change-Id: Iec5918486fc2c00e14de074aca18e6de63ba1600
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-09-29 11:36:21 +02:00
Daniel Enriquez
2d27570292
Fix current voltage unit problem, returning Volts now.
...
Change-Id: I257e431f5dbc4d71191ce50750791746d8bba8d9
2020-09-29 01:48:35 -07:00
Jaime Arteaga
d0e1d5cffb
Link zello samples to ze_loader
...
And make L0 Core samples to be built on Debug, as it is with
zello_sysman
Change-Id: Ie1e6b0a766237006916769e7347fcd2219058e2b
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-09-28 20:09:35 +02:00
Kamil Diedrich
877a781696
Add engine type to commandList
...
Change-Id: I108fc027dd4698ebecb224c20b92f2b741698f3c
2020-09-23 09:46:53 +02:00
Daniel Enriquez
f0907361ff
Adding Frequency Support for Windows in Level 0 Sysman
...
Change-Id: I8dbf67b0a6f88379a3da304e01a8f102e2027dd1
2020-09-19 08:30:13 +02:00
Vinod Tipparaju
d2b218d82d
Return ZE_RESULT_OUT_OF_MEMORY when alloc on device fails during cmdlist create
...
Change-Id: Ia03e7ac190598c56de044d3ad8216087b8da94f2
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com>
2020-09-17 00:09:22 +05:30
Daniel Enriquez
dee1c687a9
Add Engines Support for Windows
...
Change-Id: Ibad56d39b563c543e8a23fa92cc9844c69a62352
2020-09-15 21:36:32 +02:00
Jitendra Sharma
e904a1f0b4
Create Sysman Frequency API handles based on available subdevice/device
...
Change-Id: I2049515150004551c3f61647d20f1df7b375f587
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-09-15 18:12:14 +02:00
Mateusz Hoppe
a5c556fe11
Create TestEnvironment in ze_intel_gpu_core_tests
...
Change-Id: I85306b59e220c34ee6b43790b59f5ad96ea51eca
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-09-11 09:53:58 +02:00
Vilvaraj, T J Vivek
933bb45dcc
Boilerplate Code for Sysman Firmware API
...
Change-Id: I8299bdf4b388bb05de7640240d033ba680e5ca14
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-09-08 10:47:17 +02:00
Jitendra Sharma
38ecb25ee6
Add support to query PMU counters
...
This change adds support to get engine active time and timestamp
from PMU interface.
Change-Id: I486dcce9fef3c7dc3f73fb8c7ea4c0bd020a6807
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-09-07 16:15:21 +02:00
Vilvaraj, T J Vivek
f211578148
add support for multiple engines in scheduler API.
...
Change-Id: I2d530f88b8f4c8646c00ed712e5a07bb8439b759
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-09-07 15:57:30 +02:00
Matias A. Cabral
0f020b6da7
New Sysman black box test
...
Sysman test to exercise Sysman APIs and show system info
Change-Id: I16c1d93eb73d54925a113bc6035100654764779c
Signed-off-by: Matias A. Cabral <matias.a.cabral@intel.com>
2020-09-04 03:49:17 +02:00
Vilvaraj, T J Vivek
831e87eef8
Sysman memory modification based on product.
...
Change-Id: I01f4c3cc6fe2376293d48131492f9d686fbdb5ae
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-09-03 21:41:04 +02:00
Daniel Enriquez
f891708e3f
Adding support for Fan component to Sysman.
...
Change-Id: I0b99bcd542396471b6eab3f9b0b215bedcde7640
2020-08-28 23:55:23 +02:00
Daniel Enriquez
c7037aca4d
Enabling Windows Pci component.
...
Change-Id: Idfd1acb8f257ab91dd28707f0b42b3da3981214e
2020-08-28 23:48:13 +02:00
SaiKishore Konda
8f52561307
Multiple engine support for Sysman Engine API
...
- multiple engines support for Sysman Engine API
- added engineQuery support
- opencl ULTs to validate engineQuery
- Sysman ULTs to validate engine APIs
Change-Id: I3b4d3a96a4cdca7dd9957f6a57f7b1bf900582d3
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-08-28 13:36:31 +02:00
mraghuwa
9f7a97ac5b
Return Unsupported feature when sysfs nodes are absent
...
Change-Id: I69c1447bb65e2be074d338e910223c3b8c2e9c55
2020-08-26 21:29:54 +02:00
Piotr Maciejewski
dcb5353200
Metric Api: execution query implementation.
...
Allows to skip workload execution between query begin / end.
Change-Id: Ice462f15eb828be1634d38027b7228f72dd96c55
2020-08-25 19:40:32 +02:00
Matias A. Cabral
9edbe1dd11
Do not check sysman env var in engine code
...
Change-Id: I40caa382024465ff3ca466369f152d0c1d6fac0a
Signed-off-by: Matias A. Cabral <matias.a.cabral@intel.com>
2020-08-24 10:21:19 +02:00
Piotr Maciejewski
c3790388b8
Metric Api: checking paranoid mode during zeInit
...
Change-Id: I9e53f5707a959a6a2f598995495c484b72ff1931
2020-08-20 22:49:57 +02:00
Pawel Cieslak
fb821f21f5
Cmake format script
...
Related-To: NEO-1157
Change-Id: Ie1b907e838cfb9ad0d75cc8971d415f7c77103c9
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2020-08-19 16:36:30 +02:00
Daniel Enriquez
c24c629cfc
Enabling Temperature for Windows.
...
Change-Id: I0a4e51448d56a083ae5ecbda5106db981f5cd028
2020-08-18 22:45:04 -07:00
Daniel Enriquez
d36c013acf
Enabling Power Component for Windows.
...
Change-Id: I67a170279994e5637e353c9eca9fff04fb02d87e
2020-08-18 18:59:39 +02:00
mraghuwa
4b8d4285d7
add getDeviceHandle() at OS specific level
...
Change-Id: I95fc24043f8f603d6270323b0f23a78f9d8ad2f1
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-08-18 17:11:22 +02:00
Daniel Enriquez
2fa30d7d6c
Update memory component to latest spec.
...
Change-Id: I766a3b87d240d26118cf72ea0717bc504784e764
2020-08-12 11:47:04 +02:00
Bill Jordan
4b0aad316f
Update zesDeviceReset to 1.0 Spec.
...
Change-Id: Idc55e9c06c4cd7cd366c4a1dd9af77e518c0bec3
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-08-12 08:41:17 +02:00
Vilvaraj, T J Vivek
e51cd6208f
Update implementation of zesDeviceProcessesGetState to add sharedSize
...
Change-Id: I88e1fa8185b00cfaffae47d511d33f7e453d8276
2020-08-11 00:01:54 +02:00
Robert Krzemien
0bb026f1f1
Metric Api ULT: check if report data struct is properly filled
...
Change-Id: If06650002746963081d6663122f486b4258afdc1
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-08-10 11:46:14 +02:00
Jitendra Sharma
f4742855d8
Update zesDevicePciGetBars API to report correct count of bars
...
This change does the following:
- As per latest spec, update zesDevicePciGetBars API to report
correct number of bars.
- Cleanup to remove environment variable check while creating
temperature handles.
Change-Id: I4f86210093e3d142183a01bef89417ef9d9fde9b
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-08-07 18:08:06 +02:00
Vilvaraj, T J Vivek
d49a7293e2
update Device APIs to lastest Spec.
...
Change-Id: Icda7d3315e0ce51afe4f3642d368197c78fc097f
2020-08-07 16:12:27 +02:00
Bill Jordan
8194520fe5
L0 Sysman Standby cleanup.
...
Change-Id: I8702a7ca08c8edc0da3089891499699ec8bd20d3
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-08-06 13:03:59 +02:00
mraghuwa
220c575850
Update Ras Api's as per latest spec
...
Change-Id: I29b77eee0832fcca6d989f9ef41b01b17232a91e
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-08-06 08:31:03 +02:00
Matias A. Cabral
237e2fe61f
Cleanup Sysman initialization
...
Change-Id: Idc1e13e1b1fd3928674d5f199665054dbab27a9b
Signed-off-by: Matias A. Cabral <matias.a.cabral@intel.com>
2020-08-06 06:28:21 +02:00
Jitendra Sharma
94a26db5ba
Update Scheduler APIs as per latest spec
...
Change-Id: Ia8558ab30c83f1e30dae94cc7eb489ea7a8897da
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-08-05 18:52:34 +02:00
Vilvaraj, T J Vivek
a6ea7ab7db
update Sysman PCI APIs to lastest Spec
...
Change-Id: Ie4daf2eb3596f05f824579eff3fe811ebb2f2032
2020-08-05 18:01:37 +02:00
Matias A. Cabral
990750d153
Enable ULTs for Sysman APIs ported to 1.0
...
Change-Id: I7ef425e6a076f8b26992a9a7cd4b2711e12f3a64
Signed-off-by: Matias A. Cabral <matias.a.cabral@intel.com>
2020-08-04 11:08:15 +02:00
Jaime Arteaga
902fc2f6c4
level-zero v1.0 (2/N)
...
Change-Id: I1419231a721fab210e166d26a264cae04d661dcd
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
Signed-off-by: macabral <matias.a.cabral@intel.com>
Signed-off-by: davidoli <david.olien@intel.com>
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
Signed-off-by: Latif, Raiyan <raiyan.latif@intel.com>
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2020-08-03 13:11:13 +02:00
Jitendra Sharma
b6e98c4eb4
Update Sysman engine APIs as per latest spec
...
Change-Id: I477435714a20f7a9c8fd4bb1ef6b852eeaabd5e2
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-07-31 10:37:57 +02:00
Piotr Maciejewski
403594fce0
Metric Api 1.0: context for zetMetricStreamerOpen.
...
Change-Id: Ib121d45cad6d84891eabe49273ea42a017c50be3
2020-07-31 10:04:46 +02:00
Piotr Maciejewski
e72246a74d
Metric Api 1.0 : Max value for zetMetricGroupCalculateMetricValues.
...
Change-Id: Ie9022630e71a4c2e6dadb76ca4ec87b38fd8dfa5
2020-07-31 08:53:27 +02:00
Spruit, Neil R
697fa86e2f
Update Metrics APIs to use new enums and structs
...
Change-Id: Ic7023a1b256073496e8686ce31ef3fe9a6bec37b
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
2020-07-31 00:25:17 +02:00
Vilvaraj, T J Vivek
7bc405a9b3
Update sysman standby APIs to support latest spec.
...
Change-Id: I7a605c538432b2117ba968f155e4665078abc94f
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-07-30 20:33:15 +02:00
Robert Krzemien
92ce66bee8
Metric Api: zetMetricQueryPoolCreateExt update
...
Change-Id: I0f8f804c492bccea79bfa36fd04ef87b08026703
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-07-30 20:30:04 +02:00
Jitendra Sharma
0931801830
Update sysman temperature APIs as per latest spec
...
Change-Id: I171c5afe33fa216097b175e335d90692abfefa24
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-07-30 11:20:28 +02:00
Bill Jordan
c64eab402e
Update all L0 Sysman getHandle routines to match spec.
...
Updated all the getHandle routines to use the following
algorithm:
n = min(*pCount, available)
if (*pCount == 0 || *pCount > available) {
*pCount = available;
}
if (pArrayn != nullptr) {
for(i = 0; i < n; i++) {
pArray[i] = handle[i];
}
}
Change-Id: I3b2a2170c2b52d1651bddae4f85f361fd86167a0
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-07-30 07:27:21 +02:00
Piotr Maciejewski
51e08dd07c
Metric Api 1.0: metric group properties
...
Change-Id: Ief58ef4cb13b2d3d2d6516c668e77bc78089ab17
2020-07-29 08:36:42 +02:00
Bill Jordan
396fcbb941
Move FabricPort implementation to L0 Spec version 1.0.
...
Change-Id: I7b123c2813beab1175965eb8272c96cdb7f7be27
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-07-28 22:39:59 +02:00
Robert Krzemien
7dc8bbc160
Metric Api: Wait events for zetCommandListAppendMetricQueryEnd
...
Change-Id: I6fdf470035c1fc1f44d66778ec35ec47d0521e4d
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-07-28 19:14:05 +02:00
Robert Krzemien
46c7fac0cc
Metric Api: zetContextActivateMetricGroups update
...
Change-Id: Ia3f38e8bfc6176063de36685e16e7a4a21f940c7
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-07-28 16:59:53 +02:00
Robert Krzemien
f87f05bf8d
Metric Api: Renamed MetricTracer to MetricStreamer
...
Change-Id: I7de16b230685201b0f91b227f17713c3cd49d497
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-07-28 11:21:10 +02:00
Daniel Enriquez
278505ca4d
Enable Windows Os Layer for Sysman
...
Adding KmdSysman with ULT
Change-Id: If080e6327171d3634a0c461c4169ea8c84461e13
2020-07-28 10:04:02 +02:00
Robert Krzemien
d76515a18d
Metric Api: Moved the initialization to zeInit
...
Change-Id: Ia390389e514facb3d81cc28d97bf017367e9f728
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-07-27 21:41:24 +02:00
Jitendra Sharma
70babc4b69
Update Sysman frequency API as per latest spec
...
Change-Id: I5bfdb5e5681e9cfa054f48cf8cc4fd8e76740958
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-07-27 18:31:07 +02:00
Bill Jordan
6fc66a82cb
More boilerplate for FabricPorts.
...
Added a FabricDevice object that all FabricPort objects have access
to. Although we don't provide library routines for the user to
access a FabricDevice level object, one exists. And the FabricPort
objects will need to coordinate with the device level object
to get perform operations.
Change-Id: Ief307a312187e8bc5c566bcf4af5b50ecc171aee
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-07-24 19:05:28 +02:00
Zbigniew Zdanowicz
ba14f9dc1f
Refactor mock commandlist
...
Change-Id: Id5cf913caf6b16880cf0040b552ecba1fe8033b3
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-07-24 18:32:01 +02:00
Piotr Maciejewski
cc8ad91e7f
Enable L0 Metric API unit tests.
...
Change-Id: I8b3835a477fb21d3980c91ee3e460ad8b6da94d4
2020-07-23 17:37:12 +02:00
Jitendra Sharma
a0c22dec2d
Update sysman power APIs to support latest spec
...
Change-Id: I4631a73c44d918db9421ceb394c71ffa8ca514ca
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-07-22 22:26:28 +02:00
SaiKishore Konda
be6ea36769
Implementing zetSysmanMemoryGetState
...
- zetSysmanMemoryGetState api Implementation
- Corresponding ULT for validation
Change-Id: I2dcd53af4dd0f7cd3e19f594d70fefe21d2206e7
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-07-22 14:10:14 +02:00
Jitendra Sharma
d13fdd32ad
Update latest Sysman headers and some fix in sysman ULTs
...
This change contains:
- Update the sysman headers as per latest spec.
- Use mock file descriptor 0 in Sysman ULTs:
Lets use 0 as mock file descriptor in sysman ULTs.
Because upon creation of a process in linux, by default file
descriptors 0, 1 and 2 are assigned to it.
Thus in /proc/<pid>/fd/ , there will be entries 0, 1 and 2.
By using 0 as fd, we will be sure, that call getFileName() in
LinuxSysmanImp::init() would succeed for ULT, because entry
/proc/<pid>/fd/0 would certainly be found in filesystem.
Change-Id: I1576e2bfc8b96a408294362ccaf9f289b2b84e69
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-07-22 09:52:10 +02:00
Bill Jordan
6e20dfafab
Added limited XML parsing capability to L0 Sysman using libxml2.
...
XML parsing for linux only, hanging off the OsSysmanImp object.
Change-Id: I473dc8dde0611cc13f38a2c0b59e839fced2e59e
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-07-16 12:12:45 -07:00
T.J. Vivek Vilvaraj
6224db771a
PCI driver fix for Discrete devices
...
Change-Id: I91e444c88b5e72463c7f181ece535da4150a2665
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-07-15 23:33:59 +02:00
Vilvaraj, T J Vivek
ce781fe9ce
Add Per Client Memory info to GetProcessState
...
Change-Id: Ifa181bce7701a97a46474f0668f0e6bf9d738ac3
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-07-14 21:07:37 +02:00
Pawel Cieslak
4b6f8b415e
Correct HeaderFilterRegex
...
Related-To: NEO-3963
Change-Id: I85c2076a00fa53df0f46b9227697cc7aa0cf2ba8
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2020-07-14 18:46:37 +02:00
Jitendra Sharma
92b15507b0
Initialize variables and validate pointers before actually using them
...
Change-Id: Iae6fbeac124e1a02da419f5071e1ebc292b390cf
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-07-14 11:17:58 +02:00
Jitendra Sharma
146fc900c3
Add initial sysman stub as per latest spec
...
Change-Id: I6f36b9faa21e05a6954de0b50ea01240539441d1
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-07-11 06:54:08 +05:30
mraghuwa
357fef0ff0
Refactor file access in sysman
...
Change-Id: I9603c96658430064a1d68b901586171c8ba52803
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-07-08 08:32:02 +02:00
Bill Jordan
c7d584b8ec
Added boilerplate implementation of Sysman FabricPort
...
Change-Id: Icb8db2b1bac7858fd07470506c17f5cc38f34581
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-07-07 13:42:02 -04:00
macabral
e08022e9c7
Support for Platform Monitoring Technology
...
Add support for Platform Monitoring Technology,
and read temperature and energy counters.
Change-Id: Ic2c79e902400148cc538267c498fc1d0185c81f8
Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
2020-07-02 19:41:06 +02:00
Jaime Arteaga
be5364ac2f
Use Level Zero core tests's main file for tools
...
No need seen for having two.
Change-Id: I138390c4ed6f467aee0326746a8fc5479dbba9f8
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-07-01 01:39:43 +02:00
Vilvaraj, T J Vivek
0c9c55cd17
add counter support for RAS.
...
- added dual handle support for RAS Correctable and Uncorrectable Errors.
- added reset counter for RAS.
- added Os Specific ULT for RAS
Change-Id: Ia10115bf6720ab211f549571e810ec0d6c0801ec
2020-06-25 08:48:11 +02:00
Jitendra Sharma
251994149a
Expose DRM interface to sysman APIs
...
Change-Id: Iab4d42cf90c9804c2b036045f3990aedd31efa91
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-06-24 16:40:49 +02:00
SaiKishore Konda
1a90061d54
Updating Sysman Power APIs for Set/Get thresholds
...
- APIs zetSysmanPowerGetEnergyThreshold & zetSysmanPowerSetEnergyThreshold
Change-Id: I052d4df989bc02549936cff5b0f9a801a34e320b
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-06-19 08:55:13 +02:00
mraghuwa
fea3c94772
Retrieve system default values for sysman scheduler
...
Change-Id: Ia547493e88656ad840b935487e52bc67fa806ebb
2020-06-19 06:53:11 +02:00
Mateusz Jablonski
e5671d8e22
ULT: setup productFamily and renderCoreFamily before using them
...
Change-Id: I005afe541f1bf01b6e28adf48d0e10eda121b03b
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-06-18 09:09:31 +02:00
Jitendra Sharma
1618a25d71
Fix error returning to user from zetSysmanProcessesGetState API
...
If after reading clients directory, while actually trying to
access the individual clients file, we receive a error
ZET_RESULT_ERROR_NOT_AVAILABLE, then it means that this process/client
might be killed/removed. Hence dont return error to user.
Instead simply skip that client's traversal further and move on
to next available client.
Change-Id: If86610a89d7b2421fd85560e5a223391b76d78a0
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-06-17 07:02:35 +02:00
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