From 0e14b674f1ca166a1e574f6471e6f801856c73b0 Mon Sep 17 00:00:00 2001 From: Cristian Ciocaltea Date: Wed, 30 Mar 2022 09:57:19 +0300 Subject: [PATCH] ci: Lock Intel GPU frequency for performance tests In order to ensure consistent results when running performance tests, lock the frequency for Intel GPUs to ~70% of the maximum allowed by hardware. This seems to offer a good balance between execution speed and results consistency. An increase of the frequency will also increase the rate of throttling events, with a negative impact on consistency. Such events are logged, as in the following example: GPU throttling detected: act=200 min=850 cur=850 RPn=100 This shows the actual GPU frequency (200 MHz) dropped below the minimum requested (850 MHz). For more details about the various frequency information sources, please see the script header comments in ".gitlab-ci/common/intel-gpu-freq.sh". Signed-off-by: Cristian Ciocaltea Acked-by: Tomeu Vizoso Reviewed-by: Guilherme Gallo Part-of: --- .gitlab-ci/common/init-stage2.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci/common/init-stage2.sh b/.gitlab-ci/common/init-stage2.sh index efb29083175..6aebc2231ec 100755 --- a/.gitlab-ci/common/init-stage2.sh +++ b/.gitlab-ci/common/init-stage2.sh @@ -60,6 +60,10 @@ if [ "$HWCI_FREQ_MAX" = "true" ]; then # Disable GPU runtime power management GPU_AUTOSUSPEND=`find /sys/devices -name autosuspend_delay_ms | grep gpu | head -1` test -z "$GPU_AUTOSUSPEND" || echo -1 > $GPU_AUTOSUSPEND || true + + # Lock Intel GPU frequency to 70% of the maximum allowed by hardware + # and enable throttling detection & reporting. + ./intel-gpu-freq.sh -s 70% -g all -d fi # Increase freedreno hangcheck timer because it's right at the edge of the