Commit Graph

11295 Commits

Author SHA1 Message Date
Lukasz Jobczyk 28e6504d41 Add event management to L0 bcs split
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-09-12 16:02:15 +02:00
Patryk Wrobel 0fb52f7d45 Fix undefined behavior in IoctlHelperPrelim20::prepareVmBindExt()
When pointer type differs from the type, which was obtained
via new[] operator, then delete[] is undefined behavior.

Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-09-12 14:14:51 +02:00
Zbigniew Zdanowicz 072686f283 Replace function term with kernel class specific names
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-09-12 12:00:24 +02:00
Zbigniew Zdanowicz af7eaa0161 add linked copy engine to copy engines group in command list creation
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-09-12 11:21:58 +02:00
Lukasz Jobczyk 63e72965a1 Add initial BCS split implementation for L0
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-09-12 10:48:30 +02:00
Kamil Kopryk fad4bee432 Fill leftover cmdbuffer space with MI_NOOPs in debugger and sw tag paths
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-7156
2022-09-12 10:48:13 +02:00
Compute-Runtime-Validation c2cd1a2698 Revert "Do not expose RCS on DG2"
This reverts commit 69c9a4e86c.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-09-12 01:31:19 +02:00
Szymon Morek 48a3cf4b75 Revert "Allocate all event pools in local memory"
This reverts commit 8aa87a6f8109223d61c5d41214331ffc12659295.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2022-09-10 01:08:57 +02:00
Kacper Nowak 5b8284d162 Remove remaining dependency on precompiled test kernel in L0
- Enhance zebinary module mock for L0 with kernel attribute,
so at this point L0 ULTs are completely free from IGC dependencies.

Related-To: NEO-7281
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2022-09-09 14:33:58 +02:00
Cencelewska, Katarzyna 9b19014cf1 Fix read of 64bit enviroment variables
change atoi to atoll

Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com>
2022-09-09 14:00:10 +02:00
Andrzej Koska 69c9a4e86c Do not expose RCS on DG2
The RCS is no longer exposed under windows and linux on DG2

Related-To: NEO-7224
Signed-off-by: Andrzej Koska <andrzej.koska@intel.com>
2022-09-09 13:20:31 +02:00
Mateusz Hoppe dd7967a05d L0Debug - account for device bitfield
- converting physical/api thread ids should account for
devicebitfield
- debug events for ISA filtered - skip events for not
relevant tiles

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-09-09 13:03:06 +02:00
Krystian Chmielewski 1f6c09ba1d zebin: sanitize scratch space size
Sanitize scratch space size to value programmable on GPU.

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-09-09 11:50:09 +02:00
Dominik Dabek 7fa9cfd7fc Add missing cache policy isDebuggerActive values
Cache policy was not kept as WBP in some cases with debugger

Related-To: NEO-7003

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2022-09-09 10:38:41 +02:00
Compute-Runtime-Validation 417746182c Revert "Ocloc: Add -s to options string for non-spirv input with -g option pa...
This reverts commit 301be3c21b.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-09-09 05:42:13 +02:00
Mateusz Hoppe eb0273d6ff L0Debug - add debug message when ZE_AFFINITY_MASK is used
Related-To: NEO-6980

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-09-09 00:33:37 +02:00
Michal Mrozek ec1de69fee Do not enable basic WA.
LOAD_BALANCED is disabled so basic WA is not needed.

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2022-09-08 19:54:15 +02:00
Lukasz Jobczyk d0caa223cd Prepare command list for BCS split
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-09-08 19:54:03 +02:00
Lukasz Jobczyk 4bd27e4d3e Store context handle in cmd list
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-09-08 19:32:47 +02:00
Dunajski, Bartosz 409c2c5ca7 Add PVC builtin revisions
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2022-09-08 17:40:00 +02:00
Patryk Wrobel 340b578248 Use correct destination size when copying device name
This change:
- corrects the size of destination buffer and sets it to ZE_MAX_DEVICE_NAME
- ensures that copied name is null-terminated

Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-09-08 17:01:38 +02:00
Kamil Kopryk 788240c8ba Correct cmdstream size estimation - additional pipeline select gen12lp
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-7156

Additional pipeline select is required only on specific
gen12lp products. That check was missing only in cmdstream size
estimation path, hence we had an overestimation.
2022-09-08 16:34:54 +02:00
Lukasz Jobczyk 3a7f266d66 Enable BCS split in OCL
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-09-08 15:56:30 +02:00
Patryk Wrobel 4395e0c3a1 Use EXPECT_THROW instead of handmade try-catch in tests
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-09-08 15:32:52 +02:00
Kacper Nowak 301be3c21b Ocloc: Add -s to options string for non-spirv input with -g option passed
Automatically add "-s" (source path) option if -g flag is present.
This applies only to non-spirv input.
Related-To: NEO-7285
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2022-09-08 15:19:05 +02:00
Kacper Nowak 710c8cf5ef Linker: add support for symbols with local binding
This commits add support for relocating
symbols with local binding and of functional type
(STB_LOCAL, STT_FUNC).

