Commit Graph

7067 Commits

Author SHA1 Message Date
Bartosz Dunajski 4f1262645b refactor: pass extra walker params
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-09-10 15:30:03 +02:00
Filip Hazubski beaddb55e0 fix: Minor code changes
Remove needless checks for module and cmdList.
Add explicit check for surfaceState in setArgImageWithMipLevel.
Explicitly initialize WddmResidencyController::csr.

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2024-09-10 13:31:15 +02:00
Kamil Kopryk deb0fd8f6e build: use stateless options suffix if heapless enabled in test kernels
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-09-10 13:31:01 +02:00
Mateusz Jablonski eca60f01d1 refactor: extract IoctlHelperXePrelim that would use xe prelim headers
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-09-10 12:04:11 +02:00
Mateusz Hoppe a6bf424417 refactor: determine hp copy engine once after gfx core helper is created
- do not determine engine on every call to getDefaultHpCopyEngine()

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-09-10 10:00:48 +02:00
Kamil Kopryk c7a6a74e4e test: correct expectations in opencl tests if heapless enabled 4/4
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-09-10 09:22:41 +02:00
Damian Tomczak 41e24635e3 fix: correct maxMemAllocSize
Resolves: NEO-11857

Signed-off-by: Damian Tomczak <damian.tomczak@intel.com>
2024-09-10 09:15:18 +02:00
Wenbin Lu 7ac991fa3f fix: add workaround for incorrect DRM system info
Related-To: NEO-9489

Signed-off-by: Wenbin Lu <wenbin.lu@intel.com>
2024-09-10 08:48:01 +02:00
Filip Hazubski 7d16521c7b performance: Correct alignment checks
Only use checks in debug builds.

Resolves: HSD-18039597713

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2024-09-10 08:43:36 +02:00
Lukasz Jobczyk fa61b92cfb fix: Don't use copy rect middle on LNL Windows
Resolves: HSD-18039890120

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-09-10 06:34:15 +02:00
Wenbin Lu bfaeeb01d6 feature: support SVM heap in reserveVirtualMem
Related-To: NEO-11981

Signed-off-by: Wenbin Lu <wenbin.lu@intel.com>
2024-09-09 23:22:04 +02:00
Fabian Zwoliński e30b8c0300 fix: windows cl_cache fixes and improvements
Fixed the function that checks if a directory exists.
Added debug message in case config file creation fails.
Simplified setting pattern for searching all files in a directory.
Adding file search loop skip when found file is a directory.

Fixes: #762
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-09-09 19:25:52 +02:00
Bartosz Dunajski dd8460beba refactor: reduce TBX download timeout for unit tests
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-09-09 19:05:03 +02:00
Zbigniew Zdanowicz 0628d97ee1 feature: update processing kernel residency
- save position of kernel internal container when allocation can change
- reuse the same position when new allocation arrives
- add index container for additional allocation of image argument
- save position of additional allocation of image argument
- reuse position when for new image argument

Related-To: NEO-11719

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-09-09 14:10:02 +02:00
Mateusz Jablonski 54bda0e986 fix: In Linux CL/GL sharing
- always issue flush request before export

Apparently it's expected to flush the object (which might convert them
from one format to another for export, or remove aux buffer uses or
anything not supported by export).

- use modifier to select tiling mode

Previously we just assumed that whatever tiling mode was picked by mesa
will match the one picked by GMMLIB but that's not always the case
and in particular on Arc and Xe it doesn't work ... Mesa picks Tile4
and GMMLIB picks Tile64 ...

Fixes: #761
Fixes: #736

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-09-06 21:40:18 +02:00
Mateusz Hoppe 9d5f8eb587 refactor: save hpCopyEngine in Device
- remove loop iteration to get hpCopyEngine

Related-To: NEO-11983

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-09-06 17:56:53 +02:00
Zbigniew Zdanowicz 0f5d9fbb65 performance: replace method calls with constexpr function
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-09-06 15:21:42 +02:00
Bartosz Dunajski ba1f506c29 feature: add new region count param
Related-To: NEO-12138

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-09-06 15:14:59 +02:00
Fabian Zwoliński 38e1614f4a fix: create and use new allocation type for syncBuffer
Related-To: NEO-11533
Related-To: HSD-18039788811
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-09-06 14:11:33 +02:00
Lukasz Jobczyk a54a3bf624 performance: Optimize heap handling when mitigate dc flush
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-09-06 04:33:41 +02:00
Jemale Lockett efeee0018f fix: Set debugger supported on arl
Resolves: NEO-12136

Signed-off-by: Jemale Lockett <jemale.lockett@intel.com>
2024-09-05 18:23:47 +02:00
Kamil Kopryk 95b035a071 fix: global stateless heap creation in heapless path
Related-To: NEO-10681
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-09-05 16:56:00 +02:00
Andrzej Koska b0e7a11e9a refactor: Improving information transfer about the copy engine
Related-To: NEO-11934

Signed-off-by: Andrzej Koska <andrzej.koska@intel.com>
2024-09-05 16:11:52 +02:00
Slawomir Milczarek bf5953c091 feature: Add ioctl helper function to set external context
Related-To: NEO-11817

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2024-09-05 15:21:26 +02:00
Szymon Morek 80ef56ef4a fix: Fix residency handling when out-of-memory occurs
Related-To: NEO-12434 , NEO-11755

When OOM was triggered from KMD then reiterate
over allocations again since allocations which
should be resident could be evicted during trim process.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-09-05 13:23:37 +02:00
Compute-Runtime-Validation a8be06b92e Revert "performance: enable indirect detection, xe hpg"
This reverts commit a7c4256e65.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-09-05 03:35:23 +02:00
Compute-Runtime-Validation d842f65cf1 Revert "fix: submit dummy exec to pin memory during zeContextMakeMemoryReside...
This reverts commit f9b87d53e6.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-09-05 03:28:03 +02:00
Dominik Dabek a7c4256e65 performance: enable indirect detection, xe hpg
Enable for xe hpg and lpg.

