Konstanty Misiak
ff85c29e5c
Do not recompile kernel if intermediate is empty
...
Related-To: NEO-5020
Change-Id: Ie71e1ac67a74309a90a899adb830a551922c5f35
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com >
2020-10-06 13:47:25 +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
Michal Mrozek
5386f8be86
[L0] Optimize cache flush while waiting on events.
...
- do it only once
Change-Id: I0822b4f2acd9e281132447da65f563a635967905
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2020-10-05 13:12:56 +02:00
Jaroslaw Chodor
746cf7fd33
Reuse old build options if new ones are NULL
...
Change-Id: I435e7ec8554b0429dcf4f6f8d9d4fd80e70b68c6
2020-10-04 16:54:02 +02:00
Jaroslaw Chodor
df2e76f526
Fixing residency of extern device functions
...
Change-Id: Icad696cbf6fb3fc0276f0d0d488bf92091525d9b
2020-10-02 12:27:59 +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
Zbigniew Zdanowicz
9b057cfdac
Rename blackbox test to avoid collision with loader sample of the same name
...
Change-Id: Ia8b8f7bc0a80520f7cbbe4447eb651858c711ce9
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2020-10-01 11:42:39 +02:00
Jaime Arteaga
3015b95752
Revert "Link zello samples to ze_loader"
...
This reverts commit d0e1d5cffb .
Change-Id: Id66620e50e770492e4fa99e734eaf2b39729210f
2020-09-29 10:14:36 -07:00
Vinod Tipparaju
deb4cc2444
Reset cmdList - genericMediaStateClear not required during programSBA
...
This resolved regressions on Linux/ Windows for SYCL/L0 applications.
Change-Id: I26bd75a0473a5ceace1321d6b3f9613ce2cc5d9d
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com >
2020-09-29 17:09:44 +02:00
Maciej Plewka
e34c319ed7
Special address pool at External heap begining
...
Change-Id: I7da6e67010ff7a819aec25abea9213b6e43e348e
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2020-09-29 07:51:12 +02:00
Aravind Gopalakrishnan
79498dee93
Write global timestamp for copy engine
...
Change-Id: I6953ed787d7e21defcec07549c436c8b280be521
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com >
2020-09-28 21:45:53 +02:00
Jaime Arteaga
d0e1d5cffb
Link zello samples to ze_loader
...
And make L0 Core samples to be built on Debug, as it is with
zello_sysman
Change-Id: Ie1e6b0a766237006916769e7347fcd2219058e2b
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-09-28 20:09:35 +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
Spruit, Neil R
7ea864cbd2
Update Kernel Buffer Argument given nullptr value assignment
...
- Given a nullptr Arg Buffer value, the argument value in cross thread
data must be updated to be a nullptr value especially given the argument
could have been set previously to a buffer that may not exist or should
not be used during this call to the kernel
Change-Id: Ie3a03ce25a4bb0b5e186863cc912a55863d0fb69
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com >
2020-09-25 00:43:00 +02:00
Vinod Tipparaju
8d0df0c8a7
Reset cmdList - Fix to set genericMediaStateClear bit during programSBA
...
This resolves corruptions by flushing ID cache on HW
Change-Id: I56919360ac126cec67c5cbcf6380acfd72e0bcdb
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com >
2020-09-24 13:42:04 +02:00
Aravind Gopalakrishnan
72c91c2f13
Do not program SBA for copy engine
...
Doing so causes hangs when reusing a copy command list
Change-Id: I1bd069942e9caee01636497f992dd35cbedcde1b
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com >
2020-09-23 08:31:21 -07:00
Bartosz Dunajski
bb788b4cc4
Copy ISA on CPU if BCS is not supported
...
Change-Id: I18b0bea70a0104dfa3f930ee360b9967f8d615be
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2020-09-23 16:47:02 +02:00
Bartosz Dunajski
2a69b1ed78
Select correct heap base address for ISA
...
Change-Id: I400f965faa4615519729756daa78350a46c46ff2
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2020-09-23 14:21:22 +02:00
Kamil Diedrich
877a781696
Add engine type to commandList
...
Change-Id: I108fc027dd4698ebecb224c20b92f2b741698f3c
2020-09-23 09:46:53 +02:00
Zbigniew Zdanowicz
03c8bbf054
Use non-coherent buffers as kernel args in L0
...
Change-Id: I78f699779d65b694fa8de82c8e19dc07f7c176c3
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2020-09-23 07:16:13 +02:00
Bartosz Dunajski
9a29a75600
Use BCS to copy ISA if required - part 2
...
Change-Id: I8a06433640cb3ce6de8f1e1a367501572a6f77de
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2020-09-22 10:43:12 +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
Mateusz Hoppe
7fdfa870fe
Enhance module unit tests
...
Change-Id: I0952b0c4c3872a719afbc95646fcb79e84eca938
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-09-21 17:15:36 +02:00
Mateusz Jablonski
83ed9d9ee4
Minor cleanup around L0 Fence
...
remove duplicated functions
Change-Id: I815221835b87ab05317b2ac4436ea1321ccd7cab
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-09-20 21:18:35 +02:00
Mateusz Hoppe
d363448515
Interfaces to register resources
...
Change-Id: Ic587aaa5a41e4e7648211cfa730a0aa5bbc2985a
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-09-17 12:39:16 +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
Mateusz Hoppe
d0a6b8aece
Adjust BuildOptions used in level_zero
...
Change-Id: I0974127beca07012758d4e57402867754c94d388
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-09-15 16:41:36 +02:00
Maciej Dziuban
69af210d1d
Add timestamp allocations to residency container
...
Change-Id: I0b7c41b3dd59d576cdf360fe022b7a812394a4c9
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com >
2020-09-15 12:59:50 +02:00
Jaime Arteaga
a28e883691
Set UUID in driver properties
...
Change-Id: If0ce1e426f7021374a7ae8779f47d531f031be5b
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-09-15 11:42:45 +02:00
Jaime Arteaga
57e462d8ee
Remove legacy affinity mask format
...
Change-Id: I17e9ad131c888bdaceb7d14dd7b5aa9b5aec14d7
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-09-15 11:42:04 +02:00
Zbigniew Zdanowicz
7d506e3608
Add debug flag to enable compression in L0 USM allocations
...
Related-To: NEO-5069
Change-Id: Icbfeb8d72cd764bb3c90d5c699998455f81dd3ee
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2020-09-14 12:47:33 +02:00
Mateusz Hoppe
a5c556fe11
Create TestEnvironment in ze_intel_gpu_core_tests
...
Change-Id: I85306b59e220c34ee6b43790b59f5ad96ea51eca
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-09-11 09:53:58 +02:00
Konstanty Misiak
9aa1eadd11
Recompile L0 builtins from intermediates when debug flag is enabled
...
Related-To: NEO-5020
Change-Id: I7c92ad6ff5bdbe19a25503385fe270e7d5dd330e
Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com >
2020-09-10 16:02:25 +02:00
Kamil Diedrich
401380b69c
Fix typo
...
Change-Id: I53d2ffbc25fa5c699bdf038e99b6a1a8c2acf7f6
2020-09-09 15:10:33 +02:00
Kamil Diedrich
5823450343
Refactor in queryKernelTimestamps
...
Change-Id: Icc0731c973fe797946eea06db29b0737ceef8778
2020-09-09 12:56:32 +02:00
Kacper Nowak
5358f2cf9c
Create a library with .spv kernels for L0 use
...
Change-Id: Ia319c5621e363f750159d58aaedd81e411d3babb
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2020-09-08 13:06:40 +02:00
Jaime Arteaga
9ceff528b5
Add toggle for enabling indirect access
...
Change-Id: I35d3e1580cd51fea5f6b139d524737e400f6e1bc
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-09-08 00:09:28 -07:00
Kamil Kopryk
145fd87f5d
Revert "Add adjustPlatformCoreFamilyForIgc helper"
...
This reverts commit 8fffdcc111 .
Change-Id: I0415b004ef0a1465bc2658cadc66f21a99302eca
2020-09-08 07:36:26 +02:00
Maciej Dziuban
abacd69def
Optimize appendWriteGlobalTimestamp
...
Change-Id: Ia63a6324c3ce3dbdc18b790b3d9c2fbe4340e88c
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com >
Resolves: NEO-5061
2020-09-07 17:25:59 +02:00
Kamil Diedrich
57269b97a3
Use global timestamps instead of local
...
Change-Id: Ie39b242915a55aef60fcf7164199647299c91a21
2020-09-03 16:39:36 +02:00
Vinod Tipparaju
083edd1a3e
Thread safety violation fixes - Events & USM
...
Change-Id: I57de59f204d9fd4407be768d0b14bf579dae967d
Signed-off-by: Vinod Tipparaju <vinod.tipparaju@intel.com >
2020-09-03 08:54:34 +02:00
Aravind Gopalakrishnan
a7d1952cef
Allow reset for event of timestamp type
...
Change-Id: Ibca2029344a918d9f51b61fe7aac706b1e4abbe0
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com >
2020-09-02 20:11:34 +02:00
Mateusz Jablonski
40d487fa90
Add global destructor of platforms
...
Change-Id: I7f0c9a9a13cae5cbf831e0d4e410c78c001a75d1
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-09-01 17:26:17 +02:00
Maciej Plewka
a779e44b52
Support for dsh and ssh on external heap in L0
...
Related-To: NEO-4724
Change-Id: I85c2effea8a99bebaf9e3db33129641f37dcabe5
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2020-08-30 06:56:52 +02:00
Artur Harasimiuk
0dbcac46bd
includes refactor
...
Change-Id: I4dd85112b20b26fe1ecc95b8098cb160548db1d4
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2020-08-28 14:53:14 +02:00
Mateusz Hoppe
96cbda18bb
Remove not needed cmdQ descriptor pointer from cmdList
...
Change-Id: Ib1bff6ca676f51120a950959ea97f73a8d59c5bf
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-08-25 08:37:36 +02:00
Jaime Arteaga
9d8ab90dc6
Use reg key to disable copy groups
...
Change-Id: Ia7de2166789bee7395caaefeeaf138b2eb24cecc
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-08-25 07:52:25 +02:00
Aravind Gopalakrishnan
78824a3be1
Allow signals for event of timestamp type
...
While at it, fix event of timestamp type failing
to correctly report completion
Change-Id: I3ed6e804ab81dc3c3758093fe04e696decb3d82f
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@intel.com >
2020-08-24 20:21:34 -07:00
davidoli
fea75ec3d6
Re-enable several driver initialization tests.
...
Change-Id: Id56c9ab3403ba4c1039b8cf99fe93f27055676b1
Signed-off-by: davidoli <david.olien@intel.com >
2020-08-25 00:34:50 +02:00
Mateusz Hoppe
75710fead9
Enhance SBA tracking
...
Related-To: NEO-4637
Change-Id: I0cd0cf17bac332f1a00c10a324f94e91fe031c0a
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-08-24 14:54:02 +02:00