Mateusz Hoppe
d8f99161dd
fix: create VMs with correct flags when perContextVms used
...
Related-To: NEO-7813
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2023-03-28 13:09:46 +02:00
Aravind Gopalakrishnan
d75c4d3ec7
fix: Skip adding device to list if context creation fails
...
Propogate error codes from ioctl failure properly up the layers
so that we skip exposing bad root devices.
Related-To: NEO-7709
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com>
2023-02-16 11:40:54 +01:00
Warchulski, Jaroslaw
5ec9de90ee
Cleanup includes 52
...
Cleaned up files:
level_zero/core/source/driver/driver.h
level_zero/tools/source/sysman/fabric_port/windows/os_fabric_port_imp.h
level_zero/tools/source/sysman/pci/os_pci.h
shared/source/debug_settings/debug_settings_manager.h
shared/source/gmm_helper/page_table_mngr.h
shared/source/gmm_helper/windows/gmm_memory_base.h
shared/source/kernel/kernel_arg_metadata.h
shared/test/common/libult/linux/drm_mock.h
shared/test/unit_test/fixtures/command_container_fixture.h
shared/test/unit_test/fixtures/product_config_fixture.h
shared/test/unit_test/helpers/simd_helper_tests_pvc_and_later.inl
shared/test/unit_test/os_interface/hw_info_config_tests.h
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2023-02-13 11:39:34 +01:00
Kamil Kopryk
2484c7ceb2
refactor: rename hw_helper files to gfx_core_helper files
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
2023-02-01 19:37:51 +01:00
Milczarek, Slawomir
7f5fae4c2f
Enable recoverable page faults by default on faultable hardware
...
Related-To: NEO-6355
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2023-01-30 13:46:15 +01:00
Compute-Runtime-Validation
06928a345a
Revert "Enable recoverable page faults by default on faultable hardware"
...
This reverts commit 4591b27900
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2023-01-27 07:02:48 +01:00
Milczarek, Slawomir
4591b27900
Enable recoverable page faults by default on faultable hardware
...
Related-To: NEO-6355
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2023-01-25 19:22:16 +01:00
Warchulski, Jaroslaw
c43233dabf
Cleanup includes 42
...
Cleaned up files:
level_zero/core/source/kernel/kernel_hw.h
shared/source/helpers/common_types.h
shared/test/common/libult/linux/drm_mock.h
shared/test/common/libult/ult_command_stream_receiver.h
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2023-01-25 09:16:39 +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
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
Warchulski, Jaroslaw
f35f59b573
Cleanup includes 5
...
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2022-11-18 22:46:38 +01:00
Jaime Arteaga
623c9afdfa
Return same fd handle on multiple calls to peekHandle
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2022-11-09 13:35:52 +01:00
Mateusz Jablonski
8ddc889c1d
Store hardware IP version in hardware info
...
Query HW IP version using ioctl helper prelim
Related-To: NEO-7457
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-11-03 09:57:08 +01:00
Mateusz Jablonski
9816f815f3
Propagate exec buffer error to L0 API level on Xe HPC
...
This change makes that drm file is opened in nonblocking mode for prelim
kernels. In such case when calling exec buffer ioctl and get
EAGAIN (aka EWOULDBLOCK) we may return error to API level
Related-To: NEO-7144
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-10-31 10:09:13 +01:00
Dunajski, Bartosz
a9ba581d97
Always use unrecoverable drm context
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2022-10-31 10:08:57 +01:00
Compute-Runtime-Validation
040d6693cd
Revert "Always use unrecoverable drm context"
...
This reverts commit 343371faad
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-10-29 19:28:04 +02:00
Dunajski, Bartosz
343371faad
Always use unrecoverable drm context
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
2022-10-28 16:13:15 +02:00
Mateusz Hoppe
0fdb308207
Use correct context for validateHostPtr
...
- with per context VMs, context with subdeviceBitfield must
be selected
Resolves: NEO-7426
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-10-18 13:10:28 +02:00
Compute-Runtime-Validation
5094b279f6
Revert "Return same fd handle on multiple calls to peekHandle"
...
This reverts commit 5c48e027b9
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-10-13 13:17:35 +02:00
Compute-Runtime-Validation
71149b29c5
Revert "Propagate exec buffer error to L0 API level"
...
This reverts commit 9a95f3c62d
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-10-13 06:21:31 +02:00
Mateusz Jablonski
9a95f3c62d
Propagate exec buffer error to L0 API level
...
This change makes that drm file is opened in nonblocking mode for prelim
kernels. In such case when calling exec buffer ioctl and get
EAGAIN (aka EWOULDBLOCK) we may return error to API level
Related-To: NEO-7144
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-10-12 17:34:35 +02:00
Jaime Arteaga
5c48e027b9
Return same fd handle on multiple calls to peekHandle
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2022-10-12 17:17:10 +02:00
Jaime Arteaga
a3b3f3e86e
Add support for PRELIM_I915_PARAM_SET_PAIR
...
This extension allows pairing two buffer objects so they can be
exported using a single dma-buf handle. When imported, a single
buffer object is created with a total size of the two buffer
objects.
Related-To: LOCI-3355
Sync to
https://github.com/intel-gpu/drm-uapi-helper/releases/tag/v2.0-rc15
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2022-09-29 23:41:39 +02:00
Naklicki, Mateusz
ec3668fc18
Add initialization method to ioctl helpers
...
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2022-09-22 11:55:59 +02:00
Mateusz Hoppe
75b117b82f
L0Debug - fixes for ZE AFFINITY MASK
...
- pass correct deviceIndex when notifying cmdQs
- fix allocating debug surface - single tile allocation when single
bit set in storageInfo
Related-To: NEO-6980
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-08-31 11:43:19 +02:00
Mateusz Jablonski
c3d40c210f
ULT refactor: remove i915 header dependency from drm_mock.h/drm_query_mock.h
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-08-09 15:04:22 +02:00
Mateusz Jablonski
6450be2414
Remove redundant device and revision id members from Drm class
...
Drm should set these values directly to hw info in root device environment
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-08-09 10:13:32 +02:00
Mateusz Hoppe
4da6f65d1a
L0Debug - Notify cmdQueue create for subdevices
...
- PROCESS ENTRY triggered for first cmdQ created
Related-To: NEO-5784
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-07-22 16:08:41 +02:00
Compute-Runtime-Validation
5199ea257d
Revert "L0Debug - Notify cmdQueue create for subdevices"
...
This reverts commit ebcb3faad2
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-07-21 18:50:20 +02:00
Mateusz Hoppe
ebcb3faad2
L0Debug - Notify cmdQueue create for subdevices
...
- PROCESS ENTRY triggered for first cmdQ created
Related-To: NEO-5784
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-07-20 15:13:06 +02:00
Mateusz Jablonski
78c96db2fa
Create wrappers for different version of i915 headers
...
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-07-18 10:15:44 +02:00
Joshua Santosh Ranjan
e8494abbe8
Add support for ze_device_memory_ext_properties_t
...
Related-To: LOCI-3099
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-07-06 08:18:22 +02:00
Artur Harasimiuk
2cc2d05c37
remove unused include
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-06-28 10:59:30 +02:00
Mateusz Jablonski
e67307b724
Add DrmParam enum values for I915_EXEC values
...
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-06-15 08:39:39 +02:00
Bartosz Dunajski
d3da44c9aa
GEM_MMAP removal
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2022-06-10 11:57:47 +02:00
Mateusz Jablonski
4d6169ee8b
Extract querying device id and revision to a dedicated method
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-06-08 14:04:46 +02:00
Mateusz Jablonski
9938b4001d
Use ioctl helper when creating VM
...
Related-To: NEO-6999, NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-27 21:52:07 +02:00
Mateusz Jablonski
b3814e41b4
Create enum for Ioctl request values
...
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-27 13:22:59 +02:00
Mateusz Jablonski
7d3fc9ab74
Create wrappers for gem context destroy, gem vm control, gem wait, reset stats
...
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-24 16:01:05 +02:00
Mateusz Jablonski
b0e75b18fd
Create a wrapper for drm_i915_gem_context_create_ext_setparam
...
Related-To: NEO-6852, NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-23 16:42:54 +02:00
Mateusz Jablonski
2202d05ea1
Create a wrapper for drm_i915_gem_context_param
...
Related-To: NEO-6852, NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-20 16:11:51 +02:00
Mateusz Jablonski
ac3005a463
Create a wrapper for drm_i915_query_item
...
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-18 11:32:44 +02:00
Mateusz Jablonski
3c18744d10
Create a wrapper for drm_i915_gem_execbuffer2
...
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-12 17:58:16 +02:00
Mateusz Hoppe
c021e2ec5e
L0 Debugger - DebugSession linux implementation
...
- new feature, enabled with PRELIM build
- implementation of debug session for linux
- move ResourceClass enum from Drm to drm_debug.h
Resolves: NEO-6814
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-05-11 15:30:32 +02:00
Artur Harasimiuk
e9be9b64c6
clang-tidy configuration cleanup
...
Define single .clang-tidy configuration with all used checks and use
NOLINT to selectively silence tool. That way cleanup should be easier.
third_part/ has its own configuration that disables clang-tidy for this
folder.
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-11 14:02:04 +02:00
Bartosz Dunajski
4f7a225baf
Set PAT programming support during VmBind support query
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2022-05-04 16:26:15 +02:00
Naklicki, Mateusz
f1574bebb4
Use flag to opt-in for VM_BIND mode
...
Related-To: NEO-6640
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
2022-04-22 17:11:37 +02:00
Milczarek, Slawomir
6256f89a79
Page fault support to be controlled with the registry key
...
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2022-04-13 14:29:02 +02:00
Fabian Zwolinski
726b676983
Remove DrmMockImpl and use DrmMock instead
...
Related-To: NEO-4914
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2022-03-18 15:45:48 +01:00
Fabian Zwoliński
08d1af76c3
Revert "Remove DrmMockImpl class and use DrmMock instead"
...
This reverts commit 4ccbbfa41476ecccdee181b4e6b2e72eed5eaab1.
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
2022-03-16 13:56:14 +01:00