Commit Graph

12272 Commits

Author SHA1 Message Date
Lukasz Jobczyk 39df92a16f Align only CPU VA for SVM_CPU
Resolves: NEO-7608

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2023-01-10 16:52:29 +01:00
Kamil Kopryk eff5a281ed refactor: don't use global gfxCoreHelper getter 4/n
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2023-01-10 16:32:31 +01:00
Mateusz Jablonski 8007aed109 Reduce scope of sampler WA for DG2 platforms
Related-To: NEO-7607, HSD-22012535253, HSD-22012532006
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-01-10 16:27:10 +01:00
Kamil Kopryk 9d428a19de refactor: don't use global gfxCoreHelper getter 3/n
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2023-01-10 15:02:22 +01:00
Mateusz Jablonski 06f44a4b94 feature: brand string update for data center platforms
Resolves: NEO-7045
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-01-10 14:46:04 +01:00
Kamil Kopryk f2bbb56d29 refactor: don't use global GfxCoreHelper getter 2/n
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2023-01-10 13:07:03 +01:00
Warchulski, Jaroslaw bd81b5546d Cleanup includes 25
Cleaned up files:
level_zero/core/source/device/device.h
opencl/source/helpers/dispatch_info.h
shared/source/os_interface/os_interface.h

Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2023-01-10 12:54:45 +01:00
Zbigniew Zdanowicz 8f2af28b11 Fix issues in signal all event packets 7/n
This fix is a refactor that improves few parts of the code
- code is easier to analyze, read and maintain
- dispatching process and common code is unified and reused
- signal of all event packets is incorporated in shared code
- number of post sync hw commands is optimized thanks to  multi-tile
post sync capabilities

Related-To: NEO-7490

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2023-01-10 12:29:48 +01:00
Krystian Chmielewski 614928ed45 refactor(zebin): decouple zeInfo decoding
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2023-01-10 12:27:10 +01:00
Kamil Kopryk 60340734b7 refactor: don't use global GfxCoreHelper getter
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2023-01-10 08:00:56 +01:00
Warchulski, Jaroslaw 0dc5fb3e51 Cleanup includes 24
Cleaned up files:
opencl/source/mem_obj/image.h
opencl/source/platform/platform.h
shared/source/command_stream/preemption.h
shared/source/helpers/mt_helpers.h
shared/source/memory_manager/unified_memory_manager.h

Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2023-01-10 07:56:16 +01:00
Pawel Cieslak 6b34c429b4 build: set nofile limit to 65535 when building deb packages
fakeroot hangs when nofile limit is high: https://bugs.debian.org/920913
Related-To: NEO-7310
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2023-01-09 14:56:24 +01:00
ocldev d6c9269dfe dependencies update
Signed-off-by: ocldev <ocldev@intel.com>
2023-01-09 14:54:30 +01:00
Mateusz Hoppe 6d6491cd18 test: enhance zello_printf test
- add mode with multiple workgroup dispatch
- print expected output on validation failure

Related-To: NEO-7612

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2023-01-09 13:36:27 +01:00
Kamil Kopryk f654481def refactor: don't use global ProductHelper getter
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2023-01-09 12:56:51 +01:00
Krystian Chmielewski 525c535ba4 zebin: remove bti check for global base args
Remove validation of bti for "const_base", "global_base" arguments.

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2023-01-09 12:48:07 +01:00
Mateusz Jablonski 1fd8b26499 refactor: rename IoctlHelper::get to IoctlHelper::getI915Helper
remove drm version parameter as i915 is always expected

Related-To: NEO-7578
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-01-09 12:32:45 +01:00
Warchulski, Jaroslaw 77b88f19a1 Cleanup includes 23
Cleaned up files:
opencl/source/execution_environment/cl_execution_environment.h
opencl/source/helpers/cl_validators.h
opencl/test/unit_test/mocks/mock_cl_device.h
opencl/test/unit_test/mocks/mock_context.h
shared/source/helpers/cache_policy.h
shared/source/image/image_surface_state.h

Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2023-01-09 12:30:30 +01:00
Mateusz Jablonski 35b8fba1d8 feature: add cmake flag to detect Xe drm
This is a prework for optional integration with Xe driver
https://cgit.freedesktop.org/drm/drm-xe/commit/?h=drm-xe-next

