Commit Graph

564 Commits

Author SHA1 Message Date
a38a3ce730 Improve zello Metrics
1. Added command line handling
1.1 Replaced device/sub-device specific test
with single test with input argument
2. Added verbose levels
3. Added support to run all tests sequentially
4. Replace zetMetricGroupCalculateMetricValues
with zetMetricGroupCalculateMetricValuesExp

Related-To: LOCI-3078

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-05-10 19:34:38 +02:00
943ad0e1eb style: skip redundant unique_ptr::get function
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-10 13:22:40 +02:00
1c366d1ec0 Refactor: Change canonize method accessing point
Accessing canonize method as a member of GmmHelper class object

Related-To: NEO-6523
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2022-05-09 14:16:31 +02:00
89dac126a1 Add IP Sampling Tests
1. Add OA and IP sampling metric collection tests
2. Add IP sampling multi thread tests
3. Add IP sampling multi process tests

Related-To: LOCI-2759

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-05-09 06:25:11 +02:00
bcc543f949 Add zesMemoryGetBandwidth support for DG2 and ATS-M
Related-To: LOCI-2574
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-05-07 02:43:00 +02:00
4896adc655 Fix order of reporting STOPPED THREAD events
- report stopped threads for interrupts after resuming
accidentally stopped threads
- unintended threads will not be available when event
for interrupt is reported

Resolves: NEO-6927

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-05-04 14:20:07 +02:00
7b98d782c7 Refactor Zello Metrics
1. Refactor Zello Metrics to seperate Metric Collection,
Workload Execution and Execution environment configuration
functions.
2. Split Zello metrics test to smaller files for better
readability.

Related-To: LOCI-3069

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-04-29 19:03:17 +02:00
35a1a3fc2a Fix debug session thread conversion
- convertToPhysical must be called in polymorphic manner,
not on base DebugSession

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-04-28 18:59:34 +02:00
f4182e37ee Add debugger support - debug session implementation
Resolves: NEO-6813

Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2022-04-27 17:53:48 +02:00
34028355af Update zesFrequencySetRange implementation
While setting max frequency also clamp boost frequency
to max frequency.
Clamping boost frequency to max, will ensure that with workload
execution, max frequency that we are setting would not be violated.

Related-To: LOCI-3075

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2022-04-26 17:12:52 +02:00
cee2051db8 Update power control/query interface
Add support for getCardPowerDomain API.
Modify check to verify whether hwmon dir exists.
Modify ULTs to verify updated power interface.

Update power control/query interface.

Related-To: LOCI-2735, LOCI-3046
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-04-25 22:10:13 +02:00
bcbe3278a9 Metrics: Fix potential divide by zero
- return error when frequency is zero

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-04-25 14:49:08 +02:00
b91e630bb5 Revert "Update zesMemoryGetBandWidth for PVC steppings"
This reverts commit 81544445aa.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-04-22 10:31:59 +02:00
c637903132 Modify getSupportedRasErrorTypes function for gt Ras errors
Related-To: LOCI-2934

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-04-22 08:26:07 +02:00
81544445aa Update zesMemoryGetBandWidth for PVC steppings
Related-To: LOCI-2999
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-04-22 07:59:11 +02:00
5dfd68a729 Add Ip sampling metrics calculate values Support
Related-To: LOCI-2757

Signed-off-by: davidoli <david.olien@intel.com>
2022-04-21 20:02:40 +02:00
10be59cb15 Improve isIpSamplingSupported helper
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-6738
2022-04-20 17:02:20 +02:00
6f2efa4d54 Update fabric id based on new sysfs entry
Added new iaf directory path to query
fabric id.

Related-To: LOCI-3034

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-04-20 09:05:41 +02:00
f7e04b32aa Update throttle reason status sysfs names
Related-To: LOCI-1843

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-04-14 08:45:17 +02:00
0441295e21 Metrics: Move Workload Partition Setting to Metric Group Enumeration
This patch fixes an issue about incorrect setting
of WorkloadPartionEnabled flag to ClientOptions.

Related-To: LOCI-3021

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-04-14 08:36:37 +02:00
d70b1a2e2a Filter L0 Debugger support by platfom
Related-To: NEO-6678
Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2022-04-13 13:03:40 +02:00
51988148de Sysman: Remove redundant files
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-04-11 18:32:57 +02:00
5a804841cb Add pmt xml offsets for ATS-M
Related-To: LOCI-2960
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-04-11 07:29:44 +02:00
16af941f03 Metrics IpSampling Add Blackbox Test
This patch adds blackbox test for IpSampling
feature.
This patch also adds support to use custom
workloads.

Related-To: LOCI-3009

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-04-08 07:56:54 +02:00
933fbd4f63 Fix scratch offset calculation in DebugSession
- account for ThreadEuRatio when calculating per-thread
scratch offset

Related-To: NEO-6677

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-04-05 10:33:49 +02:00
8f88d375ab Sysman: remove gmocks from standby module
Related-To: LOCI-2030
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2022-04-04 10:41:12 +02:00
47f7b4f509 sysman: clean up code duplication for reset
warm and cold reset are common functionality,
the code is being moved to the common sysman implementation
from diagnostics specific files.

