Mateusz Jablonski
b488799e85
feature: add support for new vm bind flags based on upstream xe kernel
...
support for DRM_XE_VM_BIND_FLAG_IMMEDIATE and DRM_XE_VM_BIND_FLAG_READONLY
Fixes : #717
Related-To: NEO-10958
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-25 12:43:54 +02:00
Compute-Runtime-Validation
4dc737fc4a
Revert "fix: correct setting hw info in drm flow"
...
This reverts commit 3b2a0983f5 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-07-25 05:41:33 +02:00
Mateusz Jablonski
3b2a0983f5
fix: correct setting hw info in drm flow
...
firstly, setup hw info using product specific functions
secondly, query system info from GuC to setup max values
thirdly, query topology to setup current topology data
Related-To: NEO-12073
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-24 16:18:58 +02:00
Mateusz Jablonski
9632f91ee8
fix: don't override eu count to zero
...
Related-To: NEO-12012
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-24 14:56:54 +02:00
Wenbin Lu
357a607d22
refactor: correct the naming of some topology-related variables
...
Related-To: NEO-9489
Signed-off-by: Wenbin Lu <wenbin.lu@intel.com >
2024-07-24 08:39:12 +02:00
Compute-Runtime-Validation
2116808b8d
Revert "fix: correct number of slices based on GuC info"
...
This reverts commit b6a56bcdde .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-07-23 17:22:31 +02:00
Compute-Runtime-Validation
ae68df3832
Revert "fix: unblock xekmd recoverable pagefaults vmbind"
...
This reverts commit 8f4472a26c .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-07-23 16:48:15 +02:00
Mateusz Hoppe
8a7923c6ee
fix: allow fork() after zeInit()
...
- do not release resources derived from parent process
- zeInit() in child should initilize new driver
Related-To: NEO-11761
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2024-07-23 15:31:50 +02:00
Naklicki, Mateusz
8f4472a26c
fix: unblock xekmd recoverable pagefaults vmbind
...
Related-To: HSD-13011898606
Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com >
2024-07-23 12:00:25 +02:00
Elaine, Wang
28fa434541
feature: support pci path contains card0
...
Some OpenCL application need to render libva surface
with drm display and use the same libva surface as
OpenCL kernel output. Such applicatoins need to
use /dev/dri/card0 instead of /dev/dri/renderD128
for getting the display fd.
Related-To: NEO-11714
Signed-off-by: Elaine, Wang <elaine.wang@intel.com >
2024-07-22 11:28:18 +02:00
Young Jin Yoon
c01a5c45c7
fix: wait on userfence when VM immediate is used
...
Removed if condition when calling vm_bind in order to
reflect changed in KMD.
Specifically, dii-4347 to dii-4349 include changes on
strict fence ordering on vm_bind, where user fence has
to be inserted regardless of using pagefault or explicit
residency.
Related-To: NEO-11966
Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com >
2024-07-22 10:52:00 +02:00
Brandon Yates
4513e42ddb
build: Update to latest eudebug xe uapi
...
Remove implementation of some unused and removed
uapis
Signed-off-by: Brandon Yates <brandon.yates@intel.com >
2024-07-22 10:01:44 +02:00
Compute-Runtime-Validation
0cb2a22c55
Revert "fix: correct number of slice count in configureHwInfoDrm"
...
This reverts commit b597f47a70 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-07-19 04:35:03 +02:00
Mateusz Jablonski
b597f47a70
fix: correct number of slice count in configureHwInfoDrm
...
adjust slice count to proper value based on previously calculated
max slices and max subslice counts
Related-To: NEO-12073
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-18 16:54:51 +02:00
Mateusz Jablonski
64acb65b08
fix: don't crash when getting pci path for non-render device
...
Related-To: NEO-11714
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-18 12:27:35 +02:00
Mateusz Jablonski
b6a56bcdde
fix: correct number of slices based on GuC info
...
KMD exposes flat subslice info without indicating slice index
This commit calculates slice count based on total subslice count and
max subslice per slice count that we have from device blob
Related-To: NEO-12073
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-18 12:12:19 +02:00
Compute-Runtime-Validation
d7777ef163
Revert "refactor: remove redundant querying topology info"
...
This reverts commit 9aa7ad0fd7 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-07-18 03:40:49 +02:00
Mateusz Jablonski
55907c853b
fix: limit EU count based on subslice count and info from GuC
...
Related-To: NEO-12073
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-17 16:40:20 +02:00
Katarzyna Cencelewska
2d1f4e6214
fix: use WB for cpu caching only if system memory
...
affect xe kmd only
Related-To: NEO-11690
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com >
2024-07-17 15:35:08 +02:00
Mateusz Jablonski
48d6788b3a
fix: add fallback for missing eu count in topology
...
for xe kmd there will be new query for EU per DSS for PVC, LNL, BMG platforms
when new query is available, previous one (currently used in NEO) will be empty
To avoid integration issues this commit adds fallback to setup that value based
on max eu per dss that we get from GuC in device blob
Support for new query is in PR https://github.com/intel/compute-runtime/pull/745
Related-To: NEO-12012
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-17 14:31:29 +02:00
Mateusz Jablonski
1d7ce005d7
refactor: extract common logic from wddm and drm product helpers
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-17 11:03:02 +02:00
Mateusz Jablonski
9aa7ad0fd7
refactor: remove redundant querying topology info
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-17 07:34:27 +02:00
Compute-Runtime-Validation
e3053121cb
Revert "refactor: extract common logic from wddm and drm product helpers"
...
This reverts commit 585caab757 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-07-17 04:53:28 +02:00
Szymon Morek
b03ac6abd1
fix: disable usm compression on linux
...
Related-To: NEO-12047
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2024-07-16 14:59:33 +02:00
Mateusz Jablonski
585caab757
refactor: extract common logic from wddm and drm product helpers
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-16 11:17:18 +02:00
Szymon Morek
432ecbc8f4
fix: disable compression for exported allocations
...
Related-To: NEO-12021
Signed-off-by: Szymon Morek <szymon.morek@intel.com >
2024-07-16 05:41:14 +02:00
Mateusz Jablonski
80afda1ac9
refactor: extract common logic of setting kmd notify properties
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-15 17:58:34 +02:00
Mateusz Jablonski
789a008470
fix: setup proper preemption surface size when forcing builtin SIP
...
when getting SIP kernel from IGC, setup related surface size based on IGC data
Related-To: NEO-8188
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-15 15:56:24 +02:00
Mateusz Jablonski
64f2312aa0
refactor: setup engine capabilities in drm specifc code
...
once drm specific code queries engine info, caps are stored in drm-agnostic form
Related-To: NEO-10445
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-15 11:00:15 +02:00
Joshua Santosh Ranjan
2e5bf8d24d
fix: remove perf open from the initialization path
...
Related-To: NEO-11975
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2024-07-15 10:17:53 +02:00
Mateusz Jablonski
3f65f75cc3
refactor: unify EngineInfo ctors
...
remove redundant constructor
create helper struct for numbers of engines
adjust test scopes
Related-To: NEO-10445
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-11 17:08:15 +02:00
Mateusz Jablonski
51a9aa792f
refactor: pass engine capabilities to all EngineInfo ctors
...
Related-To: NEO-10445
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-11 09:29:17 +02:00
Mateusz Jablonski
e39994f525
fix: setup slm size based on gt system info when not set in capability table
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-09 15:21:35 +02:00
Mateusz Hoppe
c660784df2
fix: fallback path while creating drm context
...
- if create VM ioctl fails, fallback to query VM from created context
- in fallback path context's VM will not have flags applied
Related-To: NEO-7813
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2024-07-09 14:10:51 +02:00
Compute-Runtime-Validation
991640f558
Revert "fix: update slm size in capability table based on gt system info"
...
This reverts commit 47e064a686 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-07-09 03:31:42 +02:00
Bartosz Dunajski
9ea6b0322e
refactor: add missing PrintBOCreateDestroyResult prints
...
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2024-07-08 15:35:11 +02:00
Mateusz Jablonski
47e064a686
fix: update slm size in capability table based on gt system info
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-08 09:35:25 +02:00
Compute-Runtime-Validation
c679e7df30
Revert "fix: update slm size in capability table based on gt system info"
...
This reverts commit e624a4b0ab .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-07-06 03:40:49 +02:00
Mateusz Jablonski
e624a4b0ab
fix: update slm size in capability table based on gt system info
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-05 14:25:33 +02:00
Mateusz Jablonski
30fac27508
fix: setup slm size in hw info based on device blob
...
Related-To: NEO-8188, NEO-10774
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-04 15:25:13 +02:00
Maciej Bielski
bfaf2309e8
refactor: cleanup setupHardwareInfo
...
Use only `usDeviceID` and `usRevId` (known to be correct) instead of
declaring `hwInfo` pointer until the type of the latter is completely
initialized.
Put initialization of all `hwInfo` fields into `setupHardwareInfo()` for
consistency and make overrides explicit.
Related-To: NEO-9754
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com >
2024-07-04 08:54:57 +02:00
Bartosz Dunajski
bb21d25ed0
feature: initial support for creating media context
...
Related-To: NEO-11386
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com >
2024-07-03 12:23:31 +02:00
Maciej Bielski
5188ab8909
refactor: ioctlHelperXe::createDrmContext
...
Ease code reusability.
Related-To: NEO-9754
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com >
2024-07-03 10:52:00 +02:00
Maciej Bielski
f99846a108
feature: add Drm-specific memoryBanks computation logic
...
Related-To: NEO-9754
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com >
2024-07-03 10:01:39 +02:00
Brandon Yates
a432bdecc1
refactor: Reorganize xe debugger includes
...
Related-to: NEO-11365
Signed-off-by: Brandon Yates <brandon.yates@intel.com >
2024-07-02 12:28:11 +02:00
Filip Hazubski
6992cb8aeb
fix: Add experimental debug toggle to force 2M local memory size alignment
...
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2024-06-27 15:21:35 +02:00
Mateusz Jablonski
116c3ef771
refactor: remove not needed check
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-06-26 16:56:05 +02:00
Mateusz Jablonski
43ca7c082e
fix: query csr size in mb and slm size per dss from device blob
...
Related-To: NEO-8188, NEO-10774
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-06-26 14:42:18 +02:00
Wenbin Lu
e39d478acd
fix: read max SS & EU/SS from GuC system info blob
...
Related-To: NEO-9489
Signed-off-by: Wenbin Lu <wenbin.lu@intel.com >
2024-06-26 09:30:57 +02:00
Compute-Runtime-Validation
2800282bdb
Revert "fix: unblock xekmd recoverable pagefaults vmbind"
...
This reverts commit 5e144dae16 .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2024-06-25 18:09:25 +02:00