Commit Graph

2581 Commits

Author SHA1 Message Date
787b71c7d0 Add multi-CCS mode documentation for ZEX_NUMBER_OF_CCS
This documentation explains functional and performance considerations
when selecting a multi-CCS mode on PVC.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2022-08-10 18:56:12 +02:00
a6c1d9578e Move files between shared/test/common/helpers and shared/test/unit_test/helpersi
unit_test/helpers/cmd_buffer_validator.h -> common/helpers
unit_test/helpers/gtest_helpers.h -> common/helpers
common/helpers/blit_commands_helper_tests.inl -> unit_test/helpers
common/helpers/simd_helper_tests.inl -> unit_test/helpers
common/helpers/simd_helper_tests_pvc_and_later.inl -> unit_test/helpers
common/helpers/state_base_address_tests.h -> unit_test/helpers

Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2022-08-10 15:23:12 +02:00
1b9d50660a Unify programming of binding table base address command
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-08-10 14:35:02 +02:00
f82b2e2984 executeCommandLists: cleanup and split copy-only vs non-copy-only
Split the function into submethods to improve readability, reusability
and maintability (initially it was ~500 lines long!).

Also, split the execution into 'copy-only' and 'regular' cases to reduce
amount of `if()`s in the code.

Resolves: NEO-7118
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
2022-08-10 08:13:29 +02:00
aa27a4c3ff Add Power and Frequency Overhead verification to zello_metrics
Related-To: LOCI-3305

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-08-10 08:09:46 +02:00
fb0d2b0acd Add Prelim ULTs for frequency
Remove gmock usage from frequency ULTs.

Related-To: LOCI-3214

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-08-10 08:01:13 +02:00
d1fb4011bd Remove gmock usage from PMU
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-08-10 07:59:17 +02:00
3a2d3b9274 L0Debug refactor - move eventsToAck out from ClientConnection
- events to ack are unrelated to client handle

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-08-09 19:52:17 +02:00
869768a01a L0Debug refactor - make memory access steps clear and simple
- split isa, elf and default mem access to separate steps

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-08-09 18:04:38 +02:00
daf1bd4501 Refactor: pass properties by const reference instead of by value
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-08-09 15:55:07 +02:00
c3d40c210f ULT refactor: remove i915 header dependency from drm_mock.h/drm_query_mock.h
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-08-09 15:04:22 +02:00
5eca3b3852 Add missing queryImageParams after import image on windows path
When importFromNTHandle is called we need to refresh imgInfo data
that contains e.g. offset for UV plane.

Related-To: NEO-7250
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2022-08-09 14:59:44 +02:00
e7cca25894 CMake: don't include shared/test/unit_test when shared tests are skipped 1/n
Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2022-08-09 11:41:09 +02:00
0225423e94 Add raytracing to list of supported L0 extensions.
Related-To: LOCI-3333

Signed-off-by: Jim Snow <jim.m.snow@intel.com>
2022-08-09 02:50:17 +02:00
ed0c36117e Apply heuristics when setting TG dispatch size on XE_HPC_CORE
The default TG dispatch size can be changed
to a better value based on number of threads in TG or
currently available amount of threads on GPU.
Decision on what TG dispatch size should be are based on
implemented heuristics.

Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com>
Related-To: NEO-6989
2022-08-08 16:43:10 +02:00
52133e61ce L0Debug - per tile isa and modules in debug session
Related-To: NEO-5784

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-08-08 15:46:56 +02:00
892c7718e4 Reenable bindless aub test
Related-To: NEO-6877

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-08-08 12:26:29 +02:00
7c174a09aa Fix CMakeLists formatting
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2022-08-08 11:14:16 +02:00
505e0b7059 set correct private scratch size for immediate command lists
Related-To: NEO-7187

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-08-08 09:43:19 +02:00
50046c473b Fix use of NodeOrdinal in Level Zero
Adjust command queue ordinal when creating the list.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2022-08-08 09:12:00 +02:00
f833dc0291 Add sysman Firmware support for windows
Related-To: LOCI-3226

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-08-05 13:22:11 +02:00
8b5c567bea Remove wait on user fence during cmdlist destroy/reset
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-7156
2022-08-05 09:24:04 +02:00
c694ccd637 Add tweaks to scratch level zero black box test
Make synchronous mode default
Add asynchronous mode switch for both immediate and regular command lists
Show all invalid data in verbose mode
Add switch for allocation flag
Do not use uncached host allocations as default
Initialize local variables

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-08-05 07:52:29 +02:00
d7c43d022a Improve GtPin init error status reporting
Related-To: LOCI-1286

