Commit Graph

10 Commits

Author SHA1 Message Date
Bill Jordan
7c489ac60d Implement zetSysmanDeviceReset
Implemented function level reset.

Implementation is:
Make sure we are root (otherwise, return insufficient permissions)
Make sure no one has the device open
    (otherwise, return hande object in use)
Close our file handle
Unbind the device from the kernel driver
Make sure no one still has the device open
    (otherwise, kill them)
Perform function level reset (FLR)
Rebind the device to the kernel driver

Change-Id: Ic57b95487e73b5a5f2d03e619d813bf4199adf40
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-03-24 18:26:45 +01:00
Piotr Maciejewski
e438da0f92 L0 Metrics Api fixes:
1. DEBUG_BREAK_IF instead of UNRECOVERABLE_IF.
2. Proper oa configuration deinitialization.

Change-Id: I2b966fb627d4a79ad1c0a1589b9e0916ea640545
2020-03-23 22:37:20 +01:00
Mateusz Hoppe
307a5cb822 Link tools and experimental sources to object library
Related-To: NEO-4480

Change-Id: I16da4434ec24753eabdb1bce9e38ed2e1e83ed6c
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-03-23 08:57:19 +01:00
Matias Cabral
76d3504823 Level zero metrics, do not fail deactivating metric_query
Do not abort during class destruction of the metrics query

Change-Id: If7caca14944f176bf082e0325a96d84cde111fd1
Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
2020-03-18 01:22:46 +01:00
Jitendra Sharma
a5082656ca Remove systemCmd from sysman
Change-Id: I8821d5a9712984076264f6521a9b7fe9cac5cd8e
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-03-17 17:07:14 +01:00
Jaime Arteaga
462f3cdda8 Cleanup comments in Metrics (2)
Change-Id: I1393b14e35d9624cbb22613ae2c21c6361df24fe
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-16 12:07:22 -07:00
Matias Cabral
7bc4b572cd zetSysmanDeviceGetProperties report unknown driver version
Sysman API for device properties will report unknown driver
version to avoid spawning new process in the system

Change-Id: I4edde9d9670773e339125c71bae6947575789a19
Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
2020-03-13 10:55:26 -07:00
Jaime Arteaga
a685834b25 Cleanup comments in Metrics
Change-Id: Id7eae81cf3d1da2c263ded3dbe57fd85e04c5e04
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-09 20:09:37 -07:00
Mateusz Jablonski
74eb153ae0 Level zero: Make global driver handle a unique_ptr
Change-Id: Ide7c99dffa43e87c06f59c38cc6672c9647b9996
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-03-09 20:40:20 +01:00
Brandon Fliflet
27f4bce42f Initial support for oneAPI Level Zero
Change-Id: I221df8427b1844237a4d9d900c58512706b0be0f
2020-03-06 14:53:29 +01:00