Commit Graph

1014 Commits

Author SHA1 Message Date
Mateusz Jablonski
86ecbf3507 fix: explicitly report unhandled event exec queue placements
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-12-16 13:11:39 +01:00
Mateusz Jablonski
8f7bacdd95 feature: add eudebug interface class
eudebug interface is now hidden under EuDebugInterface class
shared code uses generic object and param values

layout of structs is guarded by static asserts

eudebug support is guarded by cmake flags:
- NEO_ENABLE_XE_EU_DEBUG_SUPPORT - enables eudebug in general
- NEO_USE_XE_EU_DEBUG_EXP_UPSTREAM - registers exp upstream uAPI support
- NEO_ENABLE_XE_PRELIM_DETECTION - registers prelim uAPI support

This way we can support two different xe-eudebug interfaces within
single binary.

In unit tests there is mock eudebug interface enabled (even if no
eudebug support is enabled by cmake flag).

Related-To: NEO-13472
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-12-13 17:07:12 +01:00
Mateusz Hoppe
0589a70dc7 feature(sysman): reinitialize gfxPartition on reset
Related-To: NEO-13203

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2024-12-12 16:27:25 +01:00
Filip Hazubski
7f412c77a2 fix: Explicitly delete unused functions
Explicitly delete unused functions of CheckIfExitCalled
and VfManagementHandleContext. Comply with the rule of five.

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2024-12-10 10:10:28 +01:00
shubham kumar
69f81d5d57 fix: Check for root device flag in multi-device usecase
Related-To: NEO-12381

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-12-03 07:03:39 +01:00
Pratik Bari
9b952c08c7 feature: Add VF Engine Utilization API implementation
Related-To: NEO-11202

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2024-11-27 16:26:55 +01:00
shubham kumar
8c18e94ea0 fix: Correct notifyNReports behaviour on Linux
Related-To: NEO-8752

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-11-26 05:33:43 +01:00
Jemale Lockett
0426603896 fix: Add module debug area to isamap and mirror for xe
Resolves: NEO-12685

Signed-off-by: Jemale Lockett <jemale.lockett@intel.com>
2024-11-22 21:04:13 +01:00
Jemale Lockett
ef8fefec28 fix: correct check for interrupt sent in tile debug sessions
Resolves: NEO-12222
Signed-off-by: Jemale Lockett <jemale.lockett@intel.com>
2024-11-20 23:48:10 +01:00
Pratik Bari
4ac4317c00 fix: Changes in the Engine Module
Added the new UAPI macro in the Engine Module to fetch the config of
the total ticks.

Related-To: NEO-13281

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2024-11-20 09:59:14 +01:00
Joshua Santosh Ranjan
f589408848 feature: update metrics for v1.11
Related-To: NEO-12597

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2024-11-19 02:02:46 +01:00
Jitendra Sharma
428e2132b0 fix: Gracefully handle case when SIP version header is greater than 3
Related-To: NEO-7988
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2024-11-15 17:38:24 +01:00
Pratik Bari
31ca28d5bf feature(sysman): VF telemetry APIs for memory utilization
Related-To: NEO-11337

Signed-off-by: Pratik Bari <pratik.bari@intel.com>
2024-11-14 10:12:27 +01:00
Joshua Santosh Ranjan
d294d71f95 feature: make programmable metrics enabled by default
Related-To: NEO-13011

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2024-11-13 09:42:23 +01:00
Brandon Yates
aaf2e997d3 fix: Set xe debugger clientHandle when metadata is rx'd
Xe debugger will receive one CLIENT_OPEN event per driver open. In
some use cases their will be multiple opens. We are only interested in
the open from the UMD under debug. Setting clientHandle when metadata is
received will filter out unneeded CLIENT_OPEN events

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2024-11-05 13:44:59 +01:00
Oskar Hubert Weber
fd45b2883d fix: neo ULT build with optimizations disabled 1/n
Related-To: NEO-8116

Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
2024-10-28 15:38:28 +01:00
Harini Kumaran
421a7bd771 refactor: Move all constants to L0 namespace in level_zero/tools
Related-To: NEO-12769

- Use inline constexpr for declaring global variables
- Avoid using Macros
- Use string_view type instead of std::string

Signed-off-by: Harini Kumaran <harini.kumaran@intel.com>
2024-10-28 09:19:44 +01:00
Bartosz Dunajski
2d6fb1af4b fix: in-order relaxed ordering handling for signalEvent
Related-To: NEO-13082

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-10-25 15:30:33 +02:00
Joshua Santosh Ranjan
c9e48d0d2b refactor: support oa programmable metric group
Related-To: NEO-12184


Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2024-10-24 08:35:12 +02:00
Jitendra Sharma
171f1e27a3 fix: Add debug variables for configurable timeouts in debugger
Related-To: NEO-13046
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2024-10-23 10:30:03 +02:00
Robert Krzemień
fe1fd22371 fix: stop direct submission before oa configuration activation
Related-To: NEO-12778
Signed-off-by: Robert Krzemień <robert.krzemien@intel.com>
2024-10-22 14:26:44 +02:00
Jitendra Sharma
26709ba124 fix: Implement polling of SW FIFO
Related-To: NEO-12955
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2024-10-21 07:19:42 +02:00
Mateusz Jablonski
4154e6666b fix: correct loading L0 loader functions
- don't load ze_loader.dll from file system
- to perform self-open on Windows use getModuleHandleA with proper module name
- don't free library loaded with getModuleHandleA
- as loader may be not available during runtime teardown:
- load translate handle function during global setup
- load setDriverTeardown function during global teardown
- when loader is not available during teardown, unset translate handle
function

