Commit Graph

5758 Commits

Author SHA1 Message Date
Mateusz Jablonski 3438a14fc4 refactor: remove not used function
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-04-30 17:10:20 +02:00
Lukasz Jobczyk c9a21c158e performance: Remove global fence allocation from BMG
Resolves: NEO-14642

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2025-04-30 17:08:44 +02:00
Fabian Zwoliński 7db6402df9 fix: Add texture cache flush after kernels writing to images on regular cmdlist
- Add `needsTextureCacheFlushOnBarrier` flag to CommandList to track if
a texture cache flush is needed
- Set the flag when appending such kernel to on regular (out-of-order)
command list
- Program texture cache flush in the next barrier and clear the flag
after the flush is programmed
- Clear the flag on command list reset
- Add unit tests

Related-To: NEO-14713
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2025-04-30 15:19:43 +02:00
Mateusz Jablonski aaaea67557 feature: add L0 API functions to get default context handle
- zeDriverGetDefaultContext to get default context for given driver
handle
- zerDriverGetDefaultContext to get default context for default driver
handle

Related-To: NEO-14560
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-04-30 14:04:28 +02:00
Mateusz Jablonski 1c42b26f41 fix: add missing L0 API entries in global driver dispatch
all ddi entries related to exposed L0 API version should be set to valid ptr

Related-To: NEO-13121
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-04-30 12:57:18 +02:00
Mateusz Jablonski f4f208421f feature: allow creating counter based event without specifying descriptor
default setting would point to:
- no profiling
- usable in both regular and immediate command list
- signals visible to the host
- wait scope device
- signal scope host

Related-To: NEO-14560
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-04-30 11:50:00 +02:00
Mateusz Jablonski 0d03164625 feature: allow creating host/device/shared USM without specifying descriptor
default setting would point to:
- ordinal 0
- cacheable resource
- host-side initial placement for shared USM

Related-To: NEO-14560
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-04-30 10:23:23 +02:00
Anvesh Bakwad 615a41b9f5 feature(sysman): Add support of zesPowerGetEnergyCounter() API for BMG
Related-To: NEO-11296

Signed-off-by: Anvesh Bakwad <anvesh.bakwad@intel.com>
2025-04-30 09:25:19 +02:00
Bartosz Dunajski f3ad230c45 feature: initial support for different copy offload submission modes
Related-To: NEO-7067

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2025-04-30 09:18:02 +02:00
Mateusz Jablonski da7bcef07c feature: allow to create immediate commandlist without specifying descriptor
created command list will take default descriptor which points to:
- ordinal 0
- index 0
- in-order-execution
- asynchronous execution
- normal scheduling priority
- copy offload hint enabled

Related-To: NEO-14560
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-04-29 15:14:55 +02:00
Compute-Runtime-Validation 23d7a4af73 Revert "feature: Add sync host event handling on windows"
This reverts commit 1ce4d0fdf7.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-04-29 04:33:45 +02:00
Chandio, Bibrak Qamar 58d8c907cd feature: blocking makeResident for mapVirtualMem
Related-To: NEO-14547

Signed-off-by: Chandio, Bibrak Qamar <bibrak.qamar.chandio@intel.com>
2025-04-29 01:56:12 +02:00
Jemale Lockett 1ce4d0fdf7 feature: Add sync host event handling on windows
Resolves: NEO-13744

Signed-off-by: Jemale Lockett <jemale.lockett@intel.com>
2025-04-28 21:14:25 +02:00
Vishnu Khanth 8668744f71 feature(sysman): Add support for Memory properties & state for iGPU's in Windows
Related-To: NEO-14197

