Kulkarni, Ashwin Kumar
44649faa0f
Defer Sysman Engine Module Initialization
...
With this change, init for sysman Engine API would not be done during zeInit.
init and thereby Engine API handle creation would be done only
when user explicitly requests to enumerate handles
using zesDeviceEnumEngineGroups
Related-To: LOCI-3127
Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com >
2022-08-26 08:41:22 +02:00
Zbigniew Zdanowicz
f656707fc0
Use hardware support flags for state compute mode state changes
...
Related-To: NEO-5019
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-08-25 18:46:37 +02:00
Michal Mrozek
40c73d5101
Simplify copy only command list submission.
...
- Remove not needed code.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com >
2022-08-25 15:30:59 +02:00
Mateusz Jablonski
5a20eccd59
Dont include i915 prelim headers directly
...
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-25 12:26:09 +02:00
Bellekallu Rajkiran
64626c0556
Remove gmock usage from PMT ULTs
...
Related-To: LOCI-3223
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com >
2022-08-25 12:25:45 +02:00
Bellekallu Rajkiran
13f1a61c34
Add prelim ULTs for performance
...
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com >
2022-08-25 12:25:30 +02:00
Artur Harasimiuk
d14e45c8e6
infra update
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2022-08-25 12:25:16 +02:00
Warchulski, Jaroslaw
cf7e7fbc4e
CMake: don't include shared/test/unit_test when shared tests are skipped
...
opencl/test/unit_test/gen9/hw_helper_tests_gen9.cpp -> unit_test/gen9
opencl/test/unit_test/gen11/hw_helper_tests_gen11.cpp -> unit_test/gen11
unit_test/device_binary_format/elf/elf_tests_data.h -> common/device_binary/elf
Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-08-25 10:48:37 +02:00
Igor Venevtsev
d40173e47a
L0Debug Win: Always generate module create/destroy events
...
We have to always generate module create/destroy events to give
debugger a chance to insert bp, read/write debuggee memory etc
even there is no debug data was generated. In this case ELF will not be
reported to debugger, just ISA GpuVA
Related-To: NEO-6723
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com >
2022-08-24 14:58:30 +02:00
Mateusz Hoppe
aa59ee94b2
L0Debug - close debug fd when DebugSession is destroyed
...
- after last tile DebugSession is detached, root DebugSession
must close fd
Related-To: NEO-5784
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2022-08-24 14:58:16 +02:00
Mateusz Jablonski
ca0686b404
Unify include directories for i915 headers
...
include i915_drm_prelim.h using relative path
Related-To: NEO-6852
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-24 14:58:01 +02:00
Dunajski, Bartosz
9763d42379
Fix type redefinition
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2022-08-24 09:45:13 +02:00
Mateusz Hoppe
4bd53be195
L0Debug - tile attach - add missing implementation
...
- interrupt / resume
- read/write registers
Related-To: NEO-5784
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2022-08-24 07:32:29 +02:00
Krystian Chmielewski
835174c076
Remove builtins duplication
...
Resolves: NEO-7064
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2022-08-24 07:27:46 +02:00
Compute-Runtime-Validation
a5b4a13452
Revert "Return error when image arg does not support media block commands"
...
This reverts commit 8388e6cf4a .
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com >
2022-08-24 06:23:22 +02:00
Dunajski, Bartosz
595cfebaef
Refactor PIPE_CONTROL programming
...
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com >
2022-08-23 13:55:25 +02:00
Maciej Plewka
8388e6cf4a
Return error when image arg does not support media block commands
...
Related-To: NEO-7168
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com >
2022-08-23 12:07:29 +02:00
Bari, Pratik
908ddd0c92
Removal of MOCK_METHODS from Sysman PCI API ULTs
...
The gmock macros in the PCI API ULTS have been replaced
Related-To: LOCI-3217
Signed-off-by: Bari, Pratik <pratik.bari@intel.com >
2022-08-19 12:23:48 +02:00
Kacper Nowak
f08790726c
L0: use mock zebin modules in ULTs
...
- Remove remaining dependencies on IGC (do not use precompiled binaries
in L0 ULTs).
Related-To: NEO-7131
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2022-08-19 09:08:04 +02:00
Mateusz Jablonski
7a586111f2
Don't program implicit args for builtin kernels
...
Related-To: HSD-18023305082
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-18 20:10:10 +02:00
Krystian Chmielewski
18adbed233
feat(zebin): add thread scheduling mode support
...
Resolves: NEO-7197
Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com >
2022-08-18 16:10:18 +02:00
Zbigniew Zdanowicz
0011368775
Add parameter to set surface state base address value
...
This change introduces capability to set surface state base address
when surface state heap or global base address are not available
Related-To: NEO-7187
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-08-18 15:36:43 +02:00
Mateusz Hoppe
61242205e0
L0Debug - tile attach implementation
...
- PROCESS ENTRY/EXIT events
- MODULE events
- DETACH event
- memory access
Related-To: NEO-5784
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2022-08-18 13:38:51 +02:00
Kacper Nowak
9d2df74fb9
L0: remove not needed test module
...
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2022-08-18 13:26:00 +02:00
Dominik Dabek
aa3a4765b9
Respect ForceAllResourcesUncached flag
...
Respect debug flag ForceAllResourcesUncached even when
Override L1 Policy flags are also set
Related-To: NEO-7003
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-08-18 11:46:33 +02:00
Joshua Santosh Ranjan
b81366f741
Initial draft to implement Fabric Vertex Apis using Driver Handle Information
...
Implement the below APIs
- zeFabricVertexGetExp
- zeFabricVertexGetSubVerticesExp
- zeFabricVertexGetPropertiesExp
- zeFabricVertexGetDeviceExp
Related-To: LOCI-3332
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2022-08-18 08:34:04 +02:00
Neil R Spruit
3a962a2d52
Fix L0 IPC Event Black Box Test for Host IPC Events
...
Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com >
2022-08-18 08:26:44 +02:00
Zbigniew Zdanowicz
acac5ea0d5
Use correct engine group type when programming state base address
...
Command lists and their helper classes should use engine group type
assigned to the particular command list to check if it is RCS group
and not use default CSR class assigned to the device, since default
and current in command list might be different.
Related-To: NEO-5019
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-08-17 20:38:23 +02:00
Wrobel, Patryk
dda5b19859
Adjust the implementation of strncpy_s() for Linux
...
This change:
- prevents writing memory out of the range of the destination buffer
- prevents calling strlen() with non-null terminated c-string
- corrects the logic, which validates passed range to proceed
when real length fits the destination buffer
Related-To: NEO-7264
Signed-off-by: Wrobel, Patryk <patryk.wrobel@intel.com >
2022-08-17 18:37:46 +02:00
Warchulski, Jaroslaw
260a324a6f
Move files between shared/test/common and /unit_test (xe_*_core, page_fault...)
...
common/xe_hpc_core/test_preemption_xe_hpc_core -> unit_test/xe_hpc_core
common/xe_hpg_core/excludes_xe_hpg_core -> unit_test/xe_hpg_core
common/xe_hpg_core/dg2/excludes_dg2 -> unit_test/xe_hpg_core/dg2
common/xe_hpg_core/test_preemption_xe_hpg_core -> unit_test/xe_hpg_core
unit_test/base_ult_config_listener.cpp -> common
unit_test/base_ult_config_listener.h -> common
unit_test/test_stats.h -> common
unit_test/test_configuration.h -> common
unit_test/page_fault_manager/cpu_page_fault_manager_tests.h -> common/fixtures
unit_test/page_fault_manager/mock_cpu_page_fault_manager.h -> common/mocks
Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-08-17 16:17:00 +02:00
Kacper Nowak
497e5a4765
Zebin: Create mock zebin module for L0 common test module
...
Signed-off-by: Kacper Nowak <kacper.nowak@intel.com >
2022-08-17 15:12:49 +02:00
Mateusz Jablonski
8da78d3ed4
Correct method naming in mock metrics
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-17 14:00:33 +02:00
Rafal Maziejuk
d36a383a84
Delete redundant matchers and use common matchers instead
...
Signed-off-by: Rafal Maziejuk <rafal.maziejuk@intel.com >
2022-08-17 13:54:15 +02:00
Zbigniew Zdanowicz
6c38b36251
Unify getting state base address command space from command buffer
...
Related-To: NEO-5019
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-08-17 11:49:02 +02:00
Zbigniew Zdanowicz
ceb9d81f87
Add struct argument for input/output in StateBaseAddressHelper
...
This refactor makes future interface changes easier
Related-To: NEO-5019
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com >
2022-08-17 10:28:49 +02:00
Cetnerowski, Adam
9b1afe4067
Minor: Add missing override
...
Signed-off-by: Cetnerowski, Adam <adam.cetnerowski@intel.com >
2022-08-17 10:00:02 +02:00
Neil R Spruit
6ab8480ade
Add Power Saving Hint & Cache Reservation to Extensions Supported
...
Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com >
2022-08-16 10:49:06 +02:00
Mateusz Hoppe
2a5bca380d
L0Debug - tile debug session - initial changes
...
Related-To: NEO-5784
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2022-08-16 10:44:12 +02:00
Joshua Santosh Ranjan
a6a91b2cf5
Fix kernel timestamp overflow condition
...
This patch fixes the case when the kernel or
context end timestamp overflows.
Related-To: LOCI-3140
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2022-08-16 09:07:49 +02:00
Raiyan Latif
996f6e4383
Initialize default values for Device P2P Bandwidth Properties
...
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com >
2022-08-16 08:36:39 +02:00
Joshua Santosh Ranjan
cf67f1aa8b
L0 Metrics: Fix bytes to be read to be a multiple of raw report size
...
If raw report size is not a multiple of OaBufferSize, then
make sure the bytes to be read (by zetMetricStreamerReadData)
is always a multiple of raw report size.
Related-To: LOCI-3335
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2022-08-16 06:16:27 +02:00
Neil R Spruit
0101e80b00
Verify L0 Image Format Support for SPIRv
...
- Check that the Image Format is valid for the image
argument to a SPIRv module. If the Image is invalid
return ZE_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT.
Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com >
2022-08-12 17:57:17 +02:00
Mateusz Jablonski
ab76a39691
Correct L0 fixture methods name to meet clang-tidy requirements
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-12 14:44:52 +02:00
Mateusz Jablonski
e66bbb54bc
Correct fixture methods name to meet clang-tidy requirements
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-12 13:12:38 +02:00
Mateusz Jablonski
6a46e8f0ca
Correct method names in device and module fixtures
...
correct naming in derived classes
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-12 10:40:56 +02:00
Yates, Brandon
dbf955c1f2
L0 win debugger - implement read elf
...
Signed-off-by: Yates, Brandon <brandon.yates@intel.com >
2022-08-11 16:16:21 +02:00
Dominik Dabek
0263ec0d84
Add test kernel for indirect allocations
...
Add kernel for testing indirect allocation
address getting passed by value.
Needed for future commit.
Related-To: NEO-6597
Signed-off-by: Dominik Dabek <dominik.dabek@intel.com >
2022-08-11 14:00:06 +02:00
Mateusz Hoppe
bc605f413c
L0Debug - split acking general events from isa events
...
- allow to pass deviceIndex when acking isa events,
used with per-tile isa
Related-To: NEO-5784
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com >
2022-08-11 13:11:55 +02:00
Mateusz Jablonski
e6fc458d4b
Add a struct for test fixtures with correct method naming convention
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2022-08-11 12:55:52 +02:00
Warchulski, Jaroslaw
aed890a219
Move files between shared/test/unit_test and /common (fixtures, helpers, mocks)
...
unit_test/fixtures/mock_aub_center_fixture.h -> common/fixtures
unit_test/helpers/raii_hw_helper.h -> common/helpers
unit_test/helpers/static_size3.h -> common/helpers
unit_test/helpers/ult_limits.h -> common/helpers
unit_test/memory_manager/mock_prefetch_manager.h -> common/memory_manager
common/mocks/mock_aub_stream.h -> unit_test/mocks
common/mocks/mock_csr_simulated_common_hw.h -> unit_test/mocks
common/mocks/mock_direct_submission_diagnostic_collector.h -> unit_test/mocks
common/mocks/mock_lrca_helper.h -> unit_test/mocks
common/mocks/mock_tbx_stream.h -> unit_test/mocks
common/mocks/linux/mock_os_context_linux.h -> unit_test/mocks/linux
common/mocks/windows/mock_wddm_direct_submission.h -> unit_test/mocks/windows
Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com >
2022-08-11 12:53:19 +02:00