Related-To: GSD-10147

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-10-17 15:39:20 +02:00
Compute-Runtime-Validation
f117b5fb68 Revert "fix: correct loading L0 loader functions"
This reverts commit 9c7b3c5e19.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-10-17 08:20:19 +02:00
Mateusz Jablonski
9c7b3c5e19 fix: correct loading L0 loader functions
on Windows use getModuleHandleA with proper module name
don't load ze_loader.dll from file system

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-10-16 19:53:05 +02:00
Brandon Yates
6de2f1a9c9 fix: Remove stopped Threads query
Related-to: NEO-12929

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2024-10-15 23:23:11 +02:00
Jitendra Sharma
9bd4878841 feature: update GRF register implementation
Related-To: NEO-8314
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2024-10-15 13:47:34 +02:00
Oskar Hubert Weber
8527779778 fix: running Blender with SYSMAN enabled on Linux
Related-To: NEO-11618

Signed-off-by: Oskar Hubert Weber <oskar.hubert.weber@intel.com>
2024-10-14 12:36:08 +02:00
Artur Harasimiuk
00aedcaed4 refactor: add NOLINT for pending problems
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2024-10-10 11:46:35 +02:00
Mateusz Jablonski
8fbe873e1b build: correct setting for i915/xe prelim setting in package scripts
rename i915 flag to uppercase, for consistency
disable i915 / xe prelim by default in package scripts

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-10-09 15:55:59 +02:00
Jitendra Sharma
a111c18fb1 refactor: Add timestamp to all debugger log
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2024-10-08 18:12:20 +02:00
Matias Cabral
6ddb550e05 feature: improve metrics debug messages
Resolves: NEO-12640

Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
2024-10-07 17:58:41 +02:00
Brandon Yates
be295ef9a0 fix: Fix debugger module load before eventsToAck updated
This fixes an uncommon race condition in processing vmBinds in debugger
where occasionally a VMBind may go unacked.

Related-to: NEO-12866

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2024-10-04 10:21:12 +02:00
Brandon Yates
013c49db02 fix: change getBindlessDebugSipKernel to also get heapless sip
Rename function to getDebugSipKernel and select either bindless
or heapless depending on mode

Related-to: NEO-8396

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2024-10-03 20:47:40 +02:00
Brandon Yates
9e03c52e71 refactor: Make page fault event handling generic for xe/i915
Related-to: NEO-10134

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
2024-10-01 09:52:39 +02:00
Filip Hazubski
72cf384c7d refactor: Fix typo
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2024-10-01 09:31:02 +02:00
Jitendra Sharma
733ca5ac28 fix: Write tail index even for fifo wrap around case
Related-To: NEO-7990
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2024-09-30 18:19:28 +02:00
shubham kumar
f402ce0f60 feature: Add support for OA buffer overflow
Related-To: NEO-8685

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-09-28 00:38:47 +02:00
Matias Cabral
e7bb9ccd8a feature: add multi device metric class
Resolves: NEO-11426


Signed-off-by: Matias Cabral <matias.a.cabral@intel.com>
2024-09-27 17:46:45 +02:00
Jitendra Sharma
2ed2cb43db fix: Read fifo_head from state save area header correctly
Currently we are reading fifo_head from local copy of saved
stateSaveAreaHeader.
However, during fifo read dbgUMD is reading FIFO entries and
accordingly SIP would also update fifo_head.
Hence while accessing fifo_head, ensure that we always read
fifo_head from latest in memory state save area header.

Related-To: NEO-12787
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2024-09-25 10:44:41 +02:00
Bartosz Dunajski
2618f586fa fix: copy offload mmio programming
Related-To: NEO-12771

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
2024-09-24 19:37:58 +02:00
Jitendra Sharma
0b3a6df5db fix: Take regset_desc from correct SSH based on version major
Related-To: NEO-7988
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2024-09-24 12:31:21 +02:00
Compute-Runtime-Validation
cb0b69a1cb Revert "feature: Add support for OA buffer overflow"
This reverts commit b2d25174fb.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-09-24 03:53:39 +02:00
shubham kumar
b2d25174fb feature: Add support for OA buffer overflow
Related-To: NEO-8685

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
2024-09-23 11:26:28 +02:00
Jitendra Sharma
ac52a2ff5b feature: Before resuming the thread unlock them
Related-To: NEO-7988
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
2024-09-21 09:25:12 +02:00
Joshua Santosh Ranjan
6d86d562b5 refactor: move metric driver experimental apis to shared location
modify driver experimental extensions according to guideline

Related-To: NEO-12530

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2024-09-18 20:46:33 +02:00
Joshua Santosh Ranjan
72d0c66651 refactor: pass metricGroup for extension handling
Related-To: NEO-12055


Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2024-09-18 00:11:56 +02:00
Jemale Lockett
f14af782b3 fix: Correct mirroring module debug area
Resolves: NEO-11883

Signed-off-by: Jemale Lockett <jemale.lockett@intel.com>
2024-09-16 12:31:23 +02:00
Mateusz Jablonski
fafc0e10dc refactor: remove not needed code
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2024-09-13 17:52:35 +02:00
Joshua Santosh Ranjan
365b0affc9 feature: support metric group type
Related-To: NEO-12055

Signed-off-by: Joshua Santosh Ranjan <joshua.santosh.ranjan@intel.com>
2024-09-10 13:30:46 +02:00