Commit Graph

1609 Commits

Author SHA1 Message Date
Filip Hazubski 3e59a2f108 fix: Correct IoctlHelperXe logic to query PF support
Move logic in order to respect relevant checks before trying to query support.

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2025-05-21 18:55:17 +02:00
Slawomir Milczarek 0b46fb9f0d refactor: Add allocation type parameter to ioctl helper functions
Related-To: NEO-12952

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2025-05-21 17:06:33 +02:00
Maciej Bielski 0f8ee57f98 feature: add NEO_LOCAL_MEMORY_ALLOCATION_MODE
Allow the application to force storageInfo.localOnly and get the
out-of-memory returned if not possible.

This is a windows-only feature supported on discrete platforms.

Related-To: NEO-13428
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
2025-05-20 14:15:17 +02:00
Raiyan Latif 2b5e2ee851 feature: Add signal/wait support for OpaqueFd external semaphore
Related-To: NEO-14676

Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2025-05-19 22:56:48 +02:00
Slawomir Milczarek 70619b4e6c fix: Fixed build errors on RHEL 8.10
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2025-05-19 22:05:08 +02:00
Raiyan Latif 60eecb4ad4 fix: Override SYNCOBJ IOCTL value in i915 prelim helper
The IOCTL value of DRM_IOCTL_SYNCOBJ_FD_TO_HANDLE in
prelim header was found to be different than in base
drm header.

Related-To: NEO-14676

Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2025-05-19 19:39:30 +02:00
Szymon Morek 23c817803d performance: enable compression for iGPU on linux
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-05-19 16:20:37 +02:00
John Falkowski 468c62086e refactor: Gate shared system mem caps with KMD cap
If KMD not capable then set sharedSystemAllocCapabilities=0

Related-To: NEO-12988

Signed-off-by: John Falkowski <john.falkowski@intel.com>
2025-05-19 11:08:19 +02:00
Raiyan Latif 0e0cf3f742 feature: Add support for importing OpaqueFd external semaphore
Related-To: NEO-14676

Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2025-05-18 18:04:39 +02:00
Szymon Morek b74dc9b7e1 performance: enable low latency hint on Xe
Related-To: NEO-14708

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-05-14 15:47:21 +02:00
Lukasz Jobczyk cca51ce3e5 fix: Add shared VA surface to ulls light residency
Resolves: GSD-11126

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2025-05-14 08:30:55 +02:00
shubham kumar 7d85b1aeb7 feature: add support for eustall uAPI
Related-To: NEO-14347


Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2025-05-13 09:34:52 +02:00
Falkowski, John 8fb0a7c67f refactor: Disable SharedSystemUsmSupport by default
Support only enabled by setting EnableSharedSystemUsmSupport=1

Related-To: NEO-12988

Signed-off-by: Falkowski, John <john.falkowski@intel.com>
2025-05-12 17:10:11 +02:00
Slawomir Milczarek 9d31f1af08 refactor: Remove padding in primary context handle structure
Related-To: NEO-12952

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2025-05-12 10:14:57 +02:00
Compute-Runtime-Validation 9c9a0a87b9 Revert "refactor: Disable SharedSystemUsmSupport by default"
This reverts commit 0765b13a10.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-05-12 04:01:45 +02:00
John Falkowski 0765b13a10 refactor: Disable SharedSystemUsmSupport by default
Related-To: NEO-12988

Signed-off-by: John Falkowski <john.falkowski@intel.com>
2025-05-09 21:09:27 +02:00
Lukasz Jobczyk 1d1414febc refactor: remove unused dc flush mitigation
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2025-05-09 08:26:26 +02:00
Szymon Morek 6ae43123f6 fix: correct usages of ULLS-related resources
Related-To: NEO-14360

Current gmm usage type of these resources is causing
them to be cached, which is incorrect.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2025-05-08 12:12:45 +02:00
Compute-Runtime-Validation 7167f45199 Revert "refactor: Gate shared system mem caps with KMD cap"
This reverts commit 8e59ac7576.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-05-08 11:26:52 +02:00
Michal Mrozek afdc04975f refactor: remove ftrSvm variable
- it is true on all platforms.

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2025-05-07 16:16:42 +02:00
Krzysztof Sprzaczkowski de72e91269 feature: Native GPU fence synchronization object implementation
Related-To: NEO-10811
Signed-off-by: Krzysztof Sprzaczkowski <krzysztof.sprzaczkowski@intel.com>
2025-05-07 11:00:34 +02:00
John Falkowski 8e59ac7576 refactor: Gate shared system mem caps with KMD cap
Enabled only by setting EnableSharedSystemUsmSupport=1 flag

Related-To: NEO-12988

Signed-off-by: John Falkowski <john.falkowski@intel.com>
2025-05-07 06:38:01 +02:00
Compute-Runtime-Validation d477935ab9 Revert "refactor: Gate shared system mem caps with KMD cap"
This reverts commit f38fae3b18.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-05-06 12:43:16 +02:00
John Falkowski f38fae3b18 refactor: Gate shared system mem caps with KMD cap
Related-To: NEO-12988

