Mesa (main): ci: Ensure the DRM device is open
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Aug 31 17:40:58 UTC 2021
Module: Mesa
Branch: main
Commit: ddee006c1da6b4c165df97ab41c3c039a8b73647
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ddee006c1da6b4c165df97ab41c3c039a8b73647
Author: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Date: Mon Aug 30 11:01:30 2021 +0200
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 <tomeu.vizoso at collabora.com>
Acked-by: Daniel Stone <daniels at collabora.com>
Acked-by: Rob Clark <robdclark at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12644>
---
.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
More information about the mesa-commit
mailing list