Joshua Santosh Ranjan
b6e76b9118
fix: Move event reference time tracking into event class
...
This would avoid recalculating reference timestamps
when event is used with different command lists.
Related-To: LOCI-4563
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2023-07-25 08:44:47 +02:00
Dunajski, Bartosz
01a51328f5
feature: reset CSRs list during flush with in-order Event
...
Related-To: NEO-7966
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-07-24 09:22:39 +02:00
Dunajski, Bartosz
c3ca3ff119
refactor: use qword memcpy for Events with qword packet size
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-07-20 07:29:45 +02:00
Dunajski, Bartosz
c18198ebd8
feature: change in-order allocation type to uint32_t
...
Related-To: NEO-7966
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-07-05 09:56:32 +02:00
Dunajski, Bartosz
5b9d45f3bc
feature: handle in-order allocation overflow
...
Related-To: NEO-7966
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-07-04 15:58:11 +02:00
Dunajski, Bartosz
7ac825e74b
refactor: add debug flag to synchronize Event before reset
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-06-26 17:38:37 +02:00
Dunajski, Bartosz
aea5f435db
feature: unregister CSR client on Event host synchronize
...
Related-To: NEO-7458
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-06-26 12:02:14 +02:00
Dunajski, Bartosz
61fb19caab
feature: bring back counter based in-order tracking
...
Related-To: NEO-7966
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-06-26 10:01:18 +02:00
Joshua Santosh Ranjan
97b4d8bab5
feature: add initial support for host mapped timestamps
...
Related-To: LOCI-4171
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2023-06-26 08:29:58 +02:00
Mateusz Jablonski
4f72835b7d
fix: create dedicated class for root device indices to store unique values
...
remove method to removing duplicates from StackVec as the method
implicitly sorted the vector
Related-To: GSD-4692
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-06-12 22:24:06 +02:00
Dunajski, Bartosz
3d49658f50
feature: new multitile post sync layout for immediate write [2/n]
...
No functional changes in this commit. This is prework.
Related-To: NEO-7966
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-06-09 14:20:34 +02:00
Dunajski, Bartosz
fb7fff7442
feature: skip Events from previous append in in-order CL path
...
Related-To: NEO-7966
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-06-01 11:35:08 +02:00
Dunajski, Bartosz
5aeffbf673
refactor: define initial value for TimestampPacket
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-05-30 12:09:05 +02:00
Dunajski, Bartosz
177d5ab602
feature: Initial MultiTile in-order CommandList support
...
Related-To: NEO-7966
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-05-30 09:12:19 +02:00
Dunajski, Bartosz
814de81aca
feature: replace in-order sync allocation with TimestampPacket
...
Related-To: NEO-7966
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-05-29 09:32:35 +02:00
Neil R Spruit
ded9d7bff2
feature: Get Peer Allocation with specified base Pointer
...
Related-To: LOCI-4176
- Given a Base Pointer passed into Get Peer Allocation, then the base
pointer is used in the map of the new allocation to the virtual memory.
- Enables users to use the same pointer for all devices in Peer To Peer.
- Currently unsupported on reserved memory due to mapped and exec
resiedency of Virtual addresses.
Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com >
2023-05-24 20:41:20 +02:00
Dunajski, Bartosz
f98ac7098b
feature: waiting for in-order dependencies with TimestampPacket
...
Related-To: NEO-7966
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-05-24 19:25:11 +02:00
Dunajski, Bartosz
36d3c65284
feature: Use Event allocation for cross in-order CL synchronization
...
Related-To: LOCI-4332
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-05-10 10:06:35 +02:00
Dunajski, Bartosz
feff1c35cc
feature: Experimental support of immediate cmd list in-order execution [5/n]
...
Related-To: LOCI-4332
- Signal non-timestamp Walkers with in-order CL value
- Event host synchronization based on CL signal value
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-05-09 11:46:14 +02:00
Dunajski, Bartosz
23c08f4bca
feature: Experimental support of immediate cmd list in-order execution [4/n]
...
Related-To: LOCI-4332
- Simplify CmdList-Event dependency
- Add waiting on in-order dependency
- Prepare Event for in-order synchronization
- Adjust downloading sync allocation in TBX mode
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-05-08 13:28:10 +02:00
Lukasz Jobczyk
48114e5423
fix: Release temporary allocations from bcs split
...
Related-To: NEO-7933
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2023-04-28 12:51:07 +02:00
Dunajski, Bartosz
75827b66c6
feature: Experimental support of immediate cmd list in-order execution [2/n]
...
- appendWaitOnEvents for previous dispatch
- update RelaxedOrdering logic
- update Event::setIsCompleted logic to reset already completed Event
Related-To: LOCI-4332
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-04-27 11:14:37 +02:00
Dunajski, Bartosz
14c3777409
feature: Experimental support of immediate cmd list in-order execution [1/n]
...
Related-To: LOCI-4332
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-04-26 13:15:59 +02:00
John Falkowski
bf88e4ef08
fix queryTimestampsExp to remove check for subdevice and incorrect packetId
...
Signed-off-by: John Falkowski <john.falkowski@intel.com >
2023-04-20 08:24:33 +02:00
Lu, Wenbin
c66546df73
Disable kernel timestamp when not using implicit scaling
...
Related-To: LOCI-2826
Signed-off-by: Lu, Wenbin <wenbin.lu@intel.com >
2023-04-19 12:14:17 +02:00
Mateusz Jablonski
0da5e6f277
refactor l0: cleanup cmake file level_zero/core/source/CMakeLists.txt
...
Related-To: NEO-7507
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-03-16 12:38:15 +01:00
Mateusz Hoppe
0204761add
feature: gpu assert implementation
...
- allocate assert buffer when kernel has assert
- track assert kernels in cmdlists and cmdqueues
- check and print assert at sync calls: cmdqueue synchronize(), fence
synchronize(), event hostSynchronize(), synchronous imm cmdlists
append()
Related-To: NEO-5753
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2023-03-15 19:22:09 +01:00
Neil R Spruit
75fbaa0642
fix l0: Set isHostVisibleEventPoolAllocation for all host allocated EventPools
...
Related-To: LOCI-4147
Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com >
2023-03-15 16:56:13 +01:00
Mateusz Hoppe
f5eb09e9ce
refactor: simplify event's synchronize() logic
...
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2023-03-10 11:38:07 +01:00
Zhang, Winston
ddfd2b0ac2
Flush printf from kernel during event synchronize
...
During event synchronize in commandlist, now the printf buffer
should get flushed out when host synchronize is called.
Related-To: LOCI-3681
Signed-off-by: Zhang, Winston <winston.zhang@intel.com >
2023-02-27 23:28:33 +01:00
Zbigniew Zdanowicz
b4544f6f78
Fix dependency resolve in level zero black box tests
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2023-02-21 08:25:07 +01:00
Compute-Runtime-Validation
143299a7a0
Revert "Flush printf from kernel during event synchronize"
...
This reverts commit c908f5a0b3 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2023-02-09 15:35:12 +01:00
Neil R Spruit
188f64adfd
Fix IPC Event pools allocated for single device used on multidevice
...
Related-To: LOCI-3860
- Fixed IPC Event pools that are allocated for a single device such that
when opened thru IPC only that device handle can be used by the process
which opened the IPC event pool.
- IPC Event handle includes numDevices as a field to determine if the
root device index is the only index allowed for this event pool.
Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com >
2023-02-09 15:16:52 +01:00
Zhang, Winston
c908f5a0b3
Flush printf from kernel during event synchronize
...
During event synchronize in commandlist, now the printf buffer
should get flushed out when host synchronize is called.
Related-To: LOCI-3681
Signed-off-by: Zhang, Winston <winston.zhang@intel.com >
2023-02-07 21:52:31 +01:00
Kamil Kopryk
524d945e8c
refactor: rename l0 hw_helpers dir to gfx_core_helpers
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-02-02 11:15:56 +01:00
Kamil Kopryk
2484c7ceb2
refactor: rename hw_helper files to gfx_core_helper files
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-02-01 19:37:51 +01:00
Aravind Gopalakrishnan
d7a78db328
debug: Add debug key for custom event timeout
...
- This helps to investigate tests using debug key
Related-To: LOCI-3673
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com >
2023-01-31 21:58:39 +01:00
Kamil Kopryk
eb002acaa1
refactor: rename l0_gfx_core_helper files
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-01-24 12:59:26 +01:00
Zbigniew Zdanowicz
7925e12392
Add improvements and tweaks to event pool runtime and tests
...
1. Reposition event pool code
- Implementation of event pool methods should be placed in event pool file
2. Change event pool and event classes
- move all class variables to base classes as protected
- add needed setters and getters for runtime
- add extended mocks and whiteboxes for unit tests
- tests using base or mock class when needed
3. Correct event creation in unit tests
- use HW specific timestamp type
- HW unit tests are using template timestamp type for event creation
- other tests are using helper to create event
Related-To: NEO-7636
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2023-01-20 16:47:08 +01:00
Warchulski, Jaroslaw
286c672ef4
Cleanup includes 37
...
Cleaned up files:
level_zero/core/source/event/event.h
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2023-01-20 12:34:39 +01:00
Zbigniew Zdanowicz
b9b9155ee0
Fail ipc event pool creation for max event packet misconfiguration
...
Remote event pool is created with device list that configure max event packet
IPC context can have different device list and configure different
max event packet.
When these two numbers are different driver should not allow creation of
IPC event pool.
Related-To: NEO-7636
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2023-01-20 00:45:29 +01:00
Zbigniew Zdanowicz
9441e1c510
disable event query status optimization for ipc events
...
Related-To: NEO-7636
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2023-01-18 08:49:34 +01:00
Zbigniew Zdanowicz
172ea34fc2
Refactor event pool class hierarchy
...
Related-To: NEO-7636
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2023-01-17 14:42:20 +01:00
Zbigniew Zdanowicz
ff88930625
Refactor ipc event pool data exchange protocol
...
- using predefined structure adds security to enforce data limit
- code is simplified and easier to maintain or add new data fields
Related-To: NEO-7636
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2023-01-17 10:46:52 +01:00
Warchulski, Jaroslaw
c275008e51
Cleanup includes 32
...
Cleaned up files:
level_zero/core/source/cmdlist/cmdlist_hw.h
level_zero/core/source/cmdqueue/cmdqueue.h
level_zero/core/source/event/event.h
opencl/source/helpers/get_info_status_mapper.h
opencl/source/helpers/hardware_commands_helper.h
shared/source/helpers/per_thread_data.h
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2023-01-16 20:41:37 +01:00
Zbigniew Zdanowicz
ee99df18aa
Fix event signaling in command list extension function
...
Related-To: NEO-7490
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2023-01-13 14:13:00 +01:00
Joshua Santosh Ranjan
3fdb9ae0dd
Fix zero elapsed time for AppendMemoryCopy
...
1. If cpu based copy is used, it is possible that copy time is
less than device timestamp resolution. In this scenario, this patch
returns 1 instead of 0.
2. This patch also fixes usage of CPU time instead of CPU timestamp
for end timestamp calculation.
Related-To: LOCI-3754
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2023-01-13 04:40:50 +01:00
Zbigniew Zdanowicz
5a82b84219
refactor event interface for better use of functions
...
Related-To: NEO-7490
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2023-01-12 11:50:35 +01:00
Zbigniew Zdanowicz
5339d5c0af
refactor level zero event for better access of completion field
...
Related-To: NEO-7490
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2023-01-12 10:57:57 +01:00
Kamil Kopryk
98e0557a4c
Don't use global getter for L0GfxCoreHelper and GfxCoreHelper in L0 2/n
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-01-02 11:55:14 +01:00