Commit Graph

77 Commits

Author SHA1 Message Date
Bill Jordan 4b0aad316f Update zesDeviceReset to 1.0 Spec.
Change-Id: Idc55e9c06c4cd7cd366c4a1dd9af77e518c0bec3
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-08-12 08:41:17 +02:00
Vilvaraj, T J Vivek e51cd6208f Update implementation of zesDeviceProcessesGetState to add sharedSize
Change-Id: I88e1fa8185b00cfaffae47d511d33f7e453d8276
2020-08-11 00:01:54 +02:00
Robert Krzemien 0bb026f1f1 Metric Api ULT: check if report data struct is properly filled
Change-Id: If06650002746963081d6663122f486b4258afdc1
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-08-10 11:46:14 +02:00
Jitendra Sharma f4742855d8 Update zesDevicePciGetBars API to report correct count of bars
This change does the following:
 - As per latest spec, update zesDevicePciGetBars API to report
   correct number of bars.
 - Cleanup to remove environment variable check while creating
   temperature handles.

Change-Id: I4f86210093e3d142183a01bef89417ef9d9fde9b
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-08-07 18:08:06 +02:00
Vilvaraj, T J Vivek d49a7293e2 update Device APIs to lastest Spec.
Change-Id: Icda7d3315e0ce51afe4f3642d368197c78fc097f
2020-08-07 16:12:27 +02:00
Bill Jordan 8194520fe5 L0 Sysman Standby cleanup.
Change-Id: I8702a7ca08c8edc0da3089891499699ec8bd20d3
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-08-06 13:03:59 +02:00
mraghuwa 220c575850 Update Ras Api's as per latest spec
Change-Id: I29b77eee0832fcca6d989f9ef41b01b17232a91e
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-08-06 08:31:03 +02:00
Matias A. Cabral 237e2fe61f Cleanup Sysman initialization
Change-Id: Idc1e13e1b1fd3928674d5f199665054dbab27a9b
Signed-off-by: Matias A. Cabral <matias.a.cabral@intel.com>
2020-08-06 06:28:21 +02:00
Jitendra Sharma 94a26db5ba Update Scheduler APIs as per latest spec
Change-Id: Ia8558ab30c83f1e30dae94cc7eb489ea7a8897da
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-08-05 18:52:34 +02:00
Vilvaraj, T J Vivek a6ea7ab7db update Sysman PCI APIs to lastest Spec
Change-Id: Ie4daf2eb3596f05f824579eff3fe811ebb2f2032
2020-08-05 18:01:37 +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
Jaime Arteaga 902fc2f6c4 level-zero v1.0 (2/N)
Change-Id: I1419231a721fab210e166d26a264cae04d661dcd
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
Signed-off-by: macabral <matias.a.cabral@intel.com>
Signed-off-by: davidoli <david.olien@intel.com>
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
Signed-off-by: Latif, Raiyan <raiyan.latif@intel.com>
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2020-08-03 13:11:13 +02:00
Jitendra Sharma b6e98c4eb4 Update Sysman engine APIs as per latest spec
Change-Id: I477435714a20f7a9c8fd4bb1ef6b852eeaabd5e2
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-07-31 10:37:57 +02:00
Piotr Maciejewski 403594fce0 Metric Api 1.0: context for zetMetricStreamerOpen.
Change-Id: Ib121d45cad6d84891eabe49273ea42a017c50be3
2020-07-31 10:04:46 +02:00
Piotr Maciejewski e72246a74d Metric Api 1.0 : Max value for zetMetricGroupCalculateMetricValues.
Change-Id: Ie9022630e71a4c2e6dadb76ca4ec87b38fd8dfa5
2020-07-31 08:53:27 +02:00
Spruit, Neil R 697fa86e2f Update Metrics APIs to use new enums and structs
Change-Id: Ic7023a1b256073496e8686ce31ef3fe9a6bec37b
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
2020-07-31 00:25:17 +02:00
Vilvaraj, T J Vivek 7bc405a9b3 Update sysman standby APIs to support latest spec.
Change-Id: I7a605c538432b2117ba968f155e4665078abc94f
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-07-30 20:33:15 +02:00
Robert Krzemien 92ce66bee8 Metric Api: zetMetricQueryPoolCreateExt update
Change-Id: I0f8f804c492bccea79bfa36fd04ef87b08026703
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-07-30 20:30:04 +02:00
Jitendra Sharma 0931801830 Update sysman temperature APIs as per latest spec
Change-Id: I171c5afe33fa216097b175e335d90692abfefa24
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-07-30 11:20:28 +02:00
Bill Jordan c64eab402e Update all L0 Sysman getHandle routines to match spec.
Updated all the getHandle routines to use the following
algorithm:
    n = min(*pCount, available)
    if (*pCount == 0 || *pCount > available) {
        *pCount = available;
    }
    if (pArrayn != nullptr) {
        for(i = 0; i < n; i++) {
            pArray[i] = handle[i];
        }
    }

