Commit Graph

183 Commits

Author SHA1 Message Date
Maciej Dziuban 13b2c326fe Add AlignmentSelector helper
Related-To: NEO-5750
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2021-06-01 11:44:04 +02:00
Jaroslaw Chodor 9dbffa8d93 Refactoring createMemoryManager
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
2021-05-25 16:58:21 +02:00
Mateusz Hoppe 0f32231fc8 Use correct INTERNAL heap base address for ISA in system memory
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-05-25 10:22:28 +02:00
Maciej Dziuban 33e8f73775 Enable custom allocation alignments on Linux
Related-To: NEO-5750
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2021-05-24 12:56:51 +02:00
Igor Venevtsev 21690dcea5 Fix debugSurface initialization
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2021-05-24 12:28:23 +02:00
Mateusz Jablonski ed31aaedb8 Make BUFFER allocation lockable on DG1
Related-To: NEO-5733
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-05-21 17:05:51 +02:00
Andrzej Koska c59f44ecdf Collision avoidance on 36 bit address space
Signed-off-by: Andrzej Koska <andrzej.koska@intel.com>

Related-To: NEO-5356
2021-05-21 11:20:35 +02:00
Mateusz Jablonski b50a6bec82 Correct isBlitCopyRequiredForLocalMemory
detect not lockable allocation based on gmm flag
Related-To: NEO-5733

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-05-20 13:17:49 +02:00
Jaroslaw Chodor abf0649a5b Improving cpp compliance
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
2021-05-20 00:10:06 +02:00
Dominik Dabek a5d38170ad Move some shared tests to shared
Tests that are not specific to openCL or level zero

Related-To: NEO-5161

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2021-05-18 13:51:18 +02:00
lgotszal 3bd4bca911 Copyright header update
Dates corrected in copyright headers to reflect original publication date
(2018 for OpenCL, 2020 for Level Zero).

Signed-off-by: lgotszal <lukasz.gotszald@intel.com>
2021-05-17 20:38:19 +02:00
Mateusz Jablonski a304e609fe Respect forceSystemMemory flag at the end of getAllocationData method
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-05-14 10:58:23 +02:00
Mateusz Jablonski b7c7bc0a24 Correct createMultiGraphicsAllocationInSystemMemoryPool method
force system memory placement
skip duplicated root device indices

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-05-13 12:11:49 +02:00
Mateusz Jablonski fcbf1dcf32 Mark SVM_GPU allocation as not lockable
require blitter usage if allocation is not lockable and in local memory

Related-To: NEO-5733
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-05-12 17:47:15 +02:00
Mateusz Jablonski 296634f5b8 Fallback to CPU copy when blit copy fails
Related-To: NEO-5733
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-05-12 15:38:24 +02:00
Mateusz Jablonski a552d1fd65 Revert "Mark SVM_GPU allocation as not lockable"
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-05-12 12:24:02 +02:00
Mateusz Jablonski a79f7b678b Mark SVM_GPU allocation as not lockable
require blitter usage if allocation is not lockable and in local memory

Related-To: NEO-5733
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-05-12 09:49:35 +02:00
Bartosz Dunajski cffac84a3b Simplify creating EventPool allocation
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-05-11 18:26:54 +02:00
Zbigniew Zdanowicz 544890c066 Change default placement of preemption allocation
Related-To: NEO-5800

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-05-11 15:26:24 +02:00
Lukasz Jobczyk 8e1e213bcf Disable GEM_WAIT when new residency model available
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-05-10 14:59:21 +02:00
Konstanty Misiak c4502ccf66 Fix OCL MOCS index with UNCACHED flag
Related-To: NEO-5742

Signed-off-by: Konstanty Misiak <konstanty.misiak@intel.com>
2021-05-04 10:01:44 +02:00
Compute-Runtime-Validation c453e7fe8b Revert "Mark SVM_GPU allocation as not lockable"
This reverts commit 5341d0663c.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2021-04-29 18:06:38 +02:00
Mateusz Jablonski 5341d0663c Mark SVM_GPU allocation as not lockable
use blitter if available and allocation is not lockable

