ae77bd1bd2
Enable Device Memory to be shared in WSL-2 with L0
...
- Add getMemoryManagerType to check which memory manager has been init
to determine if Linux + WDDM memory manager is in use.
- Add isNTHandle to test and verify if a handle is an NT handle during
L0 Open IPC Handle.
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com >
2022-01-27 23:14:29 +01:00
592eb4607e
[4/n] Improve indirect allocations handling.
...
Add memory manager interfaces to obtain the status.
Only support when VmBind is supported.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2022-01-26 15:24:32 +01:00
f8c104feaa
Use fw declaration of IndirectHeap in CommandContainer
...
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2022-01-26 13:30:26 +01:00
6df17f5a30
[3/n] Optimize indirect allocations handling.
...
Add new debug variable to trigger new mode.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2022-01-25 16:40:56 +01:00
52d636394c
[1/n] Improve indirect allocations handling.
...
Add new functions that would treat all indirect allocations as single pack.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2022-01-25 06:27:33 +01:00
151aaf7678
Fix alignment for host allocations.
...
- it is 4k not 64k.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2022-01-24 13:24:03 +01:00
1b7949432f
Add shareable allocation on windows dGPUs
...
Add default initialization for object members
Related-To: LOCI-2665
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2022-01-19 19:03:18 +01:00
1d48e97649
Remove GMock from MockAubCsr, GmockAubFileStream, AsyncEventsHandlerTests...
...
GMock Removed from:
- MockAubCsr
- GmockAubFileStream
- AsyncEventsHandlerTests
- AsyncEventsHandlerTests::MyEvent
- MockGmmPageTableMngr
- GmockWddm
Additionally:
- GmockAubFileStream body moved to MockAubFileStream class
- Deleted unused GmockAubFileStream class
- Deleted NiceMocks from AsyncEventsHandlerTests
- Renamed GmockWddm to MockWddm
Related-To: NEO-4914
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com >
2022-01-05 14:45:13 +01:00
0cbc320e57
Move memory fixtures to shared
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-01-03 16:47:02 +01:00
2047fc88f9
Move execution environment helper to shared
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-12-31 11:36:44 +01:00
694046d30e
Remove C-style casts when casting to osHandle
...
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-12-28 11:11:49 +01:00
4176cac845
Move shared mocks to shared directory
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-12-21 13:26:59 +01:00
ef6f75d993
Fix typo
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-12-15 12:53:22 +01:00
e4bbed49d0
Use full path to include test.h 1/n
...
fix files in opencl
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-12-15 12:34:34 +01:00
dfdd3c597a
Remove redundant BUFFER_COMPRESSED allocation type
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-12-07 13:35:49 +01:00
0346a5679f
Fix returned local memory size
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-12-06 15:57:55 +01:00
68aea5bf62
Rename compression flags and helpers
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-12-03 18:09:02 +01:00
9481d8a88b
Compression refactor [2/n]
...
Dont use allocation type for compression preference
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-12-03 08:47:46 +01:00
3e1023fa1a
Unify memory layout for all multi tile post sync operations
...
Related-To: NEO-6262
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-12-02 18:00:40 +01:00
995cb88bfa
Improve ftr/wa flags packing
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-11-25 16:05:57 +01:00
56c05a2f08
Update allocateGraphicsMemoryWithAlignment
...
Allocate Gmm object when the allocation uses compression.
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2021-11-09 13:37:32 +01:00
0cde8eb7ff
Change default revision for xe_hp_sdv
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-29 13:39:52 +02:00
515130dbe8
Fail on blitMemoryToAllocation when blitter is not supported
...
Related-To: NEO-6325
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-28 16:13:40 +02:00
ba767dfbaf
Revert "Fail on blitMemoryToAllocation when blitter is not supported"
...
This reverts commit 7bfeeaab86
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2021-10-27 09:13:57 +02:00
c15a7f8355
Update UnitTestHelper
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2021-10-26 11:28:02 +02:00
7bfeeaab86
Fail on blitMemoryToAllocation when blitter is not supported
...
Related-To: NEO-6325
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-26 11:05:51 +02:00
71ed3eba16
Add mapping based colouring
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-10-25 09:51:54 +02:00
61524596e0
Fail on blitMemoryToAllocation when blitter support is disabled
...
Related-To: NEO-6325
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-20 09:06:59 +02:00
f8c89fe984
Refactor memory manager so as to support device reset
...
Move out neoDevice dependent pieces of memory manager code into
separate methods. Those methods could be used for recreating a neoDevice
after a device reset is performed.
Related-To: LOCI-2615
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2021-10-19 07:16:29 +02:00
24ff191e61
Verify completion on all tiles
...
Related-To: NEO-6244
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-10-15 15:43:28 +02:00
7b57e87ad1
Move some mocks to shared
...
- MockAllocationProperties
- MockBuiltinsLib
- MockWddmMemoryManager
- MockAubCsr
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-15 09:59:47 +02:00
8f81f2ae8d
Cleanup MockGmm
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-14 21:56:53 +02:00
bf25853799
Move some mocks to shared
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-12 21:46:53 +02:00
ada32e0a87
Move mock gmm page table manager to shared
...
add missing definitions to neo_shared_tests
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-12 15:21:04 +02:00
06561a06b6
Restore 2MB size & alignment for CPU SVM.
...
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2021-10-11 23:16:42 +02:00
c8e79b7447
Change shared allocations required alignment to 64KB.
...
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2021-10-08 13:08:11 +02:00
7392b5fb8d
Add new colouring policy
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-10-07 23:33:26 +02:00
48f01f28f5
Move core part of MemoryPropertiesHelpers to shared
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-10-07 23:14:38 +02:00
9bea74a780
move mock_memory_manager to shared
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2021-10-05 16:22:38 +02:00
30b3f5cdb0
Move PageTableManager from rootDeviceEnvironment to CommandStreamReceiver
...
Also add init of pageTable registers to blitter path
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com >
2021-09-30 12:59:11 +02:00
b46dc0a6f8
move mock_host_ptr_manager to shared
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2021-09-24 15:36:15 +02:00
d211864410
Fix typo in test name
...
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com >
2021-09-23 09:24:12 +02:00
d4a4c35759
Zero-initialize debug surface
...
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2021-09-22 14:36:36 +02:00
b2909fef56
Remove mockMaxOsContextCount
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-09-20 19:02:54 +02:00
4caa10f76e
Don't use Platform class in shared tests
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-09-20 18:23:07 +02:00
09ac89339e
Move local memory access mode getters from HwHelper to HwInfoConfig
...
Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com >
Related-To: NEO-4541
2021-09-13 13:10:14 +02:00
cb91474b1a
Improve getDevice methods
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-08-26 14:45:00 +02:00
4390590831
Add shareable allocation for Windows
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2021-08-26 13:43:55 +02:00
bf1180753d
Improve private memory allocation.
...
-allocate from single bank when only one sub device passed
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2021-08-26 07:46:23 +02:00
f1264c19dc
Revert "Improve private allocation storage."
...
This reverts commit be3ca800bb
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2021-08-20 02:54:09 +02:00