VOOZH about

URL: https://www.phoronix.com/news/Mesa-25.1-EU-Stall-Sampling

⇱ Mesa 25.1 Merges Support For Intel EU Stall Sampling As New Xe2 Profiling Feature - Phoronix


👁 Phoronix

Mesa 25.1 Merges Support For Intel EU Stall Sampling As New Xe2 Profiling Feature

Written by Michael Larabel in Intel on 10 April 2025 at 03:15 PM EDT. 1 Comment
Merged to the Intel Xe kernel graphics driver for the current Linux 6.15 kernel cycle is EU Stall Sampling support as a new feature found with Xe2 Lunar Lake and Battlemage graphics. EU Stall Sampling is used for exposing information/reasons why execution units are stalled for helping to debug performance issues. Now that the kernel support is ready to go with Linux 6.15, merged to the Mesa 25.1 development code is the user-space support for this performance debugging feature.

This Mesa merge request that dates back eight months has finally been merged ahead of this quarter's Mesa 25.1 feature release. Paired with Linux 6.15, this EU Stall Sampling debug capabilities are ready to go with Xe2 graphics hardware. The merge request elaborates on the functionality:
"EU stall sampling is a performance debug feature new to Xe2 Intel GPUs. This feature allows collection of counts and reasons for why EUs are stalled. Stall data is cross referenced with ip addresses within individual shaders so it is possible to know which instructions in which shaders are stalling. This should be a very useful feature for debugging performance of slow shaders.

EU stall samples are collected using standalone intel/tool intel_monitor, which periodically samples KMD for EU stall data every N microseconds. intel_monitoris designed to be launched in background while gfx app to be profiled run. Data sampled by intel_monitor can be cross referenced with dumped shader code to determine which instructions are stalling."

With Fedora 42 and Ubuntu 25.04 coming up among other spring 2025 Linux distributions, I'll be working on some fresh Xe2 Linux graphics benchmarks with Lunar Lake and Battlemage soon.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.