Commit Graph

10268 Commits

Author SHA1 Message Date
Artur Harasimiuk b3261a8e2b infra update
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-17 19:07:48 +02:00
Compute-Runtime-Validation daf7829fa2 Revert "L0 Debugger Windows - implement debugger attach/detach"
This reverts commit f45431c173.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-05-17 19:02:11 +02:00
Mateusz Jablonski de465b1e6c Move drm wrappers to a separate file
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-17 17:58:19 +02:00
Mateusz Jablonski 9e7b2a77ea Ensure that bitwise operation uses same size operands
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-17 17:15:41 +02:00
Artur Harasimiuk 17b0ddd2a3 ULT execution refactor
Add targets to run shared, OpenCL and L0 tests separately. Bind all
these to run_unit_tests.

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-17 16:19:40 +02:00
Daniel Chabrowski 155b4ec606 Fix stream space used in MiMath tests
Related-To: NEO-6925
Signed-off-by: Daniel Chabrowski <daniel.chabrowski@intel.com>
2022-05-17 16:05:37 +02:00
Igor Venevtsev f45431c173 L0 Debugger Windows - implement debugger attach/detach
Related-To: NEO-6718

Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2022-05-17 14:07:29 +02:00
Katarzyna Cencelewska 96e1eb7467 Move variables baseDieRev and baseDieA0Masked from xe_hpc to pvc
Pvc specific variables should be located in pvc struct

Related-To: NEO-6738
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-05-17 12:19:16 +02:00
Artur Harasimiuk 3897f43f8e style: correct local variable naming
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-17 11:14:14 +02:00
Mateusz Jablonski 2cca28af07 Create wrappers for drm_i915_gem_get_tiling and drm_i915_gem_set_tiling
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-17 11:08:08 +02:00
Kamil Kopryk 99db73c034 Add debug flag to fail build program with stateful access
I've added debug flag FailBuildProgramWithStatefulAccess which makes
possible to fail build program/module creation
with stateful access(except builtins) on
pvc and later platforms.

Related-To: NEO-6075
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2022-05-17 11:01:05 +02:00
Brandon Yates b24635b0c0 Fix style in context_private_data
Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2022-05-17 00:33:51 +02:00
Zbigniew Zdanowicz 15733fc262 Add image and fence tests
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-05-16 18:51:25 +02:00
Zbigniew Zdanowicz 52a3bfcfde Unify programming of pipe control command
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-05-16 18:42:04 +02:00
Artur Harasimiuk 7eafb1e877 remove unused code
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-16 18:15:03 +02:00
Mateusz Hoppe c3f1b07183 L0Debugger - add ULT for immediate cmdlist notification
Resolves: NEO-6963

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-05-16 17:50:39 +02:00
Artur Harasimiuk 4c98e98011 style: correct variable naming
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-16 17:24:47 +02:00
Mateusz Jablonski 06517f429f Create wrappers for drm_i915_gem_create and drm_i915_gem_userptr
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-16 17:03:29 +02:00
Szymon Morek 4266f861ac Make implicit flush for cross-device dependency
Related-To: NEO-6418

If there's a cross-device dependency, flush batched
submissions to avoid deadlock.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2022-05-16 16:29:09 +02:00
Milczarek, Slawomir 9d31d36491 Disable cross-tile kmd migration for usm allocations
Ensure KMD migrations for USM allocations to occur between smem and lmem only

Related-To: NEO-6969

Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2022-05-16 15:23:34 +02:00
Kacper Nowak e32738ee4a Set flag indicating corresponding addressing mode in zebin
Set missing flag indicating corresponding addresing mode.
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
Related-To: NEO-6646
2022-05-16 15:16:25 +02:00
Artur Harasimiuk d643c587b9 style: correct variable naming
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-16 15:02:15 +02:00
Mateusz Jablonski eecde1e1f3 style: correct case in variable name
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-16 14:01:25 +02:00
Artur Harasimiuk 819e0f5515 style: configure readability-identifier-naming.LocalVariableCase
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-16 12:39:44 +02:00
Zbigniew Zdanowicz 24669e0219 Optimize number of dispatched pipe control commands
Related-To: NEO-6871

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-05-16 12:17:33 +02:00
Krystian Chmielewski a5d8a22bac Add option for extending kernel
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-05-16 12:08:41 +02:00
Mateusz Jablonski 7db7d58851 test: zero-initialize properties in test body
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-16 11:48:46 +02:00
Mateusz Hoppe d8b161e21e Fix zetDebugResume() within subslice
- single slice devices need subslice remapping
- convert api thread ids to physical ids within specific device index