Signed-off-by: Vishnu Khanth <vishnu.khanth.b@intel.com>
2025-04-28 14:58:37 +02:00
Dominik Dabek 75e313ce28 feature: prepare for l0 usm device pooling
Related-To: NEO-6893

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2025-04-28 14:55:03 +02:00
Bartosz Dunajski c2266fc69e refactor: remove not used CB event TS logic
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2025-04-28 14:31:34 +02:00
Michal Mrozek b37305c821 refactor: remove not needed code
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2025-04-25 18:34:37 +02:00
Michal Mrozek 7f777814d9 refactor: call synchronized dispatch functions only when enabled
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2025-04-25 16:54:50 +02:00
Michal Mrozek c41ac0ad4c refactor: remove not needed code
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2025-04-25 16:44:01 +02:00
Pratik Bari ce32489291 feature(sysman): Add Group Engine Busyness for BMG
Related-To: NEO-14635

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2025-04-25 15:45:13 +02:00
Mateusz Hoppe 41efee1e7c feature: add mode to expose single root device
- simplify API to expose and use only single root device. Disallow
returning subdevices. This is experimental mode.

Related-To: NEO-14559

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2025-04-25 13:20:56 +02:00
Aravind Gopalakrishnan 52a0f1c7e4 test: Fix ULT naming for IPC open handle test
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2025-04-25 01:38:12 +02:00
Vishnu Khanth c5a97b0520 feature(sysman): Add support for Memory properties & state for iGPU's in Windows
Related-To: NEO-14197

Signed-off-by: Vishnu Khanth <vishnu.khanth.b@intel.com>
2025-04-24 11:56:51 +02:00
Joshua Santosh Ranjan bcc085dd7b fix: return error when incorrectly querying paraminfo
return error if param info is queried for 0 parameters,
but the parameter count is not 0 for the programmable.

Related-To: NEO-14507

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2025-04-24 09:25:47 +02:00
Mateusz Jablonski ef4ed582fa refactor: change type of stype member in L0 tools driver extensions
use uint32_t-alias type to avoid casting out of zet_structure_type_t enum range
Related-To: NEO-12901

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-04-24 09:21:09 +02:00
Raiyan Latif e0808523ee refactor: Re-enable external semaphore MT test
Related-To: NEO-11488

Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2025-04-23 18:20:38 +02:00
Mateusz Jablonski 627ffd1829 test: cleanup NOLINT comments related to L0 core driver extensions
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-04-23 15:31:11 +02:00
Michał Pryba edfc512d3b test: adjust test machers after pre-gen12 removal
Related-To: NEO-12681
Signed-off-by: Michał Pryba <michal.pryba@intel.com>
2025-04-23 14:30:21 +02:00
Maciej Plewka 6d085ed0d4 fix: Return max wg count equal one on platforms without dispatch all support
Second push of a change that was reverted due to errors in tests
Related-To: NEO-14125, GSD-10725

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2025-04-23 13:48:11 +02:00
Pratik Bari 2113882bf5 feature(sysman): Expose the config pair to the Engine Handle
Related-To: NEO-14635

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2025-04-23 10:21:15 +02:00
Chandio, Bibrak Qamar 61a9901edd test: fixes a clang-tidy error
Related-To: NEO-13715

Signed-off-by: Chandio, Bibrak Qamar <bibrak.qamar.chandio@intel.com>
2025-04-18 20:01:41 +02:00
Brandon Yates 42b097ab4f fix: Only expose THREAD_SCRATCH dbg reg in heapless mode
Related-to: NEO-14653

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2025-04-18 18:30:13 +02:00
Mateusz Jablonski 0dd2535674 refactor: change type of stype member in L0 Core driver extensions
use uint32_t-alias type to avoid casting out of ze_structure_type_t enum range
Related-To: NEO-12901

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-04-18 15:02:31 +02:00
Mateusz Jablonski 711d250b8a refactor: remove redundant definition of stype
Removed definitions are already defined in level-zero repo

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-04-18 13:43:14 +02:00
Aravind Gopalakrishnan b4f95a1a26 feature: Add pidfd option for IPC handle import
Related-To: NEO-10380

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2025-04-18 13:01:27 +02:00
Compute-Runtime-Validation 4e81b84d07 Revert "fix: Only expose THREAD_SCATCH dbg reg in heapless mode"
This reverts commit e981e85c31.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-04-18 12:42:33 +02:00
Bellekallu Rajkiran 092403f041 feature: Add get local id test kernel
Related-To: NEO-14415

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2025-04-18 11:22:31 +02:00
Mateusz Hoppe 990fa0d8a9 fix: assign secondary contexts from correct device
- for root device, copy engines from subdevice are used, secondary
contexts must be selected from subdevice in this case

