Jacek Danecki
4a07232ce9
don't call finish() in enqueueWriteMemObjForUnmap()
...
Fixes #247
Change-Id: Iac43c239a6ea361afb6d8addf14ae1697d3af7d7
Signed-off-by: Jacek Danecki <jacek.danecki@intel.com >
2020-01-13 17:51:53 +01:00
Dunajski, Bartosz
7b4d6fc278
Improve engine helper methods
...
Change-Id: Iac614c3da23119f2000a21e720d5144da0459528
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2020-01-13 16:53:38 +01:00
Mateusz Hoppe
81e9591c31
Refactor ImageInfo 2/n
...
Change-Id: I5e6081a75b802cc98fd89e384d550a219353728b
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-01-10 14:20:31 +01:00
kamdiedrich
9d75828bab
move files to core folder
...
gdi_interface
os_inc
thk_wrapper
api_intercept
perf_profiler
Change-Id: I943807da06da31244c7c2540dcba2747f4f05b70
2020-01-09 08:05:43 +01:00
Dunajski, Bartosz
2c63a956ad
Simplify PerfCounter initialization
...
Change-Id: Ia393088a80ac7b439efb5e40b70e593e3891cbc5
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-12-19 14:25:45 +01:00
Dunajski, Bartosz
8f5e9c8a3a
Refactor PerfCounters initialization. Allow only 1 engine type at once
...
Change-Id: I14ba28adb1926b0e67e5b147b7391a7284617c29
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-12-19 11:50:31 +01:00
Dunajski, Bartosz
211ba8adcb
Dont call virtual method in CSR destructor
...
Change-Id: Idccea2ad8f5bc6ff9933e4f9f1f0549db5ce6a99
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-12-17 12:14:38 +01:00
Mateusz Hoppe
5685b285f3
Extract logging logic from DebugSettingsManager
...
Change-Id: I0ccc68216c1c3bb23d0389bec17124e09e4f98e1
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2019-12-13 15:34:45 +01:00
Mateusz Jablonski
5fa53f4516
Move headers to core
...
- address_patch.h
- options.h
- registered_method_dispatcher.h
- grf_config.h
Rename OCL_RUNTIME_PROFILING -> KMD_PROFILING
Related-To: NEO-3982
Change-Id: I06cf72729e9d7d7d2ff0bd169fcbada00c4b509a
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2019-12-10 12:19:29 +01:00
Dunajski, Bartosz
3f43224e1b
Make EXTERNAL_HOST_PTR one time aub writable
...
Change-Id: Ib8ac51ebad8997a0b10431d8c78239dc38beb616
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-11-28 09:25:07 +01:00
Pawel Wilma
472a75912d
Return error code from submit() to application.
...
Related-To: NEO-3741
Change-Id: I0e0ff6606eb6a8a77673949955c8e799689017b6
Signed-off-by: Pawel Wilma <pawel.wilma@intel.com >
2019-11-26 12:42:47 +01:00
Dunajski, Bartosz
08ceaf432a
Enable blit operation on enqueue copy buffer
...
Change-Id: Ie9571344a9b1e2a783c59955a68094f2868f36ee
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-11-21 20:54:02 +01:00
Igor Venevtsev
63fd26f6d6
Always specify rootDeviceIndex for graphics memory allocations
...
Related-To: NEO-2941
Change-Id: Ia2362fd6b4e72ede02919152475f40b3edbc3658
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com >
2019-11-15 15:14:41 +01:00
Dunajski, Bartosz
afb96b0b57
Change temporary allocations cleanup order
...
Change-Id: I7c6d52d985da14fb6c7a0bd15e4384c1ddfae622
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-11-05 15:36:33 +01:00
Dunajski, Bartosz
2be5786b9d
Allow for blit enqueue on read/write buffer operations
...
Change-Id: I69c88e63ef3e8b32bbdf72a69c93f84d3ab45fe3
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-10-25 10:05:00 +02:00
Dunajski, Bartosz
a046de5689
Improve BCS waiting logic to satisfy AUB/TBX mode
...
Change-Id: I52b44959b8bdc1cc66f136a4785233b95870fd0b
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-10-22 13:36:43 +02:00
Mateusz Jablonski
37bd67e791
Correct getting engines from device with sub devices
...
use first sub device to take engine for low priority or blit operations
Related-To: NEO-3691
Change-Id: I29737df06cc764a10a22a41017ab827cde7960b8
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2019-10-16 14:32:02 +02:00
Gibala
2f9bfc7748
Remove OCL object from MemoryProperties 10/n
...
Add cl_mem_flags, cl_mem_flags_intel and wire it in mem_obj.
Refactor:
- validateMemoryPropertiesForImage
- validateExtraMemoryProperties
Related-To: NEO-3132
Change-Id: I90fac5fc00e24fc67346109a1fe6f269ef51e1e0
Signed-off-by: Gibala <krzysztof.gibala@intel.com >
2019-10-10 10:19:47 +02:00
Mrozek, Michal
2ca541a343
Revert "Allow for blit enqueue on read/write buffer operations"
...
This reverts commit dd75cdcf04 .
Change-Id: I0e653d25b190036cc0fdbc6765dd79a5646df3d8
2019-10-07 10:42:02 +02:00
Dunajski, Bartosz
dd75cdcf04
Allow for blit enqueue on read/write buffer operations
...
Change-Id: Id8f6feb09503a901bfbbd9bd755eb6f237fc1f23
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
Related-To: NEO-3020
2019-09-27 07:52:39 +02:00
Dunajski, Bartosz
0337b58ee4
Remove dcFlush parameter from finish call
...
Change-Id: Ifc808822399a100745a9d81bb5f6e45903a895fa
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-09-13 12:28:10 +02:00
Dunajski, Bartosz
ee1939ca18
Revert "Allow for blit enqueue on read/write buffer operations"
...
This reverts commit 70de319f33 .
Change-Id: I38aa340ddbf906a3c121aa768a6c8300f48db8df
2019-09-13 09:20:51 +02:00
Dunajski, Bartosz
70de319f33
Allow for blit enqueue on read/write buffer operations
...
Change-Id: Iacdd2b75c671209d961fdf1754ff348af45ae56c
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
Related-To: NEO-3020
2019-09-09 12:51:06 +02:00
Dunajski, Bartosz
e7e23cd0b4
Remove queueBlocked restriction from blitEnqueueAllowed
...
Change-Id: If7fcd15cbbb4e749d16b9d028dac33a8a7b20bde
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
Related-To: NEO-3020
2019-09-02 12:53:21 +02:00
Jim Snow
4360aff03c
Move runtime/helpers/aligned_memory.h to core/helpers
...
Signed-off-by: Jim Snow <jim.m.snow@intel.com >
Change-Id: I15de094c51d4eb18bfff4d17fd34e817b5525fda
2019-08-06 23:56:24 +02:00
Dunajski, Bartosz
e88371ceff
Minor enqueueHandler cleanup
...
Change-Id: I07b2d0571b91b797b7a20ec29bb4cf1496b84f96
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-08-05 12:26:37 +02:00
Dunajski, Bartosz
b98f712551
Disable Blitter for read/write Buffer operations
...
Change-Id: I42d05083b53c85f59dc8d35f83d4d674b9d393a8
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
Related-To: NEO-3020
2019-07-30 08:54:10 +02:00
Dunajski, Bartosz
38556cec29
Allow blocked command stream programming for commands without Kernel
...
Change-Id: I691a029bd5511c8f710ef1bff8cc5a9feca644f3
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
Related-To: NEO-3433
2019-07-24 16:01:34 +02:00
Dunajski, Bartosz
197e1e8e9b
Enable Blitter for read/write Buffer operations.
...
Change-Id: Ida59de8221ffd95686d52428401c68b2befc493b
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
Related-To: NEO-3020
2019-07-24 08:09:45 +02:00
Dunajski, Bartosz
4dd3292922
TaskInformation cleanup
...
Change-Id: If723f477406ca13e40c77a9471de9b8e35beff1d
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
Related-To: NEO-3433
2019-07-23 12:04:20 +02:00
Dunajski, Bartosz
9cd56612a5
Revert "Enable Blitter for read/write Buffer operations."
...
This reverts commit db190c62a0 .
Change-Id: I2f232175b369d0680f8a23ddc2d434b1df0eec2c
2019-07-19 14:27:29 +02:00
Raiyan Latif
ca74489172
Move string.h to core helpers
...
Change-Id: Ibaaab077ef2867b5e0db3bd215c261de9294063f
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com >
2019-07-19 07:21:00 +02:00
Dunajski, Bartosz
db190c62a0
Enable Blitter for read/write Buffer operations.
...
Change-Id: I75d18beef1039f329d01d9627e8ed2db906ef1ce
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
Related-To: NEO-3020
2019-07-18 17:04:53 +02:00
Dunajski, Bartosz
dda6e29254
Dont wait for BCS before enqueue completion
...
Change-Id: I99fa7834e927049c2faff5dfbf44b3c2a77a1af1
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
Related-To: NEO-3020
2019-07-17 13:15:06 +02:00
Dunajski, Bartosz
23e9e9e02e
Register Blit CSR to CommandQueue
...
Change-Id: Ib22ef934492b702990ca549bab576993b0684e98
Related-To: NEO-3020
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-07-17 08:04:03 +02:00
Dunajski, Bartosz
89d1878cd6
Rename engine member in CommandQueue
...
Change-Id: I01516616c164f19afbcd62d39a2a42d04ff768c9
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-07-15 17:53:01 +02:00
Dunajski, Bartosz
de381f01e8
Move waitForTaskCountAndCleanAllocationList to waitUntilComplete
...
Change-Id: Ia36b43bb2c8e330c1d90d639c06efcad42783e23
2019-07-15 14:48:36 +02:00
Dunajski, Bartosz
ddb0d82e83
Introduce RegisteredMethodDispatcher.
...
- Inject dispatch methods per DispatchInfo
- Each DispatchInfo in MultiDispatchInfo can have different behaviour
- Implement AuxTranslation programming with new approach
Change-Id: Ie28de0c72a77b8e91509a5b9b8740d72fedf4ad6
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-07-15 11:59:53 +02:00
Mrozek, Michal
6ffcd51847
Fix race in events scenarios.
...
- It could happen that 2 threads try to update the same event within tree
- First thread starts to submit command, it releases cmdToSubmit
- Second thread doesn't see the command and follows
- Second thread thinks that it submitted the command so it follows to
subsequent steps which are child events notification
- We end up with corrupted enqueue sequence as child may submit prior to
parent.
- With this change each submit step is synchronized basing on task count
- When second thread enters submit command without task count being set
it wait for first thread to properly set it.
Change-Id: Ic2ddaea17f9af8cab6781320edae2c268dd0b189
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com >
2019-07-09 14:45:07 +02:00
Mrozek, Michal
b349c4bb13
Fix race in isQueueBlocked.
...
- Sequence is as follows :
Enqueue returning event , blocked on user event.
clFinish.
There are 2 additional threads:
- one is calling updateExecutionStatus in a loop on returned
event
- one is calling setUserEventStatus on parent user event
In such case virtual event may be submitted but task count will
not be assigned.
Change-Id: Ia097bd59b276cc9213945c476cf289398b8f5934
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com >
2019-07-09 11:42:38 +02:00
Mrozek, Michal
baa11187c3
Simplify isStatusCompletedByTermination.
...
- remove default parameter.
- remove branch.
Change-Id: Ia829adfc684057516a2fc204e853ad3948853e22
2019-07-09 09:48:16 +02:00
Mrozek, Michal
64403ef630
User event code path improvements.
...
- is queue blocked to release virtual event when it is submitted
- do not wait on completion after ndr submit.
Change-Id: I63c54e6940f6241b32f0dbdd5880f849c46fd12e
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com >
2019-07-08 16:23:17 +02:00
Dunajski, Bartosz
0a8a77d47c
Move enqueue blit logic to enqueueHandler
...
Change-Id: Ibbad22906387c15243708d37b272601f4734697d
Related-To: NEO-3020
2019-07-08 12:37:06 +02:00
Piotr Maciejewski
d1d794c658
Metrics Library Performance Counters implementation.
...
Signed-off-by: Piotr Maciejewski <piotr.maciejewski@intel.com >
Change-Id: I0f00dca1892f4857baaebc75ba2208a4f33db1bf
2019-07-04 15:56:47 +02:00
Dunajski, Bartosz
8263d488c6
Submit Semaphore dependency for enqueue read/write without Kernel
...
Change-Id: I22e1743b4cbd6e8285527fdfe25424a6cb3ff462
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
Related-To: NEO-3020
2019-06-25 14:21:57 +02:00
Dunajski, Bartosz
4b592b2520
Don't take BCS path when Queue is blocked
...
Change-Id: Ie6faa276ce1173ce075693bc81d1e91d1ace27fc
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
Related-To: NEO-3020
2019-06-18 15:31:53 +02:00
Dunajski, Bartosz
a2398e193b
Pass Blocking enqueue flag to Blit CSR
...
Change-Id: I2dcdd27eef338d3aca60a273bce15e5382673a93
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
Related-To: NEO-3020
2019-06-17 16:33:16 +02:00
Dunajski, Bartosz
3e88907201
Enqueue Read/Write operations with blitter
...
- Program dependencies from Event and IOQ
- Obtain new TimestampPacket
- Update output TimestampPacket if needed
Change-Id: I4ad020f5c5b05ceca8b096fafe1257523e2bc343
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
Related-To: NEO-3020
2019-06-17 12:01:37 +02:00
Dunajski, Bartosz
bea67a8bb3
Move queue dependency clearing query to helper method
...
Change-Id: I0859d7f855020979b27ba5ee31c59cc8a7bd3f7a
Related-To: NEO-3020
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-06-13 15:04:18 +02:00
Dunajski, Bartosz
70f92cf03c
Rename KernelCommandsHelper to HardwareCommandsHelper
...
Change-Id: I0b92a2d74bc96658274e4a02fec0f322e87681b2
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2019-06-12 13:45:12 +02:00