Commit Graph

16 Commits

Author SHA1 Message Date
Szymon Morek 068ceee8bd performance: improve iterating over residency allocations
Related-To: NEO-12698,NEO-12746,NEO-12729

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-10-07 16:12:22 +02:00
Szymon Morek 468e309e11 fix: call evict under lock
Related-To: NEO-12657

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2024-09-25 10:26:01 +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
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 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
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
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
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
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
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
Patryk Wrobel 90ba50bf52 Warn when RAII lock returned from function is discarded
Discarding RAII lock returned from function almost always
is a bug. This change introduces usage of [[no_discard]]
attribute from C++17 to prevent such misues.

Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-09-01 16:53:03 +02:00
Zbigniew Zdanowicz f17b46bc22 Reposition members of wddm classes
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-07-28 14:31:12 +02:00
Jaroslaw Chodor a2da0d5e70 Refactor/cleanup around wddm
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
2021-05-26 16:26:28 +02:00
Maciej Dziuban b5c899cd18 Fix disabled unit test
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2020-12-01 17:52:34 +01:00
Mateusz Jablonski 7df9945ebe Add absolute include paths
Change-Id: I67a6919bbbff1d30c7d6cdb257b41c87bad51e7f
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2020-02-23 23:49:12 +01:00
kamdiedrich e072275ae6 Reorganization directory structure [3/n]
Change-Id: If3dfa3f6007f8810a6a1ae1a4f0c7da38544648d
2020-02-23 23:48:28 +01:00