Mateusz Jablonski
32d8a3bc6d
fix: store registered engines per root device
...
in most cases we need to iterate over engines associated to single root device
Related-To: NEO-7925
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2023-04-27 10:54:07 +02:00
Wrobel, Patryk
4c58eda90d
Ensure that BO handle is closed only once
...
When one process had exported and then opened IPC handle
of memory, then close function was called twice for the
same BO handle. It caused debugBreak() and aborted
an application.
This change allows multiple separate BOs to share one
handle. The last shared handle owner calls close() function.
Related-To: NEO-7200
Signed-off-by: Wrobel, Patryk <patryk.wrobel@intel.com>
2023-02-13 14:42:49 +01:00
Warchulski, Jaroslaw
be647d42d9
Cleanup includes 12
...
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2022-12-07 13:14:15 +01:00
Maciej Plewka
4b42b066f8
Use dedicated using type for TaskCount
...
Related-To: NEO-7155
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2022-11-28 16:44:44 +01:00
Warchulski, Jaroslaw
1c03361273
Cleanup includes 6
...
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2022-11-21 12:02:14 +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
Warchulski, Jaroslaw
fb25f96081
Cleanup includes 2
...
Related-To: NEO-5548
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2022-11-07 10:36:50 +01:00
Compute-Runtime-Validation
95434f446f
Revert "Retry in loop when exec or bind fails with ENXIO"
...
This reverts commit ec13b185a3
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2022-10-01 12:13:35 +02:00
Maciej Plewka
ec13b185a3
Retry in loop when exec or bind fails with ENXIO
...
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
2022-09-29 06:23:41 +02:00
Mateusz Jablonski
e88bad79a6
Dont pass drm to ioctl helper methods - use Ioctl Helper's member instead
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-06-30 11:11:12 +02:00
Mateusz Jablonski
b72fcad1be
Drm: call ioctl using ioctl helper if possible
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-06-29 11:29:40 +02:00
Mateusz Jablonski
70cef0cfe8
Create enum values for I915 tiling mode
...
Related-To: NEO-6852, NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-06-21 23:33:50 +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
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
05cb48976f
Create wrappers for drm getparam, query, gem close, prime handle, version
...
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-24 19:51:27 +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
de465b1e6c
Move drm wrappers to a separate file
...
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-17 17:58:19 +02:00
Mateusz Jablonski
2cca28af07
Create wrappers for drm_i915_gem_get_tiling and drm_i915_gem_set_tiling
...
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-17 11:08:08 +02:00
Artur Harasimiuk
819e0f5515
style: configure readability-identifier-naming.LocalVariableCase
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2022-05-16 12:39: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 Jablonski
268393d776
Create wrapper for drm_i915_gem_exec_object2
...
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-05-12 13:14:27 +02:00
Krzysztof Gibala
143694aa0a
Adjust gmmHelper canonize method accessing point in Drm
...
Accessing canonize method as a member of GmmHelper class object
Related-To: NEO-6523
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
2022-05-11 17:35:08 +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
06fa316a75
Assign pat_index to BO during creation
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2022-04-21 13:25:13 +02:00
Patryk Wrobel
352583b9d9
Detect GPU hang in evictUnusedAllocations()
...
This change introduces checking of the return value
of wait function in case of blocking version of
evictUnusedAllocations(). Furthermore, it propagates
the error to the callers. It contains also ULTs.
Related-To: NEO-6681
Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
2022-04-13 15:39:02 +02:00
Daniel Chabrowski
3944bf8ad5
Zero the handle for bound BO exec
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
2022-02-15 18:00:43 +01:00
Milczarek, Slawomir
f02b6cd521
Dont print errno for BO binding result after success
...
Fixes incorrect errors reported for bind and unbind operations
in printfs activated with the debug key PrintBOBindingResult.
Related-To: NEO-5869
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2022-02-07 11:33:36 +01:00
Szymon Morek
d9886f67ee
Make IoctlHelper member of Drm
...
Related-To: NEO-6575
This is needed to fix accessing IoctlHelper
after driver detach.
This way we are also reducing accessing
sysfs file in Drm::getPrelimVersion
Signed-off-by: Szymon Morek <szymon.morek@intel.com>
2022-02-01 08:26:59 +01:00
Zbigniew Zdanowicz
a7455b5767
Add tweaks and control flags to linux completion fence
...
Related-To: NEO-6575
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-21 13:41:23 +01:00
Zbigniew Zdanowicz
d44f3009b8
Add interface for user fence extension
...
Related-To: NEO-6575
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2022-01-19 19:58:22 +01:00
Milczarek, Slawomir
8cf3e8ca94
Improve control of explicit residency flag
...
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2021-11-09 10:54:00 +01:00
Raiyan Latif
0859f99d64
Enable zeDeviceCanAccessPeer
...
- Propagate return value up from Batch Buffer exec
- Add zeDeviceCanAccessPeer functionality
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
2021-10-12 09:38:22 +02:00
Jaime Arteaga
dc9bcb99c9
Avoid deadlock when evicting unused allocations
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-10-07 23:22:45 +02:00
Mateusz Hoppe
f2eb7f3aea
Fix DirectSubmission residency handling
...
- allocations should be resident within OsContext
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-09-03 16:57:42 +02:00
Lukasz Jobczyk
49cf6f79f5
Validate host ptr on VM it will be used
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-08-16 08:15:53 +02:00
Lukasz Jobczyk
cb178f951e
Wait for completion while evict unused resources
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-07-30 16:11:40 +02:00
Lukasz Jobczyk
2ecab0fdc7
Evict unused allocations when exec fails
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-06-17 16:38:25 +02:00
Zbigniew Zdanowicz
ad18099ed8
Enable KMD fallback for User Fence wait call
...
Related-To: NEO-5845
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-06-17 12:12:43 +02:00
Lukasz Jobczyk
31661f0475
Improve evict unused allocations
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-05-27 14:28:11 +02:00
Michal Mrozek
0072782dfc
Validate only in first context.
...
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2021-05-18 10:17:00 +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
Lukasz Jobczyk
89c36e6675
Validate host pointer with no exec
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-05-13 18:25:02 +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
Lukasz Jobczyk
9d3b759d29
Do not call GEM_WAIT while direct submission active
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-02-17 13:22:29 +01:00
Michal Mrozek
5132fde93f
simplify code.
...
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2021-02-04 18:20:56 +01:00
Jaime Arteaga
97dba1eb00
Print execution buffer flags in hexadecimal format
...
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-02-02 12:04:27 +01:00
Michal Mrozek
cfe23873cf
Fix async flag.
...
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2021-01-29 17:02:03 +01:00
Lukasz Jobczyk
adfa3c6bcb
Fill exec object with additional flag
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-01-28 15:32:04 +01:00
Lukasz Jobczyk
d79611d2ff
Remove redundant flag
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-01-26 11:49:22 +01:00
Mateusz Hoppe
7330f989ef
Refactor bindAvailable
...
Related-To: NEO-5316
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-11-20 13:35:28 +01:00