Commit Graph

287 Commits

Author SHA1 Message Date
Milczarek, Slawomir
8cf3e8ca94 Improve control of explicit residency flag
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2021-11-09 10:54:00 +01:00
Jitendra Sharma
1186c1aae3 zesSysmanDeviceReset: Reinitialize device after device reset
Before performing gpu device reset, first all level zero resources
and gpu device specific resources have to be cleaned up. Also as
after device reset, state of gpu device would be lost.
Hence after performing gpu device reset, level zero device have
to be reinitialized by querying gpu device again.
This change is aimed at reinitializing the level zero resources
after gpu device reset, so that user could continue using level zero
devices after device reset.

Related-To: LOCI-2627

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2021-11-07 23:43:48 +01:00
Artur Harasimiuk
6769df2f5d refactor regex when scanning pci paths
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-10-27 10:33:58 +02:00
Artur Harasimiuk
83b099a48c improve pci path search to use regex to make it more flexible
Related-To: NEO-6364
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-10-26 07:49:22 +02:00
Compute-Runtime-Validation
ee942190ab Revert "improve pci path search to use regex to make it more flexible"
This reverts commit dbffbbd193.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2021-10-25 22:15:31 +02:00
Artur Harasimiuk
dbffbbd193 improve pci path search to use regex to make it more flexible
Related-To: NEO-6364
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2021-10-25 15:20:04 +02:00
Filip Hazubski
28b37aea72 Correct handling unique_ptr in functions
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-10-21 18:17:14 +02:00
Milczarek, Slawomir
a5e686cf3a Add helper function to create drm extended context
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com>
2021-10-19 18:16:38 +02:00
Jaime Arteaga
9d49c56b75 Include domain when ordering with ZE_ENABLE_PCI_ID_DEVICE_ORDER
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-10-06 21:34:36 +02:00
Jaime Arteaga
715c2b6af0 Add missing ioctls to getIoctlString() parser
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-09-11 21:35:21 +02:00
Mateusz Hoppe
cf8e3269c7 Set context unrecoverable when debugging enabled
Related-To: NEO-6204

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-09-10 13:29:11 +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
Lukasz Jobczyk
a3d970ee24 Track new resource bound per VM
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-09-02 12:32:50 +02:00
Zbigniew Zdanowicz
6d510240e6 Improve ioctl statistics
Related-To: NEO-5845

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-08-19 17:50:53 +02:00
Lukasz Jobczyk
2cc11f2199 Ensure GEM_WAIT is not called while bind is available
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-08-17 19:37:49 +02:00
Lukasz Jobczyk
81609c7695 Use bind fence atomically
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-08-09 16:19:46 +02:00
Mateusz Hoppe
bbb27cdb8a L0 Device slice id mapping
Related-To: NEO-5640


Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-07-07 15:00:44 +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
94154145c0 Improve drm ioctl debug prints
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-06-25 14:18:54 +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
Jaime Arteaga
2dbecfc354 Display error when printing ioctl entries
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
2021-06-16 10:12:19 +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
Zbigniew Zdanowicz
2829226937 Improve query PCI info
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
2021-06-01 19:26:22 +02:00
Filip Hazubski
b3283a4490 When initializing gtSystemInfo initialize DualSubSliceCount
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-06-01 14:52:19 +02:00
Jaroslaw Chodor
3b4ec5b3fa Refactor of global factories
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
2021-05-28 19:09:24 +02:00
Mateusz Hoppe
7b2c09eec9 Use compile guard when setting gmm arg FileDescriptor
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-05-26 14:15:52 +02:00
Jaroslaw Chodor
bc92cbf9e7 Refactoring hwinfoconfig
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
2021-05-25 09:02:07 +02:00
Jaroslaw Chodor
67aa1ad7ec Refactoring HwDeviceId
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
2021-05-24 21:38:20 +02:00
Jaroslaw Chodor
0e9aa45e46 Improving OS abstraction
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
2021-05-23 21:40:37 +02:00
Jaroslaw Chodor
8ca347f836 Moving getPciPath out of os interface
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
2021-05-20 14:58:57 +02:00
Suldin, Egor
2b3b47b495 Add cl_khr_pci_bus_info extension
Signed-off-by: Egor Suldin <egor.suldin@intel.com>

https://github.com/intel/compute-runtime/pull/374
2021-05-20 14:51:33 +02:00
Mateusz Hoppe
4407bf9c49 Set correct MaxSlicesSupported in gtSystemInfo
- calculate maxSubsliceCount in translateTopologyInfo
based on enabled bits

Related-To: LOCI-2080

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-05-18 01:50:57 +02:00
Mateusz Hoppe
21d93a33d2 Do not set Max values from topology in Drm::setupHardwareInfo
- max values set in device->setupHardwareInfo and
HwInfoConfig::configureHwInfo

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-05-17 21:15:45 +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
Michal Mrozek
00db4dd3f0 optimize errno calls.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
2021-05-12 17:49:31 +02:00
Lukasz Jobczyk
3c9dcbb1db Improve printing ioctls entries
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-05-12 11:44:50 +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
Mateusz Hoppe
cc914ffde3 Save topology - slice mapping
Related-To: NEO-5640

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-05-11 14:19:06 +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
Mateusz Hoppe
73616b173c Cast argument to printf to match format specifier
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-05-10 10:56:43 +02:00
Mateusz Hoppe
2d07d6a3d7 Refactor Drm::queryTopology() to take struct
- set max values in SystemInfo based on topology

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-04-28 12:19:34 +02:00
Compute-Runtime-Validation
6bb76c82e3 Revert "Refactor Drm::queryTopology() to take struct"
This reverts commit f83b51e628.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2021-04-26 00:56:06 +02:00
Mateusz Jablonski
1823054e08 Linux: pass adapter BDF to GmmLib
Resolves: NEO-5785
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2021-04-23 18:45:50 +02:00
Mateusz Hoppe
f83b51e628 Refactor Drm::queryTopology() to take struct
Related-To: NEO-5640

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2021-04-23 13:34:44 +02:00
Lukasz Jobczyk
3521d89106 Add debug flag to print called ioctls
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-04-22 16:50:07 +02:00
Lukasz Jobczyk
1b513b5ddb Add utility to print ioctl times
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
2021-04-22 10:54:33 +02:00