Commit Graph

27 Commits

Author SHA1 Message Date
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
Pichika Uday Kiran 7a59ebc1d6 ULT: Add global operations ULTs for device reset
- Commit handles ULTs to handle device reset only.

Related-To: LOCI-2114
Signed-off-by: Pichika Uday Kiran <pichika.uday.kiran@intel.com>
2021-08-11 07:25:16 +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
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
Mayank Raghuwanshi 17565be417 Retrieve model name and vendor name for sysman zesDeviceGetProperties
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-04-20 16:30:44 +02:00
Vilvaraj, T J Vivek 699b504378 sysman: add support to enable IFR status.
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2021-04-20 15:27:09 +02:00
Jitendra Sharma 46c51cb8a9 Sysman device reset stability fix
Close PMT, and PMU fds created during Sysman's init before calling
device reset.

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-04-15 11:53:10 +02:00
Mateusz Hoppe a24735b4fd Revert "sysman: add basic steps for IFR status"
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-04-08 20:35:15 +02:00
Vilvaraj, T J Vivek b56b204f3e sysman: add basic steps for IFR status.
In field repair status information is needed as part of Device
reset status

Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2021-04-07 16:21:26 +02:00
Mayank Raghuwanshi a9ab9f0789 Fix for absence of busy node for clients
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2021-03-29 14:20:27 +02:00
Vilvaraj, T J Vivek 9ed68131c3 sysman: add ULT to check Device Reset
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2021-03-19 05:41:35 +01:00
Vilvaraj, T J Vivek 1bf331c282 sysman:add ULT to Global operations
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2021-03-02 21:28:40 +01:00
Daniel Enriquez e88ef75c57 Implementing Reset Device Level 0 Sysman Windows
Enabling Device Reset for Windows.

Signed-off-by: Daniel Enriquez daniel.enriquez.montanez@intel.com
2021-02-12 03:41:48 +01:00
Mayank Raghuwanshi 29254cb683 update <pid> case for zetSysmanProcessesGetState
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2020-12-08 19:55:03 +01: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 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
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
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
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
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
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
Vilvaraj, T J Vivek d49a7293e2 update Device APIs to lastest Spec.
Change-Id: Icda7d3315e0ce51afe4f3642d368197c78fc097f
2020-08-07 16:12:27 +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
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
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