Related-To: NEO-7578
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-01-09 09:42:37 +01:00
Jaime Arteaga 9cec84d3d4 refactor: Fix device desc stype in some ULTs
As well as remove some dead-code.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2023-01-06 05:16:48 +01:00
Aravind Gopalakrishnan 2c2b5c7281 Disable flush task for MTL
Related-To: LOCI-3839

Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2023-01-05 23:11:16 +01:00
Warchulski, Jaroslaw 5eef40fedd Cleanup includes 22
Cleaned up files:
opencl/source/built_ins/builtins_dispatch_builder.h
opencl/source/context/context.h
opencl/source/gtpin/gtpin_notify.h
opencl/source/kernel/kernel.h
opencl/source/kernel/multi_device_kernel.h
opencl/source/mem_obj/buffer.h
opencl/source/mem_obj/mem_obj.h
shared/source/built_ins/registry/built_ins_registry.h
shared/source/page_fault_manager/cpu_page_fault_manager.h

Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2023-01-05 16:59:01 +01:00
Kamil Kopryk e23e354454 Move L0GfxCoreHelper ownership to rootDeviceEnvironment
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2023-01-05 16:55:58 +01:00
Kamil Kopryk 347cef9fcb refactor: don't use global ProductHelper getter in ocl files 3/n
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2023-01-05 16:27:16 +01:00
Krystian Chmielewski 3731ee89d8 Do not enforce LWS in dec order when smaller than half simd
When generating work group sizes first try with enforcing decremental
order X >= Y >= Z if generated work group size X * Y * Z is smaller
than half the kernel's SIMD size then generate again without
enforcing decremental order.

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2023-01-05 15:55:14 +01:00
Naklicki, Mateusz 48247cc42f fix: PauseOnEnqueue for Immediate command lists on L0
Related-To: NEO-7560
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2023-01-05 15:50:45 +01:00
Kamil Kopryk 468d722efb Move clGfxCoreHelper ownership to rootDeviceEnv
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2023-01-05 12:58:38 +01:00
Mateusz Jablonski 5ff0ff0997 test: fix test for cross device bcs migration
stop using garbage memory

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-01-05 12:45:12 +01:00
Cencelewska, Katarzyna 19763db9a2 fix: Move setupHardwareInfo to avoid overwrriten values from blob
device setupHardwareInfo should be called before setupSystemInfo to not
override queried systemInfo values

Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com>
2023-01-05 11:37:13 +01:00
Mateusz Jablonski 43b790957d style: format code using clang-format 15.0.6
Related-To: NEO-7500
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-01-05 10:33:47 +01:00
Krystian Chmielewski a4794e432d Set GMDID for every platform
This change is required to add new IntelGTNote -
NT_INTELGT_PRODUCT_CONFIG(5) - to zebin containing platform's GMDID.

Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
2023-01-05 08:47:52 +01:00
Zhang, Winston fbb24b71a2 Modify last of ERROR_UNKNOWN in core driver
Replaced all of ERROR_UNKNOWN and added debug messages where applicable

Related-To: NEO-74231

Signed-off-by: Zhang, Winston <winston.zhang@intel.com>
2023-01-05 08:36:08 +01:00
Aravind Gopalakrishnan 09a749d93d Fix engine group order in ULT
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2023-01-05 03:35:00 +01:00
Jaime Arteaga e3aa388b07 refactor: Set unified memory type on import functions
Related-To: LOCI-3771

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2023-01-05 00:23:41 +01:00
Mateusz Hoppe ee499d689b fix(zebin): fix module load/unload events while debugging
- do not trigger incorrect / spurious events from internal modules
for debugger
- do not register Elf for internal modules

Related-To: NEO-7605

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2023-01-04 19:12:30 +01:00
Compute-Runtime-Validation af81c79076 Revert "Deferred deletion of allocations in main thread"
This reverts commit c268e30189.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2023-01-04 18:33:39 +01:00
Kamil Kopryk 0dbf92d401 Refactor: reduce global productHelper getter usage
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2023-01-04 16:35:20 +01:00
Lukasz Jobczyk fca4fbb0c0 [PVC] Restore 2MB alignment for SVM_CPU allocations
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2023-01-04 16:21:44 +01:00
Artur Harasimiuk db545cd771 infra update
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2023-01-04 16:00:19 +01:00
Warchulski, Jaroslaw 6fb68dd84b Separation of MemoryAllocation from os_agnostic_memory_manager.h
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2023-01-04 15:09:36 +01:00
Kamil Diedrich 0265f1bd9a Return proper external memory property
Return ZE_EXTERNAL_MEMORY_TYPE_FLAG_OPAQUE_WIN32
for images and USM device for Windows and
ZE_EXTERNAL_MEMORY_TYPE_FLAG_DMA_BUF for USM device for
Linux inside ze_device_external_memory_properties

Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
2023-01-04 14:33:19 +01:00
Mateusz Jablonski 4647180c76 refactor: remove platform type string
this property is no longer needed as we compile kernels per product family

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-01-04 13:48:16 +01:00
Pawel Cieslak d80c1c004c Update infra
Related-To: NEO-7544
Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
2023-01-04 11:53:19 +01:00
Compute-Runtime-Validation 5a6d358166 Revert "refactor: remove platform type string"
This reverts commit 58b443ecf1.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2023-01-04 11:08:51 +01:00
Warchulski, Jaroslaw b7ee3486d9 Cleanup includes 21
Cleaned up files:
opencl/source/kernel/kernel.h

Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2023-01-04 10:40:26 +01:00
Mateusz Jablonski 58b443ecf1 refactor: remove platform type string
this property is no longer needed as we compile kernels per product family

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-01-04 09:26:29 +01:00
Jaime Arteaga fd16fee707 Fix: Remove allocation from sharedMakeResidentAllocations on free
If the shared allocation hasn't been removed up to this point,
then remove it when freeing the pointer.

No need to check if ptr is still in the map, as erase would
automatically return 0 if not found.

Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2023-01-03 22:06:08 +01:00
Fabian Zwoliński 2e2abf1b6e Revert "Use cached group sizes in zeKernelSetGroupSize"
This reverts commit 7ec94c6aaa.

Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2023-01-03 16:36:36 +01:00
Warchulski, Jaroslaw d793f37dd8 Cleanup includes 20
Cleaned up files:
opencl/source/cl_device/cl_device.h
opencl/source/helpers/properties_helper.h
opencl/source/program/program.h
shared/source/device_binary_format/debug_zebin.h
shared/source/device_binary_format/elf/zebin_elf.h
shared/source/program/program_info.h
shared/source/utilities/heap_allocator.h

Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2023-01-03 14:42:08 +01:00
Milczarek, Slawomir 1e8169ca3d Add bcs support for cross-device migrations of multi-graphics allocations
This commit adds a support for cross-device migration to bcs enqueue path
exercised for CL enqueue rea/write, map, unmap calls, controlled with
the regkey AllocateBuffersInLocalMemoryForMultiRootDeviceContexts.

Related-To: NEO-7092

Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2023-01-03 14:09:07 +01:00