Krzysztof Gibala
f7a5d29085
Introduce debug flag ForceExtendedUSMBufferSize usage for L0
...
Forces extended buffer size by adding pageSize specify by number when
debug flag is >=1 in L0 USM calls
Usage:
ForceExtendedUSMBufferSize=2
size += (2 * pageSize)
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com >
2022-02-08 16:23:40 +01:00
Spruit, Neil R
8986435bd7
Convert FD to NT Handle for Import/Export of Memory
...
- In WSL the handle for DMA buf is an NT handle.
- To share and import this memory we check if the
handle is an NT handle before attempting to
load as an FD.
- If the handle is and NT handle, then we open the fd
as an NT handle.
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com >
2022-02-04 21:01:26 +01:00
Bartosz Dunajski
4b0d986876
Move AllocationType enum out of GraphicsAllocation class
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-02-04 17:49:09 +01:00
Spruit, Neil R
593756bee0
Fail given WDDM Driver and Fd Handle in WSL
...
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com >
2022-02-02 19:01:35 +01:00
Spruit, Neil R
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
Jaime Arteaga
e3ac89adbe
Remove non-needed DEBUG_BREAK_IF
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-01-25 23:39:40 +01:00
Jaime Arteaga
dbf0f90186
Return pageSize in getMemAllocProperties
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-01-25 18:26:13 +01:00
Jaime Arteaga
f182259a97
Return user size on zeMemGetAddressRange
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2022-01-11 23:12:23 +01:00
Jaime Arteaga
3b497270c8
Add support for memory free policies
...
Add support for ZE_DRIVER_MEMORY_FREE_POLICY_EXT_FLAG_BLOCKING_FREE
added in v1.3.
Related-To: LOCI-2672
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-12-28 08:27:50 +01:00
Bartosz Dunajski
e040c8c6bb
Initial compression support for L0 Device allocations
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-12-16 15:55:13 +01:00
Filip Hazubski
cf4ce308d9
Rename function
...
Rename multiDeviceCapable to implicitScalingCapable
Rename isMultiDeviceCapable to isImplicitScalingCapable
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2021-12-09 11:14:08 +01:00
Zbigniew Zdanowicz
357f650b8b
Unify code for check is implicit scaling enabled
...
Related-To: NEO-6262
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-11-24 12:41:00 +01:00
Mateusz Jablonski
babdbfb0cf
Rename L0 Device method
...
remove gmock from mock device
add macros to define mock methods with ref return
Related-To: NEO-4914
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2021-11-16 22:01:14 +01:00
Zbigniew Zdanowicz
df6829f361
Use event pool init code for result of event pool api creation function
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-11-09 16:29:49 +01:00
Lukasz Jobczyk
99972e2a98
Add ZE_HOST_MEM_ALLOC_FLAG_BIAS_UNCACHED implementation
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-10-25 14:39:20 +02:00
Kamil Diedrich
465bec3d76
Add NTHandle sharing
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2021-10-19 14:17:25 +02:00
Jaime Arteaga
e0a093b87a
Make IPC events available for P2P operations
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-10-13 17:20:35 +02:00
John Falkowski
92c2c07bff
Correct device handle for device/shared alloc
...
Signed-off-by: John Falkowski <john.falkowski@intel.com >
2021-09-17 23:25:19 +02:00
Jaime Arteaga
522d2550ee
Add allocation ID to be retrieved by L0 getMemAllocProperties
...
zeMemGetAllocProperties() specifies an ID for the allocation can be
retrieved by the application. This can be used by applications to
identify the allocation throughout the application lifetime.
We were currently returning as id the same allocation address. This
patch fixes it to return a true unique identifier for the allocation.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-09-15 19:22:50 +02:00
Bartosz Dunajski
f51d43f121
L0 Context: Use correct Device count getter
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-09-02 09:23:49 +02:00
Kamil Diedrich
4390590831
Add shareable allocation for Windows
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2021-08-26 13:43:55 +02:00
John Falkowski
a6bb897a7c
Adjust dev memory available based on impl scaling
...
Signed-off-by: John Falkowski <john.falkowski@intel.com >
2021-08-19 21:18:32 +02:00
Jaime Arteaga
38e36d00af
Skip reset of IPC events
...
This because they might have been imported after their status
having been already changed by the exporter.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-08-18 22:14:37 +02:00
Kamil Diedrich
2d5d071e66
Extended import device memory functionality
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2021-08-10 13:24:56 +02:00
Szymon Morek
cc2d701e9d
Enable AllowUnrestrictedSize debug flag on L0
...
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-08-06 18:59:08 +02:00
Jaime Arteaga
ec18046f24
Remove peer allocation from device map when freeing original allocation
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-08-04 22:42:50 +02:00
Bartosz Dunajski
3c88492229
Revert "Extended import device memory"
...
This reverts commit ea6555e788c98314160a11898212c2d664999705.
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-07-16 09:56:52 +02:00
Kamil Diedrich
dd3074f901
Add shareable flag to alloc
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2021-07-14 13:01:48 +02:00
Kamil Diedrich
d5fdb949eb
Extended import device memory
...
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com >
2021-07-07 16:12:36 +02:00
Maciej Dziuban
95dd2828f5
Implement initial placement for shared allocations in L0
...
The following flags are now respected:
- ZE_DEVICE_MEM_ALLOC_FLAG_BIAS_INITIAL_PLACEMENT
- ZE_HOST_MEM_ALLOC_FLAG_BIAS_INITIAL_PLACEMENT
Related-To: NEO-5059
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com >
2021-06-30 07:05:20 +02:00
Szymon Morek
8b48b33a0c
Remove 4GB limit if shared allocations supported
...
Resolves: NEO-5984
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-06-24 13:28:59 +02:00
Jaime Arteaga
5e29dccddc
Add IPC events support
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-06-08 08:11:15 +02:00
Jaime Arteaga
3a91bcfb9b
Limit allocations to available global mem size
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-06-02 21:58:38 +02:00
Compute-Runtime-Validation
dd6653892e
Revert "Move SVM allocs memory manager to L0::Context (1/N)"
...
This reverts commit 9080e2ee5b .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2021-05-09 12:37:44 +02:00
Jaime Arteaga
9080e2ee5b
Move SVM allocs memory manager to L0::Context (1/N)
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-05-07 22:17:10 +02:00
Jaime Arteaga
5f0e4f8e2a
Revert "Move memory managers to L0::Context (1/N)"
...
This reverts commit 9ce887b8b53a787a7e0a0d808c96e295655ae57b.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-05-06 04:56:09 +02:00
Jaime Arteaga
1f1fbb193b
Move memory managers to L0::Context (1/N)
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-05-05 23:01:42 +02:00
Jaime Arteaga
ef5174f3fc
Eliminate wrappers in L0::Context class for driverHandle calls
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-04-20 23:50:23 +02:00
Jaime Arteaga
128cd8a31c
Add support for non-IPC P2P access to L0
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-04-20 01:05:40 +02:00
Jaime Arteaga
b95198bac5
Add relaxed memory support to L0 host allocations
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-04-20 00:15:38 +02:00
Jaime Arteaga
ebb1474210
Isolate shared allocations with respect to context
...
Related-To: LOCI-1996
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-04-17 03:38:46 +02:00
Jaime Arteaga
c540af8e5f
Fix multidevice support for events
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-04-15 22:12:07 +02:00
Jaime Arteaga
b05be25349
Add sub-devices to the list of devices in a context
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-04-10 03:36:03 +02:00
Jaime Arteaga
da7aef49e6
Isolate device allocations with respect to context
...
Related-To: LOCI-1996
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-04-09 17:47:47 +02:00
Jaime Arteaga
ddca333045
Improve support for L0 uncached device allocations
...
Make sure UNCACHED flags are translated into setting the MOCS index
for uncaching L3.
Related-To: NEO-5500
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-04-08 13:00:03 +02:00
Jaime Arteaga
0dc73ad686
Isolate host allocations with respect to context
...
Related-To: LOCI-1996
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-03-25 06:15:59 +01:00
Jaime Arteaga
521cc56096
Add support for zeContextCreateEx
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-03-19 06:14:53 +01:00
Zbigniew Zdanowicz
b32b5784c2
Fix calculations for offseted addresses
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2020-12-11 20:25:54 +01:00
Jaime Arteaga
d46bb59508
Migrate shared-allocations made resident with makeMemoryResident
...
Shared-allocations are currently migrated to GPU by the page-fault
manager when calling executeCommandLists. Allocations to migrate are
taken from the lists container. However, if a shared-allocation
has been made resident with zeContextMakeMemoryResident(), it is not
added to the list container, and hence it is not migrated to device.
So, add a container of resident allocations to the driver and migrate
them along with the other allocations.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2020-12-11 03:27:42 +01:00
Zbigniew Zdanowicz
19bea962d0
Use imported host pointers in the driver when available
...
Related-To: NEO-5126
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2020-12-03 13:52:14 +01:00