Commit Graph

1071 Commits

Author SHA1 Message Date
Vilvaraj, T J Vivek 87028f9632 fix PCI class ctor and dtor.
Change-Id: I6c709a7a92ca280ee2289145e2bcbae3fc4734b3
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-04-13 10:58:51 -07:00
SaiKishore Konda e0633548a9 Add defaults to memoryHandleContext structure
Change-Id: If82510dff1ab77d4b4c3c77079035ca2ca15ea10
2020-04-11 03:41:07 -04:00
SaiKishore Konda ab67b94340 Updating Memory API implementations
- updating zet sysman for memory
 - updating memoryhandlecontext init and memory get by checking
isLocalMemorySupported flag

Change-Id: I084068eb0865bb037b7d80246c4a9c74d3ff2cc1
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-10 21:59:27 +02:00
Bill Jordan 3c3e1a9c5c Adjust path for Sysman Standby implementation source.
Change-Id: I7fdabf5098efd9b4a1d68bbbd3f31ac8b8cd5797
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-04-06 18:55:04 +02:00
SaiKishore Konda 9dc7e2cfaf Initalizing the memoryProperties structure
Change-Id: I2ce5a0e1bfc54c9d21746a5bb6ebe6260370fc1c
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-03 05:51:29 -04:00
Jaime Arteaga 8f5533dafc Correctly rename Level Zero functions as kernels
Change-Id: I8bc079a737171246fa62c759f594c3e841a2fcf8
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-04-03 07:59:58 +02:00
SaiKishore Konda a0c13490e5 Memory API's boilerplate for Level Zero Sysman
- Implementing MemoryGet, MemoryGetProperites & MemoryGetState
boilerplate  for Level Zero Sysman

Change-Id: I46661aac9cd6974af986aede7484fd59688046a4
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-03 02:35:14 +02:00
Bill Jordan a2a7501b79 zetSysmanStandbySetMode is not settable from L0
Change-Id: I05d60f960c9cb89b3d53259067e05e8f20e9b602
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-04-02 17:40:24 +02:00
Piotr Maciejewski c6cd582f78 Enable Performance Counters for OCL and L0.
Change-Id: I1920b9d406c092fbc26fc6ca27766db297a1958b
2020-04-02 12:04:56 +02:00
Bill Jordan 5d756b7b15 Add FsAccess::getFileMode and SysfsAccess::getFileMode methods
Change-Id: I4dddf1b3983e63ef6ad664009ebd20d474c8cc17
Signed-off-by: Bill Jordan <bill.jordan@intel.com>
2020-04-01 09:14:40 +02:00
Jaime Arteaga d96e462754 Reorganize Level Zero Core API files
Change-Id: I95750b90748dd65310fa72b030ea3ab2f72d3f24
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-03-25 11:21:43 +01:00
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