Commit Graph

323 Commits

Author SHA1 Message Date
Mayank Raghuwanshi 94177389f9 Update memory transaction size for sysman memory module
Related-To: LOCI-3142

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-08-03 11:46:14 +02:00
Kulkarni, Ashwin Kumar cf55a92b79 Defer Sysman PCI, Global operations and Events Module Initialization
With this change, init for sysman PCI, Global operations and Events
API would not be done during zeInit.
init and thereby PCI, Global operations and Events API handle creation
would be done implicitly only when user explicitly calls any APIs.

Related-To: LOCI-3127

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2022-08-02 08:56:04 +02:00
Bellekallu Rajkiran f23f78e2cc Add support for extended power properties
Related-To: LOCI-3242

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-08-01 13:02:49 +02:00
Kamil Kopryk 582ed0565b Use memcpy_s instead of memcpy
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2022-08-01 12:43:29 +02:00
Bellekallu Rajkiran d02b45c9b9 Add support for power limit ext functions
Add support for getPowerLimitsExt and
setPowerLimitsExt functions.

Related-To: LOCI-3125, LOCI-3193

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-07-28 16:40:33 +02:00
Mayank Raghuwanshi e135c0ba82 Update sysfs node to read the memory freq file
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-07-26 10:31:24 +02:00
Kulkarni, Ashwin Kumar 137959c647 Defer Sysman Power and Performance Module Initialization
With this change, init for sysman Power/Performance API would
not be done during zeInit.
init and thereby Power/Performance API handle creation would be done
only when user explicitly requests to enumerate handles
using zesDeviceEnumPowerDomains/zesDeviceEnumPerformanceFactorDomains.

Related-To: LOCI-3127

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2022-07-25 08:17:46 +02:00
Kulkarni, Ashwin Kumar 2d8176fdbd Defer Sysman Fabric Port and Fan Module Initialization
With this change, init for sysman Fabric Port/Fan API would
not be done during zeInit.
init and thereby Fabric Port/Fan API handle creation would be done
only when user explicitly requests to enumerate handles
using zesDeviceEnumFabricPorts/zesDeviceEnumFans.

Also, ECC module init calls are cleared as they are no longer needed.

Related-To: LOCI-3127

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2022-07-22 02:23:17 +02:00
Mateusz Jablonski a4e9ede440 Dont use global namespaces of i915 definitions
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-07-19 13:17:59 +02:00
Mateusz Jablonski 78c96db2fa Create wrappers for different version of i915 headers
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-07-18 10:15:44 +02:00
Compute-Runtime-Validation 56a264a33d Revert "Defer Sysman Scheduler and Memory Module Initialization"
This reverts commit e1748ad436.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-07-18 08:19:58 +02:00
Kulkarni, Ashwin Kumar aadf424476 Defer Sysman Standby Module Initialization
With this change, init for sysman Standby API would not be done during zeInit.
Rather init and thereby Standby API handle creation would be done only
when user explicitly requests to enumerate handles
using zesDeviceEnumStandbyDomains.

Related-To: LOCI-3127

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2022-07-15 23:14:54 +02:00
Kulkarni, Ashwin Kumar e1748ad436 Defer Sysman Scheduler and Memory Module Initialization
With this change, init for sysman Scheduler/Memory API would
not be done during zeInit.
init and thereby Scheduler/Memory API handle creation would be done
only when user explicitly requests to enumerate handles
using zesDeviceEnumSchedulers/zesDeviceEnumMemory.

Related-To: LOCI-3127

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2022-07-15 20:36:03 +02:00
Kulkarni, Ashwin Kumar e58bc1ca86 Defer Sysman Temperature Module Initialization
With this change, init for sysman Temperature API would not be done
during zeInit.
Rather init and thereby Temperature API handle creation would be done
only when user explicitly requests to enumerate handles
using zesDeviceEnumTemperatureSensors.

Modification to temperature ULTs

Related-To: LOCI-3127

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2022-07-15 20:23:55 +02:00
Bellekallu Rajkiran e1ba6d825a Support for power limit extensions
Boiler plate implementation of power limit
extension functions.

Related-To: LOCI-3125, LOCI-3193

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-07-11 09:02:25 +02:00
Kulkarni, Ashwin Kumar 97a3368aad Defer Sysman Frequency Initialization
With this change, init for sysman Frequency API would not be done during zeInit.
Rather init and thereby Frequency API handle creation would be done only
when user explicitly requests to enumerate handles
using zesDeviceEnumFrequencyDomains.

Related-To: LOCI-3127

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2022-07-11 05:43:50 +02:00
Mateusz Hoppe 5956aea18d Limit header includes from level_zero device.h
- remove including debugger_l0.h from device.h
- add getL0Debugger() to shared NEO Device

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-07-06 16:41:17 +02:00
Kulkarni, Ashwin Kumar abd2815ae7 Support for Diagnostics lazy init in zeInit flow
Modifications for Diagnostics module lazy init

Related-To: LOCI-3127

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2022-07-04 18:30:08 +02:00
Kulkarni, Ashwin Kumar 49aaf62bbd Lazy init implementation for RAS module
Related-To: LOCI-3127

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2022-07-04 18:29:57 +02:00
Kulkarni, Ashwin Kumar d066e2d5a7 Support for lazy init in zeInit flow
Modifications for firmware lazy init implementation