Signed-off-by: John Falkowski <john.falkowski@intel.com>
2025-05-06 07:28:59 +02:00
Mateusz Jablonski e1c5f770dc refactor: remove not needed IoctlHelperXePrelim
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-05-05 17:19:24 +02:00
Pratik Bari 22ddaea09f fix(sysman): Correct gtId is fetched from the EngineInfo
Related-To: NEO-14626

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2025-05-05 15:50:50 +02:00
Brandon Yates ee75c59da5 fix: check BANNED in reset_stats before aborting when debugger is enabled
Related-to: GSD-10788

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2025-05-05 11:51:27 +02:00
Mateusz Jablonski 22b98e36ae fix: add getter for root context properties in ioctl helper xe-prelim
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-05-05 11:06:30 +02:00
Raiyan Latif ee4be92cc1 feature: Add TimelineWin32 External Semaphore support
Related-To: NEO-14397

Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2025-05-01 18:51:58 +02:00
John Falkowski 70eb6716ae refactor: Page align and size for prefetch
Resolves: NEO-12989

Signed-off-by: John Falkowski <john.falkowski@intel.com>
2025-04-30 06:46:35 +02:00
Lukasz Jobczyk a75f1434b0 performance: Store vm bind available in drmCsr
Resolves: GSD-10986

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2025-04-24 15:45:05 +02:00
Slawomir Milczarek a97a66506f refactor: Add ioctl helper to get primary context properties
Related-To: NEO-12952

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2025-04-24 14:27:25 +02:00
Bartosz Dunajski 71f81c786f fix: correct sysman engine query
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2025-04-24 13:00:32 +02:00
Slawomir Milczarek ab1f39f07f refactor: Remove ioctl helper for context destruction
Related-To: NEO-12952

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2025-04-24 10:53:04 +02:00
Lukasz Jobczyk f36e3c7d23 refactor: Disable gem close worker in ULTs
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2025-04-23 17:58:18 +02:00
Slawomir Milczarek a2d25ca31f feature: Add syscall wrappers for pidfdopen and pidfdgetfd
Related-To: NEO-12952

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2025-04-17 19:50:39 +02:00
Oskar Hubert Weber 1816c8eac4 fix: avoid joining thread in deferred deleter
Join thread in DllMain (which we are not aware of)
can result in hang occurring in DeferredDeleter, if the library is
freed before FreeLibraryAndExitThread call from within the worker thread,
the thread gets stuck, thus the main thread is stuck on worker->join().

Related-To: NEO-14121

Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
2025-04-17 16:17:42 +02:00
Compute-Runtime-Validation 331b515478 Revert "fix: avoid joining thread in deferred deleter"
This reverts commit 38a3667304.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2025-04-16 15:18:27 +02:00
Oskar Hubert Weber 38a3667304 fix: avoid joining thread in deferred deleter
Join thread in DllMain (which we are not aware of)
can result in hang occurring in DeferredDeleter, if the library is
freed before FreeLibraryAndExitThread call from within the worker thread,
the thread gets stuck, thus the main thread is stuck on worker->join().

Related-To: NEO-14121

Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
2025-04-16 10:02:10 +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
Tomasz Biernacik 5bf8b66498 feature: disable getting fd from vmExport
Related-To: NEO-12680


Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
2025-04-15 16:08:40 +02:00
Maciej Bielski 6ecf5b373e feature: exit with warning if small bar detected on Linux
Return early and provide justification, otherwise SIGBUS error is
returned.

Related-To: NEO-14506
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
2025-04-14 14:43:25 +02:00
Tomasz Biernacik 194c3058b8 performance: change usage for ringBuffer on integrated devices
Related-To: NEO-9421

Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
2025-04-14 12:25:38 +02:00
Tomasz Biernacik 18435df04c fix: unify deferring MOCS to PAT
Related-To: NEO-14643

Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
2025-04-11 20:10:25 +02:00
Fabian Zwoliński 363aa8cdbd performance: align local memory Tag allocations to 2MB
Align local memory allocations of tag types to 2MB when
2MB alignment is enabled via the product helper
(is2MBLocalMemAlignmentEnabled flag).

Refactored the allocateGraphicsMemoryInDevicePool function to improve
readability and maintainability. Simplified the logic for
determining base size and final alignment by reducing redundant code.

Related-To: NEO-12287
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2025-04-09 09:59:44 +02:00
Aravind Gopalakrishnan c7fe7dde90 fix: Correct Xe sysfs paths for ccs mode setting
Fix the sysfs paths for Xe KMD

Related-To: NEO-10378

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2025-04-09 06:51:18 +02:00
Lukasz Jobczyk 5bcf500c13 fix: Extend ULLS light mutex range
If some operatioins requires ULLS light stop, execute such operations
under mutex in pair with ULLS stop to ensure no other thread will start
ULLS.

Related-To: NEO-14406, NEO-13922

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2025-04-07 17:35:04 +02:00
Bartosz Dunajski f99870e716 fix: improve media handling 2
Related-To: NEO-14462

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2025-04-03 19:11:53 +02:00
Slawomir Milczarek 7e7e0a000f refactor: Add ioctl helper for context destruction
Related-To: NEO-11817

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2025-04-03 16:08:53 +02:00
Brandon Yates 4651e72b0b fix: Fail device init if kernel debugging is misconfigured
Also print error to stderr

Related-to: GSD-10780

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2025-04-02 21:06:30 +02:00