Commit Graph

1161 Commits

Author SHA1 Message Date
Mateusz Hoppe
fcd5930f10 Cleanup debugger files
- move debug_manager.cpp to different folder
- remove unnecessary include

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-06-06 15:34:55 +02:00
Jaime Arteaga
de4b42118d Fix kernelBaseAddress extension
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2022-06-03 18:35:13 +02:00
Mateusz Jablonski
5bf1c84ed3 Cleanup includes in sampler, image, builtin and event
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-06-03 10:21:59 +02:00
Mateusz Jablonski
747c2d3d83 Cleanup includes in cmdlist, cmdqueue, context, device, driver and module
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-06-03 02:54:41 +02:00
Jaime Arteaga
8c6a3639d9 Remove non-needed branch from freeMem
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2022-06-02 20:06:56 +02:00
Mateusz Jablonski
2a4c68dc38 Remove not needed dependencies from device_imp.h
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-06-02 18:35:34 +02:00
Jaime Arteaga
1670081df7 Clean up context vector of devices
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2022-06-02 07:00:14 +02:00
Jaime Arteaga
325db6a99c Fix P2P support for implicit scaling
when using implicit scaling, 2 dma-buf handles, one per tile, are
needed to support dma access from peer.

Related-To: LOCI-3122

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2022-06-01 20:10:32 +02:00
Kacper Nowak
c9cb58ec8e Wrap L0 exported functions to prevent symbol collision
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2022-05-31 21:52:16 +02:00
Zbigniew Zdanowicz
afceaa6e19 Use system fence only when using system allocations or system scope event
Related-To: NEO-6959

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-05-31 12:55:30 +02:00
Mateusz Jablonski
16fd791a7c Fix L0: reuse partially linked segments when performing dynamic linking
When module is created but not fully linked we don't copy ISA to GPU
however we need to store patched segments for dynamic linking

Related-To HSD-18022114161

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-30 17:12:30 +02:00
Zbigniew Zdanowicz
9e575532b3 Extend command list kernel interface
Related-To: NEO-6959

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-05-30 11:56:24 +02:00
Mateusz Hoppe
4f7f3830d7 Canonize SBA addresses before tracking
- STATE_BASE_ADDRESS is not always using canonical addresses
- make sure SBA addresses are canonized before tracking

Related-To: NEO-6997

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-05-30 08:31:19 +02:00
Igor Venevtsev
8c165a6f41 L0 Debugger Windows - implement debugger attach/detach
Related-To: NEO-6718

Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2022-05-27 16:25:56 +02:00
Filip Hazubski
35d1f2e341 Add debug flag to control programming of thread arbitration policy with SCM
Related-To: NEO-6801

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2022-05-27 11:35:41 +02:00
Daniel Chabrowski
6fd7ae7142 Cleanup headers
Signed-off-by: Daniel Chabrowski <daniel.chabrowski@intel.com>
2022-05-26 17:55:44 +02:00
Neil R Spruit
8c894fad5e Change Packed binary Returned in L0 GetNative to be the Target Device binary
- Packed Binary Returned to a customer in L0 GetNative is now
the target device's native binary.

Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com>
2022-05-25 21:27:45 +02:00
Jaime Arteaga
359e848dbe Revert "Fix for task count hang issue"
This reverts commit 340ba8bf56.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2022-05-25 20:34:00 +02:00
Zbigniew Zdanowicz
2fd8540174 Add complete support for append memory ranges barrier in immediate command list
Related-To: NEO-6242

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-05-24 21:03:53 +02:00
Katarzyna Cencelewska
8ff34fea29 Fix typo
-engineGroupTyp to engineGroupType
-remove gap between commits to use same desc.ordinal in createCommandQueue

Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-05-24 12:15:12 +02:00
Katarzyna Cencelewska
637767500d Add implementation for flag NodeOrdinal to l0
create method adjustCommandQueueDesc

Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2022-05-24 11:10:59 +02:00
Zbigniew Zdanowicz
a7acec9a04 Block event signal until cache flush is completed
Related-To: NEO-6871

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-05-23 17:51:16 +02:00
Zbigniew Zdanowicz
7ca20ceb4b Change event algorithm to limit cache flush operation to single kernel packet
Related-To: NEO-6871

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-05-23 13:58:16 +02:00
Mateusz Hoppe
66c1727398 Program SIP end WA for non-copyOnly cmd queues
Resolves: NEO-6949

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-05-23 13:51:26 +02:00
Mateusz Hoppe
fb40e8d1a6 Do not decanonize SBA addresses when tracking
- use cannonized addresses for debugger

Resolves: NEO-6997

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-05-20 11:58:42 +02:00
Kamil Diedrich
ddd8a08fac Add mechanism to avoid calling gdi calls while process exit
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2022-05-20 11:11:52 +02:00
Yates, Brandon
db6562c092 Add windows debugger feature check
Related-To: NEO-6717
Signed-off-by: Yates, Brandon <brandon.yates@intel.com>
2022-05-20 08:42:59 +02:00
Pawel Wilma
d9858bf206 Add debug variable to override device name
This commit introduces debug variable to override device name reported
by CL_DEVICE_NAME property in OpenCL and ze_device_properties_t.name in
level_zero

Signed-off-by: Pawel Wilma <pawel.wilma@intel.com>
2022-05-19 15:16:13 +02:00
Compute-Runtime-Validation
9cf1fbd627 Revert "Add windows debugger feature check"
This reverts commit 65214e2e4c.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-05-19 12:57:04 +02:00
Zbigniew Zdanowicz
955ef84306 Optimize number of dc flush to single after all dispatched builtin kernels
Related-To: NEO-6871

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-05-18 22:43:52 +02:00
John Falkowski
340ba8bf56 Fix for task count hang issue
Signed-off-by: John Falkowski <john.falkowski@intel.com>
2022-05-18 19:35:12 +02:00
Mateusz Hoppe
1a04628393 L0 Debugger - disable compression in debugging mode
Resolves: NEO-6942

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-05-18 17:54:20 +02:00
Krystian Chmielewski
c59abbe495 Add option for extending cmdlist
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2022-05-18 14:49:50 +02:00
Yates, Brandon
65214e2e4c Add windows debugger feature check
Related-To: NEO-6717
Signed-off-by: Yates, Brandon <brandon.yates@intel.com>
2022-05-18 00:37:39 +02:00
Artur Harasimiuk
3f04769f07 style: configure readability-identifier-naming.FunctionCase
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-17 20:55:56 +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
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
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
Artur Harasimiuk
7eafb1e877 remove unused code
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-16 18:15:03 +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
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
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
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
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
a31a674c38 L0 support for expose sub devices as API devices
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2022-05-11 15:41:53 +02:00
Mateusz Hoppe
c021e2ec5e L0 Debugger - DebugSession linux implementation
- new feature, enabled with PRELIM build
- implementation of debug session for linux
- move ResourceClass enum from Drm to drm_debug.h

Resolves: NEO-6814


Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-05-11 15:30:32 +02:00
Artur Harasimiuk
e9be9b64c6 clang-tidy configuration cleanup
Define single .clang-tidy configuration with all used checks and use
NOLINT to selectively silence tool. That way cleanup should be easier.
third_part/ has its own configuration that disables clang-tidy for this
folder.

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-11 14:02:04 +02:00