Kamil Kopryk
79e30f9ecd
fix: Correct maxEuPerSubSlice calculation in drm
...
Related-To: NEO-7996
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-09-08 13:33:58 +02:00
Cencelewska, Katarzyna
98dae70415
fix: add helper to proper call GemCreate on xe kmd
...
Related-To: NEO-8325
Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com >
2023-09-08 12:27:11 +02:00
Bari, Pratik
3f083360a2
feature(sysman): Added sysfs filenames for the memory module
...
- The sysfs filenames have been added in the sysfsNameToFileMap of the
SysmanKmdInterface classes.
- The functions returning the sysfs filenames have been removed from the
shared directory.
- The ULTs have been added to return the sysfs filenames.
Related-To: LOCI-4699
Signed-off-by: Bari, Pratik <pratik.bari@intel.com >
2023-08-03 22:36:17 +02:00
Kamil Kopryk
082d33bb7c
fix: correct query topology on xe
...
Related-To: NEO-7996
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-06-22 13:24:52 +02:00
Bari, Pratik
a15e8a9679
feature: Added changes for Porting Memory API with XE driver
...
The Memory Info object is used in the getState function for memory.
Some of the ULTS in the memory modules has been modified.
A function to return the sysfs nodes for the Memory address range has
been added in the IoctlHelper class corresponding to the XE and i915
driver.
Related-To: LOCI-4397
Signed-off-by: Bari, Pratik <pratik.bari@intel.com >
2023-06-20 21:38:17 +02:00
Matias Cabral
cfa187aec6
feature: Support for metrics group exp extension
...
Support zet_metric_global_timestamps_resolution_exp_t
Resolves: LOCI-4350
Signed-off-by: Matias Cabral <matias.a.cabral@intel.com >
2023-06-16 07:48:32 +02:00
Mateusz Jablonski
c544004b8e
fix: move getProductConfigFromHwInfo to CompilerProductHelper
...
add tests for default PVC configs
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-05-29 14:08:52 +02:00
Daria Hinz
331f167cfe
feature: Add debug flag for setting hw ip version
...
Signed-off-by: Daria Hinz <daria.hinz@intel.com >
Related-To: NEO-7954
2023-05-23 15:32:46 +02:00
Kamil Kopryk
4be9b7e609
fix: setup ipVersion in linux paths
...
Get ipVersion from productHelper function on xe and upstream.
On prelim first try to query ipVersion from kmd,
if it fails, get ipVersion from productHelper function.
Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-05-23 09:27:15 +02:00
Mateusz Jablonski
88c352c580
refactor: move query engine / memory info logic to ioctl helper
...
Related-To: NEO-7931
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-05-02 10:05:26 +02:00
Fabian Zwolinski
3fe0272381
Do not force Cooperative Context in Offline Debugging Mode
...
Related-To: NEO-7630
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com >
2023-04-13 22:52:01 +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
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
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
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
5bd4b9eb48
Do not call DebuggerOpen ioctl again on EBUSY
...
Resolves: NEO-7429
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2022-10-19 10:26: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
Mateusz Jablonski
9bde277184
Read frequency from file system based on drm version
...
Related-To: NEO-7300
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-09-21 13:28:18 +02:00
Mateusz Jablonski
762aebaea3
Make drm_neo.cpp independent on i915 headers
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-08 22:13:22 +02:00
Mateusz Jablonski
416ca5938e
Create enum values for i915 context param values
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-07-27 09:53:02 +02:00
Mateusz Jablonski
c94b6581c2
Make drm memory manager independent on drm headers
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-07-26 20:46:22 +02:00
Mateusz Jablonski
b2489a4c28
Add enum value for i915 mmap offset wb and wc
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-07-26 18:28:08 +02:00
Mateusz Jablonski
17d2d6087a
Add enum value for drm query topology info
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-07-26 15:37:13 +02:00
Mateusz Jablonski
3d1c990e37
Move set domain cpu logic to ioctl helper
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-07-25 16:16:34 +02:00
Mateusz Jablonski
a4e9ede440
Dont use global namespaces of i915 definitions
...
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-07-19 13:17: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
fffd56d7a6
refactor: bind drm context within IoctlHelper::createDrmContext method
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-06-29 10:47:52 +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
64029eee20
Add enum values for memory classes
...
Related-To: NEO-6852, NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-06-21 17:05:13 +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
9bcab12496
Use ioctl helper when getting DrmParam/Ioctl value whenever possible
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-06-08 16:37:05 +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
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
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
Bartosz Dunajski
571199d048
Unify query ioctls
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2022-05-31 15:28:23 +02:00
Mateusz Jablonski
9fa1c9d4cc
Extract create drm context logic to ioctl helper
...
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-05-31 11:59:41 +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
Daniel Chabrowski
7463e1970b
Cleanup headers
...
Make TUs and headers self-contained, remove unused headers
Signed-off-by: Daniel Chabrowski <daniel.chabrowski@intel.com >
2022-05-18 11:42:06 +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
9e7b2a77ea
Ensure that bitwise operation uses same size operands
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-05-17 17:15:41 +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