Related-To: NEO-12491

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2024-09-04 16:57:54 +02:00
Maciej Plewka f9b87d53e6 fix: submit dummy exec to pin memory during zeContextMakeMemoryResident call
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>

Related-To: NEO-11879
2024-09-04 14:07:29 +02:00
Mateusz Hoppe 32fb476f6d refactor: debugbreak in simulation on memcopy to multi bank allocation
- if allocation has multiple banks, memcpy cannot write different data
for multiple banks

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-09-04 12:27:20 +02:00
Naklicki, Mateusz 2db6955296 performance: remove excessive ioctl call
Related-to: HSD-18039694684
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2024-09-04 10:07:56 +02:00
Jitendra Sharma 1b54c8958f fix: allow debug when heapless mode without per context VMs
Related-To: NEO-11791
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2024-09-04 08:56:29 +02:00
Compute-Runtime-Validation a4f68c57bb Revert "refactor: debugbreak in simulation on memcopy to multi bank allocation"
This reverts commit 1c51734642.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-09-04 05:48:55 +02:00
Mateusz Hoppe 1c51734642 refactor: debugbreak in simulation on memcopy to multi bank allocation
- if allocation has multiple banks, memcpy cannot write different data
for multiple banks

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-09-03 20:47:50 +02:00
Mateusz Jablonski 383d786f31 fix: correct including compiler product helper definition
inl file should be included only in enabler cpp files

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-09-03 20:20:39 +02:00
Compute-Runtime-Validation 99f62ac866 Revert "feature: support SVM heap in reserveVirtualMem"
This reverts commit 93cde3ee12.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-09-03 20:20:25 +02:00
Mateusz Hoppe 37b7caa137 fix: correct program header generation for shared isa allocation
- when kernels share single allocation, LOAD address in program headers
should point to correct virtual address including kernel offset

Related-To: NEO-7788, GSD-9836

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-09-03 17:50:29 +02:00
Kamil Kopryk 6d7e2760dc refactor: correct expectations in level zero tests if heapless enabled 3/n
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-09-03 15:11:59 +02:00
Wenbin Lu 93cde3ee12 feature: support SVM heap in reserveVirtualMem
Related-To: NEO-11981

Signed-off-by: Wenbin Lu <wenbin.lu@intel.com>
2024-09-03 11:38:51 +02:00
Kamil Kopryk d79889c3b2 test: correct expectations in opencl tests if heapless enabled 2/n
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-09-03 11:14:17 +02:00
Compute-Runtime-Validation dc84b163b5 Revert "performance: Optimize heap handling when mitigate dc flush"
This reverts commit 9249c5c65c.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-09-03 08:33:20 +02:00
Szymon Morek e6abfafa16 fix: drain paging fence queue before waiting for resources
Related-To: NEO-12197

If ULLS controller waits for CSR lock, and driver must
wait for resources due to OOM, then draing paging fence queue
directly

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-09-03 07:45:25 +02:00
Compute-Runtime-Validation 5569ebbe1f Revert "feature: capture multiple cpu pagefault handler"
This reverts commit 44f2912195.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-09-03 05:18:26 +02:00
Mateusz Jablonski b6eb4792dc performance: return const ref instead of struct copy from getBindlessInfo
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-09-02 18:40:01 +02:00
Lukasz Jobczyk 9249c5c65c performance: Optimize heap handling when mitigate dc flush
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-09-02 18:12:19 +02:00
Young Jin Yoon 44f2912195 feature: capture multiple cpu pagefault handler
Recorded multiple page fault handlers by using vector in
cpu_page_fault_manager_linux.

Added a static handlerIndex in order to track the depth of
handler logic to call appropriate previous handlers.

