Commit Graph

117 Commits

Author SHA1 Message Date
mraghuwa a8a013b0c3 Implement zesRasGetState to retrieve cache errors
Change-Id: I9fbba505db6551f510cb20ea71604af53db61960
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-10-20 15:45:36 +02:00
Bill Jordan ccd5abfbfd Add zesDeviceReset ULTs.
This patch adds two ULTs.

Verify that an IN USE error is returned if the device is open by another
process.

Verify that reset succeeds if device is not in use.

Verify that reset with force succeeds if device is in use.

Verify that reset without force succeeds if device is opened during
reset, and process is killed.

Verify that reset with force fails with device in use
if device is opened during reset, and process will not die

Change-Id: I232572c192bc481d8d63ef39c7494976100325ff
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-10-19 15:01:19 +02:00
Vilvaraj, T J Vivek 113a5170b1 Implement zesDeviceGetState() API
Change-Id: I035bdd0ddd7b8bdf6054c743a9f2723ee292a897
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-10-12 14:27:19 +02: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
mraghuwa 2643346b48 Update Sysman RAS Module
Change-Id: I2b99dae4336811ea4b539da48c1434657a9cf62a
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-10-09 08:23:19 +02:00
Kanhaiya c4a910d911 cleanup of Sysman code to pass by reference instead of pass by value
Change-Id: Ie4537c7e45730afe98da3886831fd71ff5b96960
Signed-off-by: Kanhaiya <kanhaiya.singh@intel.com>
2020-10-06 18:36:03 +02:00
Jitendra Sharma cfb1fec19a Implement sysman power set/get limit APIs
Change-Id: I35232902cf96d20594adbd128064c362cf154711
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-10-06 17:33:11 +02:00
Jitendra Sharma 1962a89b05 In Sysman fix C++ programming warnings
Fix warnings related to unused/uninitialized variables etc.

Change-Id: I2e75ede434442d7b99d6e28253e7811aac205323
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-10-06 16:35:53 +02:00
Bill Jordan 909107cab6 Fix zesDeviceReset for Spec version 1.
This patch does the following:
- Fixes a bug in FsAccess::listDirectory that could return
ZE_RESULT_UNKNOWN_ERROR when no error has occurred.
- Fixes a bug in zesDeviceReset that would reset the device
if force was set to false, even if the device was in use.
- Fixes a bug in zesDeviceReset that would reset the device
if force was set to false without closing the file descriptor.
- Added a releaseResources method method to Device object.
This method does the same thing as the DeviceImp
destructor except it does not free the DeviceImp object
and it does not free the SysmanDeviceImp object.
- Added the releaseResources methods to Mock<Device> object.
- Moved the reset of the debugger out of DriverHandleImp
destructor and into DeviceImp releaseResources.
- Added a releaseEngine method to the EngineHandleContext. This
method frees all the Engine handles.
- On reset, I call the Devcie->releaseResources and
EngineHandleContext->releaseEngines before resetting the device.
- Added a -r (--reset) option to zello_sysman so I
could easily test resets.

With these patches, the L0 Sysman CTS for zesDeviceReset
both pass.

Change-Id: I31fad1b27bc5cc6befe31cd6f9319748e2683424
2020-10-05 19:55:14 +02:00
mraghuwa 78feb47d6c Add subdevice support for standby
Change-Id: I4209d11a8305ba524e56cddbee5ad3432b32554f
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-09-30 15:03:14 +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
SaiKishore Konda e28f937683 Add SubDevice support for Sysman Memory module
Change-Id: Iec5918486fc2c00e14de074aca18e6de63ba1600
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-09-29 11:36:21 +02:00
Daniel Enriquez 2d27570292 Fix current voltage unit problem, returning Volts now.
Change-Id: I257e431f5dbc4d71191ce50750791746d8bba8d9
2020-09-29 01:48:35 -07:00
Kanhaiya 723e852c09 Moved all the constants used in sysman to the single header file
Change-Id: I0bfa02e68c9aba1cc5d3105c37630b30b03e1b54
Signed-off-by: Kanhaiya <kanhaiya.singh@intel.com>
2020-09-23 14:35:13 +02:00
Jitendra Sharma 13b8929832 Retrieve Sysman engine property onSubdevice/subdeviceId field
Change-Id: Ifc26cbe1d6398d0c08a0e52c39936c517efca43e
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-09-20 07:00:21 +02:00
Daniel Enriquez f0907361ff Adding Frequency Support for Windows in Level 0 Sysman
Change-Id: I8dbf67b0a6f88379a3da304e01a8f102e2027dd1
2020-09-19 08:30:13 +02:00
Daniel Enriquez dee1c687a9 Add Engines Support for Windows
Change-Id: Ibad56d39b563c543e8a23fa92cc9844c69a62352
2020-09-15 21:36:32 +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
Vilvaraj, T J Vivek 933bb45dcc Boilerplate Code for Sysman Firmware API
Change-Id: I8299bdf4b388bb05de7640240d033ba680e5ca14
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-09-08 10:47:17 +02:00
Jitendra Sharma 38ecb25ee6 Add support to query PMU counters
This change adds support to get engine active time and timestamp
from PMU interface.