Signed-off-by: davidoli <david.olien@intel.com>
2022-08-05 04:18:07 +02:00
ada9b5d4a9 Handle if L0 Event Memory is Shareable
- Properly check for IPC event handle flag to determine if the event
pool memory is sharable between processes.
- Given Host Visible Event Pool, a check is done to determine if the
Host memory can be shared between the processes.
- Enabled handling if Event Host Memory is shareable for DRM
- If Event Pool Memory is Not shareable, then retrieving the IPC Event
Pool Handle returns unsupported.

Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com>
2022-08-05 00:11:05 +02:00
6b4375efcd Re-enable use case where application allocates own RTDispatchGlobals.
Implementation was assuming that if HasRTCalls is true then the
RTDispatchGlobals patch token is also valid, but that isn't the case
when the application is using its own RTDispatchGlobals instead of the
one provided by the L0 UMD.

Related-To: LOCI-3323

Signed-off-by: Jim Snow <jim.m.snow@intel.com>
2022-08-04 23:19:43 +02:00
19cac22760 Revert "Add prelim ULTs for performance"
This reverts commit 4967e053b8.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-08-04 12:27:20 +02:00
020239102b Add immediate command list execution to scratch black box test
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-08-04 11:56:10 +02:00
77103bf724 Add improvements to level zero black box tests
destroy event and event pool resources
destroy kernel and module resources
pass context handle as reference
change function variable's name and comments to kernel
change variable names to more appropriate
drop driver from function argument in image test

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-08-04 11:35:42 +02:00
601ace6a25 Add unit test for append memory prefetch for regular command list
Related-To: NEO-6740

Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2022-08-04 10:32:08 +02:00
3de620af15 create library with shared functions between black box tests
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-08-04 10:27:07 +02:00
140e744f4b Improve safety of pattern reading in appendMemoryFill()
Related-To: NEO-7233
Signed-off-by: Wrobel, Patryk <patryk.wrobel@intel.com>
2022-08-04 00:30:05 +02:00
1898a82317 Defer Sysman Scheduler and Memory Initialization
With this change, init for sysman Scheduler/Memory API would
not be done during zeInit.
init and thereby Scheduler/Memory API handle creation would be done
only when user explicitly requests to enumerate handles
using zesDeviceEnumSchedulers/zesDeviceEnumMemory.

Related-To: LOCI-3127

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2022-08-03 23:35:54 +02:00
4967e053b8 Add prelim ULTs for performance
Remove gmock usage from performance UTLs.

Related-To: LOCI-3218

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-08-03 21:06:46 +02:00
98d776867f Add initial support for KernelArgsBuffer allocation
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2022-08-03 20:28:21 +02:00
9743e37fde Debugger L0 Win: fix broken ULT
givenNonZebinaryFormatWhenGettingDebugInfoThenDebugZebinIsNotCreated

Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2022-08-03 12:53:55 +02:00
94177389f9 Update memory transaction size for sysman memory module
Related-To: LOCI-3142

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-08-03 11:46:14 +02:00
6fe263d0a3 Update zello_sysman bb test for power module
Add support for getPowerLimitsExt and setPowerLimitsExt.

Related-To: LOCI-3195

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-08-03 09:09:19 +02:00
046f9d95fc zeCommandListAppendMemoryPrefetch with memory prefetch manager
Related-To: NEO-6740

Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2022-08-02 20:07:31 +02:00
f4c8a146eb Revert "Remove Support for reading a function pointer of a kernel"
This reverts commit 299dcb8bd2.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-08-02 11:58:31 +02:00
cf55a92b79 Defer Sysman PCI, Global operations and Events Module Initialization
With this change, init for sysman PCI, Global operations and Events
API would not be done during zeInit.
init and thereby PCI, Global operations and Events API handle creation
would be done implicitly only when user explicitly calls any APIs.

Related-To: LOCI-3127

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2022-08-02 08:56:04 +02:00
5a9292b3bc Add multiple level zero black box improvements
add aub mode where it is missing
add missing result checks
unify printing device properties
add printing kernel properties
use unified test result print when applicable
add module creation error handling
make OS agnostic global work offset test
use correct API to retrieve extension in global work offset test

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-08-01 14:07:49 +02:00
f23f78e2cc Add support for extended power properties
Related-To: LOCI-3242

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-08-01 13:02:49 +02:00
582ed0565b Use memcpy_s instead of memcpy
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2022-08-01 12:43:29 +02:00
76ce5bc235 add option to immediate black box to share command list between test cases
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-08-01 12:30:27 +02:00
299dcb8bd2 Remove Support for reading a function pointer of a kernel
Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com>
2022-08-01 12:28:39 +02:00
110adb50a9 Modify ZEX_HOST_MEM_ALLOC_FLAG_USE_HOST_PTR for shared allocs
If flag present, re-route to creating host allocs and honor the user pointer

Related-To: NEO-7004

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2022-07-29 07:45:16 +02:00
53a3cd2cdd Add method to merge LSH pipelined state during cmd list execution
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2022-07-28 17:32:53 +02:00
599553d86c Add ECC test support to zello_sysman
Related-To: LOCI-3195

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-07-28 16:42:56 +02:00
d02b45c9b9 Add support for power limit ext functions
Add support for getPowerLimitsExt and
setPowerLimitsExt functions.

Related-To: LOCI-3125, LOCI-3193

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-07-28 16:40:33 +02:00