From ddee006c1da6b4c165df97ab41c3c039a8b73647 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Mon, 30 Aug 2021 11:01:30 +0200 Subject: [PATCH] ci: Ensure the DRM device is open ... before changing the PM settings. Otherwise, we hit a kernel warning in Qualcomm devices and the device is left in a non-functional state. Signed-off-by: Tomeu Vizoso Acked-by: Daniel Stone Acked-by: Rob Clark Part-of: --- .gitlab-ci/common/init-stage2.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci/common/init-stage2.sh b/.gitlab-ci/common/init-stage2.sh index df52b30bda0..53b904156c6 100755 --- a/.gitlab-ci/common/init-stage2.sh +++ b/.gitlab-ci/common/init-stage2.sh @@ -23,6 +23,9 @@ export XDG_CACHE_HOME=/tmp export PYTHONPATH=$(python3 -c "import sys;print(\":\".join(sys.path))") if [ "$HWCI_FREQ_MAX" = "true" ]; then + # Ensure initialization of the DRM device (needed by MSM) + head -0 /dev/dri/renderD128 + # Disable GPU frequency scaling DEVFREQ_GOVERNOR=`find /sys/devices -name governor | grep gpu || true` test -z "$DEVFREQ_GOVERNOR" || echo performance > $DEVFREQ_GOVERNOR || true