Related-To: NEO-11563
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2024-09-02 16:46:35 +02:00
Compute-Runtime-Validation fbabe203c1 Revert "fix: update completion data after makeResident"
This reverts commit 13ec7ad32a.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-31 20:54:02 +02:00
Compute-Runtime-Validation d3f32358e9 Revert "performance: Optimize heap handling when mitigate dc flush"
This reverts commit 452f4b1dd1.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-31 06:03:18 +02:00
Mateusz Jablonski 4bf8e6de2e test: correct expectation for pat index in bind test
Related-To: NEO-10158

Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-30 20:16:13 +02:00
Mateusz Hoppe ae3edba369 feature: limit contexts in group based on number of CCS engines
Related-To: NEO-12258, HSD-14023076222

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-08-30 19:55:31 +02:00
Michal Mrozek ce3cb71773 performance: add debug flag to control timestamp caching
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2024-08-30 16:32:06 +02:00
Szymon Morek 13ec7ad32a fix: update completion data after makeResident
Completion data can't be updated when makeResident fails
Resources could have updated state but paging fence remains the same.
Wait on paging fence during freeing these resources might result in hang.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-08-30 13:29:48 +02:00
Mateusz Jablonski c934877790 refactor: remove not needed function
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-30 12:18:14 +02:00
Mateusz Jablonski 512dac67fa test: move xe specific mocks to shared/test/common
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-30 11:22:58 +02:00
Szymon Morek df859c6d4a fix: skip always resident allocations during trim
Related-To: NEO-12461

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-08-30 11:22:44 +02:00
Lukasz Jobczyk 452f4b1dd1 performance: Optimize heap handling when mitigate dc flush
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-08-30 10:54:54 +02:00
Szymon Morek a0b789bf9c fix: make removal from container thread safe
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-08-30 09:24:20 +02:00
Compute-Runtime-Validation 63528e70a7 Revert "performance: Optimize heap handling when mitigate dc flush"
This reverts commit 1a8149e91c.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-30 05:59:25 +02:00
Mateusz Jablonski 4536a1b890 fix: unify clos support on PVC
add helper for matching all platforms except selected ones
add matchers for clos support
Related-To: NEO-10158

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-29 18:40:51 +02:00
Compute-Runtime-Validation 78d9af04e7 Revert "fix: change mutex when destroying allocation"
This reverts commit 7628966f80.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-29 18:14:01 +02:00
Lukasz Jobczyk 1a8149e91c performance: Optimize heap handling when mitigate dc flush
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-08-29 17:03:55 +02:00
Mateusz Jablonski f02b4297c2 test: add missing include path for neo_libult_common
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-29 16:26:48 +02:00
Mateusz Jablonski c8ead35afa test: correct adding subdirectories in test cmake files
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-29 16:16:05 +02:00
Compute-Runtime-Validation 2d8397a36f Revert "fix: skip always resident allocations during trim"
This reverts commit c9457bb5eb.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-29 15:57:37 +02:00
Kamil Kopryk 6c9a96e4dc test: correct expectations in ocl tests if heapless enabled 1/n
Related-To: NEO-10641

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-29 12:54:27 +02:00
Mateusz Hoppe d9a079d941 test: extend context group test
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-08-29 12:12:00 +02:00
Slawomir Milczarek 0258667a6e fix: Set control block in buffer object handle wrapper to null after deletion
Related-To: HSD-18039543925

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2024-08-29 12:06:59 +02:00
Kamil Kopryk a57fa2e137 test: correct expectations in level zero tests if heapless enabled 1/n
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-28 15:45:13 +02:00
Bartosz Dunajski db611962f7 fix: improve task count handling in tbx download path
Related-To: HSD-18039789178

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-28 15:32:15 +02:00
Lukasz Jobczyk 496012d82f performance: Use copy buffer rect middle builtin
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-08-28 15:32:00 +02:00
Szymon Morek 7628966f80 fix: change mutex when destroying allocation
Current mutex is not preventing destroying resources
when trim callback is currently evicting same allocation.
New mutex does.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-08-28 15:31:45 +02:00
Mateusz Hoppe 482e077252 feature: add regular and hp contexts in group without dedicated hp engine
- if no hp copy engine available, create group with regular and hp
contexts

Related-To: NEO-11983

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-08-28 14:01:10 +02:00
Lukasz Jobczyk 5aa5d40937 performance: Mitigate dc flush on LNL Windows
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-08-28 13:35:17 +02:00
Fabian Zwoliński 5367de1ea9 feature: enable bindless mode in L0 on BMG
Related-To: NEO-7063
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-08-27 17:22:32 +02:00
Szymon Morek c9457bb5eb fix: skip always resident allocations during trim
Related-To: NEO-12461

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-08-27 15:04:50 +02:00
Fabian Zwoliński 734b15314b feature: enable bindless mode in L0 on LNL
Related-To: NEO-7063
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-08-27 13:28:28 +02:00
Lukasz Jobczyk 0b848a5fdb fix: Don't use copy buffer rect middle builtin
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-08-27 12:01:58 +02:00
Szymon Morek 9c9a80617a Revert "performance: enable ULLS for xe2 platforms on linux"
This reverts commit 71c6731287.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-08-27 11:34:44 +02:00
Mateusz Hoppe d9864eca7a feature: add context group support for root device engine
Related-To: NEO-12257

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-08-27 10:07:28 +02:00
Compute-Runtime-Validation ad0d6f5435 Revert "refactor: Add dc flush mitigation infrastructure"
This reverts commit e4412e385a.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-27 02:35:06 +02:00
Mateusz Jablonski da6a83faa2 feature: add support for state save area header v4
Related-To: NEO-8188
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-26 16:03:20 +02:00
Mateusz Jablonski 856616d311 test: add mocks setter/getter for new IGC interface
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-26 15:54:45 +02:00
Mateusz Jablonski f1c81bc72a test: remove printfs from tests
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-26 15:48:39 +02:00
Bartosz Dunajski 843029d01b fix: make syncDispatchToken one time aub writable
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-26 14:40:41 +02:00
Mateusz Hoppe 3f6fc1d4d2 feature: switch to new aubstream createHardwareContext2 interface
Related-To: NEO-12257

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-08-26 14:10:53 +02:00
Mateusz Hoppe 868dd7b017 feature: use global bindless allocator in L0 on MTL
Related-To: NEO-7063, NEO-11533

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-08-26 12:55:24 +02:00
Vishnu Khanth 44658fb7d9 fix: Update appropriate values in PCI property & state for Windows
Related-To: NEO-12320

Signed-off-by: Vishnu Khanth <vishnu.khanth.b@intel.com>
2024-08-26 11:39:25 +02:00
Igor Venevtsev fb8921df97 fix: enable file logger for ReleaseInternal configuration
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2024-08-26 10:54:41 +02:00
Lukasz Jobczyk e4412e385a refactor: Add dc flush mitigation infrastructure
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-08-26 10:38:56 +02:00
Lukasz Jobczyk 656788e6c1 fix: Remove UC PAT override for shared images on LNL
Resolves: NEO-12326

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-08-26 10:24:10 +02:00
Kamil Kopryk fc3646b58c test: correct expectations in shared ults if heapless enabled
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-26 09:51:19 +02:00
Damian Tomczak df9fa343d1 feature: limit max workgroup size to 1k items
Resolves: NEO-11881