Related-To: LOCI-1908
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2022-03-31 14:10:39 +02:00
cdf3d00919 Update throttle reason status sysfs name
Related-To: LOCI-1843

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-03-29 11:02:47 +02:00
cf9a5ed7d7 Add prelim support for ras diagnostics and firmware
Related-To: LOCI-2864

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-03-24 06:58:25 +01:00
6e14df9b84 Metrics Ip sampling Avoid retries when starting measurement
This patch avoids retrying if ioctl fails.

Related-To: LOCI-3010

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-03-24 02:24:43 +01:00
05a150f49f L0 Core Add Support For pci_speed_ext
This patch adds support for reading PCI bandwidth, generation
and linkwidth information from sysfs nodes for the linux
platform.

Related-To: LOCI-2969

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-03-16 22:47:59 +01:00
061af9c284 Sysman : Add check on engine handle creation
Add check whether init succeeded on handle creation.

Related-To: LOCI-3005

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-03-16 18:08:42 +01:00
fac75222a3 Move Pci bdf parsing to os specific layer
Related-To: LOCI-2879

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-03-15 08:58:30 +01:00
604f2c625e Sysman: Utilize Ioctl helpers for memory module
Memory module translates memory regions without any
runtime query on underlying hardware/kernel. Use
ioctl helpers for memory region translation.

Related-To: LOCI-3006

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-03-14 16:46:29 +01:00
452050ae40 Refactoring the use of PVC device ids
Replacing the old device id implementation
& clearing PVC XT temporary.

Related-To: NEO-6742
Signed-off-by: Daria Hinz <daria.hinz@intel.com>
2022-03-14 15:54:52 +01:00
b79d9a8e10 Correct structs to explicitly initialize members
Affected structs are DebugAreaHeader, Ras and APITracerImp.

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2022-03-14 15:40:28 +01:00
c7ce397b17 Metrics IP Sampling Add Support for Streamer APIs
This Patch adds support for collecting IP Metrics using
StreamerOpen, StreamerClose and StreamerReadData

Related-To: LOCI-2755
Related-To: LOCI-2756

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-03-11 03:03:22 +01:00
1a823356a3 Revert "Add prelim support for ras diagnostics and firmware"
This reverts commit 5a2145ad8d.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-03-06 11:31:15 +01:00
7ec8d8ef91 Add prelim support for frequency events and fabric port
Related-To: LOCI-2864

Source of prelim headers:
https://github.com/intel-gpu/drm-uapi-helper/tree/master/i915-shared-headers

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-03-06 02:47:20 +01:00
01db5ef22a Add prelim support for memory, engine and scheduler
Related-To: LOCI-2864

Source of prelim headers:
https://github.com/intel-gpu/drm-uapi-helper/tree/master/i915-shared-headers

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-03-04 19:56:30 +01:00
65fd55a893 Add prelim performance factor support
Related-To: LOCI-2864

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-03-04 08:44:10 +01:00
41988fc429 Metrics IP Sampling Enumeration Support
This patch adds enumeration of metric group for
IP sampling.

Related-To: LOCI-2754


Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-03-04 00:22:18 +01:00
5a2145ad8d Add prelim support for ras diagnostics and firmware
Related-To: LOCI-2864

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-03-03 18:51:21 +01:00
922a224cc9 Add prelim support for temperature, power and global operations
Related-To: LOCI-2864

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-03-03 18:11:34 +01:00
f9d271f6cf Sysman: Fix Performance factor ULT
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-03-03 14:29:52 +01:00
7a2c5e28c1 Add getLastCounter() to EuThread
Related-To: NEO-6447

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-02-25 17:14:01 +01:00
b6d3b4cca6 Sysman: Fix incorrect frequency request value
Sysman queries frequency request value from an incorrect
sysFs node which results in incorrect frequency request
value.
Modify sysFs node to query from correct node.

Related-To: LOCI-2887

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-02-24 05:15:18 +01:00
d24c6cedfb Metrics Ip Sampling Fix Inclusions
This patch fixes isolation build issues
due to inclusions.

Related-To: LOCI-2707

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-02-23 10:02:21 +01:00
10f98b45db Metrics Add Os specific implementation Structure for IP Sampling
This patch adds OS specific implementation for IP Sampling.
Implementation for linux is provided as part of this patch.

Related-To: LOCI-2787

--- master-files
level_zero/tools/source/metrics/linux/os_metric_ip_sampling_imp_linux.cpp
level_zero/tools/source/metrics/os_metric_ip_sampling.h
level_zero/tools/source/metrics/windows/os_metric_ip_sampling_imp_windows.cpp
level_zero/tools/test/unit_tests/sources/metrics/linux/test_metric_ip_sampling_linux_prelim.cpp
level_zero/tools/test/unit_tests/sources/metrics/linux/test_metric_ip_sampling_linux_upstream.cpp
level_zero/tools/test/unit_tests/sources/metrics/windows/test_metric_ip_sampling_windows.cpp
--- master-files

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-02-18 23:15:44 +01:00
1e6a38035e sysman: serialize access to libigsc.
In a multi thread environment the access to the external
library needs to be synchronized.

Resolves: LOCI-2871, LOCI-2873

Signed-off-by: T.J.Vivek Vilvaraj <t.j.vivek.vilvaraj@intel.com>
2022-02-15 08:08:44 +01:00