Linux Games/Apps Might Get Greater Control Over GPU Frequency On Intel Hardware

Written by Michael Larabel in Intel on 15 March 2018 at 05:28 PM EDT. 8 Comments
INTEL
Chris Wilson of Intel's Linux graphics driver team posted a big set of 36 patches on Wednesday for their DRM kernel driver.

The 36 patches conclude with supporting per-context user requests for GPU frequency control. Basically it's for allowing games or applications -- like multimedia programs -- to opt-in to trying to select/request their GPU frequency rather than leaving it up to the driver. In performance-sensitive situations like games or video playback, this may be beneficial for delivering a more desirable experience if the application/engine has the logic for better determining how fast/slow of a GPU it can get by with for processing.

Chris Wilson explained the logic in the final patch:
Often, we find ourselves facing a workload where the user knows in advance what GPU frequency they require for it to complete in a timely manner, and using past experience they can outperform the HW assisted RPS autotuning. An example might be kodi (HTPC) where they know that video decoding and compositing require a minimum frequency to avoid ever dropping a frame, or conversely know when they are in a powersaving mode and would rather have slower updates than ramp up the GPU frequency and power consumption. Other workloads may defeat the autotuning entirely and need manual control to meet their performance goals, e.g. bursty applications which require low latency.

To accommodate the varying needs of different applications, that may be running concurrently, we want a more flexible system than a global limit supplied by sysfs. To this end, we offer the application the option to set their desired frequency bounds on the context itself, and apply those bounds when we execute commands from the application, switching between bounds just as easily as we switch between the clients themselves.

The patch series can be found here and perhaps we'll see the work materialize for the just-started Linux 4.18 DRM cycle.
Related News
About The Author
Michael Larabel

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.

Popular News This Week