Milczarek, Slawomir
13bc2300e1
Add mock function to check for page fault support
...
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2022-02-28 18:36:31 +01:00
Mateusz Jablonski
b9d613995d
Move createDrmVirtualMemory function to drm_neo.cpp
...
Related-To: NEO-6591
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-02-16 11:34:52 +01:00
Mateusz Jablonski
4a24195e99
Move bind/unbind buffer objects methods to drm_neo.cpp
...
use ioctl helper to handle binding properly
Related-To: NEO-6591
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-02-16 08:37:16 +01:00
Mateusz Jablonski
143f67f2fe
Enable vm bind availability based on ioctl helper support
...
Related-To: NEO-6591
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-02-15 15:27:52 +01:00
Mateusz Jablonski
cf27583264
Move createDrmContextExt to drm_neo.cpp
...
add ioctl helper functions to create dedicated drm contexts
createContextWithAccessCounters
createCooperativeContext
Related-To: NEO-6591
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-02-15 09:16:36 +01:00
Mateusz Jablonski
173c86d6f1
Move ioctl strings to ioctl helper
...
move ioctl helper prelim tests with drm to separated file
Related-To: NEO-6591
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-02-14 10:47:31 +01:00
Mateusz Jablonski
3467bc0994
Extend waitForBind function
...
use waitUserFence to wait for fence value
move some tests to shared
- ioctl helper tests
- drm memory info tests
- drm cache info
Related-To: NEO-6591
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-02-11 18:52:59 +01:00
Mateusz Jablonski
2e32bcb2e1
Extend bindDrmContext function
...
move implementation to drm_neo.cpp
respect multiple CCS and BCS engines
Related-To: NEO-6591
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-02-11 14:50:48 +01:00
Daniel Chabrowski
23999110ed
Add prelim DRM page fault allocation check support
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
2022-02-10 18:57:52 +01:00
Daniel Chabrowski
85eb6d7403
[CP-1] Extend CLOS cache mechanism for DRM allocation
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
2022-02-09 16:51:48 +01:00
Daniel Chabrowski
f2c4231a27
Extend DRM mock and queryTopology tests - part 1
...
Signed-off-by: Daniel Chabrowski daniel.chabrowski@intel.com
Related-To: NEO-6591
2022-02-04 12:02:49 +01:00
Szymon Morek
26a24e8fde
Query engine info with distances
...
If prelim kernel is being used, query distances
and set correctly number of available engines
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2022-01-10 13:30:26 +01:00
Szymon Morek
6258575e5e
Use queryEngineInfo with prelim ioctls
...
If prelim kernel is being used, query engines
with prelim ioctls.
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2022-01-04 12:15:04 +01:00
Szymon Morek
e07b27c0e2
Allow to query memory info with prelim ioctl
...
If prelims are supported, query memory info with
specific ioctl.
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-12-29 10:21:23 +01:00
Szymon Morek
d9f6757378
Change return type from unique_ptr to vector
...
In some of the drm functions there is a pattern
to store array in unique_ptr and pass it's length
as an argument. This commit simplifies this.
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-12-28 10:33:53 +01:00
Szymon Morek
962d98a2d8
Enable MemoryInfo for platforms without local mem
...
Query for memory regions on all platforms.
Fix createPaddedAllocation when input allocation
was made by KMD
Resolves: NEO-6472
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-12-23 17:35:18 +01:00
Szymon Morek
2647d563c7
Remove i915 structs from MemoryInfo
...
Use structs defined in ioctl_helper.h instead of
i915 dependent ones to avoid conflicts between
different kernels
Related-To: NEO-6149
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-12-22 12:46:59 +01:00
Szymon Morek
7a730200ee
Move appendDrmContextFlags to drm_neo.cpp
...
Use flag for direct submission when prelim kernel is used.
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-12-20 17:25:11 +01:00
Szymon Morek
854a77d1cf
Move code from drm_query to drm_neo
...
Move methods to drm_neo.cpp and hide
kernel-specific implementations to IoctlHelper
Related-To: NEO-6510
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-12-14 19:28:16 +01:00
Milczarek, Slawomir
21f6e7e17c
Remove mock function to check for page fault support
...
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2021-12-14 12:50:12 +01:00
Szymon Morek
5a3fd1dc94
Check i915 version at runtime
...
Related-To: NEO-6510
Check which prelim version is being used.
Select proper IoctlHelper based on that version.
If no version found, switch to upstream instead.
Source of prelim headers:
https://github.com/intel-gpu/drm-uapi-helper
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-12-10 12:22:00 +01:00
Igor Venevtsev
4d433d8674
Stop using CONTEXT_SET_PARAM to set context VM
...
Use DRM_IOCTL_I915_GEM_CONTEXT_CREATE_EXT extension mechanism instead
Resolves: NEO-5881
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com >
2021-12-02 17:39:20 +01:00
Filip Hazubski
fe08216102
Refactor: Update Drm::createDrmContext
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2021-12-01 17:04:09 +01:00
Szymon Morek
ce5f9c2214
Rename LocalMemoryHelper to IoctlHelper
...
Related-To: NEO-6472
This helper class is not used only for local memory.
IoctlHelper is more appropriate.
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-12-01 14:34:21 +01:00
Szymon Morek
12777bd758
Move MemoryInfoImpl logic to MemoryInfo
...
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-11-29 13:13:11 +01:00
Joshua Santosh Ranjan
152ee4a627
Sysman Fix Multithread Access for zesMemoryGetState
...
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
Related-To: LOCI-2727
2021-11-27 02:35:46 +01:00
Szymon Morek
2319a56557
Move SystemInfoImpl logic to SystemInfo
...
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-11-25 19:05:35 +01:00
Szymon Morek
23f7a908d7
Add query system info on linux
...
Source location of DRM_I915_QUERY_HWCONFIG_TABLE
and modified intel_hwconfig_types.h:
https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/tree/intel/IGTPW_6061/
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-11-24 17:38:15 +01:00
Milczarek, Slawomir
b8aa2871bd
Add mock function to check for page fault support
...
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2021-11-18 17:46:41 +01:00
Szymon Morek
3cf2e2e395
Use drm tip kernel headers as default 2/2
...
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-11-15 17:16:54 +01:00
Jan Beich
bb6ed003e8
Don't use VM when ppGTT is invalid/unassigned
...
Signed-off-by: Jan Beich <jbeich@FreeBSD.org >
2021-10-26 14:25:11 +02:00
Mateusz Hoppe
51b169e9a8
Fix warning of missing case in switch statement
...
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2021-09-22 18:30:49 +02:00
Szymon Morek
ae6d58bcb0
Remove duplicated code in drm_query files
...
This commit moves duplicated code in drm_query.cpp and
drm_query_dg1.cpp to shared drm_query_extended.cpp
Related-To: NEO-6149
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-09-08 11:35:10 +02:00
Szymon Morek
d47751d3a7
Add getting gpu frequency for multitile devices
...
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-09-07 17:27:00 +02:00
Szymon Morek
1db3f750ce
Move duplicated drm functions to common file
...
Related-To: NEO-6149
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2021-09-06 10:39:22 +02:00
Compute-Runtime-Validation
86f8150dc7
Revert "Stop using CONTEXT_SET_PARAM"
...
This reverts commit e9f56e7d96 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2021-09-03 18:12:38 +02:00
Piotr Obst
e9f56e7d96
Stop using CONTEXT_SET_PARAM
...
Related-To: NEO-5881
Signed-off-by: Piotr Obst <piotr.obst@intel.com >
2021-09-03 15:27:20 +02:00
Katarzyna Cencelewska
2ce3a223f0
Change use of querySystemInfo
...
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com >
2021-07-05 11:56:45 +02:00
Zbigniew Zdanowicz
8156d5c16e
Reorganize new ioctl and ioctl param logging code
...
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-06-29 15:10:12 +02:00
Zbigniew Zdanowicz
991fd3b358
Add flags parameter to user fence wait function
...
Related-To: NEO-5845
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-06-22 15:43:02 +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
Zbigniew Zdanowicz
d14c7e4ffb
Add new DRM wait function
...
Related-To: NEO-5845
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-06-08 12:29:22 +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
Mayank Raghuwanshi
1c3107fc7e
Update sysman engine and scheduler as per lastest spec
...
Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com >
2021-05-12 14:51:21 +02:00
Bartosz Dunajski
085a2af2d6
Add EngineInstanced param to OsContext
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2021-05-12 10:57:12 +02:00
Lukasz Jobczyk
4440c55725
Add ioctl to string decoder
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-05-11 15:44:25 +02:00
Lukasz Jobczyk
fa69b7539d
Create special drm context when new residency model available
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-05-11 12:39:49 +02:00
Zbigniew Zdanowicz
d223508cad
Move Drm function
...
Related-To: NEO-5570
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2021-03-18 10:02:14 +01:00
Lukasz Jobczyk
7c99739b89
Check if direct submission enable in OsContext
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-02-11 09:05:50 +01:00
Lukasz Jobczyk
083f8ae02c
Add immediate extension to new residency model
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2021-02-08 14:53:11 +01:00