Signed-off-by: Damian Tomczak <damian.tomczak@intel.com>
2024-08-26 09:20:51 +02:00
Compute-Runtime-Validation e4c9013839 Revert "performance: Enable timestamp wait for queues on BMG"
This reverts commit 43e6a3aa03.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-24 07:26:12 +02:00
Compute-Runtime-Validation 5dbbaa39b9 Revert "fix: ulls controller sleep, windows"
This reverts commit 6455d4648c.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-24 06:37:58 +02:00
Compute-Runtime-Validation 956dd8e17d Revert "fix: set properly resource params when setAllocationType"
This reverts commit 2e0884a301.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-24 05:01:38 +02:00
Mateusz Hoppe 8d32a3a3ad feature: use global bindless allocator in L0 on DG2
Related-To: NEO-7063, NEO-11533

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-08-23 19:30:38 +02:00
Mateusz Jablonski 3e96dcf969 refactor: move eu per dss topology type detection to separate file
Related-To: NEO-12012


Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-23 18:07:43 +02:00
Katarzyna Cencelewska 2e0884a301 fix: set properly resource params when setAllocationType
gmm params: usage, cachable and resource info
should be set properly when override allocation type

Resolves: HSD-22020344331
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
2024-08-23 16:57:23 +02:00
Szymon Morek 71c6731287 performance: enable ULLS for xe2 platforms on linux
Related-To: NEO-9004

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-08-23 16:17:48 +02:00
Kamil Kopryk 78758b9f89 test: set ccs and rcs exposure in ults
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-23 15:28:34 +02:00
Maciej Plewka 4b3b1be191 fix: add heap to residency container instead of calling make resident
Related-To: NEO-11212

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>

There was make resident call outside lock on csr, so in multi thread
scenarios assigned residency task count may be not correct.
Instead of calling make resident allocation is added to
residency container
2024-08-23 14:52:24 +02:00
Jaroslaw Warchulski 3bb4425fb3 fix: Remove patchtokens fallback AIL for DaVinci Resolve
Related-To: NEO-12358
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
2024-08-23 13:44:18 +02:00
Chodor, Jaroslaw 360a5bbc96 fix: Use consistently proper size of implicit args buffer
Fixes discrepancy of implicit args buffer allocation and programming

Resolves: NEO-12316

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2024-08-23 13:32:17 +02:00
Bartosz Dunajski aeb5e0d5ad fix: pass vm_id to createMediaContext
Related-To: NEO-9777

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-23 12:53:39 +02:00
Szymon Morek b8f181d50e performance: remove trim candidate list
Related-To: NEO-11755

Removing trim candidate list reduces overhead
caused by residency handling. Allocations required
for eviction are placed in eviction container managed
by CSR.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-08-23 12:21:50 +02:00
Dominik Dabek 6455d4648c fix: ulls controller sleep, windows
Request higher resolution for windows periodic timers for ulls
controller sleep.

Allows for controller thread to sleep with granularity of 1ms.

Related-To: NEO-10800

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2024-08-23 12:05:26 +02:00
Mateusz Jablonski dbc8baddc1 test: don't use template id in contructor definition
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-23 11:03:33 +02:00
Bartosz Dunajski 696b02bfd3 fix: improve TBX downloading after L0 Event sync
Related-To: HSD-18038498579

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-23 10:42:17 +02:00
Mateusz Jablonski 5b51146673 fix: fail L0 device creation when invalid state save area header was delivered
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-22 16:24:40 +02:00
Mateusz Jablonski 70bb654c15 fix: fix compilation issues with gcc14
- don't populate buffer objects by direct access - use push_back method
- remove template-id from constructor definitions
- correct allocating minimum memory size for mock objects

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-22 16:10:49 +02:00
Mateusz Jablonski 06bc53fa9d fix: handle not recognized state save area header version
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-22 13:40:25 +02:00
Filip Hazubski 556ba1b7c4 performance: Avoid data copy in getPciStats function
Additionally explicitly remove unused functions of Directory and
StagingBuffer classes to comply with rule of five.

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2024-08-22 13:30:01 +02:00
Lukasz Jobczyk c1a5fb089b performance: Add copy buffer rect middle builtin
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-08-22 10:30:17 +02:00
Lukasz Jobczyk ff4a653c2e fix: Remove UC PAT override for shared images on BMG
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-08-22 10:02:15 +02:00
Compute-Runtime-Validation df33eda6e8 Revert "fix: Remove UC PAT override for shared images on BMG"
This reverts commit 4d31ec72fd.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-22 04:47:06 +02:00
Compute-Runtime-Validation d8ea5516b2 Revert "performance: Add copy buffer rect middle builtin"
This reverts commit bbb44c7a4d.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-22 04:41:42 +02:00
Mateusz Jablonski 7ac41615cd fix: create thread with function pointer
don't create async thread in neo shared tests

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-21 18:02:37 +02:00
Winston Zhang 0590b34cfa feature: refactor and rewrite setErrorDescription
Related-To: NEO-8379

Signed-off-by: Winston Zhang <winston.zhang@intel.com>
2024-08-21 17:26:25 +02:00
Lukasz Jobczyk bbb44c7a4d performance: Add copy buffer rect middle builtin
Resolves: NEO-12132

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-08-21 14:41:44 +02:00
Lukasz Jobczyk 9097b19c3c refactor: Remove not needed specialization
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-08-21 09:45:47 +02:00
Lukasz Jobczyk 43e6a3aa03 performance: Enable timestamp wait for queues on BMG
Related-To: NEO-10526

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-08-21 09:40:46 +02:00
Dominik Dabek 791848d441 fix: small buffer pool AIL, DG2, LNL
Related-To: HSD-15016646994

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2024-08-21 08:41:34 +02:00
Wenbin Lu 6d29e40b9d feature: add getThreadEuRatioForScratch for Xe2
Related-To: NEO-12105

Signed-off-by: Wenbin Lu <wenbin.lu@intel.com>
2024-08-21 08:18:42 +02:00
Compute-Runtime-Validation ef2ae9e1b7 Revert "feature: New forward-compatibility model for zeinfo"
This reverts commit f1815f941d.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-21 00:27:42 +02:00
Chodor, Jaroslaw f1815f941d feature: New forward-compatibility model for zeinfo
Up till now, NEO ignored uknown attributes in zeinfo
which could lead to undefined behavior. With this change
NEO will emit an error whenever an unknown attribute is
encountered.

