Mesa (main): ci/lava: Disable CPU frequency scaling

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 1 08:43:14 UTC 2021


Module: Mesa
Branch: main
Commit: 69bc8105f13ec1469891dc4125a22355bfe9db3d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=69bc8105f13ec1469891dc4125a22355bfe9db3d

Author: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Date:   Fri May 28 11:41:20 2021 +0200

ci/lava: Disable CPU frequency scaling

Lock CPU frequency scaling to max to speed up test execution and lower
the variation of frame times from performance replay jobs.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Reviewed-by: Corentin Noël <corentin.noel at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11101>

---

 .gitlab-ci/lava.yml.jinja2 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.gitlab-ci/lava.yml.jinja2 b/.gitlab-ci/lava.yml.jinja2
index e8c74aac721..e9735d6b3af 100644
--- a/.gitlab-ci/lava.yml.jinja2
+++ b/.gitlab-ci/lava.yml.jinja2
@@ -82,9 +82,14 @@ actions:
 
           - modprobe amdgpu || true
 
+          # Disable GPU frequency scaling
           - DEVFREQ_GOVERNOR=`find /sys/devices -name governor | grep gpu || true`
           - echo performance > $DEVFREQ_GOVERNOR || true
 
+          # Disable CPU frequency scaling
+          - echo performance | tee -a /sys/devices/system/cpu/cpufreq/policy*/scaling_governor || true
+
+          # Disable GPU runtime PM
           - GPU_AUTOSUSPEND=`find /sys/devices -name autosuspend_delay_ms | grep gpu | head -1`
           - echo -1 > $GPU_AUTOSUSPEND || true
 



More information about the mesa-commit mailing list