Change-Id: I3b2a2170c2b52d1651bddae4f85f361fd86167a0
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-07-30 07:27:21 +02:00
Piotr Maciejewski 51e08dd07c Metric Api 1.0: metric group properties
Change-Id: Ief58ef4cb13b2d3d2d6516c668e77bc78089ab17
2020-07-29 08:36:42 +02:00
Bill Jordan 396fcbb941 Move FabricPort implementation to L0 Spec version 1.0.
Change-Id: I7b123c2813beab1175965eb8272c96cdb7f7be27
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-07-28 22:39:59 +02:00
Robert Krzemien 7dc8bbc160 Metric Api: Wait events for zetCommandListAppendMetricQueryEnd
Change-Id: I6fdf470035c1fc1f44d66778ec35ec47d0521e4d
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-07-28 19:14:05 +02:00
Robert Krzemien 46c7fac0cc Metric Api: zetContextActivateMetricGroups update
Change-Id: Ia3f38e8bfc6176063de36685e16e7a4a21f940c7
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-07-28 16:59:53 +02:00
Robert Krzemien f87f05bf8d Metric Api: Renamed MetricTracer to MetricStreamer
Change-Id: I7de16b230685201b0f91b227f17713c3cd49d497
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-07-28 11:21:10 +02:00
Daniel Enriquez 278505ca4d Enable Windows Os Layer for Sysman
Adding KmdSysman with ULT

Change-Id: If080e6327171d3634a0c461c4169ea8c84461e13
2020-07-28 10:04:02 +02:00
Robert Krzemien d76515a18d Metric Api: Moved the initialization to zeInit
Change-Id: Ia390389e514facb3d81cc28d97bf017367e9f728
Signed-off-by: Robert Krzemien <robert.krzemien@intel.com>
2020-07-27 21:41:24 +02:00
Jitendra Sharma 70babc4b69 Update Sysman frequency API as per latest spec
Change-Id: I5bfdb5e5681e9cfa054f48cf8cc4fd8e76740958
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-07-27 18:31:07 +02:00
Bill Jordan 6fc66a82cb More boilerplate for FabricPorts.
Added a FabricDevice object that all FabricPort objects have access
to. Although we don't provide library routines for the user to
access a FabricDevice level object, one exists. And the FabricPort
objects will need to coordinate with the device level object
to get perform operations.

Change-Id: Ief307a312187e8bc5c566bcf4af5b50ecc171aee
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-07-24 19:05:28 +02:00
Zbigniew Zdanowicz ba14f9dc1f Refactor mock commandlist
Change-Id: Id5cf913caf6b16880cf0040b552ecba1fe8033b3
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2020-07-24 18:32:01 +02:00
Piotr Maciejewski cc8ad91e7f Enable L0 Metric API unit tests.
Change-Id: I8b3835a477fb21d3980c91ee3e460ad8b6da94d4
2020-07-23 17:37:12 +02:00
Jitendra Sharma a0c22dec2d Update sysman power APIs to support latest spec
Change-Id: I4631a73c44d918db9421ceb394c71ffa8ca514ca
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-07-22 22:26:28 +02:00
SaiKishore Konda be6ea36769 Implementing zetSysmanMemoryGetState
- zetSysmanMemoryGetState api Implementation
- Corresponding ULT for validation

Change-Id: I2dcd53af4dd0f7cd3e19f594d70fefe21d2206e7
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-07-22 14:10:14 +02:00
Jitendra Sharma d13fdd32ad Update latest Sysman headers and some fix in sysman ULTs
This change contains:
 - Update the sysman headers as per latest spec.
 - Use mock file descriptor 0 in Sysman ULTs:
   Lets use 0 as mock file descriptor in sysman ULTs.
   Because upon creation of a process in linux, by default file
   descriptors 0, 1 and 2 are assigned to it.
   Thus in /proc/<pid>/fd/ , there will be entries 0, 1 and 2.
   By using 0 as fd, we will be sure, that call getFileName() in
   LinuxSysmanImp::init() would succeed for ULT, because entry
   /proc/<pid>/fd/0 would certainly be found in filesystem.

