Filip Hazubski
cb654c97b0
refactor: Update DirectSubmissionState
...
Define missing functions to comply with the rule of five.
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2024-04-25 11:37:42 +02:00
Dominik Dabek
b109094e4b
fix: move ulls controller stop thread
...
Move ulls controller thread stopping to execution environment
destructor. This removes the vptr race from ulls controller destructor.
Put tests that are actually running the ulls controller into multi thread
tests.
That way they are compiled with thread sanitizer and removes the
variable test time from traditional ULTS.
Related-To: NEO-10942
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2024-04-02 08:26:19 +02:00
Dominik Dabek
b95dd1d405
fix: add assignment operator to ulls state
...
Fix for coverity issue, copy without assign.
Related-To: NEO-10942
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2024-03-28 16:32:35 +01:00
Dominik Dabek
a7479e6332
fix: ulls controller state and tests
...
Make the fields in direct submission state atomic.
Add thread yields to waiting loop in tests to avoid compiler optimizing
them away.
Related-To: NEO-10942
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2024-03-28 14:38:33 +01:00
Dominik Dabek
295b58a11f
fix: move ulls controller thread start
...
Move starting ulls controller thread outside constructor to avoid vptr
race.
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2024-03-27 08:06:50 +01:00
Dominik Dabek
562d6f114b
performance: helper for adjust ULLS on battery
...
Related-To: NEO-10800
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2024-03-26 12:57:30 +01:00
Dominik Dabek
2b964254d6
performance: debug key for adjust ULLS on battery
...
ULLS controller timeout settings will be adjusted based on ac line
status and lowest queue throttle from submissions.
Lowest queue throttle is reset when controller stops ULLS.
Related-To: NEO-10800
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2024-03-22 14:24:00 +01:00
Compute-Runtime-Validation
a099903ebd
Revert "performance: change ulls controller max timeout"
...
This reverts commit 8de06f5d64 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2023-06-20 05:38:52 +02:00
Dominik Dabek
8de06f5d64
performance: change ulls controller max timeout
...
Set ulls controller max timeout to 200ms
Related-To: NEO-7878
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2023-06-19 17:04:33 +02:00
Dominik Dabek
411ed1c643
feat: direct submission variable timeout
...
Add mechanism to increase direct submission timeout up to a maximum
value when no new submissions were made since last sleep.
This should help in workloads that have delays between iterations larger
than current direct submission controller timeout.
Related-To: NEO-7878
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2023-04-18 17:33:55 +02:00
Warchulski, Jaroslaw
c43233dabf
Cleanup includes 42
...
Cleaned up files:
level_zero/core/source/kernel/kernel_hw.h
shared/source/helpers/common_types.h
shared/test/common/libult/linux/drm_mock.h
shared/test/common/libult/ult_command_stream_receiver.h
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2023-01-25 09:16:39 +01:00
Maciej Plewka
4b42b066f8
Use dedicated using type for TaskCount
...
Related-To: NEO-7155
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2022-11-28 16:44:44 +01:00
Lukasz Jobczyk
ba244634b3
Set the default value of the controller timeout divisor to 1
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-08-05 09:52:58 +02:00
Lukasz Jobczyk
9761098733
Track ccs count per subdevice in direct submission controller
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-06-20 11:52:01 +02:00
Lukasz Jobczyk
921f76eea0
Calculate timeout using CCSes count
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-05-25 11:44:11 +02:00
Lukasz Jobczyk
d440d26c69
Ensure sleep is called in direct submission controller
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-05-24 14:25:24 +02:00
Lukasz Jobczyk
13f8139951
Change direct submission controller unit to microseconds
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-05-23 08:34:49 +02:00
Lukasz Jobczyk
888c935efb
Do not wait for completion in direct submission controller
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2022-05-19 11:12:42 +02:00
Lukasz Jobczyk
4ea452040d
Defer direct submission control until first submit
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-10-29 14:27:25 +02:00
Lukasz Jobczyk
5a240e1d66
Enable direct submission controller
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-10-26 12:07:11 +02:00
Lukasz Jobczyk
67ed62e805
Use NEO::Thread instead of std::thread
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-09-14 14:09:18 +02:00
Lukasz Jobczyk
1638554a49
Add direct submission termination mechanism
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-08-20 13:57:28 +02:00