compute-runtime/shared/source
Maciej Bielski a71b88fefb PageFaultHandler: speedup UM allocations lookup
Add a per-instance SVMAllocsManager::nonGpuDomainAllocs container for
all allocations to be removed in
moveAllocationsWithinUMAllocsManagerToGpuDomain. This approach replaces
the current iterative search and performs the task faster.

Add 7 new unit-tests to verify the functionality related to
nonGpuDomainAllocs container, both in expected and unexpected/synthetic
scenarios.

For UTs replace a dummy unifiedMemoryManager pointer with a pointer to
an instace of SVMAllocsManager, otherwise a SegFault error is thrown at
the end of tests.

Perform overall cleanup in related tests implementation, includes but
not limited to removal of:

- givenInitialPlacementGpu\
WhenMovingToGpuDomainThenFirstAccessDoesNotInvokeTransfer

As it is fully covered by:

givenAllocationMovedToGpuDomain\
WhenVerifyingPagefaultThenAllocationIsMovedToCpuDomain

- givenInitialPlacementGpu\
WhenVerifyingPagefaultThenFirstAccessDoesNotInvokeTransfer

As it is fully covered by:

givenTbxAndnitialPlacementGpu\
WhenVerifyingPagefaultThenMemoryIsUnprotectedOnly

Finally, reduce code duplication where possible.

Related-To: NEO-6658
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
2022-03-16 11:18:24 +01:00
..
ail Add PVC AIL specialization 2021-12-08 14:14:13 +01:00
aub Move AllocationType enum out of GraphicsAllocation class 2022-02-04 17:49:09 +01:00
aub_mem_dump Move AllocationType enum out of GraphicsAllocation class 2022-02-04 17:49:09 +01:00
built_ins rename neo_test_kernels to kernels_bin 2022-03-02 13:46:26 +01:00
command_container Reuse common logic of programming SCM fields for gen 9 and gen 11 2022-03-16 10:04:32 +01:00
command_stream Reuse common logic of programming SCM fields for gen 9 and gen 11 2022-03-16 10:04:32 +01:00
commands Copyright header update 2021-05-17 20:38:19 +02:00
compiler_interface Add support for a new relocation name for implicit args 2022-03-15 12:03:51 +01:00
debug_settings Add round robin engine assign controls 2022-03-14 10:57:20 +01:00
debugger Add debug variable to enable source level debugger 2021-12-10 13:18:21 +01:00
device Add round robin engine assign controls 2022-03-14 10:57:20 +01:00
device_binary_format Update zebin note target metadata 2022-03-10 16:47:01 +01:00
direct_submission Debug flag to control MI_ARB_CHECK prefetcher 2022-03-10 12:50:05 +01:00
dll Add RPL-S device IDs 2022-03-08 11:23:57 +01:00
execution_environment Disable DirectSubmission in aub/tbx mode 2022-03-01 11:00:42 +01:00
gen8 Reuse common logic of programming SCM fields for gen 9 and gen 11 2022-03-16 10:04:32 +01:00
gen9 Reuse common logic of programming SCM fields for gen 9 and gen 11 2022-03-16 10:04:32 +01:00
gen11 Reuse common logic of programming SCM fields for gen 9 and gen 11 2022-03-16 10:04:32 +01:00
gen12lp Reuse common logic of programming SCM fields for gen 9 and gen 11 2022-03-16 10:04:32 +01:00
gen_common Initial PVC support 2021-12-07 10:22:41 +01:00
generated Debug flag to control MI_ARB_CHECK prefetcher 2022-03-10 12:50:05 +01:00
gmm_helper Add ForceAllResourcesUncached support to CacheSettingsHelper 2022-03-11 15:41:10 +01:00
helpers Reuse common logic of programming SCM fields for gen 9 and gen 11 2022-03-16 10:04:32 +01:00
image Correct programming width of media block surface 2022-01-28 16:28:25 +01:00
indirect_heap Add debug variable to force default heap allocation size 2022-02-09 13:27:05 +01:00
kernel Add support for a new relocation name for implicit args 2022-03-15 12:03:51 +01:00
memory_manager PageFaultHandler: speedup UM allocations lookup 2022-03-16 11:18:24 +01:00
memory_properties Create resource with given address 2022-02-24 17:06:19 +01:00
os_interface Refactoring the use of PVC device ids 2022-03-14 15:54:52 +01:00
page_fault_manager PageFaultHandler: speedup UM allocations lookup 2022-03-16 11:18:24 +01:00
program Allow undefined symbols in symbol table for OCL 2022-03-09 10:32:15 +01:00
sku_info Remove WaDefaultTile4 flag 2022-02-25 10:59:28 +01:00
source_level_debugger Copyright header update 2021-05-17 20:38:19 +02:00
tbx AubHelper: Local memory support 2021-07-05 19:13:32 +02:00
unified_memory Revert "Check IndirectStatelessCount from igc" 2022-02-04 12:15:37 +01:00
utilities Detect GPU hangs in CommandMapUnmap::submit() 2022-03-15 13:17:41 +01:00
xe_hp_core Remove redundant value CsrSizeRequestFlags::numGrfRequiredChanged 2022-03-15 15:08:15 +01:00
xe_hpc_core Remove redundant value CsrSizeRequestFlags::numGrfRequiredChanged 2022-03-15 15:08:15 +01:00
xe_hpg_core Reuse common logic of programming SCM fields for gen 9 and gen 11 2022-03-16 10:04:32 +01:00
CMakeLists.txt CMake: define enable core files only once 2022-02-18 11:50:09 +01:00
enable_cores.cmake Remove redundant value CsrSizeRequestFlags::numGrfRequiredChanged 2022-03-15 15:08:15 +01:00