Related-To: LOCI-3127

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2022-06-30 20:22:11 +02:00
Mayank Raghuwanshi db20000450 Add Ecc support for sysman windows
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-06-29 07:51:53 +02:00
Vilvaraj, T J Vivek 894f90f89e SysMan:fix device reset
The distance from the SGUnit to the  Root port is constant.
calculating the Rootport and Cardbus based on this observation.
the root port and card bus are used by Warmreset function to
preserve the PCI config space.

Resolves: LOCI-2899

Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2022-06-25 03:13:52 +02:00
Mayank Raghuwanshi 281c98dcf9 Add firmware util interface for sysman windows
Related-To: LOCI-3132

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-06-24 08:42:48 +02:00
Bellekallu Rajkiran cf9e48db83 Update PCI interface
Modify PCI interface to get max speed and width from
pci config space.

Related-To: LOCI-3137

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-06-17 11:58:20 +02:00
Vilvaraj, T J Vivek c0121eb824 SysMan: fix issues in execution environment restoration.
the scpoe of the restorer is till the LinuxSysmanImp is deleted.
Ideally the scope of restorer needs to be function level.

Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2022-06-15 11:38:23 +02:00
Mateusz Jablonski e67307b724 Add DrmParam enum values for I915_EXEC values
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-06-15 08:39:39 +02:00
Daniel Chabrowski c303c218be Add missing pragma once in header files
Signed-off-by: Daniel Chabrowski <daniel.chabrowski@intel.com>
2022-06-07 16:19:11 +02:00
Vilvaraj, T J Vivek 973bcb9dbc Sysman: cleanup execution env referrals
convert the present system of calling Inc/Dec of
execution environment to a more elegant solution

Resolves: LOCI-3165

Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2022-06-06 18:40:23 +02:00
Vilvaraj, T J Vivek da52303e6e SysMan: Diagnostics warm reset fix.
The following modifications were done as part of the fix
for warm reset.
1. Release sysman resources before quiscenting the GPU.
2. Add additional checks to confirm quiscenting of the GPU
before launching the diagnostics tests.
3. Fixed warm reset with wait time to allow the changes to be
propagated to the entire GPU PCI tree.
4. Modified the ULT's completely to avoid the usage of MOCKS.
5. Made Diagnostics handle creation per-device from per-SubDevice.

Related-To: LOCI-3053

Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2022-06-06 10:09:47 +02:00
Mateusz Jablonski 747c2d3d83 Cleanup includes in cmdlist, cmdqueue, context, device, driver and module
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-06-03 02:54:41 +02:00
Mateusz Jablonski 2a4c68dc38 Remove not needed dependencies from device_imp.h
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-06-02 18:35:34 +02:00
Mayank Raghuwanshi d46ed9a217 Fix bitwise operation of timestamp for sysman memory module
Related-To: LOCI-3147

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-05-25 11:07:16 +02:00
Bellekallu Rajkiran 3efdfba41e Add support for error correction codes
Implement ECC API.
Add ULTs to validate error correction codes.
Integrate sysman ecc with igsc.

Related-To: LOCI-2782

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-05-24 11:03:16 +02:00
Bellekallu Rajkiran b3d9893df5 Modify media performance multiplier scale to factor conversion
Set performance factor to half of max performance factor when
multiplier scale is 0.5.
Add ULTs to verify the same.

Related-To: LOCI-3026

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-05-22 05:01:06 +02:00
Mateusz Jablonski eecde1e1f3 style: correct case in variable name
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-16 14:01:25 +02:00
Artur Harasimiuk 819e0f5515 style: configure readability-identifier-naming.LocalVariableCase
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-16 12:39:44 +02:00
Artur Harasimiuk e9be9b64c6 clang-tidy configuration cleanup
Define single .clang-tidy configuration with all used checks and use
NOLINT to selectively silence tool. That way cleanup should be easier.
third_part/ has its own configuration that disables clang-tidy for this
folder.

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-11 14:02:04 +02:00
sairamud 2578a988c5
Implement WddmFanImp::setDefaultMode to enable zesFanSetDefaultMode feature (#11623)
* Implement WddmFanImp::setDefaultMode to enable zesFanSetDefaultMode feature

Signed-off-by: sairamud <sairam.udaya.janardhana.muttavarapu@intel.com>

* Implement WddmFanImp::setDefaultMode to enable zesFanSetDefaultMode feature

Signed-off-by: sairamud <sairam.udaya.janardhana.muttavarapu@intel.com>

* Implement WddmFanImp::setDefaultMode to enable zesFanSetDefaultMode feature

Signed-off-by: sairamud <sairam.udaya.janardhana.muttavarapu@intel.com>
2022-05-11 03:50:09 +02:00
Mayank Raghuwanshi 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
Jitendra Sharma 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
Bellekallu Rajkiran 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
Compute-Runtime-Validation 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
Mayank Raghuwanshi 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
Mayank Raghuwanshi 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
Bellekallu Rajkiran 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
Bellekallu Rajkiran 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
Bellekallu Rajkiran 51988148de Sysman: Remove redundant files
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-04-11 18:32:57 +02:00
Mayank Raghuwanshi 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
Vilvaraj, T J Vivek 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
Bellekallu Rajkiran 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