Joshua Santosh Ranjan
c1ba425631
refactor: avoid multiple inclusions
...
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2024-06-24 11:18:02 +02:00
Filip Hazubski
2f6eaf149a
fix: Update SIP kernel initialization logic
...
Initialize SIP kernel when shared device is being initialized
instead of api-specific device.
Initialize debugger when shared device is being initialized
instead of during platform or driver initialization.
Add missing makeResident calls for SIP kernel in heapless paths.
Related-To: HSD-18038645398, HSD-18038819112
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2024-06-20 18:30:46 +02:00
Filip Hazubski
0d61860af6
fix: Reset builtins pointer after its resources are freed
...
Add resetBuiltins helper function to MockRootDeviceEnvironment.
Update tests to use the new function whenever builtins unique pointer
is reset to ensure that sip kernels are properly freed.
Related-To: HSD-18038645398, HSD-18038819112
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2024-06-20 10:49:56 +02:00
shubham kumar
2cde4a3d9d
test: zello_metrics support on windows
...
Related-To: NEO-11629
Signed-off-by: shubham kumar <shubham.kumar@intel.com >
2024-06-18 10:39:13 +02:00
Artur Harasimiuk
8d28f8d90e
fix: adjust SysCalls::write signature to match stdlib
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2024-06-14 16:48:12 +02:00
Joshua Santosh Ranjan
0dc297cdc3
refactor: add support to query root device metric
...
Related-To: NEO-11046
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2024-06-12 16:18:10 +02:00
Neil R. Spruit
dd1a63a365
fix: Init Metric Sample Count to Zero during constructor
...
Related-To: NEO-11696
Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com >
2024-06-10 23:30:42 +02:00
Mateusz Jablonski
af816b5729
build: explicitly enable symbols export from executable targets
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-06-07 17:51:45 +02:00
Joshua Santosh Ranjan
7c3fbc0664
refactor: add capability to mock return value for metricDestroy
...
Related-To: NEO-11045
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2024-06-07 12:05:59 +02:00
Brandon Yates
cb6e63ed05
feature: Add elapsed time to debugger logs
...
Related-to: NEO-11469
Signed-off-by: Brandon Yates <brandon.yates@intel.com >
2024-06-07 01:14:14 +02:00
Filip Hazubski
031609e638
ci: update config files
...
Add reviewer bellekallu.rajkiran@intel.com to level_zero/sysman config
Add reviewer bellekallu.rajkiran@intel.com to level_zero/tools config
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com >
2024-06-03 22:21:25 +02:00
Neil R. Spruit
960664f352
feature: Enable EuStall Metrics with xeKMD
...
Related-To: NEO-9645
Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com >
2024-05-31 11:04:12 +02:00
Aravind Gopalakrishnan
0eaed66334
feature: Append recorded command list into immediate (1/N)
...
Related-To: NEO-10356
- Refactoring wait on event to skip flush when needed
- Refactor execute call interface to accept linear stream
- Program wait on events in new interface
Signed-off-by: Aravind Gopalakrishnan <aravind.gopalakrishnan@intel.com >
2024-05-29 05:59:32 +02:00
Mateusz Jablonski
55fad237b8
test: update gtest API usage
...
use *_TEST_SUITE* instead of *_TEST_CASE*
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-05-28 16:20:06 +02:00
Maciej Bielski
a80dfcc64c
fix: make EngineInfo::engines protected
...
Make it accessible by respective getter.
Related-To: NEO-9754
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com >
2024-05-22 16:30:38 +02:00
Brandon Yates
e01d34741d
refactor(debugger): Locally allocate euControl variable in thread ctrl
...
Avoids possible unique_ptr memory escape after free
Signed-off-by: Brandon Yates <brandon.yates@intel.com >
2024-05-20 11:38:52 +02:00
Brandon Yates
7dfdbc33eb
fix(debugger): Send pf event to correct tile session
...
Related-to: GSD-9128
Signed-off-by: Brandon Yates <brandon.yates@intel.com >
2024-05-17 15:29:55 +02:00
Brandon Yates
a0cb7b0a14
fix(debugger): Add page fault address to L0 PF event
...
Related-to: GSD-9110
Signed-off-by: Brandon Yates <brandon.yates@intel.com >
2024-05-15 18:20:43 +02:00
Bari, Pratik
6b04cd4a1e
fix: Release the Dummy Allocation before Root Device Environment
...
Related-To: GSD-6398, GSD-9027
Signed-off-by: Bari, Pratik <pratik.bari@intel.com >
2024-05-15 18:08:41 +02:00
Brandon Yates
80a5d6255e
feature(debugger): Discard stale ATT events
...
Related-to: NEO-10922
Signed-off-by: Brandon Yates <brandon.yates@intel.com >
2024-05-15 15:46:26 +02:00
shubham kumar
05406722b9
feature(sysman): Add pciGetStats support in win
...
Related-To: NEO-10662
Signed-off-by: shubham kumar <shubham.kumar@intel.com >
2024-05-10 18:22:45 +02:00
Jitendra Sharma
349a86a8dc
fix: Read SR register correctly for large GRF detection.
...
Related-To: NEO-11377
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2024-05-08 22:03:00 +02:00
Jitendra Sharma
8a60257aac
fix: Implement debug area read in Xe by reusing I915 logic
...
Related-To: NEO-11197
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2024-05-07 20:19:20 +02:00
Katarzyna Cencelewska
e9f7df6ae6
refactor: create helper for maxPtssIndex
...
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com >
2024-05-07 12:47:52 +02:00
Joshua Santosh Ranjan
edd675b008
feature: support creating multiple metric groups from metrics
...
This replaces the existing single metric group creation api
Related-To: NEO-11186
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2024-05-02 21:09:29 +02:00
Joshua Santosh Ranjan
c57534eb67
fix: detect prelim availability in sysman engine module
...
Related-To: NEO-9983
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2024-04-30 23:21:41 +02:00
Jitendra Sharma
06935f87d7
fix: Eudebug: read one event for each poll in internal event thread
...
Related-To: NEO-11188
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2024-04-30 19:55:31 +02:00
Jitendra Sharma
74f8eedf1e
refactor: print threadSlotOffset and srMagicOffset
...
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2024-04-30 19:51:20 +02:00
Brandon Yates
946b8b8c4b
fix(debugger): Dont use thread to get lrc handle for STOPPED command
...
Related-to: NEO-11250
Signed-off-by: Brandon Yates <brandon.yates@intel.com >
2024-04-30 18:08:13 +02:00
Brandon Yates
b2a382c4bc
fix: set debugger client handle at vm open event (xe)
...
Related-to: NEO-10922
Signed-off-by: Brandon Yates <brandon.yates@intel.com >
2024-04-29 14:56:14 +02:00
Artur Harasimiuk
cbc868c4ed
refactor: add mock_aubstream
...
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com >
2024-04-25 20:08:30 +02:00
Jitendra Sharma
c5a76cac3a
fix: Reduce code duplicity by reusing closeConnection
...
Related-To: NEO-11188
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2024-04-23 08:34:04 +02:00
Mateusz Jablonski
704ea18ce3
refactor: remove not needed code
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-04-18 15:38:22 +02:00
Brandon Yates
1db2bd82c1
fix: Fix vm unbind processing in dbgUMD (Xe)
...
Related-to: NEO-8407
Signed-off-by: Brandon Yates <brandon.yates@intel.com >
2024-04-18 13:29:21 +02:00
Jemale Lockett
79f8993220
refactor: move GPR15 to separate debugger context
...
Signed-off-by: Jemale Lockett <jemale.lockett@intel.com >
2024-04-18 10:42:23 +02:00
Joshua Santosh Ranjan
e0a580fce7
feature: Support for concurrent groups
...
Related-To: NEO-10306
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2024-04-18 09:41:12 +02:00
Jitendra Sharma
19130dda29
fix: modify vmBind event handling conditions
...
handleVmBind only if all the num_binds and num_extension events
and UFENCE events have arrived.
Related-To: NEO-11083
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2024-04-09 09:38:24 +02:00
Bari, Pratik
6d7e3dc5a2
fix: Changes in the Device Reset Implementation
...
Prior to the return of object in use error, the device is bind and init
again
Related-To: NEO-10946
Signed-off-by: Bari, Pratik <pratik.bari@intel.com >
2024-04-02 17:33:40 +02:00
Jitendra Sharma
27c3a4753d
fix: Add missing methods in asyncThreadFunction
...
Add generateEventsAndResumeStoppedThreads() and sendInterrupts()
in asyncThreadFunction().
Related-To: NEO-11014
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2024-04-02 14:48:17 +02:00
Jitendra Sharma
8ef6cdbabd
fix: Send module_load event after processing all events in vm_bind
...
Related-To: NEO-8407
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2024-04-02 11:17:58 +02:00
Mateusz Jablonski
089927406b
refactor: move iaf headers to separate folder
...
add documentation about sources of linux kernel headers
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-29 12:11:51 +01:00
Mateusz Jablonski
bcaa62bed3
build: refactor linux kernel headers
...
Add cmake flags to provide path to headers to drm / i915 /i915 prelim / xe
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-28 14:48:09 +01:00
Jitendra Sharma
96abe38c6d
feature: Implement getElfSize and getElfData methods for XE eudebug
...
Related-To: NEO-8407
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2024-03-28 12:32:18 +01:00
Mateusz Jablonski
1f96e6e251
fix: update uapi headers version to 6.8.1
...
source of files: https://git.kernel.org/stable/h/v6.8.1
Related-To: NEO-10496
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-26 16:08:32 +01:00
Jitendra Sharma
f0bdd5765b
refactor: share acknowledgeEvent code for I915 and XE
...
Also remove not needed resumeImp and interruptImp methods
from level_zero/tools/source/debug/linux/xe/debug_session.h
The correct implementation is in DebugSessionLinux and
the overrides in DebugSessionLinuxXe are not needed
Related-To: NEO-8407
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2024-03-22 18:45:58 +01:00
Jitendra Sharma
b8c27ddb20
feature: Implement VM_BIND EU debug event for XE
...
Related-To: NEO-8407
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com >
2024-03-22 15:02:49 +01:00
Brandon Yates
df54d67f40
feature: Implement SBA and module debug access for xe debugger
...
Reuse code from i915 implementation for accesing SBA, module debug,
and context save area
Related-to: NEO-9161
Signed-off-by: Brandon Yates <brandon.yates@intel.com >
2024-03-22 10:50:02 +01:00
Brandon Yates
7f8bac7703
fix: Remove Xe Debug stubs for read/writeMemory
...
The correct implementation is in DebugSessionLinux and
the overrides in DebugSessionLinuxXe are not needed
Related-to: NEO-9669
Signed-off-by: Brandon Yates <brandon.yates@intel.com >
2024-03-20 08:43:28 +01:00
Joshua Santosh Ranjan
06fcdd28f3
feature: add debug flag for metrics logs
...
Related-To: NEO-10125
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2024-03-19 12:33:26 +01:00
Mateusz Jablonski
a2742492ab
feature: enable xe drm detection by default
...
driver is built with xe drm support by default
added cmake flag to control xe eu debug API support
NEO_ENABLE_XE_EU_DEBUG_SUPPORT
This flag is disabled by default and uapi-eu-debug headers are not
needed for driver compilation as these headers are not a part of
upstream kernel yet.
Related-To: NEO-10780
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-03-19 08:47:13 +01:00