Mateusz Jablonski
5b6dd87fc3
refactor: remove not needed hardcoded values in xe path
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-27 07:21:50 +01:00
Mateusz Jablonski
0b57b0fb7a
fix: remove invalid hardcoded flags for vm create in xe path
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-26 21:36:19 +01:00
Mateusz Jablonski
1f96e6e251
fix: update uapi headers version to 6.8.1
...
source of files: https://git.kernel.org/stable/h/v6.8.1
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-26 16:08:32 +01:00
Maciej Plewka
f3d36d3350
feature: bind resources as read only
...
Related-to: NEO-10398
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2024-03-26 14:11:57 +01:00
Brandon Yates
87022c31d3
feature: Register critical section metadata for xe debugger
...
Related-to: NEO-9161
Signed-off-by: Brandon Yates <brandon.yates@intel.com >
2024-03-25 20:56:08 +01:00
Mateusz Hoppe
72725e6ba9
feature: set priority for lowPriority contexts
...
Related-To: NEO-10168
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2024-03-25 20:19:43 +01:00
Young Jin Yoon
068f6a25c6
Revert "feature: support explicit memory locking"
...
This reverts commit 27a3307bb0 .
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com >
2024-03-25 20:10:20 +01:00
Mateusz Jablonski
78a4a92b44
refactor: reorder members to reduce internal padding in structs
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-25 15:50:00 +01:00
Mateusz Jablonski
6af9856e33
fix: reorder members in BufferObject class
...
Related-To: HSD-13011781488
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-25 11:44:38 +01:00
Mateusz Hoppe
fd34df899c
refactor: add function to fill context properties in xe
...
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2024-03-25 11:30:49 +01:00
Young Jin Yoon
27a3307bb0
feature: support explicit memory locking
...
Added lockMemory in context to explicitly locking memory,
Added a boolean flag in graphics_allocation to indicate the allocation
is locked, and modified memory_operations_handler to add lock().
Change the logic to work correctly with makeResident() when lock() is
called previously for the same memory region
Related-To: NEO-8277
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com >
2024-03-25 09:49:18 +01:00
Mateusz Jablonski
8d38a0c726
fix: remove not needed hardcoded caps reported by ioctl helper xe
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-22 19:00:28 +01:00
Mateusz Jablonski
d94be09020
refactor: remove not needed check for exec softpin
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-22 17:30:49 +01:00
Mateusz Jablonski
97a0b25162
fix: remove not needed check for context id
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-22 16:00:13 +01:00
Mateusz Jablonski
8e6240ac70
fix: don't use fake userptr flag in ioctl helper xe
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-22 15:59:56 +01:00
Compute-Runtime-Validation
a75db375a1
Revert "fix: remove hardcoded caps reported by ioctl helper xe"
...
This reverts commit 0b2e8e2848 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-03-22 15:15:19 +01:00
Mateusz Jablonski
ec19ce536a
refactor: store userptr value in buffer object
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-22 12:49:13 +01:00
Mateusz Jablonski
0b2e8e2848
fix: remove hardcoded caps reported by ioctl helper xe
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-22 10:41:54 +01:00
Young Jin Yoon
ec009cf9e3
fix: abort only when disabling scratch page
...
Modifed getResetStatus to abort only when scratch page is disabled
Removed an incorrect UNRECOVERABLE_IF statement based on the status:
validPageFault can be true when banned flag is not set, if CAT error
does not occur as a result of page fault.
Related-To: GSD-5673
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com >
2024-03-21 21:55:25 +01:00
Mateusz Jablonski
4df0dd7894
fix: remove hardcoded caps reported by ioctl helper xe
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-21 21:09:20 +01:00
Mateusz Jablonski
92d37b20a6
fix: setup gpu address space based on config info from xe kmd
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-21 18:49:19 +01:00
Mateusz Jablonski
1e343053ba
refactor: remove redundant recreating vector of engines in xe kmd path
...
make ContextParamEngine structure more generic and populate engines
by drm specific methods
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-21 17:55:39 +01:00
Mateusz Jablonski
a2742492ab
feature: enable xe drm detection by default
...
driver is built with xe drm support by default
added cmake flag to control xe eu debug API support
NEO_ENABLE_XE_EU_DEBUG_SUPPORT
This flag is disabled by default and uapi-eu-debug headers are not
needed for driver compilation as these headers are not a part of
upstream kernel yet.
Related-To: NEO-10780
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-19 08:47:13 +01:00
Mateusz Jablonski
6b33d91140
fix: remove not needed check for context param engine count
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-18 13:17:05 +01:00
Mateusz Jablonski
19dcc80e44
Revert "build: enable xe drm detection by default"
...
This reverts commit 973757a58d .
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-18 09:04:59 +01:00
Compute-Runtime-Validation
016c234893
Revert "feature: disable scratch page by default"
...
This reverts commit dab5469f81 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-03-16 01:52:00 +01:00
Mateusz Jablonski
1319ab4efc
refactor: don't setup struct members with designated initializers
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-15 16:36:00 +01:00
Mateusz Jablonski
e21180992f
fix: remove not needed check for engine instance count
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-15 16:16:21 +01:00
Mateusz Jablonski
0270cd6a5b
fix: respect gt id when getting engines for drm context under xe kmd
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-15 16:02:47 +01:00
Young Jin Yoon
dab5469f81
feature: disable scratch page by default
...
Modified default values for disableScratch and gpuPageFault
to true and 10 respectively in drm_nep.cpp, in order to
disable scratch pages by default.
Related-To: GSD-5673
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com >
2024-03-15 11:44:10 +01:00
Young Jin Yoon
9633f49dab
fix: make gpuFaultCheckCounter more robust
...
Modified drm_neo.h and .cpp to check when condition is greater
than and equal to instead of equal, and changed gpuFaultCheckCounter
to be atomic
Related-To: GSD-5673
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com >
2024-03-15 10:40:12 +01:00
Young Jin Yoon
82728ff394
feature: add logic to iterate for all contexts to check GPU pagefault
...
Implemented to go through entire contexts in the process and then query
reset status to check the unexpected GPU segfault.
Added a new debug variable GpuFaultCheckThreshold to change the checking
frequency for each hang check for performance analysis.
Related-To: GSD-5673
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com >
2024-03-15 07:48:39 +01:00
Compute-Runtime-Validation
94cc48f81b
Revert "fix: don't use fake userptr flag in ioctl helper xe"
...
This reverts commit d3ab256f55 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-03-15 03:08:01 +01:00
Compute-Runtime-Validation
e11917cfcd
Revert "fix: remove not needed checks in ioctl helper xe"
...
This reverts commit 5a6d0b21ac .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-03-14 21:38:09 +01:00
Mateusz Jablonski
d3ab256f55
fix: don't use fake userptr flag in ioctl helper xe
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-14 18:41:17 +01:00
Mateusz Jablonski
5a6d0b21ac
fix: remove not needed checks in ioctl helper xe
...
pass gt id to contextSetParam
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-14 18:14:50 +01:00
Neil R. Spruit
b5f8a38f19
feature: Enable Per IP euStall Functionality
...
Related-To: NEO-10220
Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com >
2024-03-14 16:49:52 +01:00
Compute-Runtime-Validation
ef7dbc99f1
Revert "fix: don't use fake userptr flag in ioctl helper xe"
...
This reverts commit 98824fdaf6 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-03-14 14:35:14 +01:00
Mateusz Jablonski
833fa6bce1
fix: correct querying engines from xe kmd
...
we get drm_xe_query_engines, not array of drm_xe_engine_class_instance
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-14 12:06:25 +01:00
Mateusz Jablonski
98824fdaf6
fix: don't use fake userptr flag in ioctl helper xe
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-14 10:07:38 +01:00
Young Jin Yoon
7b81c4e08f
feature: abort when unexpected GPU page fault detected
...
If ResetStats from i915 is from the GPU page fault, abort
the entire process instead of disabling engines.
Added a fallback mechanism when prelim_drm_i915_reset_stats
fails.
Related-To: GSD-5673
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com >
2024-03-14 08:14:59 +01:00
Mateusz Jablonski
0210e37f03
fix: respect gt id when finding xe engine info
...
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-13 20:52:36 +01:00
Francois Dugast
78e55f31b6
fix: Remove unused constant USER_FENCE_VALUE
...
Related-to: NEO-10321
Signed-off-by: Francois Dugast <francois.dugast@intel.com >
2024-03-13 15:26:26 +01:00
Compute-Runtime-Validation
9cce1183cd
Revert "feature: use prelim reset_stats for detailed statisics"
...
This reverts commit 835dc8b594 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-03-13 14:31:57 +01:00
Aravind Gopalakrishnan
3f20dd3b49
refactor: Add optional user fence during unbind
...
Add optional fence and wait operations after unbind operation.
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com >
2024-03-13 12:47:44 +01:00
Young Jin Yoon
835dc8b594
feature: use prelim reset_stats for detailed statisics
...
Added getResetStats() in ioctl_helper.h to support extended header for
prelim_drm_i915_reset_stats.
Added new data structure to capture the fault data structure for prelim.
Related-To: GSD-5673
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com >
2024-03-13 11:37:04 +01:00
Francois Dugast
5483e466e8
fix: Align on strings returned for unknown values
...
Related-to: NEO-10321
Signed-off-by: Francois Dugast <francois.dugast@intel.com >
2024-03-13 11:21:51 +01:00
Mateusz Jablonski
973757a58d
build: enable xe drm detection by default
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-11 14:29:20 +01:00
Young Jin Yoon
65f3e80796
Revert "build: remove static_assert for drm header change"
...
This reverts commit 219470f60d .
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com >
2024-03-08 09:54:30 +01:00
Bartosz Dunajski
79d80047ef
refactor: improve mmap logging logic
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2024-03-07 12:15:39 +01:00