Note : old behavior can be restored using new
IgnoreZebinUnknownAttributes debug environment variable

Resolves: NEO-11762

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
2024-08-20 23:08:04 +02:00
Mateusz Hoppe 8b1bedd1f6 fix: call processFlushResidency on aub operations handler
- in Os with AubDump mode

Related-To: NEO-11719

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-08-20 21:13:10 +02:00
Mateusz Jablonski f617093a6a fix: add missing nullptr check before accessing ail helper
Fixes: #755
Fixes: #754
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-20 16:58:53 +02:00
Lukasz Jobczyk d1c354d5bf fix: Init device with first submission when metrics enabled
Resolves: NEO-7642

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-08-20 14:34:16 +02:00
Lukasz Jobczyk 9e66844a27 fix: Add AIL for Zoom and aomhost64
Resolves: NEO-12193

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-08-20 13:36:22 +02:00
Mateusz Jablonski 51d03ba130 refactor: remove not needed check
OsLibrary::load already checks if library is loaded

Related-To: NEO-12273
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-20 13:30:00 +02:00
Alicja Lukaszewicz f45a229802 fix: add dependency on previous binary outputs
Related-To: NEO-11916

Signed-off-by: Alicja Lukaszewicz <alicja.lukaszewicz@intel.com>
2024-08-20 12:45:39 +02:00
Lukasz Jobczyk 4d31ec72fd fix: Remove UC PAT override for shared images on BMG
Related-To: NEO-12326

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2024-08-20 11:55:32 +02:00
Mateusz Hoppe 4c3a0d8344 fix: add missing sba capture when debug enabled
- In global bindless mode SBA may be programmed for scratch allocation,
missing sba capturing caused issues for kernels with scratch.
- this fix adds SBA capturing after SBA command

Related-To: NEO-7063

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-08-20 09:32:17 +02:00
Mateusz Jablonski 579af57161 refactor: don't call OsLibrary::load directly, use function pointer
this allows mocking this call in ULT

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-20 08:59:26 +02:00
Compute-Runtime-Validation 006285105d Revert "fix: allow using recoverable pagefaults on xekmd"
This reverts commit 4404d0c6b8.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-20 05:38:00 +02:00
Bartosz Dunajski 4748283cfd test: reduce object scope to avoid mock destructor prints
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-19 19:27:23 +02:00
Bartosz Dunajski ce0ecf5939 fix: download L0 Event TBX allocation on related subdevice if needed
Related-To: HSD-18038498579

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-19 18:34:58 +02:00
Jitendra Sharma 6df6e4bbb0 feature: Add SW FIFO implementation
Related-To: NEO-7990
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2024-08-19 16:38:34 +02:00
Naklicki, Mateusz 4404d0c6b8 fix: allow using recoverable pagefaults on xekmd
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2024-08-19 15:56:55 +02:00
Jaroslaw Warchulski 5c6f3e7d2b fix: Remove patchtokens fallback AIL for DaVinci Resolve for XE2+
For other platforms, this AIL will be removed in the next change.

Resolves: NEO-12358
Signed-off-by: Jaroslaw Warchulski <jaroslaw.warchulski@intel.com>
2024-08-19 15:05:02 +02:00
Aravind Gopalakrishnan cb8063f71d feature: Append recorded command list into immediate (3/N)
- Use correct stream for dispatch
- Add capability to append signal event
- Check available space globally in immediate append call

Related-To: NEO-10356

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2024-08-16 17:40:28 +02:00
Kamil Kopryk a9e23130d1 refactor: correct typo
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-16 15:44:54 +02:00
Bartosz Dunajski 85a42162f8 refactor: debug flag to print DirectSubmission semaphore usage
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-16 13:10:34 +02:00
Mateusz Jablonski efb8240a00 refactor: rename OsLibrary::load function to distinguish functionality
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-16 01:35:41 +02:00
Compute-Runtime-Validation 9b652f4a34 Revert "feature: Improving information transfer about the copy engine"
This reverts commit 17ffdff4f1.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-15 22:06:31 +02:00
Mateusz Jablonski 90015a584b fix(ocloc): disable ocloc output if former ocloc was used
in case of fallback to former ocloc, the former ocloc setups outputs

Related-To: NEO-12273
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-14 15:49:14 +02:00
Andrzej Koska 17ffdff4f1 feature: Improving information transfer about the copy engine
Related-To: NEO-11934

Signed-off-by: Andrzej Koska <andrzej.koska@intel.com>
2024-08-14 11:28:29 +02:00
Mateusz Jablonski 922edfd68d fix(ocloc): correct ocloc name in supported devices query
previous approach was to version ocloc library but it was deprecated
right now there will be 2 known libraries:
- libocloc.so - for mainstream
- libocloc-legacy1.so for legacy platforms

Related-To: NEO-12273, NEO-9630
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-14 11:05:28 +02:00
Kamil Kopryk b063c3c62b test: add getInlineDataSize helper function
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-14 10:57:18 +02:00
Naklicki, Mateusz 1317aa539b fix: unblock xekmd recoverable pagefaults vmbind
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2024-08-14 10:46:45 +02:00
Kamil Kopryk fbf84c4077 test: add getWalkerPartitionEstimateSpaceRequiredInCommandBuffer helper
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-14 10:45:29 +02:00
Kamil Kopryk 0d5b6003e2 test: correct isAtomicDeviceSignalling expectation
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-14 10:04:21 +02:00
Kamil Kopryk d191f8f6a2 test: add getWalkerSize helper function
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-14 10:00:57 +02:00
Mateusz Jablonski d963318cad fix: add fallback to former ocloc in case of invalid device error
Related-To: NEO-12273
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-14 09:30:57 +02:00
Fabian Zwoliński f4ad45eafd fix: initialize engine in AubMemoryOperationsHandler::makeResident
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-08-13 20:57:57 +02:00
Mateusz Jablonski a32bb4d9a4 refactor: extract logic of calling former ocloc to separate function
Related-To: NEO-12273
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-13 17:24:48 +02:00
Compute-Runtime-Validation 1cca5e24c1 Revert "performance: disable dispatch task count update when direct submissio...
This reverts commit 6d486459fe.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-13 16:37:31 +02:00
Mateusz Jablonski 0eec0cdf57 refactor: define ocloc current and former names in shared ocloc file
ensure both names are different