Related-To: NEO-5733

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-04-29 15:55:13 +02:00
Mateusz Jablonski de116aac5c Make buffer allocations not lockable
Related-To: NEO-5733
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-04-29 11:27:44 +02:00
Dominik Dabek bb9d902899 Add padding for ISA allocations
Related-To: NEO-5771
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
2021-04-27 11:03:58 +02:00
Zbigniew Zdanowicz 902cce597a Add new functionality to load SIP from file
Related-To: NEO-5718

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-04-23 13:48:26 +02:00
Maciej Dziuban 495841812f Free allocations in 2MB heaps
Related-To: NEO-5750
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2021-04-23 09:07:37 +02:00
Mateusz Jablonski 9a22d06efe Store default engine index per root device
Resolves: NEO-5768
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-04-20 14:55:13 +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
Mateusz Jablonski 2b956651a7 Mark Shared resource copy allocations as lockable
Related-To: NEO-5733
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-04-19 11:16:34 +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
Mateusz Jablonski 9026362b76 Add GraphicsAllocation::isLockable method
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-04-15 12:14:03 +02:00
Compute-Runtime-Validation c9b5de0f1d Revert "Add GraphicsAllocation::isLockable method"
This reverts commit 48d40ad850.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2021-04-15 07:58:35 +02:00
Mateusz Jablonski 48d40ad850 Add GraphicsAllocation::isLockable method
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-04-14 16:12:51 +02:00
Maciej Dziuban fd9fb3e46b Remove isInitialized() method from OsContext
We can fail early, instead of constructing an invalid object

Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2021-04-13 14:12:20 +02:00
Maciej Dziuban 5f9dbef401 Pass alignment to Gmm
Related-To: NEO-5750

Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
2021-04-13 13:40:43 +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
Bartosz Dunajski f8f8b53d95 Improve OsHandle struct
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2021-04-02 18:42:16 +02:00
Milczarek, Slawomir cd9a35d2b4 Align gfx partition with standard heaps to max heaps granularity
Related-To: NEO-5507

Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2021-04-02 09:20:21 +02:00
Milczarek, Slawomir 75f3b416ae Gfx partition with 64KB and 2MB heap granularities
Related-To: NEO-5507

Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2021-04-01 14:54:55 +02:00
Krzysztof Gibala 7bfe26a08d Remove ensureMemoryOnDevice function
Remove:
- ensureMemoryOnDevice
- lastUsedRootDeviceIndex
- requiredRootDeviceIndex
- getMigrateableMultiGraphicsAllocation

Related-To: NEO-4589
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2021-03-29 11:41:07 +02:00
Krzysztof Gibala 0b7d2da162 Create image allocations in system memory pool
Create image allocations in multi device setup in system memory pool

Related-To: NEO-5508

Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2021-03-26 15:35:05 +01:00
Mateusz Hoppe 86a234ead6 Allocate debug area together with isa
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-03-26 09:31:44 +01: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
Mateusz Jablonski d6bbe48175 Handle SVM allocations from multi root device contexts
Related-To: NEO-5001, NEO-3691
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-03-24 11:14:39 +01:00
Krzysztof Gibala bdf8cf5e23 Add crossRootDeviceAccess flag
Add flag to AllocationProperties for setup system memory allocation path
for buffers

Related-To: NEO-5508
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2021-03-23 14:56:19 +01:00
Slawomir Milczarek 693f2ff384 Ensure shared handle be closed once on Linux
Related-To: NEO-5644

Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
2021-03-18 18:38:01 +01:00
Lukasz Jobczyk 129357410c Update task count while waiting
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-03-17 15:09:25 +01:00
Krzysztof Gibala 274d2ff4b4 Correct createMultiGraphicsAllocationInSystemMemoryPool logic
isUSMHostAllocation flag will be set according to limited range product setup

Related-To: NEO-5508
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2021-03-16 16:22:33 +01:00
Maciej Dziuban 264f20ea00 Pass EngineTypeUsage to OsContext creation
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
Related-To: NEO-5610
2021-03-16 10:21:18 +01:00