Commit Graph

198 Commits

Author SHA1 Message Date
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
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
0cc71827ee Update pmt telemetry node
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-02-19 07:14:13 +01:00
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
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
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
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
d628032206 Windows Sysman Fan Fix at corner case.
Fix corner case of max 10 points.
2021-02-03 21:10:24 +01:00
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
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
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
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
5cd5705239 Implement clear option for zesRasGetState
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-01-21 15:00:13 +01:00
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
4a5599b1ee L0 Metrics Api: multi adapter support
Switching to Metrics Discovery adapter interface.
2021-01-13 22:45:59 +01:00
a2eeeff880 Update sysfs path for pmt telemetry
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-01-12 18:33:45 +01:00
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
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
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
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
9ff19c5fbd Handling for invalid event argument
Signed-off-by: Kanhaiya Singh <kanhaiya.singh@intel.com>
2020-12-23 11:25:38 +01:00
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
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
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
ab14df5aa6 Revert "Add netlink and gen netlink library loader."
This reverts commit 864f069b8f.
2020-12-08 20:41:09 +01:00
29254cb683 update <pid> case for zetSysmanProcessesGetState
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2020-12-08 19:55:03 +01:00
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
294624e03b Revert "Add netlink and gen netlink library loader."
This reverts commit 660ad6a1f3.
2020-12-01 17:52:52 +01:00
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
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
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
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
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
a116d454fe Sysman: Enabling events for Windows
Enabling events for Sysman in Windows Os Specific path HAL.
2020-11-17 16:37:19 +01:00
9c1739c095 Update zesFrequencyGetState and zesFrequencyGetRange
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2020-11-13 06:04:50 +01:00
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
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
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
4e4affe53b Modify tdp sysfs path
Change-Id: Ie387a96f67b5760d8f1e359eea61c66aec631afd
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-10-29 10:33:23 +01:00
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
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
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
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
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
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
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
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
872049978a Fix TDP/REQUEST reading
Change-Id: I7b4f2f176696a4f4636934accebf71ed3285427c
Signed-off-by: Kanhaiya <kanhaiya.singh@intel.com>
2020-10-09 16:38:48 +02:00
2643346b48 Update Sysman RAS Module
Change-Id: I2b99dae4336811ea4b539da48c1434657a9cf62a
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-10-09 08:23:19 +02:00
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