Related-To: NEO-6950

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-05-15 15:35:50 +02:00
Zbigniew Zdanowicz 2e9681d7ab Add device tests
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-05-13 17:47:35 +02:00
Dominik Dabek 5dcdf53d12 Fix: enable split taskcount from wait only on dg2
Related-To: NEO-6948

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2022-05-13 14:30:16 +02:00
ocldev aae107fb00 gmmlib revision update
Signed-off-by: ocldev <ocldev@intel.com>
2022-05-13 10:14:21 +02:00
Daria Hinz de74becdb8 Base hwInfo values setup for AOT
In most cases, there was code redundancy, which was minimized in this change.
The setupHardwareInfoBase extraction will also be used for ocloc.

Signed-off-by: Daria Hinz <daria.hinz@intel.com>
Related-To: NEO-6910
2022-05-13 09:40:37 +02:00
Kacper Nowak ee4a177296 Create mock elf for elf process binary ULTs
Instead of using data loaded from the compiled binary, ULTs testing elf
binary data processing will use mock elf created for this purpose.
This will ensure mentioned ULTs independence from binary format in the
context of incoming zebin switch.

Related-To: NEO-6646
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2022-05-13 09:29:12 +02:00
Joshua Santosh Ranjan 95ff289bde AppendEventReset: Use SDI to reset packets
This patch uses SDI to reset all except the last event packet.
Fixes GPU address usage for copy command list.

Related-To: LOCI-3052

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-05-13 06:51:24 +02:00
Zbigniew Zdanowicz 3d57d11c8a Add import host pointer api tests
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-05-12 23:34:28 +02:00
Daria Hinz 1f52802aac Ocloc: Add numerical support for PVC revisions
New ocloc -device entry:
PVC XT B1 - 12.4.2
PVC XT C0 - 12.4.3

Signed-off-by: Daria Hinz <daria.hinz@intel.com>
2022-05-12 18:03:34 +02:00
Mateusz Jablonski 3c18744d10 Create a wrapper for drm_i915_gem_execbuffer2
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-12 17:58:16 +02:00
Neil R Spruit a688c23166 All Exported Symbols between Modules in L0 Dynamic Link are accessible
- Allow for all exported symbols between L0 Dynamically linked Modules
to be accessible by adding the exported function allocations to all
linked modules unconditionally.

- This enables for L0 Function Pointers to be used to call functions
between the modules without unresolved symbols, which were a condition
to allow for exported allocations to be accessed between modules.

Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com>
2022-05-12 17:43:52 +02:00
Patryk Wrobel 9b2ad0c5df Detect GPU hangs in flushBcsTask()
This change introduces detection of GPU hangs in flushBcsTask()
function. The new code has been covered with ULTs.

Related-To: NEO-6681
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-05-12 16:17:16 +02:00
Krystian Chmielewski b4b1fb97bd Add default initializers for DeviceMapping members
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-05-12 15:04:33 +02:00
Mateusz Jablonski 40e00e5c08 Create a wrapper struct for drm_i915_reg_read
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-12 14:59:18 +02:00
Artur Harasimiuk 987ef450d1 dependencies/deb: allow use newever version of gmmlib
Major version must still match. This is related to intel/compute-runtime#538.

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-12 14:47:19 +02:00
Krzysztof Gibala 170d628f57 Adjust gmmHelper decanonize method accessing point in getDumpSurfaceInfo
Accessing decanonize method as a member of GmmHelper class object

Related-To: NEO-6523
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2022-05-12 14:25:35 +02:00
Bartosz Dunajski e722afbefb Track waitlist TimestampPackets to avoid too early return to the pool
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2022-05-12 13:54:04 +02:00
Bartosz Dunajski 83a9037640 Revert async Event destruction
This reverts f9a5f8a86e and
f89c731a11

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2022-05-12 13:33:02 +02:00
Mateusz Jablonski 268393d776 Create wrapper for drm_i915_gem_exec_object2
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-12 13:14:27 +02:00
Katarzyna Cencelewska 0b68fdbe52 Move isCooperativeEngineSupported to HwInfoConfig
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-05-12 12:10:23 +02:00
Zbigniew Zdanowicz fdb763aa7e Rework interface for adding kernel to command list
Related-To: NEO-6871

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-05-12 10:55:41 +02:00
Maciej Plewka b0d84f88d7 Return correct device name in L0
With this commit L0 driver will report the same device name as OpenCL
driver

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2022-05-12 10:53:33 +02:00
Lukasz Jobczyk be908f4695 Update ReturnSubDevicesAsApiDevices debug variable description
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-05-12 10:42:28 +02:00