Commit Graph

63 Commits

Author SHA1 Message Date
Jablonski, Mateusz d724627098 fix: fix compilation error in clang on Windows (1/n)
Signed-off-by: Jablonski, Mateusz <mateusz.jablonski@intel.com>
2023-10-23 10:36:23 +02:00
Bari, Pratik f9e4381c1e feature: Add FsAccess and Derived class in Sysman Kmd Interface
- The FsAccess, ProcFsAccess and SysfsAccess classes have been added in
a file in the Sysman Shared directory. The instances of these classes
are maintained in the Sysman Kmd Interface classes.
- Added functions for opendir, readdir and closedir in the shared code.
- Added a ULT in the sysman directory to cover these new functions from
the shared code.

Related-To: LOCI-4689

Signed-off-by: Bari, Pratik <pratik.bari@intel.com>
2023-08-23 11:38:57 +02:00
Mayank Raghuwanshi 175ceb9bd1 feature: Add support for media freq domain on linux
Related-To: LOCI-4552

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2023-07-25 08:12:33 +02:00
Compute-Runtime-Validation 5c60b4d973 Revert "feature: Add support for Media frequncy Domain on linux"
This reverts commit 085293b230.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2023-07-20 03:04:52 +02:00
Mayank Raghuwanshi 085293b230 feature: Add support for Media frequncy Domain on linux
Related-To: LOCI-4552

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2023-07-19 16:43:27 +02:00
Bari, Pratik 16b56b9a6f feature(sysman): New shared directory in the sysman code.
The files containing the new 'SysmanKmdInterface' has been moved into
the new 'shared' directory in the existing sysman directory. More files
are to be added in this directory which will be used by all the sysman
modules in the sysman and tools directories.

Related-To: LOCI-4649

Signed-off-by: Bari, Pratik <pratik.bari@intel.com>
2023-07-18 16:06:31 +02:00
Bari, Pratik b9837ef068 feature(sysman): Added changes for Porting Frequency API
The new classes SysmanKmdInterface, SysmanKmdInterfaceI915 and
SysmanKmdInterfaceXe have been introduced.
A map is maintained in the SysmanKmdInterfaceI915 and
SysmanKmdInterfaceXe class for the sysfs file names.
The access specifier of the function getDrmVersion has been changed from
protected to public so as to use it in the sysman code. This is required
for the SysmanKmdInterface pointer to point to the
SysmanKmdInterfaceI915 and SysmanKmdInterfaceXe accordingly.
The ULTs have been added for the new sysfs file path corresponding to
the i915 and the Xe driver.

Related-To: LOCI-4399

Signed-off-by: Bari, Pratik <pratik.bari@intel.com>
2023-07-13 08:41:05 +02:00
Mayank Raghuwanshi ac01d02247 feature: Add support for frequency media domain for windows
Related-To: LOCI-4287

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2023-06-19 06:19:10 +02:00
Bari, Pratik 593bd13d4d Added support for Frequency APIs
- Added support for the Frequency APIs in the new sysman design.
- Added ULTs for the Frequency APIs in the new sysman design.

Related-To: LOCI-4096

Signed-off-by: Bari, Pratik <pratik.bari@intel.com>
2023-03-23 18:53:32 +01:00
Mateusz Jablonski 659cacf2c9 refactor l0 cmake: reduce include directories
Related-To: NEO-7507
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-03-17 13:41:55 +01:00
Mateusz Jablonski a7830eb478 refactor l0 cmake: add CMakeLists.txt files to solution
Related-To: NEO-7507
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-03-17 12:09:03 +01:00
Mateusz Jablonski cb7437b6b7 refactor l0 tools: cleanup cmake files
append sources in current directory

Related-To: NEO-7507
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-03-16 14:05:14 +01:00
Warchulski, Jaroslaw 64f735481d Cleanup includes 48
Cleaned up files:
shared/source/command_container/command_encoder.inl
shared/source/os_interface/hw_info_config.h

Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2023-02-10 17:23:02 +01:00
Warchulski, Jaroslaw e21cf516d3 Cleanup includes 44
Cleaned up files:
level_zero/tools/source/sysman/windows/os_sysman_imp.h
opencl/source/command_queue/command_queue.h
shared/source/command_container/cmdcontainer.h

Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2023-01-25 16:05:22 +01:00
Warchulski, Jaroslaw bd81b5546d Cleanup includes 25
Cleaned up files:
level_zero/core/source/device/device.h
opencl/source/helpers/dispatch_info.h
shared/source/os_interface/os_interface.h

Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2023-01-10 12:54:45 +01:00
Singh, Prasoon 6254dd057d Enabled debug logs in frequency module
Related-To: LOCI-3471

