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
Spruit, Neil R
b589e32c4b
fix: Force Close of IPC handles at memFree
...
Related-To: LOCI-4455
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com >
2023-05-26 17:09:47 +02:00
Maciej Plewka
4b6194cf0c
fix: Use Gmm to map virtual gpu addresses
...
Related-To: NEO-5842, NEO-7946
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2023-05-25 15:49:05 +02:00
Kamil Kopryk
ab1b4681cc
Revert "fix: call isPrefetchDisablingRequired directly from release helper"
...
This reverts commit 4ecff31c26 .
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-05-25 15:11:20 +02:00
Jaime Arteaga
37ed03a15c
feature: Propagate error from makeResident to caller
...
Have makeResident return error to the caller, instead of always
SUCCESS. This will allow interfaces like zeContextMakeMemoryResident
to fail properly.
Additionally, change the parsing of MemoryOperationsStatus from
ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY to
ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY, since when making resources
resident, it is the device running out of memory, instead of the
host.
Related-To: LOCI-4443
Signed-off-by: Jaime Arteaga <jaime.a.arteaga.molina@intel.com >
2023-05-24 21:08:27 +02:00
Neil R Spruit
ded9d7bff2
feature: Get Peer Allocation with specified base Pointer
...
Related-To: LOCI-4176
- Given a Base Pointer passed into Get Peer Allocation, then the base
pointer is used in the map of the new allocation to the virtual memory.
- Enables users to use the same pointer for all devices in Peer To Peer.
- Currently unsupported on reserved memory due to mapped and exec
resiedency of Virtual addresses.
Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com >
2023-05-24 20:41:20 +02:00
Kamil Kopryk
223eb3e3fc
Revert "refactor: move getProductMaxPreferredSlmSize to release helper"
...
This reverts commit 944c332371 .
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-05-24 17:05:12 +02:00
Kamil Kopryk
f32d62970d
fix: remove not needed adjustIpVersionIfNeeded function
...
Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-05-24 15:56:27 +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
915495ce28
refactor: remove not needed forward declaration
...
Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-05-23 16:06:16 +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
4ecff31c26
fix: call isPrefetchDisablingRequired directly from release helper
...
Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-05-23 15:12:39 +02:00
Kamil Kopryk
944c332371
refactor: move getProductMaxPreferredSlmSize to release helper
...
Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-05-23 13:55:17 +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
Matias Cabral
38bc7ae403
build: update i915 headers
...
third_party/uapi/drm - from c7c12de893f808bd7c1215fe9056262295e5203b
https://cgit.freedesktop.org/drm-tip
third_party/uapi/prelim/drm from prelim v2.0-rc17
https://github.com/intel-gpu/drm-uapi-helper
Signed-off-by: Matias Cabral <matias.a.cabral@intel.com >
2023-05-22 10:25:00 +02:00
Kamil Kopryk
3e6c83d28a
fix: initialize ipVersion in wddm paths
...
Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-05-22 10:13:13 +02:00
Compute-Runtime-Validation
c748fd07dc
Revert "fix: initialize ipVersion in linux paths"
...
This reverts commit 049cd1b568 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2023-05-20 07:32:36 +02:00
Kamil Kopryk
049cd1b568
fix: initialize ipVersion in linux paths
...
Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-05-19 13:49:27 +02:00
Compute-Runtime-Validation
e03160a87c
Revert "fix: call isPrefetchDisablingRequired directly from release helper"
...
This reverts commit 546318d258 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2023-05-19 05:31:21 +02:00
Francois Dugast
ae7cff3c3e
fix: waitUserFence on bind and unbind in Xe
...
This fixes illegal memory accesses by the job submitted to the GuC.
Also some unit tests are added to harness the vmBind operation.
Related-To: NEO-7996
Signed-off-by: Francois Dugast <francois.dugast@intel.com >
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-05-18 15:27:47 +02:00
Filip Hazubski
d234bc970d
refactor: Move getMaxNumSamplers function to ProductHelper
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2023-05-18 09:25:07 +02:00
Kamil Kopryk
546318d258
fix: call isPrefetchDisablingRequired directly from release helper
...
Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-05-17 16:25:49 +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
Rafal Maziejuk
d236bcbba9
feature: add isTranslationExceptionSupported method
...
Related-To: NEO-7782
Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com >
2023-05-17 15:12:46 +02:00
Milczarek, Slawomir
22e6e327fc
refactor: Use helper to check platform support for KMD migration
...
Related-To: NEO-6465
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2023-05-16 16:14:42 +02:00
Kamil Kopryk
7d20449589
fix: Add release helper for dg2
...
Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-05-16 12:04:03 +02:00
Kamil Kopryk
e0d3db3d91
fix: improve release helper
...
Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-05-15 14:30:15 +02:00
Milczarek, Slawomir
66eb1c9c0a
refactor: Add helpers to control kmd migration support on PVC platform
...
This commit keeps KMD migration still disabled by default on PVC platform.
Related-To: NEO-6465
Signed-off-by: Milczarek, Slawomir <slawomir.milczarek@intel.com >
2023-05-15 13:51:19 +02:00
Compute-Runtime-Validation
b2b41e613b
Revert "fix: add alignment support to host and shared UnifiedMemoryAllocation"
...
This reverts commit c3df92ac41 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2023-05-12 13:04:08 +02:00
Mateusz Jablonski
bfd7067c1a
fix: create global and constant surface as lockable resource
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-05-12 10:55:36 +02:00
Diedrich, Kamil
5a4a2ab8ab
feature: Add new environment variables for compiler cache
...
This patch add new environment variables to control compiler cache.
Works as follow: If persistent cache is set driver check if NEO_CACHE_DIR
is set. If not then driver checks XDG_CACHE_HOME - If exists
then driver create neo_compiler_cache folder, if
not then driver checks HOME directory. If each NEO_CACHE_DIR,
XDG_CACHE_HOME and HOME are not set then compiler cache is disabled.
Current support is for Linux only.
Signed-off-by: Diedrich, Kamil <kamil.diedrich@intel.com >
Related-To: NEO-4262
2023-05-12 10:21:27 +02:00
Mateusz Jablonski
f3a89bfe07
fix: add missing settings of isLockable flag in WddmMemoryManager class
...
- allocateGraphicsMemoryUsingKmdAndMapItToCpuVA in case of no compression
- allocate32BitGraphicsMemoryImpl in case of allocate by KMD
remove redundant ctor of StorageInfo class
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-05-11 12:14:18 +02:00
Lu, Wenbin
c3df92ac41
fix: add alignment support to host and shared UnifiedMemoryAllocation
...
Related-To: LOCI-4334
Signed-off-by: Lu, Wenbin <wenbin.lu@intel.com >
2023-05-11 11:45:12 +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
Kamil Kopryk
909bb00f22
fix: populate ipVersion before release helper creation
...
Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-05-08 16:14:47 +02:00
Kamil Kopryk
ad2acc2b99
refactor: Add isAdjustWalkOrderAvailable to releaseHelper
...
Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-05-08 08:58:17 +02:00
Mateusz Jablonski
769a9e515e
fix: setup MultiTileArchInfo in Xe path
...
when discovering engines we know which tiles are available
Related-To: NEO-7931
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-05-05 15:21:11 +02:00
Spruit, Neil R
5633418891
fix: Don't fail on VM reserve with base address on windows
...
Related-To: LOCI-4333
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com >
2023-05-04 20:05:16 +02:00
Filip Hazubski
e8ac22c265
fix: Increase size of reported global memory available to 98%
...
This change applies to Linux.
Resolves: NEO-7229
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2023-05-04 13:56:26 +02:00
Mateusz Jablonski
87aab0bf6e
fix: don't create fake memory regions in xe ioctl helper
...
populate memory info based on mem usage and gts info
propagate error from xeWaitUserFence function
Related-To: NEO-7931
Co-authored-by: Francois Dugast <francois.dugast@intel.com >
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-05-04 13:51:37 +02:00
Mateusz Jablonski
26a2a2829e
fix: don't create fake distance info in xe ioctl helper
...
populate multi tile engine info based on gt_id from xe engine info
Related-To: NEO-7931
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-05-04 08:21:28 +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
Aravind Gopalakrishnan
1883161e1e
fix: Add debug key to Force Tlb flush
...
Related-To: GSD-4457
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com >
2023-05-01 17:52:22 +02:00
Diedrich, Kamil
5149d74141
refactor: Remove globaly enabled cl_cache
...
Current behaviour will be detecd path existence
Related-To: NEO-4262
Signed-off-by: Diedrich, Kamil <kamil.diedrich@intel.com >
2023-04-28 23:28:49 +02:00
Fabian Zwolinski
cbce863dc2
refactor: Rename member variables to camelCase 3/n
...
Additionally enable clang-tidy check for member variables
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com >
2023-04-28 16:01:14 +02:00
Mateusz Jablonski
fd1ad7c1f0
feature: setup heap extended host size based on system memory size
...
Related-To: NEO-7665
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-04-28 15:23:01 +02:00
Mateusz Jablonski
5a5c20f99c
fix: create separate heap for host and shared usm in 48-56b VA
...
Related-To: NEO-7665
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-04-28 10:09:38 +02:00
Kamil Kopryk
171e97e71a
feature: introduce release helper
...
Related-To: NEO-7786
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com >
2023-04-27 21:38:08 +02:00
Fabian Zwolinski
e351a90f81
refactor: Rename member variables to camelCase 2/n
...
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com >
2023-04-27 20:39:22 +02:00
Mateusz Jablonski
2f9135a4e6
fix: change type of container with registered engines per root device
...
use StackVec instead of unordered map
resize container at MemoryManager's creation time
Related-To: NEO-7925
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2023-04-27 17:06:42 +02:00