Related-To: NEO-12273
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-13 14:40:55 +02:00
Zbigniew Zdanowicz 6d486459fe performance: disable dispatch task count update when direct submission active
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-08-13 13:19:26 +02:00
Ben Ashbaugh 32f80e1131 feature: add support for the cl_khr_extended_bit_ops extension
Related-To: NEO-10337

Signed-off-by: Ben Ashbaugh <ben.ashbaugh@intel.com>
2024-08-12 17:44:31 +02:00
Maciej Plewka 27488a8315 fix: Add option to use divergent paths for barriers
Related-To: NEO-12159, IGC-9846, HSD-16024235164, HSD-15014782386

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2024-08-12 12:15:54 +02:00
Artur Harasimiuk 5bb1bc0396 build: add ocloc CURRENT and FORMER definitions
Related-To: NEO-6683
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2024-08-12 11:45:27 +02:00
Mateusz Jablonski b3d005b2aa fix: setup proper gen id for metrics library on Xe2
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-12 10:48:47 +02:00
Filip Hazubski 54b5adb767 fix: Add checks to align functions
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2024-08-12 10:08:15 +02:00
Bellekallu Rajkiran be4570fe10 fix: Read appropriate entry for HBM channels
Related-To: NEO-11949

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2024-08-12 09:44:37 +02:00
Maciej Bielski a4060013de refactor: move CLOS-related steps from core- to product-helper
Future HW will not support cache reservation uniquely for the whole
platform. Implementation of some functions may vary between products.

Related-To: NEO-10158
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
2024-08-12 09:27:04 +02:00
Compute-Runtime-Validation 0ac9491a0a Revert "feature: use global bindless allocator in L0 on DG2"
This reverts commit c832a37bac.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-10 13:25:47 +02:00
Compute-Runtime-Validation f332320111 Revert "feature: use global bindless allocator in L0 on MTL"
This reverts commit 959626376e.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-10 05:31:52 +02:00
Jack Myers c8746638c9 feature: implements 2d block load/store helpers
Implemented the product helper specializations for querying device
support for 2D block load/store operations.

The desired support matrix is both load and store is supported for PVC
and up, and unsupported forall else.

The interface for querying 2d block load/storecapabilities was
implemented in a previous PR.

Related-To: NEO-11592
Signed-off-by: Jack Myers <jack.myers@intel.com>
2024-08-09 18:42:56 +02:00
Fabian Zwoliński 959626376e feature: use global bindless allocator in L0 on MTL
Related-To: NEO-7063, NEO-11533
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-08-09 16:01:55 +02:00
Fabian Zwoliński c832a37bac feature: use global bindless allocator in L0 on DG2
Related-To: NEO-7063, NEO-11533
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-08-09 15:59:52 +02:00
Bartosz Dunajski d76ac1d1de fix: scratch controller residency
Related-To: HSD-18039519400

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-09 14:47:56 +02:00
Kamil Kopryk 8fe9751449 refactor: remove duplicated code for genCmdCast functions
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-09 14:23:47 +02:00
Compute-Runtime-Validation a860adc457 Revert "fix: unblock xekmd recoverable pagefaults vmbind"
This reverts commit cc3e6d5055.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-09 14:17:41 +02:00
Kamil Kopryk 775b14a7f6 fix: add ioh alignment in heapless
Related-To: NEO-11871

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-09 12:20:00 +02:00
Bartosz Dunajski f3367c2e6a refactor: remove not needed task count update
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-09 12:08:46 +02:00
Zbigniew Zdanowicz 0940776a97 refactor: add before cmake macro for older platforms
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-08-09 11:18:51 +02:00
Szymon Morek 7ebf2e1994 performance: unlock shared mutex during evict
Related-To: NEO-11755

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-08-09 10:35:12 +02:00
Naklicki, Mateusz cc3e6d5055 fix: unblock xekmd recoverable pagefaults vmbind
Related-To: HSD-13011898606
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2024-08-09 09:10:27 +02:00
Kamil Kopryk 4048cbc0c2 test: refactor hw parse cmds
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-09 08:56:16 +02:00
Fabian Zwoliński bfbcb7c05c fix: adjust tests to enabled global allocator 9/n
Related-To: NEO-7063
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-08-08 21:24:49 +02:00
Fabian Zwoliński 652cff7a86 fix: adjust tests to enabled global allocator 8/n
Related-To: NEO-7063
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-08-08 16:50:10 +02:00
Bartosz Dunajski c42d0fbe49 refactor: improve xe mock engine testing
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-08 12:37:31 +02:00
Maciej Bielski e434c5595f feature: get HW IP version from drm_xe_gt
Make use of `drm_xe_gt` members to determine HW IP version when running
with XeKMD. Fall back to current values when the respective ioctl call
does not provide relevant information.