- return low priority BCS from subdevice

Related-To: NEO-14559

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2025-04-18 10:55:39 +02:00
Young Jin Yoon 05c6612386 refactor: add EncodePostSyncArgs to EncodeDispatchKernelArgs
Refactored various member variables in EncodeDispatchKernel to directly
include EncodePostSync
Changed command encoder and command list to use the modified
EncodeDispatchKernel.

Related-To: NEO-13003
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2025-04-17 20:55:40 +02:00
Brandon Yates e981e85c31 fix: Only expose THREAD_SCATCH dbg reg in heapless mode
Related-to: NEO-14653

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2025-04-17 16:48:44 +02:00
Fabian Zwoliński ee769f5983 fix: Add texture cache flush after kernels writing to images on imm cmdlists
- add `hasImageWriteArg` flag to KernelDescriptor,
based on image access qualifier
- add `isPostImageWriteFlushRequired` method to productHelper,
to require cache flush only on selected platforms
- if possible, add the `textureCacheInvalidationEnable` arg to the
existing PC, otherwise add a new PC

Related-To: NEO-13427, HSD-18041321008
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2025-04-17 16:04:31 +02:00
Young Jin Yoon 5a2a792c34 Revert "refactor: add EncodePostSyncArgs to EncodeDispatchKernelArgs"
This reverts commit 40aef1555e.

Related-To: NEO-13003
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2025-04-17 15:37:05 +02:00
Compute-Runtime-Validation b96cf55985 Revert "fix: Return max wg count equal one on platforms without dispatch all ...
This reverts commit b8be602bfb.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-04-17 12:10:11 +02:00
Zbigniew Zdanowicz 66c8f86fd8 performance: make reservation in residency before adding to the container
Related-To: NEO-13916

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2025-04-17 11:02:54 +02:00
Lukasz Jobczyk d9a40734ae performance: Remove global fence from CW post sync on BMG
Related-To: NEO-14642

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2025-04-17 10:23:40 +02:00
Zbigniew Zdanowicz f95a9712ca test: improve zello_printf test
- improve object management, create kernels once and remove module when fail
- improve test logging

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2025-04-16 18:51:52 +02:00
Young Jin Yoon 40aef1555e refactor: add EncodePostSyncArgs to EncodeDispatchKernelArgs
Refactored various member variables in EncodeDispatchKernel to directly
include EncodePostSync
Changed command encoder and command list to use the modified
EncodeDispatchKernel.

Related-To: NEO-13003
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2025-04-16 17:46:07 +02:00
Zbigniew Zdanowicz 908cd0abb7 performance: unify all specific non append method calls into single conditional
Related-To: NEO-13916

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2025-04-16 15:01:21 +02:00
Chandio, Bibrak Qamar bed2ad1ac0 feature: memAdise for System Allocator
Related-To: NEO-13715

Implements basic functionality for zeCommandListAppendMemoryAdvise for
system allocator

Signed-off-by: Chandio, Bibrak Qamar <bibrak.qamar.chandio@intel.com>
2025-04-16 07:11:14 +02:00
Raiyan Latif 1a1806394d test: Disable multi-threaded external semaphore test
This reverts commit c658720b8e.

Related-To: NEO-11488

Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2025-04-16 06:28:56 +02:00