Commit Graph

255 Commits

Author SHA1 Message Date
Mayank Raghuwanshi 25403cf85d Add support for device level performance factor
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-12-28 07:13:51 +01:00
T J Vivek Vilvaraj 9a39cad07d sysman:add reinitialization code to diagnostics
Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-12-23 18:27:06 +01:00
Vilvaraj, T J Vivek 15f102a7cb sysman:modify diagnostics tests
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2021-12-22 14:53:38 +01:00
Szymon Morek 2647d563c7 Remove i915 structs from MemoryInfo
Use structs defined in ioctl_helper.h instead of
i915 dependent ones to avoid conflicts between
different kernels

Related-To: NEO-6149

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2021-12-22 12:46:59 +01:00
T J Vivek Vilvaraj b95428078e sysman: filter diagnostics related accesses
prevent diagnostics related calls on unsupported platforms


Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-12-20 12:49:49 +01:00
Ranjan, Joshua Santhosh 5a2a19fa1a Sysman Fix FirmwareUtil Cleanup
Fixed by avoiding library function access if library is unavailable.


Related-To: LOCI-2719

Signed-off-by: Ranjan, Joshua Santhosh <joshua.santosh.ranjan@intel.com>
2021-12-15 09:18:18 +01:00
Bellekallu Rajkiran 4ae2f6e111 Sysman: Add support for device level energy counters
Related-To: LOCI-2724

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2021-12-14 01:33:59 +01:00
Daniel Enriquez cf70a57efb Sysman WindowS: Fix Max Memory Bandwidth.
Signed-off-by: Daniel Enriquez <daniel.enriquez.montanez@intel.com>
2021-12-10 00:36:15 +01:00
Mayank Raghuwanshi 94d09f75b7 Get RAS HBM errors count using firmware interface
-- master-commit
Add functionality to retrieve memory errors from Firmware
-- master-commit

Related-To: LOCI-2491, LOCI-2726

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-12-08 18:57:24 +01:00
Joshua Santosh Ranjan feae44bce8 Added Fabric RAS error support
fabric error counts are read from sysfs nodes

Related-To: LOCI-2613

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-12-08 07:00:39 +01:00
Bellekallu Rajkiran a1121ccb6b Sysman: Replace mmap with pread
Use pread sys call instead of mmap and munmap
to get telemetry info.

Related-To: LOCI-2634


Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2021-12-06 17:44:29 +01:00
Pichika Uday Kiran 7764924387 sysman: Avoid creating the IGSC libary handle in ULTs
- Contains the changes to avoid invoking IGSC library
during ULT execution.


Related-To: LOCI-2719
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-12-02 19:30:35 +01:00
Mayank Raghuwanshi 2ec2d514ec Update create Handle mechanism for sysman RAS
Use set instead of vector to get the supported error types,
using vector may cause duplication of error types when quering
supported error types from different interfaces which in turn
may cause duplication of handles.

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-12-02 12:39:30 +01:00
Vilvaraj, T J Vivek 0d86842780 Sysman: add Cold Reset to diagnostics API
the diagnostics API expects the device to be correctly reset based on
the type of diagnostics result. Cold reset is expected when there is
some repair scheduled on the Device.

Relates-to:LOCI-2508


Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2021-11-30 20:12:34 +01:00
Bellekallu Rajkiran ede0123561 Update sysfs path for setting standby mode
Related-To: LOCI-2734

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2021-11-29 23:54:06 +01:00
Szymon Morek 12777bd758 Move MemoryInfoImpl logic to MemoryInfo
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2021-11-29 13:13:11 +01:00
Daniel Enriquez 0ce5c6c9c9 Windows Sysman: Updating VRAM memory Type.
Adding support for the complete range of memory types.

Signed-off-by: Daniel Enriquez <daniel.enriquez.montanez@intel.com>
2021-11-27 11:51:44 +01:00
Vilvaraj, T J Vivek 35607e7830 sysman: add warm reset capability to diagnostics.
Relates-to:LOCI-2507

Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2021-11-25 21:00:19 +01:00
Daniel Enriquez f131b75d39 Events Windows:Fix corner case for the exit handle.
Corner case where the signal state is not restored after registering events.

Signed-off-by: Daniel Enriquez <daniel.enriquez.montanez@intel.com>
2021-11-22 15:19:26 +01:00
Vilvaraj, T J Vivek b91cec5655 sysman: mock firmware utility in sysman
firmware utility needs to be mocked to prevent file access while
executing ULT's


Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2021-11-17 07:57:46 +01:00
T J Vivek Vilvaraj e1a1e96110 sysman:close diagnostics handles before reset
Relates-to:LOCI-2650

Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-11-15 21:30:13 +01:00
Jitendra Sharma 1186c1aae3 zesSysmanDeviceReset: Reinitialize device after device reset
Before performing gpu device reset, first all level zero resources
and gpu device specific resources have to be cleaned up. Also as
after device reset, state of gpu device would be lost.
Hence after performing gpu device reset, level zero device have
to be reinitialized by querying gpu device again.
This change is aimed at reinitializing the level zero resources
after gpu device reset, so that user could continue using level zero
devices after device reset.

Related-To: LOCI-2627

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-11-07 23:43:48 +01:00
Daniel Enriquez dbe0ba2a0f Sysman for Windows: Multiple fixes and optimizations
Signed-off-by: Daniel Enriquez <daniel.enriquez.montanez@intel.com>
2021-11-04 20:11:39 +01:00
Pichika Uday Kiran 99cbd1bb92 firmware: Read new firmware version from sysfs
- Read the newly added firmware version from sysfs node


