Commit Graph

374 Commits

Author SHA1 Message Date
Mateusz Hoppe
850e6c02eb test: allocate sip allocation for all contexts in initSipKernel
- some tests initialize sip kernel but do not free it
- this is causing memory leaks
- as a solution mock sip listener is added that will release allocated
sip kernel

Related-To: NEO-13789

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2025-01-20 15:46:05 +01:00
Kamil Kopryk
8257c0870d test: simplify code
adjust code to compile with c++20

Related-To: NEO-10767
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2025-01-15 17:42:24 +01:00
shubham kumar
a8a9b1b92b refactor: optimize sysman windows power module
Related-To: NEO-13612

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2025-01-13 09:47:37 +01:00
Pratik Bari
2e5f590f30 fix(sysman): Fixed the GPU Bind and Unbind Entry Names
The GPU Bind and Unbind Entry names have been changed w.r.t the i915 and
the Xe driver

Related-To: NEO-13226

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2025-01-07 15:22:14 +01:00
Shreyas Kunder
ee3ef684ad fix: update new RAS errors for sysman
Related-To: NEO-12603

Signed-off-by: Shreyas Kunder <shreyas.kunder@intel.com>
2025-01-07 11:43:41 +01:00
Mateusz Jablonski
bb1a125f0c feature: add support for Panther Lake platform
Related-To: NEO-12803

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-01-07 11:39:56 +01:00
Mateusz Jablonski
c867a5ed5d refactor: remove redundant flag levelZeroSupported
all platforms are supported by L0

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-01-03 11:28:11 +01:00
Compute-Runtime-Validation
8f90c0de75 Revert "feature(sysman): Add support for card and package domains in Power mo...
This reverts commit f762516900.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-01-03 08:43:00 +01:00
Anvesh Bakwad
f762516900 feature(sysman): Add support for card and package domains in Power module
Related-To: NEO-10484

Signed-off-by: Anvesh Bakwad <anvesh.bakwad@intel.com>
Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2025-01-02 13:42:00 +01:00
Compute-Runtime-Validation
8cd7ce1b66 Revert "feature(sysman): Add support for card and package domains in Power mo...
This reverts commit 9991945c66.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-12-28 01:46:41 +01:00
Anvesh Bakwad
9991945c66 feature(sysman): Add support for card and package domains in Power module
Related-To: NEO-10484

Signed-off-by: Anvesh Bakwad <anvesh.bakwad@intel.com>
Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2024-12-27 10:27:01 +01:00
Mateusz Jablonski
e7a8936d70 test: don't use product specific ioctl helper in generic tests
Related-To: NEO-13527
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-12-18 17:26:12 +01:00
Anvesh Bakwad
ae9a4ba031 fix(sysman): Get Pci and Memory timestamp from PMT telemetry with correct unit
Related-To: NEO-13278

Signed-off-by: Anvesh Bakwad <anvesh.bakwad@intel.com>
2024-12-18 12:33:33 +01:00
Pratik Bari
fc1c08a570 fix: Returns Correct No. of VF Engine Stats as requested.
- When the requested engine count is less than the actual engine stats
available, then only requested no. of engine stats are retrieved.

Related-To: NEO-13525

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2024-12-18 12:13:45 +01:00
Pratik Bari
4eabc77932 fix: Check for Local Memory is removed during VF handle creation
- During VF handle creation, the check for the local memory used is
removed.

Related-To: NEO-13525

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2024-12-17 11:21:32 +01:00
shubham kumar
316389782d fix: Decouple power handle creation from power limit support available
Related-To: NEO-13185

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-12-13 11:43:28 +01:00
Maciej Bielski
41a6815d06 fix: check for nullptr before dereferencing
Related-To: NEO-13467

Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
2024-12-13 10:30:40 +01:00
B, Vishnu Khanth
2859bc83b5 fix: Add PMT counter offset values for BMG
Related-To: NEO-13286

Signed-off-by: B, Vishnu Khanth <vishnu.khanth.b@intel.com>
2024-12-05 19:10:26 +01:00
Pratik Bari
ad881e3f2e feature(sysman): feature: Add VF Engine Utilization API implementation
Related-To: NEO-11202

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2024-12-04 18:13:41 +01:00
Anvesh Bakwad
b408326de6 fix(sysman): Correct PMT Counter offset values for BMG
Related-To: NEO-13219

Signed-off-by: Anvesh Bakwad <anvesh.bakwad@intel.com>
2024-12-03 15:05:30 +01:00
Mateusz Jablonski
53511a2c89 test: remove not used usings/typedefs/variables in L0 tools/sysman tests
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-11-29 12:32:33 +01:00
Kulkarni, Ashwin Kumar
db7e023452 feature: fix for zesInit path
Allow zesInit when platform is LNL, BMG
and legacy path of sysman is initialized

Related-To: NEO-13295

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2024-11-29 07:42:08 +01:00
Bellekallu Rajkiran
8fdada84d6 test: Move product matcher to common matchers header
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2024-11-21 15:47:45 +01:00
shubham kumar
ee9af40a27 fix: Get Pci and Memory timestamp from PMT telemetry with correct unit
Related-To: NEO-13237

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-11-18 14:39:39 +01:00
Pratik Bari
3898bc1f3f test: Added changes in the VF APIs ULTs
- Added some checks in the ULTs
- Rectified the names of some ULTs