Related-To: NEO-10773

Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
2024-08-08 12:06:54 +02:00
Mateusz Hoppe 4c172a406d fix: correct maxOsContextCount with multiple subdevices and context group
Related-To: NEO-12257

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-08-08 11:04:36 +02:00
Bartosz Dunajski bca8478bd4 feature: use iotclhelper to get num media engines
Related-To: NEO-9777

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-08 09:36:28 +02:00
Kamil Kopryk 8210997f17 refactor: move csrBaseAddress cmdCast to separate file
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-08 08:32:53 +02:00
Filip Hazubski 22a382b7a2 test: Minor test fixes related to alignment
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2024-08-08 08:26:12 +02:00
Bartosz Dunajski a04cf31110 refactor: improve engine query
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-07 18:22:26 +02:00
Szymon Morek 556a116987 fix: make paging fence address volatile
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-08-07 15:09:34 +02:00
Dominik Dabek ad229377b9 fix: disable indirect detection if any stack calls
Don't know if kernels will be initialized in the order needed to check
for indirect accesses in stack calls.

Remove now unused functionPointerWithIndirectAccessExists and reading
this value from zebin.

Related-To: NEO-12235

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2024-08-07 14:48:58 +02:00
Szymon Morek d7d6996464 performance: initialize timeout params once
Currently this is done per each enqueue
which is not really needed

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-08-07 14:35:12 +02:00
Bartosz Dunajski 7fc7fbfc47 refactor: improve ulls prints
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-07 14:18:04 +02:00
Szymon Morek 0d6c506c0b performance: enable wait on paging fence on semaphore
Related-To: NEO-12197

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-08-07 10:20:03 +02:00
Szymon Morek d4c1631ac7 performance: don't wait for paging fence on user thread
Related-To: NEO-12197

Currently for new resources user thread must wait before submitting
actual workload. With this commit, instead of waiting on user thread,
request is sent to background ULLS controller thread and additional
semaphore is programmed. ULLS controller will perform actual wait
and signal semaphore when paging fence reaches required value.

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-08-07 08:30:51 +02:00
Bartosz Dunajski 24cfd203ab fix: dont download tbx allocations on heapless first device submission
Related-To: HSD-18039476929

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-06 14:03:42 +02:00
Michal Mrozek d52ca080bd Revert "performance: improve pool handling"
This reverts commit a3c3b6533a.

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2024-08-06 13:04:02 +02:00
Artur Harasimiuk 57e7147e7c build: update ocloc_lib installation path for runtime
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2024-08-06 12:41:26 +02:00
shubham kumar 0002eb3fcc feature: adding eu stall support on windows
Related-To: NEO-12174


Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-08-06 06:47:11 +02:00
Kamil Kopryk 2a9bcdeb83 refactor: pass outImplicitArgs to patchImplicitArgs function
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-05 17:31:47 +02:00
Fabian Zwoliński 674c4a15ad fix: use correct gpu address when bindless heaps helper is enabled
Related-To: NEO-7063
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
2024-08-05 15:09:57 +02:00
Dominik Dabek 619b47e3d5 fix: disable usm host alloc recycle pre xe-hpg
Related-To: NEO-12182, NEO-12207

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2024-08-05 14:50:02 +02:00
Oskar Hubert Weber 3ccab79ed8 test: dir create
Related-To: NEO-11500

Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
2024-08-05 13:58:25 +02:00
Dominik Dabek e9e6cc05e3 fix: mem alloc size tracking safety
Make sure local mem alloc size atomic array is initialized with 0.
Add debug breaks to catch possible overflow on unregistering
allocations.

Related-To: NEO-11356

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2024-08-05 11:51:17 +02:00
Filip Hazubski db50903051 refactor: correct typo
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2024-08-04 21:12:09 +02:00
Dominik Dabek 26428d5af3 feature: track used memory by allocations
Track memory used by memory allocations. System and local per device.
Will be used for heuristics in memory pooling.

Related-To: NEO-11356

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2024-08-02 17:54:34 +02:00
Mateusz Jablonski 5a339aeb2c test: define mock drm xe in cpp file
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-02 14:36:16 +02:00
Compute-Runtime-Validation e27efd701f Revert "fix: correct calculating max subslice space"
This reverts commit 67f2500c03.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-02 12:28:13 +02:00
Bartosz Dunajski ec34656e0e fix: debug flag to defer first device submission
Related-To: HSD-18039343751

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-02 09:31:25 +02:00
Filip Hazubski 99d9482464 performance: Avoid data copy during SupportedDevicesHelper::deserialize
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2024-08-01 17:26:26 +02:00
Mateusz Jablonski 67f2500c03 fix: correct calculating max subslice space
computeMaxNeededSubSliceSpace is no longer needed as getHighestEnabledSubSlice
already determines maximum index from all enabled subslices

Related-To: NEO-12073
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-01 16:38:24 +02:00
Kamil Kopryk 27ba5f5089 refactor: move duplicated code to xeHpc and later
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-01 16:21:25 +02:00
Mateusz Jablonski 07a11e640f refactor: include xe header in dedicated namespace
avoid redefinition issue in case of integrating multiple xe drm versions

define mock drm xe in inl file to provide xe definitions for mock members

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-08-01 14:38:20 +02:00
Kamil Kopryk ee2a688323 test: add flushTaskStateless mocks
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-08-01 14:37:34 +02:00
Bartosz Dunajski 5ccfd6f2be fix: add missing AlignLocalMemoryVaTo2MB flag support
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-01 13:54:51 +02:00
Zbigniew Zdanowicz 7ca0210ef2 fix: patch compute walker scratch address when scratch controller is changed
- scenario when command list is changed from normal to low priority queue
- save only scratch patch address, when changed, then enable patching
- kernels will re-use scratch patch address after update of compute walker

Related-To: NEO-11972

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-08-01 13:28:53 +02:00
Artur Harasimiuk 250601fd7b build: cleanup not needed variables from cmake
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2024-08-01 12:52:20 +02:00
Jemale Lockett dd36ac8401 fix: Make debug area resident for subdevices
Resolves: NEO-9455

