Commit Graph

127 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
Mateusz Jablonski
7144e8a537 fix: enhance igsc wrapper
use type with correct naming convention

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-09-09 16:30:40 +02:00
Anvesh Bakwad
6afe6da4b6 feature(sysman): Add support for zesMemoryGetBandwidth API in BMG Linux
- Added implementation for getMemoryBandwidth() in BMG product file
- Additionally corrected Tempearature offsets for BMG OOBMSM rev 15

Related-to: NEO-11295

Signed-off-by: Anvesh Bakwad <anvesh.bakwad@intel.com>
2024-09-06 09:34:28 +02:00
shubham kumar
5c3012a4a7 fix: correct pmt temperature offset
Related-To: NEO-12515

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-09-02 14:57:11 +02:00
shubham kumar
484684c762 fix: Correct maxBandwidth unit conversation in pmt
Related-To: NEO-12297

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-09-02 09:51:12 +02:00
shubham kumar
a467b30842 fix: Correct maxBandwidth unit conversation in pmt
Related-To: NEO-12475

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-08-29 02:20:20 +02:00
Vishnu Khanth
44658fb7d9 fix: Update appropriate values in PCI property & state for Windows
Related-To: NEO-12320

Signed-off-by: Vishnu Khanth <vishnu.khanth.b@intel.com>
2024-08-26 11:39:25 +02:00
Filip Hazubski
556ba1b7c4 performance: Avoid data copy in getPciStats function
Additionally explicitly remove unused functions of Directory and
StagingBuffer classes to comply with rule of five.

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2024-08-22 13:30:01 +02:00
Mateusz Jablonski
579af57161 refactor: don't call OsLibrary::load directly, use function pointer
this allows mocking this call in ULT

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-20 08:59:26 +02:00
shubham kumar
4b9a86449d fix: Correct maxBandwidth unit conversation in pmt
Related-To: NEO-12297

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-08-14 12:13:15 +02:00
Pratik Bari
8ea7751381 refactor(sysman): Remove Pmt tile aggregator from Sysman Modules
- The PMT tile aggregator used by the frequency and power modules has
been replaced with the wrapper functions which calls the functions from
the Pmt Util class.
- The earlier Pmt Tile aggregator implementation has been removed from
the PMT specific files.

Related-To: NEO-12147

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2024-08-14 09:41:53 +02:00
Bellekallu Rajkiran
be4570fe10 fix: Read appropriate entry for HBM channels
Related-To: NEO-11949

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2024-08-12 09:44:37 +02:00
Anvesh Bakwad
abbc08bb67 feature(sysman): Add Support for Temperature APIs in BMG Linux Platform
Related-To: NEO-11297

Signed-off-by: Anvesh Bakwad <anvesh.bakwad@intel.com>
2024-08-12 09:38:08 +02:00
Anvesh Bakwad
290a9bd3ad feature(sysman): Add Support for zesDevicePciGetStats API for BMG Linux Platform
Related-To: NEO-11294

Signed-off-by: Anvesh Bakwad <anvesh.bakwad@intel.com>
2024-08-10 23:08:10 +02:00
Pratik Bari
0afde28eb2 refactor(sysman): Remove Pmt tile aggregator from Temperature Module
The PMT tile aggregator used by the product helper calls from the
temperature module has been replaced with the wrapper functions which
calls the functions from the Pmt Util class.

Related-To: NEO-11995

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2024-08-08 16:50:25 +02:00
shubham kumar
27d378473a feature(sysman): Support for latest pmt ocode offsets in windows
Related-To: NEO-12035

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-08-08 11:44:47 +02:00
Mateusz Jablonski
07a11e640f refactor: include xe header in dedicated namespace
avoid redefinition issue in case of integrating multiple xe drm versions

define mock drm xe in inl file to provide xe definitions for mock members

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-01 14:38:20 +02:00
Bellekallu Rajkiran
eadb7b5a66 fix: Remove appropriate device on warm reset
Related-To: NEO-11926

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2024-07-30 09:37:48 +02:00
Maciej Bielski
44d6b5ebac fix(sysman): do not leak/exhaust memory with telemetry allocations
Related-To: NEO-11825
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
2024-07-29 12:58:49 +02:00
Pratik Bari
0dacb78d78 refactor(sysman): Remove Pmt tile aggregator from Memory Module
The PMT tile aggregator used in the memory module has been replaced with
the wrapper functions which calls the functions from Pmt Util class.

Related-To: NEO-11992

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2024-07-24 08:47:17 +02:00
Mateusz Jablonski
778645c11e feature: add initial support for Xe2 platforms
Related-To: NEO-8188, NEO-10774
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-07-09 10:30:27 +02:00
Anvesh Bakwad
aa7b306813 refactor(sysman): Move guidToKeyOffsetMap to Product specific files
Related-To: NEO-11821

Signed-off-by: Anvesh Bakwad <anvesh.bakwad@intel.com>
2024-07-03 05:41:45 +02:00
shubham kumar
3b8e4aaedd refactor(sysman): Move pmt offsets to product helper layer
Related-To: NEO-11854

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-07-02 16:35:25 +02:00
shubham kumar
e5036ce9f0 feature(sysman): windows add support for card and package power
Related-To: NEO-11820

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-07-02 12:59:30 +02:00
Bellekallu Rajkiran
c5f0d3152d refactor: Move kmd interface files to seperate dir
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2024-06-28 09:22:00 +02:00
Bellekallu Rajkiran
40612e93d3 feature: Support for group engine activity with xeKMD
Related-To: NEO-10011

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2024-06-27 16:13:14 +02:00
Bari, Pratik
4aaf201d9e refactor(sysman): Add SysmanProductHelper In SysmanKmdInterface Creation
- The SysmanProductHelper Pointer is used in the SysmanKmdInterface
instance creation.
- The filename for the critical power limit is fetched via the
SysmanProductHelper instance.
- The native unit for the critical limit is fetched via the
SysmanProductHelper instance.

Related-To: NEO-11813, NEO-11811

Signed-off-by: Bari, Pratik <pratik.bari@intel.com>
2024-06-27 00:58:37 +02:00
shubham kumar
492c90e300 feature(sysman): Win support PMT based getMemoryBandWidth
Related-To: NEO-10661

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-06-26 19:49:46 +02:00
Maciej Bielski
3e11ced59b fix: sanitize the array entries count returned from KMD
Related-To: NEO-11825
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
2024-06-26 16:19:12 +02:00
Compute-Runtime-Validation
659075ffe5 Revert "feature(sysman): Win support PMT based getMemoryBandWidth"
This reverts commit 8d80941fff.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-06-25 04:12:21 +02:00
Bari, Pratik
cb8c0b1772 fix(sysman): Changes in the Global Operations API w.r.t Xe driver
- The list of Engine maps has been changed according to the fields
populated in the fdinfo.
- The driverVersion is fetched correctly for the i915 internal, upstream
as well as the Xe kernel.

Related-To: NEO-8551

Signed-off-by: Bari, Pratik <pratik.bari@intel.com>
2024-06-24 10:32:33 +02:00
shubham kumar
8d80941fff feature(sysman): Win support PMT based getMemoryBandWidth
Related-To: NEO-10661

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-06-24 10:24:38 +02:00