Related-To: NEO-11337

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2024-11-18 12:03:16 +01:00
shubham kumar
e23b8430da feature: Add Memory and GPU domain support for getEnergyCounter()
Related-To: NEO-12843

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-11-15 18:36:57 +01:00
Pratik Bari
31ca28d5bf feature(sysman): VF telemetry APIs for memory utilization
Related-To: NEO-11337

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2024-11-14 10:12:27 +01:00
shubham kumar
7dfa654761 feature: Add support for rev16 PMT OOBMSM xml
Related-To: NEO-13212

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-11-12 12:18:21 +01:00
Neil R. Spruit
84cd8226e3 feature: Support for zeInitDrivers
- Enabled support for zeInitDrivers which combines init and driver get
support.
- Moved driverHandleGet to be part of Driver class to allow for unit
testing of the functionality.
- Updated GTPIN init conditions such that init only occurs when pCount >
0 and the driver handle pointer is not null. This ensures that the
gtPin init does not trigger during the loader init calling
zeInitDrivers and only is called before the first handle is retrieved.
- Removed ze_init_flags_t flag from all driverInit functions since this
flag is unused in all functions.

Related-To: NEO-12905

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
2024-11-07 12:16:15 +01:00
Compute-Runtime-Validation
2345979800 Revert "feature: Add Memory and GPU domain support for getEnergyCounter()"
This reverts commit 0be4ebe6c2.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-11-07 03:28:57 +01:00
Shreyas Kunder
f52f9753ed fix: zesInit switch crash
The fix is provided to detect validity of sysman device handle in sysman APIs.
It can detect core device handle when passed instead of sysman device handle
in zesInit path and return error code.
Related-To: NEO-12690

Signed-off-by: Shreyas Kunder <shreyas.kunder@intel.com>
2024-11-05 13:03:57 +01:00
shubham kumar
0be4ebe6c2 feature: Add Memory and GPU domain support for getEnergyCounter()
Related-To: NEO-12843

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-11-04 21:37:56 +01:00
Marcel Skierkowski
49d999abe6 fix: remove defaultProfilingTimerResolution from RuntimeCapabilityTable
Related-To: NEO-12275
Signed-off-by: Marcel Skierkowski <marcel.skierkowski@intel.com>
2024-11-04 12:02:11 +01:00
Pratik Bari
8aa2eae965 fix(sysman): Disabling Engine Handles for Group Engine Busyness
The Group Engine Busyness Interface has been removed for the XeKmd

Related-To: NEO-11931

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2024-10-29 22:06:00 +01:00
shubham kumar
f96ae0433c fix: Add timer resolution to sysman core properties
Related-To: NEO-12885

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-10-29 22:00:44 +01:00
Oskar Hubert Weber
6730011c3b test: don't load igsc in unit tests
Fixes test timeouts caused by previous changes to dlopen mock

Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
2024-10-18 12:20:49 +02:00
Mateusz Jablonski
4154e6666b fix: correct loading L0 loader functions
- don't load ze_loader.dll from file system
- to perform self-open on Windows use getModuleHandleA with proper module name
- don't free library loaded with getModuleHandleA
- as loader may be not available during runtime teardown:
- load translate handle function during global setup
- load setDriverTeardown function during global teardown
- when loader is not available during teardown, unset translate handle
function

Related-To: GSD-10147

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-10-17 15:39:20 +02:00
Anvesh Bakwad
2844cba1f1 fix(sysman): Add missing support of isMemoryMaxTemperatureSupported() for BMG
Related-To: NEO-12916

Signed-off-by: Anvesh Bakwad <anvesh.bakwad@intel.com>
2024-10-17 11:34:28 +02:00
Compute-Runtime-Validation
f117b5fb68 Revert "fix: correct loading L0 loader functions"
This reverts commit 9c7b3c5e19.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-10-17 08:20:19 +02:00
Mateusz Jablonski
9c7b3c5e19 fix: correct loading L0 loader functions
on Windows use getModuleHandleA with proper module name
don't load ze_loader.dll from file system

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-10-16 19:53:05 +02:00
Anvesh Bakwad
c94e38f74d feature(sysman): Add zesDevicePciGetProperties() API support for BMG
Related-To: NEO-12911

Signed-off-by: Anvesh Bakwad <anvesh.bakwad@intel.com>
2024-10-16 08:23:03 +02:00
Bakwad, Anvesh
81cbc481ed fix(sysman): Correct the BMG OOBMSM guid in guidToKeyOffsetMap
Related-To: NEO-12912

Signed-off-by: Bakwad, Anvesh <anvesh.bakwad@intel.com>
2024-10-14 15:06:28 +02:00
Oskar Hubert Weber
8527779778 fix: running Blender with SYSMAN enabled on Linux
Related-To: NEO-11618

Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
2024-10-14 12:36:08 +02:00
shubham kumar
5ed81a1b9e feature: check peak power support using escape call
Related-To: NEO-12836

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-10-11 07:17:23 +02:00
shubham kumar
1ad6917db0 fix: Correct read/write memory bandwidth counters
Related-To: NEO-12748

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-10-08 08:08:17 +02:00
Pratik Bari
8154ce71ea test(sysman): Added and Removed the RAS ULTs as required
Related-To: NEO-12707


Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2024-10-03 12:58:10 +02:00
Pratik Bari
d060d0b6dd refactor(sysman): Compile the RAS module files by branch name
Added some tests for code coverage.

Related-To: NEO-12532


Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2024-09-23 14:25:07 +02:00
Jitendra Sharma
82eacc88bf refactor: Move all constants in sysman namespace
- Use inline constexpr for declaring global variables
- Avoid using Macros
- Use string_view type instead of std::string

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2024-09-23 11:24:47 +02:00
shubham kumar
8bf95eceea feature: Add core properties support in zesInit path
Related-To: NEO-12643

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-09-18 20:46:47 +02:00
Artur Harasimiuk
73382b9b6c refactor: remove legacy code
Related-To: NEO-6683
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2024-09-16 19:04:13 +02:00