From 69bc8105f13ec1469891dc4125a22355bfe9db3d Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Fri, 28 May 2021 11:41:20 +0200 Subject: [PATCH] ci/lava: Disable CPU frequency scaling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Corentin Noël Part-of: --- .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