Commit Graph

327 Commits

Author SHA1 Message Date
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
Mateusz Hoppe
2d8f037233 Mark EuThread methods with const
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-10-20 14:31:59 +02:00
Matias Cabral
8a17cf3141 Allow debugger read ISA and ELF with single thread
Resolves: NEO-6309

Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
2021-10-19 20:41:27 +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
Robert Krzemien
c1a4e3ad50 Metric Api: Return error on calculate when multi metric values header is used.
Resolves: LOCI-2624
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2021-10-14 17:30:56 +02:00
Joshua Santosh Ranjan
7aae29f2cd Metric Detect Paranoid mode and fail gracefully
Related-To: LOCI-2143

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-10-13 22:17:50 +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
Robert Krzemien
b5e0d32fe1 Metric Api: Fix activation for sub devices
Resolves: LOCI-2611
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2021-10-05 18:39:22 +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
Robert Krzemien
eb1802cf2f Metric Api: Pass workload partition client option
Resolves: LOCI-2583
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2021-09-30 21:03:09 +02:00
Joshua Santosh Ranjan
4cb7c1014a Revert "Add flexibility to disable root device metrics"
Reverted the change which disabled metrics collection for multi-device

Related-To: LOCI-2580

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-09-30 19:05:20 +02:00
Igor Venevtsev
da982b41be Add readSbaBuffer() interface
Related-To: NEO-6277

Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2021-09-30 18:02:00 +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
Robert Krzemien
f3ea565121 Add implementation for zetMetricGroupCalculateMultipleMetricValuesExp.
Resolves: LOCI-2409
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2021-09-29 22:49:26 +02:00
Joshua Santosh Ranjan
4848c67edd Program CommandList for Metric Query
Add commands to the command list for multi-device execution of Metric Queries


Related-To: LOCI-2570

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-09-29 22:15:09 +02:00
Robert Krzemien
f431b569b7 Metric Api: Query begin/end for sub devices
Resolves: LOCI-2467
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2021-09-28 22:51:01 +02:00
Robert Krzemien
8d2fcad63f Metric Api: Query get data for sub devices
Resolves: LOCI-2470
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2021-09-27 08:13:36 +02:00
Mateusz Hoppe
b0ec436b3e Fill devices from api thread
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-09-22 16:34:10 +02:00
Joshua Santosh Ranjan
d6bb9bf0dd Metrics MultiDevice Support Add SubDevice Check
Adding isSubdevice check to support multi devices


Related-To: LOCI-2554

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-09-22 09:45:08 +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
Mateusz Hoppe
4d4433fa5f Fixes for MultiDevice fixture and DebugSession
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-09-20 17:27:46 +02:00
Igor Venevtsev
f3eb4e3ddf Add memoryHandle to EuThread
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2021-09-17 14:33:03 +02:00
Joshua Santosh Ranjan
a7f526c980 Metrics Append Streamer Marker Multi-Device Support
Added multi-device support for zetCommandListAppendMetricStreamerMarker

Related-To: LOCI-2492

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2021-09-16 19:32:48 +02:00
Bartosz Dunajski
c88db681d6 Fix SubDeviceCount value in Metrics
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-09-16 09:39:20 +02:00
Robert Krzemien
bc2963bf31 Metric Api: Query Pool for sub devices
Resolves: LOCI-2462
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2021-09-16 00:18:52 +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
Mateusz Hoppe
a27b839976 Refactor getSingleThreads()
- return ThreadIds for chosen device index from ze_device_thread_t

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-09-13 14:36:35 +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
Joshua Santosh Ranjan
299e798159 Fix Metrics Cleanup Metrics Discovery
Fix cleanup metrics discovery to handle sub-device to root-device order
Add Close to metrics adapter group

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>

Related-To: LOCI-2500
2021-09-06 06:51:28 +02:00
Joshua Santosh Ranjan
1ee80cd382 Metric: Add sub device support for zetMetricStreamerReadData
Adding sub device support for Metric Streamer Read Data

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>

Related-To: LOCI-2460
2021-09-06 06:43:13 +02:00
Mateusz Hoppe
b323e78f55 Verify thread state with counter
Related-To: NEO-6080

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-09-01 14:26:59 +02:00
Bartosz Dunajski
0345d9f707 Improve queries with number of SubDevices
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-09-01 14:01:57 +02:00
Joshua Santosh Ranjan
5844cbe02b Metrics: Metric Streamer Event Support for Sub Devices
Adding Event Support for Sub Devices

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>

Related-To: LOCI-2459
2021-08-31 18:17:39 +02:00
Joshua Santosh Ranjan
d71c68ef0a Metrics:Metric Streamer Open and Close Sub-Device Support
Add Support for Sub-Devices in Metric Streamer Open & Close API

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>

Related-To: LOCI-2459
2021-08-26 07:00:47 +02:00
Mateusz Hoppe
d10eb1c04c Add thread log level
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-08-25 13:01:33 +02:00
Joshua Santosh Ranjan
90c47946fc Activate Metric Group for Sub-Devices
Update Metric Group Activation for sub-devices based on Sub device Enumeration

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>

Related-To: LOCI-2459
2021-08-17 10:52:33 +02:00
Igor Venevtsev
d49d294ba9 Add DebugSession::areRequestedThreadsStopped() helper
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2021-08-16 21:01:33 +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