Commit Graph

4361 Commits

Author SHA1 Message Date
Jitendra Sharma
f56babb2a9 refactor: Move common attention handling EuDebug code out of prelim
Move common attention handling code from prelim in common linux
debug_session(.h/.cpp) files.
This common code could be shared to handle attention events for
prelim and xe driver based Eu Debug

Related-To: NEO-9673
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2024-02-19 14:49:30 +01:00
Dunajski, Bartosz
f404f3ceb1 refactor: initial support for per platform extension string
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-02-19 14:47:30 +01:00
Dunajski, Bartosz
5d6ce43cf9 fix: return correct device address for standalone CB Event
Related-To: NEO-8145

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-02-19 11:35:30 +01:00
Dunajski, Bartosz
8dc3364d56 fix: append paths for standalone CB Event
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-02-16 18:14:31 +01:00
Slawomir Milczarek
1a00d96735 fix: Fixed timeout resolution for zeCommandQueueSynchronize
According to Level Zero specification: timeout [in] if non-zero,
then indicates the maximum time (in nanoseconds) to yield
before returning ZE_RESULT_SUCCESS or ZE_RESULT_NOT_READY

Related-To: NEO-8927

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2024-02-16 15:39:00 +01:00
Mateusz Hoppe
ce079c62d5 feature: bindless images extension - pitched ptr support
- add support for allocating image from pitched pointer allocated from
device memory
- extend blackbox test with bindless image using USM memory

Related-To: NEO-10352

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-02-16 15:30:12 +01:00
Kacper Nowak
bb5974e562 refactor: Add method for retrieving extra device info
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2024-02-16 15:16:55 +01:00
Zbigniew Zdanowicz
dce595ba9d refactor: add walker pointer to command list launch parameters
Related-To: NEO-10062

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-02-16 11:28:20 +01:00
Aravind Gopalakrishnan
618f1dd346 feature: Implement zeCommandListImmediateAppendCommandListsExp [1/N]
Prepare execute call to accept event args

Related-To: NEO-10356

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2024-02-15 17:09:03 +01:00
Dunajski, Bartosz
5085300449 feature: query to get kernel/module register sizes
Related-To: NEO-7357

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-02-15 13:00:00 +01:00
Michal Mrozek
25b3a3dbfa fix: user proper settings for caches.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2024-02-15 11:38:34 +01:00
Brandon Yates
0fb6f4bf3f refactor: make Debugger ClientConnection common for xe/i915
- Add base ClientConnection type and derived i915/xe types
- Add accessor function fo retreive ClientConnection
- Move getElfOffset to common linux code
- Add accessor functions for getElfSize and getElfData

Related-to: NEO-9669

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2024-02-15 11:27:10 +01:00
Lukasz Jobczyk
a05cc69a5a fix: Handle OOM in BCS split
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-02-15 10:44:17 +01:00
Compute-Runtime-Validation
9570d02134 Revert "fix: correctly report support for SPIR-V 1.0 through 1.3"
This reverts commit 5120ec2f93.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-02-15 04:00:31 +01:00
Bellekallu Rajkiran
93ab7957fa refactor: Abstract firmware support based on product
Related-To: NEO-10035

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2024-02-14 23:24:54 +01:00
Katarzyna Cencelewska
3d51832498 test: add preemption field to mock objects
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2024-02-14 21:49:18 +01:00
Mateusz Hoppe
3051c5ef2b feature: bindless image extension
- support for zeMemGetPitchFor2dImage() and
zeImageGetDeviceOffsetExp()

Related-To: NEO-10352

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-02-14 21:11:31 +01:00
Dunajski, Bartosz
88c5872682 feature: debug flag to flush tlb before copy
Related-To: HSD-18036669673

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-02-14 20:05:57 +01:00
Zbigniew Zdanowicz
186e3d2b83 refactor: add residency parameter to command list append kernel call
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-02-14 17:27:24 +01:00
Mateusz Hoppe
a22b9f454d feature: bindless image extension - image properties
- add support for device image properties
(ze_device_pitched_alloc_exp_properties_t)

Related-To: NEO-10352

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-02-14 16:10:47 +01:00
Zbigniew Zdanowicz
2061b5bedf refactor: add command list getter
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-02-14 15:39:47 +01:00
Ben Ashbaugh
5120ec2f93 fix: correctly report support for SPIR-V 1.0 through 1.3
Related-To: NEO-10336

Signed-off-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
2024-02-14 09:21:06 +01:00
Brandon Yates
1e3d57b29a refactor: Move Debugger Mem Access to generic linux implementation
Related-to: NEO-9669

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2024-02-13 18:56:00 +01:00
Kamil Kopryk
141483c342 feature: use heapless builtins in L0 if supported
Related-To: NEO-7621
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-02-13 16:14:27 +01:00
Mateusz Hoppe
22802d8680 feature: add ZE_experimental_bindless_image extension
- add definitions and functions
- Level Zero spec commit: 49c972463796e614597b028bd344e1b2f64a63b7