Change-Id: I486dcce9fef3c7dc3f73fb8c7ea4c0bd020a6807
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-09-07 16:15:21 +02:00
Vilvaraj, T J Vivek f211578148 add support for multiple engines in scheduler API.
Change-Id: I2d530f88b8f4c8646c00ed712e5a07bb8439b759
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-09-07 15:57:30 +02:00
Vilvaraj, T J Vivek 831e87eef8 Sysman memory modification based on product.
Change-Id: I01f4c3cc6fe2376293d48131492f9d686fbdb5ae
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-09-03 21:41:04 +02:00
Jitendra Sharma 79ba0ff1f9 Dont report error if i915 engine class didnt map to L0 Sysman's engine group
Change-Id: I6b39494b80ec3c257be427bb1e250b8fb4472771
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-09-03 14:00:39 +02:00
Daniel Enriquez f891708e3f Adding support for Fan component to Sysman.
Change-Id: I0b99bcd542396471b6eab3f9b0b215bedcde7640
2020-08-28 23:55:23 +02:00
Daniel Enriquez c7037aca4d Enabling Windows Pci component.
Change-Id: Idfd1acb8f257ab91dd28707f0b42b3da3981214e
2020-08-28 23:48:13 +02:00
SaiKishore Konda 8f52561307 Multiple engine support for Sysman Engine API
- multiple engines support for Sysman Engine API
- added engineQuery support
- opencl ULTs to validate engineQuery
- Sysman ULTs to validate engine APIs

Change-Id: I3b4d3a96a4cdca7dd9957f6a57f7b1bf900582d3
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-08-28 13:36:31 +02:00
mraghuwa 9f7a97ac5b Return Unsupported feature when sysfs nodes are absent
Change-Id: I69c1447bb65e2be074d338e910223c3b8c2e9c55
2020-08-26 21:29:54 +02:00
Matias A. Cabral 9edbe1dd11 Do not check sysman env var in engine code
Change-Id: I40caa382024465ff3ca466369f152d0c1d6fac0a
Signed-off-by: Matias A. Cabral <matias.a.cabral@intel.com>
2020-08-24 10:21:19 +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
Daniel Enriquez c24c629cfc Enabling Temperature for Windows.
Change-Id: I0a4e51448d56a083ae5ecbda5106db981f5cd028
2020-08-18 22:45:04 -07:00
Daniel Enriquez d36c013acf Enabling Power Component for Windows.
Change-Id: I67a170279994e5637e353c9eca9fff04fb02d87e
2020-08-18 18:59:39 +02:00
mraghuwa 4b8d4285d7 add getDeviceHandle() at OS specific level
Change-Id: I95fc24043f8f603d6270323b0f23a78f9d8ad2f1
Signed-off-by: mraghuwa <mayank.raghuwanshi@intel.com>
2020-08-18 17:11:22 +02:00
Daniel Enriquez 2fa30d7d6c Update memory component to latest spec.
Change-Id: I766a3b87d240d26118cf72ea0717bc504784e764
2020-08-12 11:47:04 +02:00
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
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
Matias A. Cabral 5dbf7d5f8c Enable Sysman zesFrequencyGetAvailableClocks
Enable Sysman zesFrequencyGetAvailableClocks

Change-Id: I23f839a3c6eeccbba0cb24adc2b9e34d4595c201
Signed-off-by: Matias A. Cabral <matias.a.cabral@intel.com>
2020-08-03 20:27:52 +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
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
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
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