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
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
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
db178a9604
Remove not needed i915_drm.h includes
...
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-05-11 13:08:21 +02:00
bad53dc58c
Remove fillExecObjectImpl method
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-04-21 14:23:58 +02:00
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
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
0e37f8c830
Register zebin module for all kernel allocations
...
Related-To: NEO-6637
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2022-02-15 16:58:04 +01:00
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
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
ec40b6562e
Add unit tests for completion fence
...
Related-To: NEO-6575
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-01-20 21:15:34 +01:00
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
72d16c7cf2
Add rootDeviceIndex to BO
...
Related-To: LOCI-2502
This to be able to differentiate when a B0 comes from a shareable handle
and we need to know which device owns it. This is needed when inside
the same process we have more than one active P2P transaction.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2021-12-20 23:33:04 +01:00
ca4af1dde1
Add helpers for page fault support
...
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2021-11-03 13:39:38 +01:00
71ed3eba16
Add mapping based colouring
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-10-25 09:51:54 +02:00
d2a29ce458
DrmBO: canonize GPU addresses
...
Related-To: NEO-6364
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2021-10-21 18:25:48 +02:00
275ec1118e
break friendship between DrmMM and DrmBO
...
Related-To: NEO-6364
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2021-10-21 15:09:57 +02:00
afa45bd9e7
Add support for mem advise to set cache policy in buffer object
...
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2021-10-07 22:16:58 +02:00
c7a936d1f4
Add memory banks to Simulated CSR
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-07-05 12:19:58 +02:00
8a037399d1
Immediate binding flag in BufferObject
...
Related-To: NEO-5985
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2021-06-17 14:16:13 +02:00
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
d399613f25
Add support for L3 cache information
...
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com >
2021-02-05 10:28:02 +01:00
adfa3c6bcb
Fill exec object with additional flag
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-01-28 15:32:04 +01:00
d79611d2ff
Remove redundant flag
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-01-26 11:49:22 +01:00
3e762b25c0
Split buffer object validation and early pinning
...
Change-Id: If1b136807dc8593179ce743c8e0187ee80c3e95f
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2020-10-16 14:13:33 +02:00
6b0e12ed94
Return error code from BufferObject::bind
...
Change-Id: I12df63a651c8b0aa0a0b296ae0c8732ddf789a98
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2020-10-16 13:05:52 +02:00
574cd634b9
Refactor bo pinning
...
Change-Id: I451fa5225096829ea7131d159eb59f906817b2cd
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2020-10-16 12:55:57 +02:00
0e935b0e10
Add allowCapture flag to BufferObject
...
Related-To: NEO-5026
Change-Id: I69a9f270272a13fccdd1d8dd8b13ad03ef93cb79
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-10-09 17:04:43 +02:00
b7852303e8
Adding getter to BufferObject
...
Related-To: NEO-4964
Change-Id: I0bbac01cac9cf0468a78afba4ddc984ec8b55eb2
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-09-18 15:27:06 +02:00
eb287d87d7
Register Allocations
...
Related-To: NEO-4964
Change-Id: I792dd7f7d6d594f51701ec7a40b2c0d36531b02b
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-09-18 10:34:02 +02:00
d363448515
Interfaces to register resources
...
Change-Id: Ic587aaa5a41e4e7648211cfa730a0aa5bbc2985a
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-09-17 12:39:16 +02:00
26e700f649
log bo creation and destruction, improve logging
...
Change-Id: Ic4d66e316ed08d056053a7a9f60611f4b5a762e6
Signed-off-by: Sebastian Luzynski <sebastian.jozef.luzynski@intel.com >
2020-08-25 16:47:11 +02:00
739c1c6c99
Pass maxOsContextCount to BufferObject
...
Change-Id: I9e64718a5a64096c8fdc50f3b84d3843701ff602
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2020-08-21 11:26:32 +02:00
cdc7649e77
Pass OsContext to memory management methods
...
Operate on OsContext when per context VMs are used
Related-To: NEO-4957
Change-Id: Ia6bef88a80163d4ceee9f9bf59bda6b569d8929f
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-08-13 19:48:54 +02:00
70ac7ec80e
Append proper flag to buffer object
...
Related-To: NEO-4338
Change-Id: I87604992fdfc20cd02773999f7c019344e8e3213
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2020-07-31 10:26:28 +02:00
49cd8e4e1b
Bind bos to proper VM
...
Change-Id: I536ff342875bba39cf9a9922fcf647af408ae398
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2020-07-28 13:21:15 +02:00
b89408266a
Fix possible memory leaks with BufferObject
...
Change-Id: Id2141a7a4becfa3ed57034df575b1c868db6715c
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2020-07-23 09:34:10 +02:00
ff0add74e3
Add alternative residency model on Linux
...
Related-To: NEO-4732
Change-Id: I79e165d2b647af200ca314e1183ecf05903de644
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2020-07-10 12:38:57 +02:00
2fb1dd439e
Add debug variable for logging drm_buffer object
...
Change-Id: Ida9635705172c1059b6adf4b6f55fdf4bc50c5b1
2020-06-10 11:47:32 +02:00
c60e4af68a
Revert "Change residency vector to set"
...
This reverts commit 29c3c7180b
.
Change-Id: I68e80e0f23b1f2deda4cc94d3cf17ea215fe1c9e
2020-05-06 13:17:45 +02:00
29c3c7180b
Change residency vector to set
...
Related-To: NEO-4302
Change-Id: I318e28ed6d84fa781f9369a870f3e9e10a897db9
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2020-04-27 11:17:08 +02:00
d99160c9f3
Remove not needed BufferObject constructor.
...
Change-Id: I9b79699a041dc24ee542f7ae949b92327670d4b2
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2020-03-30 10:17:24 +02:00
1ce4f56c9f
Remove root device index from buffer object.
...
Graphics allocation is responsible for holding this information.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
Change-Id: I5cf6fa7e92a7c716308213509aab5e446b5ef680
2020-03-19 14:38:18 +01:00
e072275ae6
Reorganization directory structure [3/n]
...
Change-Id: If3dfa3f6007f8810a6a1ae1a4f0c7da38544648d
2020-02-23 23:48:28 +01:00