Signed-off-by: Jemale Lockett <jemale.lockett@intel.com>
2024-08-01 11:08:30 +02:00
Bartosz Dunajski fa4812f963 fix: add alignment flag support in svm path
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-08-01 10:40:47 +02:00
Szymon Morek 375d65d8e5 refactor: remove unused code
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-08-01 09:55:46 +02:00
Compute-Runtime-Validation 2d1b263e9a Revert "refactor: remove redundant function computeMaxNeededSubSliceSpace"
This reverts commit c0b96dcd6e.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-08-01 03:54:56 +02:00
Artur Harasimiuk b6038de550 build: adjust name for legacy1 packages
Related-To: NEO-6683
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2024-07-31 16:20:08 +02:00
Mateusz Jablonski 8edc40adbc fix: populate SliceInfo based on TopologyMap in drm path
pick minimal config in case of multi tile

Related-To: NEO-12073
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-07-31 15:55:21 +02:00
Mateusz Jablonski c0b96dcd6e refactor: remove redundant function computeMaxNeededSubSliceSpace
use GfxCoreHelper::getHighestEnabledDualSubSlice instead

Related-To: NEO-12073
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-07-31 14:50:13 +02:00
Zbigniew Zdanowicz b33fe6ccf1 feature: adding flag to block dispatch implicit scaling commands
- this feature is part of making compute walker command view
- compute walker is programed for implicit scaling but not dispatched
- together with new flag, comes the refactor to reduce number of arguments

Related-To: NEO-11972

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-07-31 14:24:27 +02:00
Kamil Kopryk 1971a87da2 test: disable heapless or heapless state init in inappropriate ults 2/n
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-07-31 12:45:39 +02:00
Mateusz Jablonski aa32f7420b fix: correct getting max enabled dual subslice
when no dss info provided, assume max dss per slice are enabled

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-07-31 11:15:23 +02:00
Mateusz Jablonski 838894e074 fix: correct getting max enabled subslice
when no subslice info provided, assume max subslices per slice are enabled

Related-To: NEO-12073

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-07-31 10:42:57 +02:00
Maciej Bielski 790bb84841 refactor: decouple ClosCacheReservation from Drm
The dependency towards `Drm` is unnecessary and only makes testing more
difficult. Instead, dependency towards `IoctlHelper` alone only is
sufficient.

Related-To: NEO-10158
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
2024-07-31 10:38:35 +02:00
Jack Myers f5d00b2616 feature: 2d-block-load-transpose query
Implemented device property query API for determining
support capabilities regarding 2d-block-load-tranpose
features for which not all Intel devices support.

Related-To: NEO-11592
Signed-off-by: Jack Myers <jack.myers@intel.com>
2024-07-30 18:21:07 +02:00
Kamil Kopryk c09d5b383f test: disable heapless or heapless state init in inappropriate ults
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-07-30 17:36:52 +02:00
Bartosz Dunajski 8e8b2582d8 fix: wait for first submission in TBX mode
Related-To: HSD-18039343751

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-07-30 16:28:17 +02:00
Kamil Kopryk 2735b06206 test: add getCommandWalkerCount method
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-07-30 16:21:12 +02:00
Bartosz Dunajski 9e9d5cde70 fix: remove not needed check
Related-To: HSD-18039387061

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-07-30 13:22:42 +02:00
Filip Hazubski 42ed8a5ba5 build: Correct logic to include xe_lpg definitions
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2024-07-30 11:39:34 +02:00
Zbigniew Zdanowicz 7d1b59f008 feature: add option to make compute walker command view
Related-To: NEO-11972

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2024-07-30 11:23:45 +02:00
Mateusz Jablonski afc1664fce fix: fail wddm initialization when cannot create topology map
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-07-30 09:35:42 +02:00
Michal Mrozek 5dc01e5764 Revert "performance: remove not needed logic"
This reverts commit 0ec4e9333d.

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2024-07-30 07:21:40 +02:00
Young Jin Yoon f9228ad11b test: add tests for numa library
Added the test to check whether numa library is not loaded
when EnableHostAllocationMemPolicy is not set.

Related-To: GSD-5053
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
2024-07-29 22:19:19 +02:00
Michal Mrozek 0ec4e9333d performance: remove not needed logic
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2024-07-29 19:11:19 +02:00
Naklicki, Mateusz d9dec7acfc fix: improve reported flag names for binding process in xe
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2024-07-29 18:08:13 +02:00
Michal Mrozek fdf9916cab performance: do not execute same code twice
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2024-07-29 17:33:32 +02:00
Wenbin Lu e2f1735cc5 test: use realistic values in topology query tests
Related-To: NEO-9489

Signed-off-by: Wenbin Lu <wenbin.lu@intel.com>
2024-07-29 16:34:22 +02:00
Dominik Dabek 796edfeeb5 performance: enable host usm alloc recycle
Enable on pre xe2 platforms.

Related-To: NEO-6893

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2024-07-29 14:29:08 +02:00
Kamil Kopryk 65fcbff55c refactor: Simplify code
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-07-29 14:26:51 +02:00
Mateusz Jablonski 382584067a fix: setup initial l3 bank count before querying topology
Resolves: NEO-12169
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-07-29 12:24:45 +02:00
Kamil Kopryk b6bea06c3a test: correct checking sip address
Related-To: NEO-10641
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-07-29 12:24:30 +02:00
Mateusz Jablonski 71f4088a1e fix: correct hw info setting in drm path
add fallback to get max eu per ss from topology if not available in other way

Related-To: NEO-12073
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-07-26 17:23:56 +02:00
Mateusz Jablonski 85df385582 fix: ensure system info is queried before querying topology
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-07-26 16:03:59 +02:00
Kamil Kopryk d2546d4062 refactor: add forceComputeWalkerPostSyncFlushWithWrite function
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2024-07-26 15:00:46 +02:00