Mateusz Jablonski
c9664e6bad
refactor: rename global debug manager to debugManager
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-11-30 13:00:59 +01:00
Francois Dugast
1fd9d29f54
feature: update Xe KMD header
...
xe_drm.h header is generated from the series "uAPI Alignment - take 1 v4"
from https://patchwork.freedesktop.org/series/124387/
Related-To: NEO-8324
Signed-off-by: Francois Dugast <francois.dugast@intel.com >
Signed-off-by: Kamil, Kopryk <kamil.kopryk@intel.com >
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com >
2023-10-24 12:03:45 +02:00
John Falkowski
56f05303c9
feature: add support for zeMemGet/SetAtomicAccessAttributeExp
...
Resolves: NEO-8219
Signed-off-by: John Falkowski <john.falkowski@intel.com >
2023-10-02 15:59:17 +02:00
Filip Hazubski
7ea22d0369
feature: Add pat index programming to gem create ext call
...
When upstream ioctl helper is created it will try to create small
allocation, adding I915_GEM_CREATE_EXT_SET_PAT extension. If it
succeeds, for all resources with valid pat index value it will then
explicitly program pat index value with gem create ext call.
PrintBOCreateDestroyResult value can be used to:
- print whether the set pat extension is supported by the kernel, when
ioctl helper is created
- print whether set pat extension was added for a given gem create ext
call and what pat index value was programmed
Note: introduced changes are disabled by defualt.
Toggle DisableGemCreateExtSetPat can be used to enable new functionality.
Related-To: NEO-7896
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2023-07-31 09:00:04 +02:00
Compute-Runtime-Validation
2d7505c01c
Revert "feature: Add pat index programming to gem create ext call"
...
This reverts commit 6489379508 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2023-07-02 05:06:58 +02:00
Filip Hazubski
6489379508
feature: Add pat index programming to gem create ext call
...
When upstream ioctl helper is created it will try to create small
allocation, adding I915_GEM_CREATE_EXT_SET_PAT extension. If it
succeeds, for all resources with valid pat index value it will then
explicitly program pat index value with gem create ext call.
PrintBOCreateDestroyResult value can be used to:
- print whether the set pat extension is supported by the kernel, when
ioctl helper is created
- print whether set pat extension was added for a given gem create ext
call and what pat index value was programmed
Resolves: NEO-7896
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2023-06-29 08:51:00 +02:00
Jaime Arteaga
2efd6e547a
feature: Add support for chunking in the UMD (1/N)
...
Read if support for chunking is available in the KMD.
If available, KMD will create a BO with 1 or more chunks,
depending on the chunk size selected.
Related-To: NEO-7695
Sync to
https://github.com/intel-gpu/drm-uapi-helper/releases/tag/v2.0-rc18
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
Signed-off-by: John Falkowski <john.falkowski@intel.com >
2023-06-02 23:27:40 +02:00
Matias Cabral
38bc7ae403
build: update i915 headers
...
third_party/uapi/drm - from c7c12de893f808bd7c1215fe9056262295e5203b
https://cgit.freedesktop.org/drm-tip
third_party/uapi/prelim/drm from prelim v2.0-rc17
https://github.com/intel-gpu/drm-uapi-helper
Signed-off-by: Matias Cabral <matias.a.cabral@intel.com >
2023-05-22 10:25:00 +02:00
Compute-Runtime-Validation
c748fd07dc
Revert "fix: initialize ipVersion in linux paths"
...
This reverts commit 049cd1b568 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2023-05-20 07:32:36 +02:00
Kamil Kopryk
049cd1b568
fix: initialize ipVersion in linux paths
...
Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-05-19 13:49:27 +02:00
Milczarek, Slawomir
bf778be99e
[fix] zeCommandListAppendMemAdvise to clear preferred location correctly
...
The memadvise with preferred location for kmd-migrated shared allocation
is set to device associated with cmd list by default to migrate data
to lmem on non-atomic gpu page fault as well (for performance reasons).
Related-To: NEO-7252
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2023-04-24 14:51:49 +02:00
Milczarek, Slawomir
0ff46562db
[perf] Improve placement of KMD shared allocation in scenario with subdevice 1
...
Improves performance for benchmarks with KMD-migrated shared allocation
in scenarios with ZE_AFFINITY_MASK=0.1.
Related-To: NEO-7881
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2023-04-13 17:55:50 +02:00
Milczarek, Slawomir
4e6995bc4c
Set VM advise with preferred location to device by default
...
Apply the KMD advise with preferred device location for KMD-migrated
shared allocation to migrate to lmem on every GPU page fault
(default KMD migration policy).
Related-To: NEO-7851
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2023-03-30 17:04:23 +02:00
Mateusz Jablonski
415d2cb121
fix xe: add missing wait on fence before unbind
...
Related-To: NEO-7306
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-03-21 15:37:44 +01:00
Filip Hazubski
2ed2ac73d1
refactor: correct ioctl and related functions to return signed int
...
Change IoctlHelper::ioctl function to return int.
Change IoctlHelper::createGemExt function to return int.
Change IoctlHelper::queryDistances function to return int.
Change UuidRegisterResult::retVal type to int32_t.
Rename res to ret in debug_session.cpp for consistency.
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2023-01-19 22:04:27 +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
Slawomir Milczarek
d942660b20
Set destination vm id in vm prefetch call
...
Use rsvd in prelim_drm_i915_gem_vm_prefetch to pass vm id to prefetch to
Related-To: NEO-6740
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com >
2022-11-16 11:26:41 +01:00
Jaime A Arteaga Molina
5446b9ca0d
Update Fabric Latency to Edge Properties (2)
...
- Only initialize vertexes when queried.
- Return also bandwidth when calling PRELIM_DRM_I915_QUERY_FABRIC_INFO.
Related-To: LOCI-3464
Signed-off-by: Jaime A Arteaga Molina <jaime.a.arteaga.molina@intel.com >
2022-10-26 08:15:35 +02:00
Joshua Santosh Ranjan
83b4edddf0
Update Fabric Latency to Edge Properties
...
Related-To: LOCI-3464
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2022-10-25 03:23:53 +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 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
Mateusz Jablonski
02e4ddbdfa
Get drm specific string from ioctl helper when available
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-07-15 12:31:54 +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
c9e2b4bc32
Pass Drm to ioctl helper ctor
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-06-29 15:47:01 +02:00
Joshua Santosh Ranjan
6adf069eb3
Metrics: Add NReports Event Generation support for EuStallSampling
...
This patch adds support for NReports for EuStallSampling
Related-To: LOCI-2758
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2022-06-14 17:15:23 +02:00
Mateusz Jablonski
695958bd10
Move I915_PARAM values to DrmParam enum class
...
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-06-06 18:46:04 +02:00
Mateusz Jablonski
9f89a91671
Unify shared code between ioctl helpers upstream and prelim
...
Related-To: NEO-7028
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-06-03 15:16:57 +02:00
Mateusz Jablonski
09c68a6bb1
Move query compute slices and query memory regions to DrmParam enum
...
Related-To: NEO-6852, NEO-6999, NEO-7028
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-06-01 19:38:34 +02:00
Mateusz Jablonski
bb71f92ca9
Move common ioctl request values to common method
...
Related-To: NEO-7028
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-06-01 19:28:17 +02:00
Mateusz Jablonski
c4bb209f91
Move query hwconfig table and engine info to DrmParam enum
...
Related-To: NEO-6852, NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-06-01 18:49:49 +02:00
Mateusz Jablonski
0420df780d
Create enum wrapper for drm engine class values
...
Related-To: NEO-6852, NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-06-01 14:39:29 +02:00
Compute-Runtime-Validation
ce7de9d66e
Revert "Unify query ioctls"
...
This reverts commit 571199d048 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-05-31 20:40:00 +02:00
Naklicki, Mateusz
65ca31d817
Remove magic number from createGemExt method
...
Related-to: NEO-6730
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com >
2022-05-31 17:10:50 +02:00
Bartosz Dunajski
571199d048
Unify query ioctls
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-05-31 15:28:23 +02:00
Naklicki, Mateusz
58ec879c46
Add support for gem create extension to create VM_PRIVATE BOs
...
Add support for PRELIM_I915_GEM_CREATE_EXT_VM_PRIVATE extension
to create VM_PRIVATE BOs.
Related-to: NEO-6730
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com >
2022-05-31 15:18:33 +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
c4095411c7
Remove HwHelper::isLinuxCompletionFenceSupported method
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-05-27 12:07:15 +02:00
Mateusz Jablonski
51d1752a68
Create a wrapper for drm_i915_gem_context_create_ext
...
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-05-24 15:21:58 +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
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
Bartosz Dunajski
884d729e4e
Improve pat index programming on linux
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-04-12 08:18:20 +02:00
Mateusz Jablonski
d3b7ea10c8
Dont allocate dynamic memory when preparing params for vm bind call
...
Related-To: NEO-6837
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-04-05 19:41:56 +02:00
Daniel Chabrowski
5350553f72
Use PrelimHelper for isDebugAttachAvailable
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
2022-03-30 16:17:05 +02:00
Naklicki, Mateusz
bce96e666f
Use updated macro names
...
Related-To: NEO-6730
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com >
2022-03-30 10:44:59 +02:00
Daniel Chabrowski
28b867f883
Move and extend local memory DRM allocations
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
2022-03-22 13:47:05 +01:00
Milczarek, Slawomir
c0b7f05897
Add memory prefetch for kmd migrated shared allocations
...
This feature is disabled by default, controlled with the knob
AppendMemoryPrefetchForKmdMigratedSharedAllocations
Related-To: NEO-6740
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2022-03-09 16:02:18 +01:00
Daniel Chabrowski
ca7d47598a
Reintroduce prelim DRM debug support
...
It was verified that the issue existed before the failing commit.
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
2022-02-28 18:25:57 +01:00
Daniel Chabrowski
d603bb2f34
Revert "Prelim DRM debug support"
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
This reverts commit 5e021be0cd .
2022-02-25 18:33:11 +01:00