Related-To: NEO-10352

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-02-13 15:06:41 +01:00
Jitendra Sharma
ff604bda1b feature: Implement thread control for debugger in XE
Related-To: NEO-9668
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2024-02-12 19:46:28 +01:00
Zbigniew Zdanowicz
6f74fa46b7 refactor: add method for device query of extension properties
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-02-09 16:15:16 +01:00
Zbigniew Zdanowicz
71457b7f08 feature: add level zero helper cmdlist update capability method
Related-To: NEO-10062

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-02-09 12:48:25 +01:00
Dunajski, Bartosz
e86a860127 refactor: remove unordered_map with extensions functions from Driver class
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-02-09 10:24:54 +01:00
Brandon Yates
ea7ae7564f feature: Implement read/writeGpuMemory for Xe debugger
- makes prelim read/writeGpuMemory generic
- Implements Xe specific ioctls and fsyncs
- Refactors dbg IoctlHelper to use shared base class
for Xe and i915

Related-to: NEO-9668

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2024-02-08 22:09:59 +01:00
Lukasz Jobczyk
781f851519 fix: Add missing wait for init builtin thread
Resolves: NEO-10314

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-02-08 16:27:46 +01:00
Dunajski, Bartosz
6e7b52c144 test: disable zello bindless image tests if not supported
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-02-08 16:13:26 +01:00
Kulkarni, Ashwin Kumar
6f69fa997a refactor(sysman): refactor firmware flash progress support
Related-To: NEO-9297

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2024-02-08 15:11:04 +01:00
Dunajski, Bartosz
6ea395828e test: dont use host memory for zello atomic test
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-02-08 13:15:18 +01:00
Zbigniew Zdanowicz
3ce8dd0e08 test: add common function to black box tests that verifies extensions
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-02-08 12:32:36 +01:00
Dunajski, Bartosz
c263dacb57 test: early return zello image tests if images not supported
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2024-02-08 12:03:25 +01:00
Kulkarni, Ashwin Kumar
11f76277c8 feature(sysman): adds firmware flash progress api support
Related-To: NEO-9297

Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com>
2024-02-08 10:23:24 +01:00
Kamil Kopryk
9b7d54ef66 fix: fix exported function address for heapless mode in L0
Related-To: NEO-7621
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-02-08 09:45:42 +01:00
Yoon, Young Jin
97ef964bc4 feature: Add keys to override sync mode for immediate command list
Added OverrideImmediateCmdListSynchronousMode to override synchronous
mode for immediate command list

Related-To: NEO-10316
Signed-off-by: Yoon, Young Jin <young.jin.yoon@intel.com>
2024-02-08 08:35:32 +01:00
Compute-Runtime-Validation
0b64240deb Revert "feature: enable dummy blit WA for PVC"
This reverts commit fb9d225495.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-02-08 04:27:00 +01:00
Maciej Plewka
ce17580b28 fix: Use Rcs engine in blender on DG2
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2024-02-07 18:21:54 +01:00
Dominik Dabek
371788210d performance: limit usm host allocation recycle
Query system total memory size and limit usm host allocation recycle to
use at most x%.
x is read from ExperimentalEnableDeviceAllocationCache for device and
ExperimentalEnableHostAllocationCache for host.

Related-To: GSD-7497

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2024-02-07 17:45:41 +01:00
Fabian Zwolinski
87990b8cfc fix: add ISA cache flush prior to cmdlists execution
Add sizeForFullCacheFlush and
sizeForInstructionCacheFlush before
estimateLinearStreamSizeComplementary call
to take into account the state of globalInit.

Set ctx.globalInit = true when cache flush is required.

Related-To: NEO-10045
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2024-02-07 17:32:15 +01:00
Zbigniew Zdanowicz
d514c675df test: improve logging and validation in black box tests
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-02-07 15:58:55 +01:00
Yoon, Young Jin
22f761b4eb feature: Add introspection APIs for event
Added entrypoints for all event-related introspection APIs
and implemented corresponding functions in Event and EventPool.

Modified Event to record its EventPool upon creation.

Related-To: NEO-10265
Signed-off-by: Yoon, Young Jin <young.jin.yoon@intel.com>
2024-02-07 11:48:28 +01:00
Kacper Nowak
999ec9b2ca refactor: Unify logic for getting atomic FP caps 1/n
- Separate logic for fp16/32/46 caps.
- Add aggregated constexprs for local & global caps of given type
- Pass arguments by reference
- Add hwInfo as argument for future refactors
- Add static_asserts in L0 to ensure there is no mismatch between
internal/external caps
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com>
2024-02-07 11:39:36 +01:00
Yoon, Young Jin
dac2af299b feature: Add introspection APIs for cmdlist
Added entrypoints for all command-list-related introspection APIs
and implemented corresponding functions in command list.

Modified device to record ordinal when creating command lists.

Related-To: NEO-10265
Signed-off-by: Yoon, Young Jin <young.jin.yoon@intel.com>
2024-02-07 07:22:26 +01:00
Jitendra Sharma
d69bb8ac15 refactor: Move common debugger methods out of prelim directory
Related-To: NEO-9668
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2024-02-06 12:45:58 +01:00
Bari, Pratik
00d36b5cee feature(sysman): Added L3 Fabric Errors
Related-To: NEO-8560

Signed-off-by: Bari, Pratik <pratik.bari@intel.com>
2024-02-06 10:18:47 +01:00
Mateusz Jablonski
fb9d225495 feature: enable dummy blit WA for PVC
cleanup redundant implementation for DG2

Related-To: NEO-9996
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-02-06 10:17:12 +01:00