Commit Graph

22 Commits

Author SHA1 Message Date
Vilvaraj, T J Vivek 749e59fc54 Implement RAS APIs
- Implement zetSysmanRasGet API

Change-Id: Ic2a82ceac2619cd1955d4e39924228f94ecd42dd
2020-04-22 18:40:28 +02:00
Jitendra Sharma 5374a0ffc1 Implement scheduler APIs
Add logic to implement following scheduler APIs
-zetSysmanSchedulerGetCurrentMode
-zetSysmanSchedulerGetTimeoutModeProperties
-zetSysmanSchedulerGetTimesliceModeProperties
-zetSysmanSchedulerSetTimeoutMode
-zetSysmanSchedulerSetTimesliceMode
-zetSysmanSchedulerSetExclusiveMode

Change-Id: I134b200ffd6b13bc50b1f38e955dd584455b4b38
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-04-22 20:26:57 +05:30
SaiKishore Konda ce6828d374 Adding default constructor for Memory, Engine
- adding default constructor
- updating the member variables of engine, memory imp classes

Change-Id: I635858593aa53f4d56044df377286e72898ecbc4
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-22 15:02:50 +02:00
Vilvaraj, T J Vivek 324b1f5c60 RAS APIs boilerplate for Level Zero Sysman.
-Implement zetSysmanRasGet API

Change-Id: Ib06e4a5d087a1e684c918413c3d98da2082e4f91
Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2020-04-21 20:04:53 +02:00
SaiKishore Konda 3c2e98e22f Implement Engine APIs
Add logic to implement the following Engine APIs
-zetSysmanEngineGet
-zetSysmanEngineGetProperties
-zetSysmanEngineGetActivity

Change-Id: I48fe1d73b7449c80304df09537024cdcfe4e0387
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-18 01:28:27 -04:00
SaiKishore Konda ab9f7b4c53 Engine API's boilerplate for Level Zero Sysman
Change-Id: Ib73b419b53f96a71c1d604cf0091792b33c7fae1
Signed-off-by: SaiKishore Konda <saikishore.konda@intel.com>
2020-04-15 17:31:05 +02:00
Jitendra Sharma 4e75ea0496 Scheduler API's boilerplate implementation
Add boilerplate for all scheduler APIs listed in spec.

Change-Id: I0ba7e4d969f409e1a3360204dbc16037898d64c8
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-04-14 19:23:47 +02:00
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
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
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
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
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
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
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