Commit Graph

746 Commits

Author SHA1 Message Date
Mateusz Hoppe
92893a5101 L0Debug - add support for mirrored isa heaps
- allow tileInstanced ISA while debugging

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-09-20 19:32:00 +02:00
Mayank Raghuwanshi
1e14086405 Add support for retrieving maxbandwidth for different PVC stepings
Related-To: LOCI-3416

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-09-16 16:36:45 +02:00
Mayank Raghuwanshi
0d5f3351df Add support for setting default values for min and max frquency
Related-To: LOCI-3170

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-09-16 16:15:54 +02:00
Bellekallu Rajkiran
de06d91db8 Sysman: Fix few memory leaks
Invoking FwDeviceInit from several modules without closing
igsc device result in memory leak.

Add support to invoke FwDeviceInit only during creation of fw util
interface.

Related-To: LOCI-3204

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-09-14 16:16:30 +02:00
Vilvaraj, T J Vivek
9e653803e5 sysman: add addtional code for firmware functionality.
Add support for the following functionalities:
diagnostics
ecc
memory ras

Related-To: LOCI-3369

Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
2022-09-13 22:03:43 +02:00
Bellekallu Rajkiran
47aaac16a6 Add pmt offset mappings for new revision
Related-To: LOCI-3410

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-09-13 08:30:05 +02:00
Mateusz Hoppe
dd7967a05d L0Debug - account for device bitfield
- converting physical/api thread ids should account for
devicebitfield
- debug events for ISA filtered - skip events for not
relevant tiles

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-09-09 13:03:06 +02:00
Mateusz Hoppe
eb0273d6ff L0Debug - add debug message when ZE_AFFINITY_MASK is used
Related-To: NEO-6980

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-09-09 00:33:37 +02:00
Bellekallu Rajkiran
50f9564a18 Add support to test device reset for specific device
Related-To: LOCI-3392

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-09-06 17:12:25 +02:00
Bellekallu Rajkiran
ceff16084d Fix temperature handle enumeration issue on single tile devices
Add platform check to read pmt offsets corresponding to
tile instead of root node for single tile devices.

Related-To: LOCI-2575

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-09-06 10:57:35 +02:00
Yates, Brandon
12c7f32679 L0 Win Debugger - implement thread control
Resolves: NEO-6722

Signed-off-by: Yates, Brandon <brandon.yates@intel.com>
Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
2022-09-05 19:26:14 +02:00
Mateusz Hoppe
992e8e7c96 L0Debug - fix getISAVMHandle()
- use correct address form when searching Isa map

Resolves: NEO-7312

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-09-05 16:10:13 +02:00
Jitendra Sharma
3212a71760 Debugger L0 Win: Attention event handling from UMD
Related-To: NEO-7261

Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2022-09-02 18:22:41 +02:00
Puneeth Kumar Reddy D
dcbf5150dc Modify zello_sysman pci properties logging
Add logging of PCI properties to decimal or hex
based on the type of the property.

Related-To: LOCI-3378

Signed-off-by: Puneeth Kumar Reddy D <puneeth.kumar.reddy.devarinti@intel.com>
2022-09-01 10:50:19 +02:00
Mateusz Hoppe
ee8af85341 L0Debug fixes for multi tile devices
- notify module allocation for (sub)device used to create module,
makeResident called within (sub)device contexts
- access ISA with vmHandle specific to device index

Related-To: NEO-5784

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-08-31 10:58:28 +02:00
Mateusz Hoppe
e6c0d2d1e8 L0Debug - store and restore events for tile session
- keep track of all loaded modules
- keep track of process entry/exit state
- restore valid events on attach
- acknowledge/clean events on detach

Related-To: NEO-5784

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-08-29 15:35:38 +02:00
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
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
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
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
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
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
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
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
Cetnerowski, Adam
9b1afe4067 Minor: Add missing override
Signed-off-by: Cetnerowski, Adam <adam.cetnerowski@intel.com>
2022-08-17 10:00:02 +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
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
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
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
a6c1d9578e Move files between shared/test/common/helpers and shared/test/unit_test/helpersi
unit_test/helpers/cmd_buffer_validator.h -> common/helpers
unit_test/helpers/gtest_helpers.h -> common/helpers
common/helpers/blit_commands_helper_tests.inl -> unit_test/helpers
common/helpers/simd_helper_tests.inl -> unit_test/helpers
common/helpers/simd_helper_tests_pvc_and_later.inl -> unit_test/helpers
common/helpers/state_base_address_tests.h -> unit_test/helpers

Related-To: NEO-6524
Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
2022-08-10 15:23:12 +02:00
Joshua Santosh Ranjan
aa27a4c3ff Add Power and Frequency Overhead verification to zello_metrics
Related-To: LOCI-3305

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2022-08-10 08:09:46 +02:00
Bellekallu Rajkiran
fb0d2b0acd Add Prelim ULTs for frequency
Remove gmock usage from frequency ULTs.

Related-To: LOCI-3214

Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-08-10 08:01:13 +02:00
Bellekallu Rajkiran
d1fb4011bd Remove gmock usage from PMU
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com>
2022-08-10 07:59:17 +02:00
Mateusz Hoppe
3a2d3b9274 L0Debug refactor - move eventsToAck out from ClientConnection
- events to ack are unrelated to client handle

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-08-09 19:52:17 +02:00
Mateusz Hoppe
869768a01a L0Debug refactor - make memory access steps clear and simple
- split isa, elf and default mem access to separate steps

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-08-09 18:04:38 +02:00
Mateusz Jablonski
daf1bd4501 Refactor: pass properties by const reference instead of by value
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-08-09 15:55:07 +02:00
Mateusz Jablonski
c3d40c210f ULT refactor: remove i915 header dependency from drm_mock.h/drm_query_mock.h
Related-To: NEO-6999
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-08-09 15:04:22 +02:00
Mateusz Hoppe
52133e61ce L0Debug - per tile isa and modules in debug session
Related-To: NEO-5784

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2022-08-08 15:46:56 +02:00
Mayank Raghuwanshi
f833dc0291 Add sysman Firmware support for windows
Related-To: LOCI-3226

Signed-off-by: Mayank Raghuwanshi <mayank.raghuwanshi@intel.com>
2022-08-05 13:22:11 +02:00