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
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
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
Vilvaraj, T J Vivek
d0d15dd058
sysman: change loop to use reference than new variable.
...
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2021-03-02 17:10:32 +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
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
Kanhaiya Singh
a246c358e5
Update zesFrequencyGetAvailableClocks for clocks to be in multiples of 50 Mhz
...
Signed-off-by: Kanhaiya Singh <kanhaiya.singh@intel.com>
2021-02-23 06:46:25 +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
T J Vivek Vilvaraj
4cf3bb6a04
sysman: fix unintialized pointer access in firmware module
...
Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-02-15 13:58:05 +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
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
Daniel Enriquez
d628032206
Windows Sysman Fan Fix at corner case.
...
Fix corner case of max 10 points.
2021-02-03 21:10:24 +01:00
Piotr Maciejewski
e33e71dee5
L0 Metric Api: proper Metrics Library deinitializtion.
...
Fixed Metrics Library deinitizaliton during Metric Streamer usage.
It allows user to deactivate metric set (and release i915 tbs interface),
so Metric Stream will not be blocked and i915 interface can be used again.
2021-02-02 08:41:12 +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
Matias Cabral
fa80f60ab5
Update metrics libraries file name
...
Add major number version to the metric library name
Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
2021-01-26 14:48:45 +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
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
Jitendra Sharma
a2eeeff880
Update sysfs path for pmt telemetry
...
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-01-12 18:33:45 +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
Vilvaraj, T J Vivek
604aa56a4c
sysman: use safer options to copy strings in firmware version.
...
strncpy_s is a safer option than strncpy.
2021-01-06 07:07:59 +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
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
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
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
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
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
SaiKishore Konda
8c75080d9e
update Memory Location for zesMemoryGetProperties
...
Change-Id: I2698352d89ed2351e6fa8ec0b58b277387650bc0
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-10-28 07:23:36 +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
Kanhaiya
5ab3e9966d
Retrieve PhysicalSize of zes_mem_properties_t
...
Change-Id: Ie7dbf9630becf097af7a5a7a234d5ea1da471492
Signed-off-by: Kanhaiya <kanhaiya.singh@intel.com>
2020-10-27 13:20:59 +01: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
Kanhaiya
c4a910d911
cleanup of Sysman code to pass by reference instead of pass by value
...
Change-Id: Ie4537c7e45730afe98da3886831fd71ff5b96960
Signed-off-by: Kanhaiya <kanhaiya.singh@intel.com>
2020-10-06 18:36:03 +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
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
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
Bartosz Dunajski
55bd544402
Lazy evaluate arguments of printDebugStrings(...) function
...
Change-Id: Ie44e109fd9235c5df32fb90b9e6fc6058e558a99
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-09-25 18:38:58 +02:00
Kanhaiya
723e852c09
Moved all the constants used in sysman to the single header file
...
Change-Id: I0bfa02e68c9aba1cc5d3105c37630b30b03e1b54
Signed-off-by: Kanhaiya <kanhaiya.singh@intel.com>
2020-09-23 14:35:13 +02:00
Bartosz Dunajski
5b31b31734
Remove low priority and internal engine index variables
...
Change-Id: I984dbcedd5456cfdee284f4d2eda1371ba77f0d0
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2020-09-21 16:44:14 +02:00
Jitendra Sharma
13b8929832
Retrieve Sysman engine property onSubdevice/subdeviceId field
...
Change-Id: Ifc26cbe1d6398d0c08a0e52c39936c517efca43e
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-09-20 07:00:21 +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
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
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
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
Jitendra Sharma
79ba0ff1f9
Dont report error if i915 engine class didnt map to L0 Sysman's engine group
...
Change-Id: I6b39494b80ec3c257be427bb1e250b8fb4472771
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-09-03 14:00:39 +02:00
Piotr Maciejewski
a65b0eb9ab
Release temporary metrics library during zeInit
...
Change-Id: Ieb399208377085821319f1bcf29589620390c536
2020-09-02 04:15:39 +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
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
macabral
855c474aaf
Cleanup unused tools files
...
Change-Id: I7841db3dd48d3db4ac732ee26e7f6d02786d047a
Signed-off-by: macabral <matias.a.cabral@intel.com>
2020-08-07 08:21:33 +02:00
Matias A. Cabral
aa08eaa473
Update error code when metrics libs are not found
...
Change-Id: I178308c060f0ed49b061b5003591fd38f7688043
Signed-off-by: Matias A. Cabral <matias.a.cabral@intel.com>
2020-08-06 12:29:57 -07: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
Matias A. Cabral
5dbf7d5f8c
Enable Sysman zesFrequencyGetAvailableClocks
...
Enable Sysman zesFrequencyGetAvailableClocks
Change-Id: I23f839a3c6eeccbba0cb24adc2b9e34d4595c201
Signed-off-by: Matias A. Cabral <matias.a.cabral@intel.com>
2020-08-03 20:27:52 +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
davidoli
b4577ade07
Move Pin init from zetInit to zeInit
...
Change-Id: Iea704cda26916315343e3cef6840954ba3d62c06
Signed-off-by: davidoli <david.olien@intel.com>
2020-07-31 00:49:33 +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
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
Robert Krzemien
59ffe4ba4b
Metric Api: Return apprioprate error when dependencies not met
...
Change-Id: Ie47a69c4bf80004f7fbc1b91e2025d498e4bda6a
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-07-22 22:44:53 +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
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
Robert Krzemien
5d5a266339
Metric Api: get query report slot fix
...
Change-Id: Ib654f756159d2fe8eb6381be7debd08e2261e320
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-07-14 13:48:16 +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
davidoli
f70882c684
Move tracing files to experimental directories
...
Remove need for zetInit call for tracing
Change-Id: Icbb75d8f52e2f9107e5308fd0c99415ea1e227f6
Signed-off-by: davidoli <david.olien@intel.com>
2020-07-14 00:31:22 +02:00
Andrzej Swierczynski
77f50e5444
Always pass device bitfield to AllocationProperties in constructor
...
Related-To: NEO-4722
Change-Id: Ie2475bf92a3189bcb9073bec5bf5af709e597c5d
Signed-off-by: Andrzej Swierczynski <andrzej.swierczynski@intel.com>
2020-07-13 09:00:10 +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
Bill Jordan
e8bd440773
Don't allow copy or moving Sysman related objects.
...
Change-Id: I70dd97bffa1c4d08f05eb796c6d6a2eb66f06f4b
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-07-10 21:05:15 +02:00
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
Vilvaraj, T J Vivek
3c50e1ede6
fix unintialized class member in Ctor.
...
Change-Id: Idc3e8a2ddccaf9c94639a3f499824e86de830fd4
2020-07-07 21:48:18 +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
T.J. Vivek Vilvaraj
96a7b1e066
add rules to install RAS udev rules
...
- create rules to install Udev rules in configurable location
- create files relating to RAS counters
Change-Id: Iebd57ba2dd09494ea4586b305cd56c86a71fb8b0
2020-07-02 10:25:21 +02:00
Mateusz Jablonski
c6239968a5
Fix typos:
...
preffered -> preferred
deffered -> deferred
Change-Id: I1b87861590c273d7fcda5bf0c5a772bf36e1bc74
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-06-25 19:17:41 +02:00
Jitendra Sharma
c43759cc48
Cleanup and fixes in sysman source
...
In this Change:
- Initialize local variables used in pci source.
- Move setting of temperature handle's type to constructor of
TemperatureImp class as temperature handle's type is used in
init() of TemperatureImp class.
- Allow only ENOENT errno at the end of FsAccess::listDirectory function.
Because in this function all directory entries will be read in a
loop. And loop will exit only after readdir() finished reading
all entries in directory and thus readdir() will exit, when it fails
reading any further entry. Thus system will return ENOENT for readdir.
Change-Id: Ibd3ac3f841b114fd87edea1410750b33f3a14e5b
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-06-25 18:32:33 +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
Spruit, Neil R
e1d9f92b94
Fixed Global Driver to be void * with library unload driver cleanup
...
- Changed Global Driver to be a void * to avoid auto add of Global
Driver Destructor to run before destruction of other L0 data structures
that might be enqueued to destory in static object destructors.
- Added register of library unload driverdestructor to cleanup
driver/device as the last destructor run.
Change-Id: I8ba6c5c27424b942a86a2613edd52fc682ab1c64
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
2020-06-22 12:59:03 +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
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
davidoli
95aaac204d
Add missing mutex for retired tracers iterator
...
Change-Id: I795d353f66628a89fc3054f9622640deef1e18c7
Signed-off-by: davidoli <david.olien@intel.com>
2020-06-11 11:24:17 -07: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
Jaime Arteaga
935e30322a
Avoid searching for active tracers when tracer data is null
...
Change-Id: I1f4c8932cc6ed9668054e348f5d282bfe794f161
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-06-02 23:58:30 +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
Mraghuwa
b6ccfed471
Redesign ULT by mocking sysfs and implementing for pci
...
Change-Id: I5ee2219208d05c125d1fce1a4a5b992bc8c4646e
2020-06-02 08:46:10 +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
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
macabral
86105d7e77
Disable copying Linux OS sysman class
...
Update the Linux os class not allow copying
by usage of NEO::NonCopyableClass.
Change-Id: Icc0d40eaa83d7a46ec0d48a5fc9deb5c57c0e3f8
Signed-off-by: macabral <matias.a.cabral@intel.com>
2020-05-26 11:37:52 -07: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
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
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
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
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
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
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
Vilvaraj, T J Vivek
5c029b4471
Implement RAS APIs
...
- Implemented zetSysmanGetProperties
- Implemented zetSysmanGetState
Change-Id: Id40a1cb036693156c31c6e9ee78c3113ef35e5c2
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-04-29 18:03:05 +02:00
Konda
610662dbd8
Power APIs boilerplate for Level Zero Sysman
...
- boilerplate for following power APIs
-zetSysmanPowerGet
-zetSysmanPowerGetProperties
-zetSysmanPowerGetEnergyCounter
-zetSysmanPowerGetLimits
-zetSysmanPowerSetLimits
-zetSysmanPowerGetEnergyThreshold
-zetSysmanPowerSetEnergyThreshold
Change-Id: I6350d869da9a64424b197ce16ac008224405a65d
Signed-off-by: Konda <saikishore.konda@intel.com>
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-28 19:53:57 +02:00
SaiKishore Konda
f3217b5d1a
Cleanup Level zero Tools Sysman code
...
- removing the ULT specific constructors
Change-Id: Ieaee9ab72c144d5f5794f6bc023c2f14df2a7b0b
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-28 08:53:53 +02:00
Jitendra Sharma
e83e9bd114
Temperature API's boilerplate for Level Zero Sysman
...
Change-Id: I0573ed2ce36d8c94c6a0e1c32644f8050b6b8d5c
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-04-27 21:10:10 +02:00
Vilvaraj, T J Vivek
749e59fc54
Implement RAS APIs
...
- Implement zetSysmanRasGet API
Change-Id: Ic2a82ceac2619cd1955d4e39924228f94ecd42dd
2020-04-22 18:40:28 +02:00
Jitendra Sharma
5374a0ffc1
Implement scheduler APIs
...
Add logic to implement following scheduler APIs
-zetSysmanSchedulerGetCurrentMode
-zetSysmanSchedulerGetTimeoutModeProperties
-zetSysmanSchedulerGetTimesliceModeProperties
-zetSysmanSchedulerSetTimeoutMode
-zetSysmanSchedulerSetTimesliceMode
-zetSysmanSchedulerSetExclusiveMode
Change-Id: I134b200ffd6b13bc50b1f38e955dd584455b4b38
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-04-22 20:26:57 +05:30
SaiKishore Konda
ce6828d374
Adding default constructor for Memory, Engine
...
- adding default constructor
- updating the member variables of engine, memory imp classes
Change-Id: I635858593aa53f4d56044df377286e72898ecbc4
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-22 15:02:50 +02:00
Vilvaraj, T J Vivek
324b1f5c60
RAS APIs boilerplate for Level Zero Sysman.
...
-Implement zetSysmanRasGet API
Change-Id: Ib06e4a5d087a1e684c918413c3d98da2082e4f91
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-04-21 20:04:53 +02:00
maciejew
e35f55361f
Change Metrics Library binary filename to 'libigdml.so'
...
Change-Id: I559c772083f615219f7db64fc0105f20c13e62e5
2020-04-20 09:40:48 +02:00
SaiKishore Konda
3c2e98e22f
Implement Engine APIs
...
Add logic to implement the following Engine APIs
-zetSysmanEngineGet
-zetSysmanEngineGetProperties
-zetSysmanEngineGetActivity
Change-Id: I48fe1d73b7449c80304df09537024cdcfe4e0387
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-18 01:28:27 -04:00
SaiKishore Konda
ab9f7b4c53
Engine API's boilerplate for Level Zero Sysman
...
Change-Id: Ib73b419b53f96a71c1d604cf0091792b33c7fae1
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-15 17:31:05 +02:00
Jitendra Sharma
4e75ea0496
Scheduler API's boilerplate implementation
...
Add boilerplate for all scheduler APIs listed in spec.
Change-Id: I0ba7e4d969f409e1a3360204dbc16037898d64c8
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-04-14 19:23:47 +02:00
Vilvaraj, T J Vivek
87028f9632
fix PCI class ctor and dtor.
...
Change-Id: I6c709a7a92ca280ee2289145e2bcbae3fc4734b3
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-04-13 10:58:51 -07:00
SaiKishore Konda
e0633548a9
Add defaults to memoryHandleContext structure
...
Change-Id: If82510dff1ab77d4b4c3c77079035ca2ca15ea10
2020-04-11 03:41:07 -04:00
SaiKishore Konda
ab67b94340
Updating Memory API implementations
...
- updating zet sysman for memory
- updating memoryhandlecontext init and memory get by checking
isLocalMemorySupported flag
Change-Id: I084068eb0865bb037b7d80246c4a9c74d3ff2cc1
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-10 21:59:27 +02:00
Bill Jordan
3c3e1a9c5c
Adjust path for Sysman Standby implementation source.
...
Change-Id: I7fdabf5098efd9b4a1d68bbbd3f31ac8b8cd5797
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-04-06 18:55:04 +02:00
SaiKishore Konda
9dc7e2cfaf
Initalizing the memoryProperties structure
...
Change-Id: I2ce5a0e1bfc54c9d21746a5bb6ebe6260370fc1c
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-03 05:51:29 -04:00
Jaime Arteaga
8f5533dafc
Correctly rename Level Zero functions as kernels
...
Change-Id: I8bc079a737171246fa62c759f594c3e841a2fcf8
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-04-03 07:59:58 +02:00
SaiKishore Konda
a0c13490e5
Memory API's boilerplate for Level Zero Sysman
...
- Implementing MemoryGet, MemoryGetProperites & MemoryGetState
boilerplate for Level Zero Sysman
Change-Id: I46661aac9cd6974af986aede7484fd59688046a4
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-03 02:35:14 +02:00
Bill Jordan
a2a7501b79
zetSysmanStandbySetMode is not settable from L0
...
Change-Id: I05d60f960c9cb89b3d53259067e05e8f20e9b602
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-04-02 17:40:24 +02:00
Piotr Maciejewski
c6cd582f78
Enable Performance Counters for OCL and L0.
...
Change-Id: I1920b9d406c092fbc26fc6ca27766db297a1958b
2020-04-02 12:04:56 +02:00
Bill Jordan
5d756b7b15
Add FsAccess::getFileMode and SysfsAccess::getFileMode methods
...
Change-Id: I4dddf1b3983e63ef6ad664009ebd20d474c8cc17
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-04-01 09:14:40 +02:00