Related-To: NEO-7299
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2022-09-08 14:50:29 +02:00
Michal Mrozek 824c781ab5 Do not program extended WA.
It was only needed for LOAD_BALANCED scenarios, so with recent disabling
of this feature in KMD, it is no longer required.

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2022-09-08 13:51:17 +02:00
Lukasz Jobczyk f65d2aeb87 Split copy along single dimension
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-09-08 12:39:06 +02:00
Dominik Dabek a72213943e Change DG2 l1 cache policy to WB
With compiler LSC WAs this gives better performance.

If debugger is active, policy will not be changed ie.
will be WBP.

Related-To: NEO-7003

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2022-09-08 12:14:52 +02:00
Krystian Chmielewski 5af2bc8a60 zebin: add support for kernels source attributes
This commit adds parsing of "user_attributes" section of zeInfo
containing kernel's language attributes.

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-09-08 12:07:19 +02:00
Zbigniew Zdanowicz 9c82238c1e add cmake variable to level zero black box tests describing include directory
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-09-08 12:07:03 +02:00
Mateusz Hoppe 6c7f500649 Parse AffinityMAsk in ULTs DeviceFactory
- enable testing of affinity mask configuration

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-09-08 12:06:44 +02:00
Krystian Chmielewski 2e9574c656 Fix printf for type BYTE and SHORT
Generated instructions writing to printf buffer require destination
address to be DWORD aligned. Because of that values of type BYTE (1B)
and SHORT (2B) need to be written as 4B value.
This change adds support for this. When trying to read value of type
BYTE or SHORT four bytes are actually read to be aligned with compiler
implementation.

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-09-08 11:37:18 +02:00
ocldev 3b211c9f8d aub_stream revision update
Signed-off-by: ocldev <ocldev@intel.com>
2022-09-08 10:18:10 +02:00
ocldev b056bdc50c dependencies update
Signed-off-by: ocldev <ocldev@intel.com>
2022-09-08 09:12:17 +02:00
Artur Harasimiuk ef5334fc3a infra update
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-09-07 20:53:01 +02:00
Kamil Diedrich 0d5c27a75f Add support for ADL-N for WSL
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2022-09-07 20:11:45 +02:00
Mateusz Hoppe 6ad16c9e72 Missing support for OCL debugging with L0
- make resident debugSurface
- allocate debugSurface with correct allocation type and size
- notify cmdQ create/destroy

Related-To: NEO-7075

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-09-07 13:30:05 +02:00
Zbigniew Zdanowicz 055088ddc1 Improve printing device properties in level zero black box tests
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-09-07 13:29:50 +02:00
Kamil Kopryk 3223a0bace Correct linear stream size estimation - dispatch task count post sync
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-7156
2022-09-07 13:29:35 +02:00
Kamil Kopryk 38fd01ef41 Correct sba programming ult - validate programmed MOCS index
Ult was checking random memory (beyond the programmed command buffer)
initalized with zeros.
Since the expected MOCS index is 0, the test was passing.

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-7156
2022-09-07 13:05:26 +02:00
Kamil Kopryk dec2d9a184 Correct parse command buffer in ults - validate only programmed cmd buffer
Also use estimated size instead of 4KB in SBA programming ults.

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-7156
2022-09-07 12:57:57 +02:00
Zbigniew Zdanowicz b6e2d2df8b Add multi return points command lists for front end reconfiguration
This change gives fine grain control over front end configuration for each
kernel.
As it gives possible to inject FE command in command queue and return to exact
place in command list.
Programming commands in queue makes patching commands in command lists
not needed as that operation is costly.
And it allows to program context information for each command list too.

Related-To: NEO-5019

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-09-07 12:53:24 +02:00
Artur Harasimiuk 7d164ec118 infra update
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-09-06 22:30:47 +02:00
Compute-Runtime-Validation c0ce477f85 Revert "Enable BCS split WA in OCL"
This reverts commit abfcaf1265.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-09-06 20:42:57 +02:00
Szymon Morek 3bb12ad10a Allocate all event pools in local memory
Currently event pools are allocated in system
memory if HOST_VISIBLE flag is being set.
With this change such event pool will be
allocated in device memory if DC flush is not
allowed.

Related-To: NEO-7302

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2022-09-06 17:17:32 +02:00
Bellekallu Rajkiran 50f9564a18 Add support to test device reset for specific device
Related-To: LOCI-3392

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-09-06 17:12:25 +02:00
Naklicki, Mateusz f7332fc30b Change order of EncodeDispatchKernelArgs members
Order members by their size

Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2022-09-06 16:49:48 +02:00
Dunajski, Bartosz 84872812f2 Remove not used helper
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2022-09-06 16:02:56 +02:00
Szymon Morek adfeebcfe4 Use const reference instead of copying data
Change appendUnalignedFillKernel to
pass const reference instead of copy

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2022-09-06 14:53:00 +02:00