shubham kumar
739e781fd8
fix(sysman): Fix sysman APIs taking incorrect path
...
Related-To: NEO-12291
Signed-off-by: shubham kumar <shubham.kumar@intel.com >
2024-08-12 21:08:09 +02:00
shubham kumar
0002eb3fcc
feature: adding eu stall support on windows
...
Related-To: NEO-12174
Signed-off-by: shubham kumar <shubham.kumar@intel.com >
2024-08-06 06:47:11 +02:00
Joshua Santosh Ranjan
43b81637df
fix: correctly handle error return paths in getConcurrentMetricGroups
...
fix the size used to copy concurrent groups
Related-To: NEO-11382
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2024-08-02 11:02:12 +02:00
Kulkarni, Ashwin Kumar
cf4ef679c9
feature(sysman): supports deviceId and vendorId in zesInit path
...
Related-To: NEO-10914
Signed-off-by: Kulkarni, Ashwin Kumar <ashwin.kumar.kulkarni@intel.com >
2024-07-30 09:48:03 +02:00
Wenbin Lu
e2f1735cc5
test: use realistic values in topology query tests
...
Related-To: NEO-9489
Signed-off-by: Wenbin Lu <wenbin.lu@intel.com >
2024-07-29 16:34:22 +02:00
Mateusz Jablonski
85df385582
fix: ensure system info is queried before querying topology
...
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-26 16:03:59 +02:00
Mateusz Jablonski
0cdfa882eb
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
then, query memory info
then, query engine info as it depends on memory info
then, query topology as it depends on engine info
Related-To: NEO-12073
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-26 12:20:40 +02:00
Mateusz Jablonski
e24acc6155
fix: ensure memory info is queried before querying engine info
...
initialization of engine info relies on memory info data
Related-To: NEO-12073
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-26 09:28:50 +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
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
Brandon Yates
63478808a7
feature: implement new registers for debugger
...
Related-to: NEO-8396
Signed-off-by: Brandon Yates <brandon.yates@intel.com >
2024-07-15 09:44:46 +02:00
shubham kumar
e78c8edcf3
refactor: prework for adding eu stall support on windows
...
Related-To: NEO-9492
Signed-off-by: shubham kumar <shubham.kumar@intel.com >
2024-07-12 16:27:24 +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
Joshua Santosh Ranjan
99e8cb7b70
test: update zello_metrics for programmable apis
...
Related-To: NEO-11847
Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com >
2024-07-10 08:54:01 +02:00
Maciej Bielski
005b273b1e
test: stop abusing ctors in DrmMockCustom and derived types
...
Calling virtual functions from within constructors is incorrect, the
virtualization mechanism does not work until a constructor completes.
So, instead of performing many operations in constructors, make them
small and use static `create()` methods to construct the object properly
and only then perform additional setup.
Mocks are a prominent example how such practice degrades the code.
A function called from a constructor is basically unmockable. Despite
being overriden by derived type (to alter the execution path as per
needs of a given test-case) the parent versions are always called.
This was making test development more and more painful as at some point
there is no hack to compensate for the lack of standard mechanism.
Related-To: NEO-9754
Signed-off-by: Maciej Bielski <maciej.bielski@intel.com >
2024-07-10 08:34:09 +02:00
Ezhilsivam Shanmugam
ae49a4f1fd
fix: Implemented Get Fan Config to retrieve Default Fan Table
...
Related-To: NEO-11667
Signed-off-by: Ezhilsivam Shanmugam <ezhilsivam.shanmugam@intel.com >
2024-07-10 08:14:58 +02:00
Mateusz Jablonski
778645c11e
feature: add initial support for Xe2 platforms
...
Related-To: NEO-8188, NEO-10774
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-07-09 10:30:27 +02:00
shubham kumar
e5036ce9f0
feature(sysman): windows add support for card and package power
...
Related-To: NEO-11820
Signed-off-by: shubham kumar <shubham.kumar@intel.com >
2024-07-02 12:59:30 +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
Brandon Yates
ab92499b56
feature: Add support for V3 state save header
...
Related-to: NEO-8396
Signed-off-by: Brandon Yates <brandon.yates@intel.com >
2024-06-27 18:46:03 +02:00
Bellekallu Rajkiran
be2cd522af
fix(sysman): Add WA to provide CPU timestamp for engine stats
...
Related-To: NEO-10551
Signed-off-by: Bellekallu Rajkiran <bellekallu.rajkiran@intel.com >
2024-06-26 02:42:35 +02:00
Mateusz Jablonski
66d4d141e1
fix: extract common logic for filling default gt system info
...
gt system info should be queried from KMD
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com >
2024-06-25 20:21:57 +02:00
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