Signed-off-by: Singh, Prasoon <prasoon.singh@intel.com>
2023-01-02 19:47:13 +01:00
Joshua Santosh Ranjan 522076cf82 Avoid adding subdevice flag if ReturnSubDevicesAsApiDevices is set
Related-To: LOCI-3656

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-12-19 05:15:51 +01:00
Warchulski, Jaroslaw f35f59b573 Cleanup includes 5
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2022-11-18 22:46:38 +01:00
Mayank Raghuwanshi ffcca3ba53 Use physical subdeviceId for sysman ras, freq and standby module
Related-To: LOCI-2925, LOCI-2926, LOCI-3236
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-11-14 14:10:23 +01:00
Warchulski, Jaroslaw fb25f96081 Cleanup includes 2
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2022-11-07 10:36:50 +01:00
Mayank Raghuwanshi a9bc4de8cf Enable sysman windows ults
Related-To: LOCI-3205

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-09-22 08:16:11 +02:00
Mayank Raghuwanshi 0d5f3351df Add support for setting default values for min and max frquency
Related-To: LOCI-3170

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-09-16 16:15:54 +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
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
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 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 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
Bellekallu Rajkiran 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
Bellekallu Rajkiran 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
Daniel Enriquez dbe0ba2a0f Sysman for Windows: Multiple fixes and optimizations
Signed-off-by: Daniel Enriquez <daniel.enriquez.montanez@intel.com>
2021-11-04 20:11:39 +01: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
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
John Falkowski dc77174255 TimerResolution Device Properties 1.2
Signed-off-by: John Falkowski <john.falkowski@intel.com>
2021-07-06 11:37:07 +02:00
Daniel Enriquez b04118128a Removing support for Fixed mode, won't be supported anymore.
With this change, if user tried to set that mode
then UNSUPPORTED would be returned.

Signed-off-by: Daniel Enriquez <daniel.enriquez.montanez@intel.com>
2021-07-01 08:06:17 +02:00
Mayank Raghuwanshi 6436714987 Update sysfs path for sysman freq module
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-06-22 18:48:15 +02:00
lgotszal 3bd4bca911 Copyright header update
Dates corrected in copyright headers to reflect original publication date
(2018 for OpenCL, 2020 for Level Zero).

Signed-off-by: lgotszal <lukasz.gotszald@intel.com>
2021-05-17 20:38:19 +02:00
Kanhaiya Singh a246c358e5 Update zesFrequencyGetAvailableClocks for clocks to be in multiples of 50 Mhz
Signed-off-by: Kanhaiya Singh <kanhaiya.singh@intel.com>
2021-02-23 06:46:25 +01:00
Daniel Enriquez 3aff89199d L0 Sysman Windows DG2 Readyness Patch.
Implemented Fan Curve, Moved to OAG Counters, Fixed Frequency Range.
2021-01-30 05:59:27 +01:00
Mayank Raghuwanshi 9c1739c095 Update zesFrequencyGetState and zesFrequencyGetRange
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2020-11-13 06:04:50 +01:00
Vilvaraj, T J Vivek e096e5b0f8 fix CmakeLists for sysman frequency
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-11-11 17:32:43 +01:00
mraghuwa 4e4affe53b Modify tdp sysfs path
Change-Id: Ie387a96f67b5760d8f1e359eea61c66aec631afd
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-10-29 10:33:23 +01:00
Kanhaiya 872049978a Fix TDP/REQUEST reading
Change-Id: I7b4f2f176696a4f4636934accebf71ed3285427c
Signed-off-by: Kanhaiya <kanhaiya.singh@intel.com>
2020-10-09 16:38:48 +02:00
Jitendra Sharma 77f88f9a96 Add Subdevice support for sysman scheduler API
Change-Id: I7b2222645d93346cfd3bfd3b6561dbe21154b61f
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-09-29 16:30:20 +02:00
Daniel Enriquez 2d27570292 Fix current voltage unit problem, returning Volts now.
Change-Id: I257e431f5dbc4d71191ce50750791746d8bba8d9
2020-09-29 01:48:35 -07:00
Daniel Enriquez f0907361ff Adding Frequency Support for Windows in Level 0 Sysman
Change-Id: I8dbf67b0a6f88379a3da304e01a8f102e2027dd1
2020-09-19 08:30:13 +02:00
Jitendra Sharma e904a1f0b4 Create Sysman Frequency API handles based on available subdevice/device
Change-Id: I2049515150004551c3f61647d20f1df7b375f587
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-09-15 18:12:14 +02:00
mraghuwa 9f7a97ac5b Return Unsupported feature when sysfs nodes are absent
Change-Id: I69c1447bb65e2be074d338e910223c3b8c2e9c55
2020-08-26 21:29:54 +02:00
Pawel Cieslak fb821f21f5 Cmake format script
Related-To: NEO-1157

Change-Id: Ie1b907e838cfb9ad0d75cc8971d415f7c77103c9
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2020-08-19 16:36:30 +02:00
Matias A. Cabral 990750d153 Enable ULTs for Sysman APIs ported to 1.0
Change-Id: I7ef425e6a076f8b26992a9a7cd4b2711e12f3a64
Signed-off-by: Matias A. Cabral <matias.a.cabral@intel.com>
2020-08-04 11:08:15 +02:00