Young Jin Yoon
06dad67c5a
Add a return statement for getCsrForLowPriority
...
Related-to: LOCI-1124
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2020-12-29 21:34:05 +01:00
Young Jin Yoon
571007cfe9
Support low priority command queues
...
Related-to: LOCI-1124
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2020-12-24 05:00:34 +01:00
Jaime Arteaga
9d632b9c92
Use C++ numeric limits instead of C macro
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-25 12:01:07 +01:00
Mateusz Hoppe
b384bda99a
Exclude internally used cmdLists and cmdQs from debugging
...
Related-To: NEO-5241
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-11-17 12:17:34 +01:00
Jaime Arteaga
12598a82e5
Add support for external memory descriptors in device allocations
...
Add support for reading ze_external_memory_export_desc_t passed
to calls to zeMemAllocDevice. Current driver implementation
only supports handles as dma-buf, so add validation that only
that flag is being used.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-16 23:54:48 +01:00
Mateusz Hoppe
0f42ef1ed7
Differentiate between users ISA and internal ISA allocation
...
Related-To: NEO-5240
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-11-16 13:16:30 +01:00
Maciej Plewka
dad1dcebc3
Add L0 hw helper
...
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-11-15 23:58:12 +01:00
Jaime Arteaga
b3700370a6
Remove dead-code functions for cache intermediate/last-level config
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-14 04:23:36 +01:00
Vinod Tipparaju
f553e1e514
Return "OUT_OF_MEMORY" when gfx alloc on device fails during cmdqueue create
...
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com>
2020-11-10 06:26:02 +01:00
Jaime Arteaga
6ab9e9f1e0
Initial support for getExternalMemoryProperties and getExtensionProperties
...
Change-Id: Ib7c75dcae10bfb34dd2f703e481ecdd768370772
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-03 16:05:25 -08:00
Jaime Arteaga
87fd9b0708
Remove dead-code: OpenCL interop functions from v0.9
...
Change-Id: I4ef6eb3df8991d1ef0b6f07f81655496914cf396
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-11-03 14:22:24 +01:00
Maciej Plewka
44af85b492
Return correct maxFillSize property
...
Related-To: NEO-5205
Change-Id: I62b7fec89451c640f70028b8d3ecb81f7655225d
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-11-02 16:10:01 +01:00
Jitendra Sharma
17970ad5e7
Add sysman handles for subdevice only after subdevices are created
...
Move location of assigning sysman handles, such that sysman handle
will be assigned to device and then assign that sysman handle
to subdevices of that device.
Change-Id: Ia606954a866c491e45803b903c8419ee09b1a939
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-10-30 09:45:08 +01:00
Jitendra Sharma
bc3e09ca88
Don't delete Sysman handle during destructor of a Subdevice handle.
...
Change-Id: I6d17805c05ed556e51c908832d1150ffa17c28f0
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-10-23 17:44:19 +02:00
Filip Hazubski
c3b8727e97
Remove opencl includes from HwHelper
...
Resolves: NEO-3964
Change-Id: Ie891ba6a205a89b41ca2cce0fa386dc4c93a0aaa
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2020-10-23 11:10:52 +02:00
Jaime Arteaga
31291b1cf0
Add 4-digit zero alignment of device id in device name (2)
...
Unify names for OpenCL and L0
Related-To: NEO-4744
Change-Id: I5094f228f447ecbd942c25d6244abee593f3ffbf
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-10-22 15:53:20 +02:00
Jaime Arteaga
d0634d3090
Correct cache memory size returned
...
Change-Id: I1b0467b23acf8c72c42430100237d921f565c86c
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-10-20 18:06:07 +02:00
Slawomir Milczarek
eb8f5fa301
Get CL Device Name with device ID appended at the end
...
Related-To: NEO-4744
Change-Id: I8a9a791a634f9c0c444695036d96e3c959c90de0
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2020-10-13 14:00:33 +02:00
Jitendra Sharma
483447238a
Add sysman handle for subdevices
...
Change-Id: I0f6986e7f5ed424ee2af759a5e70587289e1987b
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2020-10-12 20:23:29 +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
Jaime Arteaga
9f9bf38d64
Copy user buffers when not accepted by Kernel
...
When performing copy operations to or from buffers allocated by the
user, it could happen that the buffer address is not accepted by
kernel, even though the buffer is valid. In those ocassions, then
allocate a new graphics allocation and copy the user buffer.
Change-Id: I6b1b6f2ef5fea0acf32c868bc87eafe8746f9a79
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-10-02 10:03:18 +02:00
Jim Snow
9f858c29a2
Enable internal image creation to return error codes
...
Change-Id: I20f28b57f3cd96245ce2dc1657ef2b40e63c0bc0
Signed-off-by: Jim Snow <jim.m.snow@intel.com>
2020-09-25 12:07:07 +02:00
Kamil Diedrich
877a781696
Add engine type to commandList
...
Change-Id: I108fc027dd4698ebecb224c20b92f2b741698f3c
2020-09-23 09:46:53 +02:00
Aravind Gopalakrishnan
2e912aff52
Add device capability for timestamp valid bits
...
Change-Id: Ib4a0f4ce80f0fc3649f366ceb458e8f506a97e34
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
2020-09-21 18:15:54 +02:00
Vinod Tipparaju
c7ec23c836
Minor fix to take care of uninitialized variables
...
Change-Id: I6172dbb5c92d072561f3b710e663794e9f35411a
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com>
2020-09-17 19:46:37 +02:00
Vinod Tipparaju
d2b218d82d
Return ZE_RESULT_OUT_OF_MEMORY when alloc on device fails during cmdlist create
...
Change-Id: Ia03e7ac190598c56de044d3ad8216087b8da94f2
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com>
2020-09-17 00:09:22 +05:30
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
Mateusz Hoppe
55a6525b34
L0Debugger fixes
...
- add Sba buffer to residency container of cmdQ
- allocate debugSurface
- add printing SBA tracked addresses
Change-Id: I3eb4d918b99dfadd737d8f9f8174e94b1a620125
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-08-21 10:41:15 +02:00
Jaime Arteaga
a34ee242d9
Fix query of floating-point flags in module properties
...
Change-Id: Iec1bf8c6cc4e8c351e94d2a74743ac76e4a91875
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-08-20 20:11:21 +02:00
Aravind Gopalakrishnan
649dfb93ee
Set device property flags
...
Change-Id: I657a6b86c9f09e125b23428924605dbb175d294b
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com>
2020-08-18 17:01:55 +02:00
Jaime Arteaga
c1e4e5152b
Add support for queue groups (3/N)
...
- Select correct NEO device in when more than one subdevice available.
Change-Id: I3b5823c12310fde1c6a4e3c5870cbcd5e691ba86
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-08-14 19:26:05 +02:00
Jaime Arteaga
cc3186c413
Add support for queue groups (2/N)
...
- Correctly store available groups in vector passed by user.
- Some cleanup.
Change-Id: I4d3f24a4af38fed261809edf85ac043eba4d831f
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-08-13 13:21:07 -07:00
Spruit, Neil R
e7fd522c5d
Return ZE_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT for unsupported images
...
Change-Id: I731c50be70019fa95d57f71489f31aae6a4ba9a5
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
2020-08-13 19:12:28 +02:00
Mateusz Hoppe
2990de538f
Pass correct descriptor when creating pagefault cmdList
...
Related-To: NEO-4978
Change-Id: Ib6631407908ad3a86b8dc734e5f3f34bef636743
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-08-13 13:51:01 +02:00
Jaime Arteaga
a60b8c4831
Set maxMemAllocSize
...
Change-Id: Ib2e796e659a64176fa3edb14aedfe6291632281e
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-08-08 11:57:56 -07:00
Maciej Plewka
8785f5acb2
Dont use default engine in immediate cmdlist
...
Related-To: NEO-4913
Change-Id: I15b5bb700e37ea49c34931bc81de7314ec1ac4dc
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-08-07 17:25:31 +02:00
Maciej Dziuban
b2b90c3daf
level-zero v1.0 (3/N)
...
Implement residency functions
Change-Id: I69179899f2a5fd627d10b976477a6736c600b430
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2020-08-07 13:49:02 +02:00
Maciej Plewka
4128761479
Use index to chose copy engine
...
Releated-To: NEO-4913
Change-Id: Ie86e4dc2c1c75f639c9c8b7173fc24d88cb9af82
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2020-08-06 16:37:22 +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
Jaime Arteaga
d97db3d7dc
Correct getCacheProperties interface
...
Change-Id: I6e3cec56e78e7fad73f3afe5921ef156c308dd1d
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-08-06 01:36:05 +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
Jaime Arteaga
4ca4100a9a
Add support for queue groups (1/N)
...
Change-Id: If4763dcb749acc8a6fd68714119808286306410f
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-07-30 16:26:53 -07:00
Jaime Arteaga
e7958be0bf
Add stub for zeDeviceGetCommandQueueGroupProperties
...
Change-Id: Ib86d0ae331aef01c4e26c414bf1e1dfaca51aeeb
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-07-16 16:54:04 +02:00
davidoli
f70882c684
Move tracing files to experimental directories
...
Remove need for zetInit call for tracing
Change-Id: Icbb75d8f52e2f9107e5308fd0c99415ea1e227f6
Signed-off-by: davidoli <david.olien@intel.com>
2020-07-14 00:31:22 +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
Lukasz Jobczyk
ff0add74e3
Add alternative residency model on Linux
...
Related-To: NEO-4732
Change-Id: I79e165d2b647af200ca314e1183ecf05903de644
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2020-07-10 12:38:57 +02:00
Jaime Arteaga
4e1d96f7c3
Modify creation of queues per ordinals in level-zero
...
In a multi-subDevice device:
- If creating the queue with the parent device handle:
- Use subDevice0 engines.
- If creating the queue with one of the subDevice handles:
- Use that subDevice engines
In a device without subDevices:
- No changes. All engines of device are used.
Change-Id: I11cf08cbab08d168deb135111f884c0c023ba384
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2020-07-10 02:04:45 -07:00
Mateusz Jablonski
93c1e1b976
Add MultiGraphicsAllocation to USM
...
Related-To: NEO-4672
Change-Id: I53ea4bea73ae6d52840146f63bc561bb90f9fe62
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-07-02 09:39:21 +02:00
Mateusz Hoppe
5eafc349c9
Introduce SBA tracking buffer allocation
...
Related-To: NEO-4637
- allocate sbaAllocation in L0 debugger
Change-Id: Ia1be1ad637bbdd6e7f12ca6fdfb0c486ba23a040
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-07-01 09:46:05 +02:00
Mateusz Hoppe
5bd5784559
New AllocationType for debugSurface
...
Related-To: NEO-4797
Change-Id: I851b6cc5b33fb286bea9d175506e932339701f93
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-06-24 16:16:04 +02:00