Change-Id: I1576e2bfc8b96a408294362ccaf9f289b2b84e69
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-07-22 09:52:10 +02:00
Bill Jordan 6e20dfafab Added limited XML parsing capability to L0 Sysman using libxml2.
XML parsing for linux only, hanging off the OsSysmanImp object.

Change-Id: I473dc8dde0611cc13f38a2c0b59e839fced2e59e
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-07-16 12:12:45 -07:00
T.J. Vivek Vilvaraj 6224db771a PCI driver fix for Discrete devices
Change-Id: I91e444c88b5e72463c7f181ece535da4150a2665
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-07-15 23:33:59 +02:00
Vilvaraj, T J Vivek ce781fe9ce Add Per Client Memory info to GetProcessState
Change-Id: Ifa181bce7701a97a46474f0668f0e6bf9d738ac3
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-07-14 21:07:37 +02:00
Pawel Cieslak 4b6f8b415e Correct HeaderFilterRegex
Related-To: NEO-3963

Change-Id: I85c2076a00fa53df0f46b9227697cc7aa0cf2ba8
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2020-07-14 18:46:37 +02:00
Jitendra Sharma 92b15507b0 Initialize variables and validate pointers before actually using them
Change-Id: Iae6fbeac124e1a02da419f5071e1ebc292b390cf
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-07-14 11:17:58 +02:00
Jitendra Sharma 146fc900c3 Add initial sysman stub as per latest spec
Change-Id: I6f36b9faa21e05a6954de0b50ea01240539441d1
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-07-11 06:54:08 +05:30
mraghuwa 357fef0ff0 Refactor file access in sysman
Change-Id: I9603c96658430064a1d68b901586171c8ba52803
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-07-08 08:32:02 +02:00
Bill Jordan c7d584b8ec Added boilerplate implementation of Sysman FabricPort
Change-Id: Icb8db2b1bac7858fd07470506c17f5cc38f34581
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-07-07 13:42:02 -04:00
macabral e08022e9c7 Support for Platform Monitoring Technology
Add support for Platform Monitoring Technology,
and read temperature and energy counters.

Change-Id: Ic2c79e902400148cc538267c498fc1d0185c81f8
Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
2020-07-02 19:41:06 +02:00
Jaime Arteaga be5364ac2f Use Level Zero core tests's main file for tools
No need seen for having two.

Change-Id: I138390c4ed6f467aee0326746a8fc5479dbba9f8
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-07-01 01:39:43 +02:00
Vilvaraj, T J Vivek 0c9c55cd17 add counter support for RAS.
- added dual handle support for RAS Correctable and Uncorrectable Errors.
- added reset counter for RAS.
- added Os Specific ULT for RAS

Change-Id: Ia10115bf6720ab211f549571e810ec0d6c0801ec
2020-06-25 08:48:11 +02:00
Jitendra Sharma 251994149a Expose DRM interface to sysman APIs
Change-Id: Iab4d42cf90c9804c2b036045f3990aedd31efa91
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-06-24 16:40:49 +02:00
SaiKishore Konda 1a90061d54 Updating Sysman Power APIs for Set/Get thresholds
- APIs zetSysmanPowerGetEnergyThreshold & zetSysmanPowerSetEnergyThreshold

Change-Id: I052d4df989bc02549936cff5b0f9a801a34e320b
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-06-19 08:55:13 +02:00
mraghuwa fea3c94772 Retrieve system default values for sysman scheduler
Change-Id: Ia547493e88656ad840b935487e52bc67fa806ebb
2020-06-19 06:53:11 +02:00
Mateusz Jablonski e5671d8e22 ULT: setup productFamily and renderCoreFamily before using them
Change-Id: I005afe541f1bf01b6e28adf48d0e10eda121b03b
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-06-18 09:09:31 +02:00
Jitendra Sharma 1618a25d71 Fix error returning to user from zetSysmanProcessesGetState API
If after reading clients directory, while actually trying to
access the individual clients file, we receive a error
ZET_RESULT_ERROR_NOT_AVAILABLE, then it means that this process/client
might be killed/removed. Hence dont return error to user.
Instead simply skip that client's traversal further and move on
to next available client.

Change-Id: If86610a89d7b2421fd85560e5a223391b76d78a0
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-06-17 07:02:35 +02:00