Mateusz Jablonski
739d181026
refactor: correct naming of enum class constants 6/n
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-12-13 14:48:52 +01:00
Naklicki, Mateusz
f68b8a2c97
fix: align NEO to new Xe KMD header
...
Align to the new PAT and cache coherency support
xe_drm.h header is generated from the series
"PAT and cache coherency support"
from https://patchwork.freedesktop.org/series/123027/
Related-To: NEO-9421, NEO-8324
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com >
2023-12-13 14:14:35 +01:00
Mateusz Jablonski
cff6c81be0
refactor: correct naming of DrmIoctl enums
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-12-12 10:02:19 +01:00
Kacper Nowak
4a0064033a
fix: Correct AIL initialization in runtime
...
- Initialize AIL helper in runtime (linux/windows/AUB path).
- Return false if AIL configuration initialization is called with empty
AIL helper (is nullptr).
- Skip mentioned condition if AIL is disabled via EnableAIL debug key.
Related-To: NEO-9240
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2023-12-01 02:42:10 +01:00
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
Mateusz Jablonski
35c1f34672
refactor: move number of threads per eu to release helper
...
Related-To: HSD-18034098647
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-11-20 12:16:33 +01:00
Mateusz Jablonski
a0f8e8accc
fix: initialize max capability values for ARL
...
setup max values when overriding hw info with debug key
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-11-15 13:44:11 +01:00
John Falkowski
f0175b3916
feature: set device allocation chunking as default
...
Device allocation chunking only applies for multi-tile mode for implicit scaling
Related-To: NEO-9051
Signed-off-by: John Falkowski <john.falkowski@intel.com >
2023-11-07 10:58:17 +01:00
Mateusz Jablonski
4dfa12c8eb
fix: add mechanism to detect gpu timestamp overflows
...
unify naming CpuGpu to GpuCpu
Related-To: NEO-8394
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-10-19 16:31:06 +02:00
Dunajski, Bartosz
06a02552ce
refactor: debug flag to override PAT index for given memory type
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2023-10-12 15:47:28 +02:00
Mateusz Jablonski
a7bdd6ee0a
fix: add early skip for negative file descriptor in Drm::discoverDevices
...
Related-To: NEO-9038
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-10-10 10:57:19 +02:00
Mateusz Jablonski
85eafc9e61
fix: query drm info to aligned storages
...
xe topology info to byte aligned storage
xe engine info to 2 byte aligned storage
system info to 4 byte aligned storage
all other info to 8 byte aligned storage
Related-To: NEO-9038
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-10-06 16:11:40 +02:00
Compute-Runtime-Validation
d5f90ae155
Revert "fix: query drm info to 8 byte aligned storage"
...
This reverts commit 9b344280d6 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2023-10-05 06:07:27 +02:00
Mateusz Jablonski
9b344280d6
fix: query drm info to 8 byte aligned storage
...
Related-To: NEO-9038
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-10-03 18:43:53 +02:00
Compute-Runtime-Validation
8fa0b90f35
Revert "fix: query drm info to 8 byte aligned storage"
...
This reverts commit d0e615820c .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2023-10-03 15:41:11 +02:00
Mateusz Jablonski
d0e615820c
fix: query drm info to 8 byte aligned storage
...
Related-To: NEO-9038
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-10-03 11:13:38 +02:00
Baj, Tomasz
cb903cbc03
refactor: Move disableRcs to releaseHelper
...
Related-To: NEO-8296
Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com >
2023-09-29 14:19:02 +02:00
Mateusz Jablonski
3ceafa2259
fix: remove setting debug flags for ioctl helper xe
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-09-26 15:42:52 +02:00
John Falkowski
15a5bd6d8e
fix: Chunking check for KMD migration
...
Check for KMD migration to enable chunking
Related-To: NEO-8098
Signed-off-by: John Falkowski <john.falkowski@intel.com >
2023-09-05 02:58:25 +02:00
Cencelewska, Katarzyna
bd8625c96a
fix: wa override pat index for uncached types on xe_lpg
...
always force pat index 2(UC) when uncached type
Related-To: NEO-7565
Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com >
2023-08-30 08:37:31 +02:00
Cencelewska, Katarzyna
dfa420d318
fix: remove wa for override patIndex on mtl
...
after forcing cacheable to 0 this wa should be not needed
Related-To: NEO-8120
Signed-off-by: Cencelewska, Katarzyna <katarzyna.cencelewska@intel.com >
2023-08-22 12:09:19 +02:00
John Falkowski
f652c7311d
feature: Add prefetch for chunking with shared and device mem
...
Perform prefetching of chunks on shared and device allocations
after bind.
Related-To: NEO-8066
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
Signed-off by: John Falkowski <john.falkowski@intel.com >
2023-08-05 02:17:39 +02:00
Lukasz Jobczyk
f370b8f56a
fix: Remove alignment condition for tlb flush
...
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com >
2023-07-14 10:19:12 +02:00
Young Jin Yoon
81822e3716
refactor: rename pageSize2Mb to pageSize2M
...
The previous name "pageSize2Mb" defined in
shared/source/helpers/constant.h is inconsistent to other variable,
i.e. pageSize64k.
Furthermore, it's a bit misleading because the page size is defined in
Megabytes (MB), not in Megabits (Mb).
Related-to: NEO-7695
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com >
2023-07-10 20:12:09 +02:00
Jaime Arteaga
23eeaf816d
feature: Add debug keys for chunking allocation and size
...
Related-to: NEO-7695
New debug keys added:
EnableBOChunking is now a mask
0 = no chunking (default).
1 = shared allocations only
2 = device allocations only
3 = shared and device allocations
MinimalAllocationSizeForChunking sets the minimum allocation
size to apply chunking. Default is 2MB.
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2023-07-07 23:39:43 +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
Matias Cabral
96517a08aa
feature: Implement zetMetricGroupGetGlobalTimestampsExp()
...
Resolves: LOCI-3072
Signed-off-by: Matias Cabral <matias.a.cabral@intel.com >
2023-06-21 09:48:41 +02:00
Milczarek, Slawomir
f189f425ce
feature: KMD migration on access counters with no preferred location
...
Set no preference for KMD migrated shared allocation and rely on ACC to migrate.
Related-To: NEO-6839
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2023-06-20 08:14:34 +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
3b981331c9
fix: correct handling ZE_ENABLE_PCI_ID_DEVICE_ORDER flag
...
- by default ZE_ENABLE_PCI_ID_DEVICE_ORDER is disabled
- by default devices are sorted by type (discrete first), then by pci order
- when ZE_ENABLE_PCI_ID_DEVICE_ORDER is enabled, devices are sorted by pci id
Related-To: LOCI-4520
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-06-14 16:27:55 +02:00
Kamil Kopryk
dadd19e17b
fix: init releaseHelper after ipVersion setup
...
Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-06-06 14:22:42 +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
Mateusz Hoppe
7d82b690e4
fix(debugger): use per-context fences for vm_bind operations
...
- vm_bind with user fence updates fence value independently for every
VM hence with per-context VMs, every context needs its unique fence
address. This prevents 2 contexts from updating value possibly
writing lower value than the one that was already stored
Resolves: NEO-8004
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2023-05-24 15:17:31 +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
Milczarek, Slawomir
ac9a96c07f
refactor: Unify getters to check platform support for KMD migration
...
Related-To: NEO-6465
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2023-05-17 15:45:42 +02:00
Mateusz Hoppe
9c17cb9bd9
fix: add CLOEXEC flag when opening gpu cards
...
- close-on-exec prevents old file descriptor to leak when exec() is
called
Resolves: NEO-7944
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2023-05-09 11:53:57 +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
Mateusz Jablonski
32d8a3bc6d
fix: store registered engines per root device
...
in most cases we need to iterate over engines associated to single root device
Related-To: NEO-7925
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-04-27 10:54:07 +02:00
Maciej Plewka
bab299ee78
Increment fenceValue only after successful bind operation
...
Related-To: NEO-7835
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2023-04-19 12:26:45 +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
Fabian Zwolinski
93a30f002b
L0 Debugger - check debug_eu entry.
...
Related-To: NEO-7790
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com >
2023-03-15 16:14:49 +01:00
Compute-Runtime-Validation
3e1d931296
Revert "L0 Debugger - check debug_eu entry"
...
This reverts commit 9f935276a0 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2023-03-15 12:28:08 +01:00
Fabian Zwolinski
1e4c91fb08
Do not disable scratch pages when dbgr is enabled
...
Related-To: NEO-7990
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com >
2023-03-14 15:03:18 +01:00
Fabian Zwolinski
9f935276a0
L0 Debugger - check debug_eu entry
...
Related-To: NEO-7790
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com >
2023-03-13 14:46:28 +01:00
Kamil Kopryk
fa8579602f
refactor: rename product helper files n/n
...
Related-To: NEO-7703
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-03-10 13:24:38 +01:00
Mateusz Jablonski
553dd7f21f
refactor: return thread per eu from compiler product helper
...
Related-To: NEO-7442
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-03-08 16:25:20 +01:00
Joshua Santosh Ranjan
b180a83a24
[Sysman] Add support to control lifetime of file descriptor
...
This patch adds support to open and close the drm fd,
so that more granular control of drm fd could be
achieved.
Related-To: LOCI-3986
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2023-03-06 17:55:13 +01: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
Milczarek, Slawomir
9b7b193b38
Enable recoverable page faults on PVC platform only
...
Related-To: NEO-6355
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2023-02-06 14:47:36 +01:00
Kamil Kopryk
2484c7ceb2
refactor: rename hw_helper files to gfx_core_helper files
...
Related-To: NEO-6853
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-02-01 19:37:51 +01:00