Related-To: LOCI-2557
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-11-03 14:03:12 +01:00
Pichika Uday Kiran d9f47d6d7d firmware: Add canControl property to firmware properties
Related-To: LOCI-2679
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-11-03 10:04:25 +01:00
Pichika Uday Kiran 52cf6bf383 firmware: Enhance the firmware utility module
- There are functions exposed through Firmware Util interface to get
the firmware version and perform firmware flash based on firmware type.
Instead this functionality is being handled with generic functions. Hence
this commit removes the redundant code.

Related-To: LOCI-2568
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-11-02 11:42:18 +01:00
T J Vivek Vilvaraj a9aa472b50 SysMan: close igsc context in destructor
igsc context is intialized by the device init call to igsc library.
When resources are freed, the context needs to be closed explicitly
by sysman to force igsc library to free and release the context
within the igsc library.

Related-To:LOCI-2695

Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-10-29 15:35:13 +02:00
Pichika Uday Kiran 3357b8b916 firmware: Add support for new firmware type
- This commit adds the support of new firmware flashing
- And also added the support in ULTs for the new firmware
flash APIs.

Related-To: LOCI-2381
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-10-22 23:13:23 +02:00
Pichika Uday Kiran e063b120de Revert "firmware: Add support for new firmware type"
This reverts commit 3c739cf687b9d47185c131231316e51a71cbefa0.

Related-To: LOCI-2381
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-10-18 17:45:02 +02:00
Pichika Uday Kiran 5ec0833fa8 firmware: Add support for new firmware type
- This commit adds the support of new firmware flashing
- And also added the support in ULTs for the new firmware
flash APIs

Related-To: LOCI-2381
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-10-18 06:23:03 +02:00
T J Vivek Vilvaraj f27f430429 sysman: fix firmware device enumeration in firmware Utils
firmware Utils was always enumerating the same firmware
device handle for all sysman devices.

Related-To:LOCI-2609

Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-10-14 18:02:55 +02:00
Pichika Uday Kiran 3efa0330f4 firmware: Avoid adding the FWtype if already exists in vector
- Avoid adding the duplicate FWtypes in case of multi GPU devices

Related-To: LOCI-2623
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-10-14 17:40:53 +02:00
Jitendra Sharma cfad41f28a Introduce new interface for reinitializing level zero device
This change introduce
- new method deviceReinit, which could be used, to reinitialize
existing level zero device.

Related-To: LOCI-2612

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-10-06 07:16:33 +02:00
Daniel Enriquez afaef2b234 Fix Voltage Offset, signed value.
Voltage Offset was incorrectly set as unsigned.

Signed-off-by: Daniel Enriquez <daniel.enriquez.montanez@intel.com>
2021-10-06 06:08:24 +02:00
Mayank Raghuwanshi e1ad48ccb5 Pass device handles to sysman power module
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-10-05 20:47:21 +02:00
Mayank Raghuwanshi 52e9dd26a6 Modify canRead and CanWrite functions of fsaccess class
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-10-05 10:52:17 +02:00
Jitendra Sharma 135ec380fc Dont initialize sysman for linux if Driver Model is not DRM
Related-To: LOCI-2533

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-10-04 12:15:21 +02:00
Pichika Uday Kiran 27bf56ee5a firmware-utils: Read IGSC version from IGSC config
- This commit reads the IGSC version from the IGSC config
rather parsing the igsc library path.

Related-To: LOCI-2527
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-10-01 07:12:43 +02:00
Jitendra Sharma c46f591a99 Do not initialize Sysman if OsSysman Init failed
Related-To: LOCI-2552

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-09-30 09:11:55 +02:00
T J Vivek Vilvaraj aba7d74bcd remove unused libxml module from sysman
Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-09-30 09:01:35 +02:00
T J Vivek Vilvaraj 26779e2f34 sysman: fix diagnostics handle creation
Resolves:LOCI-2601

Signed-off-by: T J Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2021-09-30 07:58:18 +02:00
Szymon Morek d61741dd9f Refactor memory info
Related-To: NEO-6149


Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2021-09-21 11:17:25 +02:00
Kamil Kopryk 9ccf43e441 Correct branch_dir_suffix in cmake
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-6245
2021-09-14 16:00:20 +02:00
Mayank Raghuwanshi d2014b2869 Add support for 32 GTs pci link speed and 0 power_min_limit
Related-To: LOCI-2489, LOCI-2488

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-09-07 08:51:45 +02:00
Pichika Uday Kiran 7a59ebc1d6 ULT: Add global operations ULTs for device reset
- Commit handles ULTs to handle device reset only.

Related-To: LOCI-2114
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-08-11 07:25:16 +02:00
Jitendra Sharma c54152bbbc Sysman: Add support to check whether resizable PCI BAR is enabled
Related-To: LOCI-2414

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-08-09 19:37:16 +02:00
Daniel Enriquez 2f0fcf4aee Sysman for Windows: Fix Free memory from get state.
KMD no longer tracks allocation, move to use OS functions.

Signed-off-by: Daniel Enriquez <daniel.enriquez.montanez@intel.com>
2021-08-06 23:33:55 +02:00
Jitendra Sharma fdc71ea26e Sysman: Fix format specifier mismatch warning in PCI API
Related-To: LOCI-2445
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-07-30 22:27:21 +02:00
Mayank Raghuwanshi 0f2754e943 Add support for hwmon interface for sysman power
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-07-29 14:53:29 +02:00
Jitendra Sharma 478edfc0e4 Sysman: Add support to check if resizable Bar supported
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-07-27 08:13:08 +02:00