Commit Graph

218 Commits

Author SHA1 Message Date
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
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
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
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
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
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