Skip to contentSkip to conversation

drm: ci: fixes

PATCH Superseded Vignesh Raman 6 participants 25 messages Sep 8, 2023 – Sep 12, 2023

Subsystems (13)

v3 of 7 Superseded Latest is v7 →

lore
Share & tools
lore

Vignesh Raman

author maintainer
#0 lore raw

v3 cover drm: ci: fixes

The patch series contains improvements, enabling new ci jobs which enables testing for Mediatek MT8173, Qualcomm APQ 8016 and VirtIO GPU, fixing issues with the ci jobs and updating the expectation files. This series is intended for drm branch topic/drm-ci.

v2:
- Use fdtoverlay command to merge overlay dtbo with the base dtb instead of modifying the kernel sources
- Reworded the commit message for enabling jobs
- Added a new patch in the series to use scripts/config to enable/disable configs

v3:
- New patch in the series to add device tree overlay in arch/arm64/boot/dts/qcom
- drm-ci scripts to use device tree overlay from arch/arm64/boot/dts/qcom and compile base device tree with overlay support
- New patch in the series to enable CONFIG_REGULATOR_DA9211 in defconfig
- Remove CONFIG_RTC_DRV_MT6397=y as it is already enabled in defconfig

Vignesh Raman (9):
drm: ci: igt_runner: Remove todo
arm64: dts: qcom: apq8016-sbc: Add overlay for usb host mode
drm: ci: Force db410c to host mode
drm: ci: virtio: Update ci variables
drm: ci: Enable regulator
arm64: defconfig: Enable DA9211 regulator
drm: ci: Update xfails
drm: ci: Enable new jobs
drm: ci: Use scripts/config to enable/disable configs

 .../boot/dts/qcom/apq8016-sbc-usb-host.dtso   |  8 +++++++
 arch/arm64/configs/defconfig                  |  1 +
 drivers/gpu/drm/ci/arm64.config               |  1 +
 drivers/gpu/drm/ci/build.sh                   | 21 ++++++++++++-------
 drivers/gpu/drm/ci/igt_runner.sh              |  1 -
 drivers/gpu/drm/ci/test.yml                   | 14 ++++---------
 .../gpu/drm/ci/xfails/amdgpu-stoney-fails.txt |  1 -
 drivers/gpu/drm/ci/xfails/i915-cml-fails.txt  |  1 -
 drivers/gpu/drm/ci/xfails/i915-cml-flakes.txt |  2 ++
 drivers/gpu/drm/ci/xfails/i915-glk-flakes.txt |  1 +
 .../drm/ci/xfails/mediatek-mt8173-fails.txt   |  2 --
 .../drm/ci/xfails/mediatek-mt8173-flakes.txt  | 16 ++++++++++++++
 .../gpu/drm/ci/xfails/msm-apq8016-flakes.txt  |  2 ++
 .../drm/ci/xfails/rockchip-rk3288-flakes.txt  |  1 +
 .../drm/ci/xfails/rockchip-rk3399-fails.txt   |  4 ++--
 .../drm/ci/xfails/rockchip-rk3399-flakes.txt  |  3 +++
 16 files changed, 54 insertions(+), 25 deletions(-)
 create mode 100644 arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso
Signature · 1 line
2.40.1
author maintainer
#1 lore raw

PATCH v3 1/9 drm: ci: igt_runner: Remove todo

/sys/kernel/debug/dri/*/state exist for every atomic KMS driver. We do not test non-atomic drivers, so remove the todo.

---

v2:
- No changes

v3:
- No changes

---
 drivers/gpu/drm/ci/igt_runner.sh | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/ci/igt_runner.sh +0 -1
index 2bb759165063..5bf130ac57c9 100755
@@ -15,7 +15,6 @@ cat /sys/kernel/debug/device_component/*
 '
 
 # Dump drm state to confirm that kernel was able to find a connected display:
-# TODO this path might not exist for all drivers.. maybe run modetest instead?
 set +e
 cat /sys/kernel/debug/dri/*/state
 set -e
Signature · 1 line
2.40.1
Acked-by on v3 1/9
#2 lore raw

Re: [PATCH v3 1/9] drm: ci: igt_runner: Remove todo

Quoted 4 lines · Vignesh Raman

/sys/kernel/debug/dri/*/state exist for every atomic KMS driver. We do not test non-atomic drivers, so remove the todo.

Quoted 24 lines

---

v2:
- No changes

v3:
- No changes

---
  drivers/gpu/drm/ci/igt_runner.sh | 1 -
  1 file changed, 1 deletion(-)
drivers/gpu/drm/ci/igt_runner.sh +0 -1
index 2bb759165063..5bf130ac57c9 100755
@@ -15,7 +15,6 @@ cat /sys/kernel/debug/device_component/*
  '
 
  # Dump drm state to confirm that kernel was able to find a connected display:
-# TODO this path might not exist for all drivers.. maybe run modetest instead?
  set +e
  cat /sys/kernel/debug/dri/*/state
  set -e
author maintainer
#3 lore raw

PATCH v3 2/9 arm64: dts: qcom: apq8016-sbc: Add overlay for usb host mode

In reply to Vignesh Raman

Due to the presence of the fastboot micro cable in the CI farm, it causes the hardware to remain in gadget mode instead of host mode. So it doesn't find the network, which results in failure to mount root fs via NFS.

Add an overlay dtso file that sets the dr_mode to host, allowing the USB controllers to work in host mode. This dtso file will be used in drm-ci, mesa-ci.

Overlay DT file uses the sugar syntax [suggested by Dmitry Baryshkov and Maxime Ripard]

---

v3:
- New patch in the series to add device tree overlay in arch/arm64/boot/dts/qcom

---
 arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso
arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso new file +8 -0
new file mode 100644
index 000000000000..a82c26b7eae8
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+/dts-v1/;
+/plugin/;
+
+&usb {
+         dr_mode = "host";
+};
Signature · 1 line
2.40.1
maintainer
#4 lore raw

Re: [PATCH v3 2/9] arm64: dts: qcom: apq8016-sbc: Add overlay for usb host mode

Quoted 43 lines · Vignesh Raman

Due to the presence of the fastboot micro cable in the CI farm, it causes the hardware to remain in gadget mode instead of host mode. So it doesn't find the network, which results in failure to mount root fs via NFS.

Add an overlay dtso file that sets the dr_mode to host, allowing the USB controllers to work in host mode. This dtso file will be used in drm-ci, mesa-ci.

Overlay DT file uses the sugar syntax [suggested by Dmitry Baryshkov and Maxime Ripard]

---

v3:
- New patch in the series to add device tree overlay in arch/arm64/boot/dts/qcom

---
 arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso
arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso new file +8 -0
new file mode 100644
index 000000000000..a82c26b7eae8
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+/dts-v1/;
+/plugin/;
+
+&usb {
+         dr_mode = "host";
+};
Signature · 1 line
2.40.1

You need to add it to the Makefile too

Maxime

#5 lore raw

Re: [PATCH v3 2/9] arm64: dts: qcom: apq8016-sbc: Add overlay for usb host mode

In reply to Vignesh Raman
Quoted 16 lines · Vignesh Raman

Due to the presence of the fastboot micro cable in the CI farm, it causes the hardware to remain in gadget mode instead of host mode. So it doesn't find the network, which results in failure to mount root fs via NFS.

Add an overlay dtso file that sets the dr_mode to host, allowing the USB controllers to work in host mode. This dtso file will be used in drm-ci, mesa-ci.

Overlay DT file uses the sugar syntax [suggested by Dmitry Baryshkov and Maxime Ripard]

Quoted 8 lines

---

v3:
- New patch in the series to add device tree overlay in arch/arm64/boot/dts/qcom

---
 arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso | 8 ++++++++
 1 file changed, 8 insertions(+)

Split unrelated patches to separate patchsets. This has nothing to do with DRM CI system.

Best regards,
Krzysztof

#6 lore raw

Re: [PATCH v3 2/9] arm64: dts: qcom: apq8016-sbc: Add overlay for usb host mode

In reply to Vignesh Raman
Quoted 9 lines · Vignesh Raman

Due to the presence of the fastboot micro cable in the CI farm, it causes the hardware to remain in gadget mode instead of host mode. So it doesn't find the network, which results in failure to mount root fs via NFS.

Add an overlay dtso file that sets the dr_mode to host, allowing the USB controllers to work in host mode. This dtso file will be used in drm-ci, mesa-ci.

Quoted 8 lines

Overlay DT file uses the sugar syntax [suggested by Dmitry Baryshkov and Maxime Ripard]

---

For such a small change, maybe you can just use sed in your scripts to alter this?

Konrad

author maintainer
#7 lore raw

Re: [PATCH v3 2/9] arm64: dts: qcom: apq8016-sbc: Add overlay for usb host mode

Hi Konrad,

Quoted 12 lines · Konrad Dybcio
Quoted 11 lines · Vignesh Raman

Due to the presence of the fastboot micro cable in the CI farm, it causes the hardware to remain in gadget mode instead of host mode. So it doesn't find the network, which results in failure to mount root fs via NFS.

Add an overlay dtso file that sets the dr_mode to host, allowing the USB controllers to work in host mode. This dtso file will be used in drm-ci, mesa-ci.

Overlay DT file uses the sugar syntax [suggested by Dmitry Baryshkov and Maxime Ripard]

Quoted 8 lines
Quoted 6 lines

---

For such a small change, maybe you can just use sed in your scripts to alter this?

This was the initial idea https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

Since there was a review comment that CI should not make changes to the source tree before building, we went with DT overlay.

Regards,
Vignesh

Acked-by on v3 2/9
#8 lore raw

Re: [PATCH v3 2/9] arm64: dts: qcom: apq8016-sbc: Add overlay for usb host mode

In reply to Vignesh Raman
Quoted 9 lines · Vignesh Raman

Due to the presence of the fastboot micro cable in the CI farm, it causes the hardware to remain in gadget mode instead of host mode. So it doesn't find the network, which results in failure to mount root fs via NFS.

Add an overlay dtso file that sets the dr_mode to host, allowing the USB controllers to work in host mode. This dtso file will be used in drm-ci, mesa-ci.

Quoted 7 lines

Overlay DT file uses the sugar syntax [suggested by Dmitry Baryshkov and Maxime Ripard]

Quoted 24 lines

---

v3:
- New patch in the series to add device tree overlay in arch/arm64/boot/dts/qcom

---
  arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso | 8 ++++++++
  1 file changed, 8 insertions(+)

create mode 100644 arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso

arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso new file +8 -0
new file mode 100644
index 000000000000..a82c26b7eae8
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+
+/dts-v1/;
+/plugin/;
+
+&usb {
+         dr_mode = "host";
+};
author maintainer
#9 lore raw

PATCH v3 3/9 drm: ci: Force db410c to host mode

In reply to Vignesh Raman

Force db410c to host mode to fix network issue which results in failure
to mount root fs via NFS.
See https://gitlab.freedesktop.org/gfx-ci/linux/-/commit/cb72a629b8c15c80a54dda510743cefd1c4b65b8

Compile the base device tree with overlay support and use fdtoverlay command to merge base device tree with an overlay which contains the fix for USB controllers to work in host mode. [suggested by Maxime Ripard]

---

v2:
- Use fdtoverlay command to merge overlay dtbo with the base dtb instead of modifying the kernel sources

v3:
- drm-ci scripts to use device tree overlay from arch/arm64/boot/dts/qcom and compile base device tree with overlay support

---
 drivers/gpu/drm/ci/build.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/ci/build.sh +6 -1
index 7b014287a041..092c195af242 100644
@@ -91,7 +91,12 @@ for image in ${KERNEL_IMAGE_NAME}; do
 done
 
 if [[ -n ${DEVICE_TREES} ]]; then
-    make dtbs
+    make DTC_FLAGS=-@ dtbs
+    if [[ -e arch/arm64/boot/dts/qcom/apq8016-sbc.dtb ]]; then
+        dtc -@ -I dts -O dtb -o arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtbo arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso
+        fdtoverlay -i arch/arm64/boot/dts/qcom/apq8016-sbc.dtb -o arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtb arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtbo
+        mv arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtb arch/arm64/boot/dts/qcom/apq8016-sbc.dtb
+    fi
     cp ${DEVICE_TREES} /lava-files/.
 fi
 
Signature · 1 line
2.40.1
maintainer
#10 lore raw

Re: [PATCH v3 3/9] drm: ci: Force db410c to host mode

Quoted 27 lines · Vignesh Raman

Force db410c to host mode to fix network issue which results in failure
to mount root fs via NFS.
See https://gitlab.freedesktop.org/gfx-ci/linux/-/commit/cb72a629b8c15c80a54dda510743cefd1c4b65b8

Compile the base device tree with overlay support and use fdtoverlay command to merge base device tree with an overlay which contains the fix for USB controllers to work in host mode. [suggested by Maxime Ripard]

---

v2:
- Use fdtoverlay command to merge overlay dtbo with the base dtb instead of modifying the kernel sources

v3:
- drm-ci scripts to use device tree overlay from arch/arm64/boot/dts/qcom and compile base device tree with overlay support

---
 drivers/gpu/drm/ci/build.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/ci/build.sh +0 -0
index 7b014287a041..092c195af242 100644

drivers/gpu/drm/ci/build.sh for image in ${KERNEL_IMAGE_NAME}; do · line 96

Quoted 7 lines
drivers/gpu/drm/ci/build.sh +3 -1
@@ -91,7 +91,12 @@ for image in ${KERNEL_IMAGE_NAME}; do
 done
 
 if [[ -n ${DEVICE_TREES} ]]; then
-    make dtbs
+    make DTC_FLAGS=-@ dtbs
+    if [[ -e arch/arm64/boot/dts/qcom/apq8016-sbc.dtb ]]; then
+        dtc -@ -I dts -O dtb -o arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtbo arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso

You don't need to compile it by hand, make dtbs should do it for you

drivers/gpu/drm/ci/build.sh for image in ${KERNEL_IMAGE_NAME}; do · line 99

Quoted 3 lines
drivers/gpu/drm/ci/build.sh +3 -0
+        fdtoverlay -i arch/arm64/boot/dts/qcom/apq8016-sbc.dtb -o arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtb arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtbo
+        mv arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtb arch/arm64/boot/dts/qcom/apq8016-sbc.dtb
+    fi

That is also supported by the build system already, see k3-am642-tqma64xxl-mbax4xxl-sdcard-dtbs in arch/arm64/boot/dts/ti/Makefile for example.

Maxime

Acked-by on v3 3/9
#11 lore raw

Re: [PATCH v3 3/9] drm: ci: Force db410c to host mode

In reply to Vignesh Raman
Quoted 10 lines · Vignesh Raman

Force db410c to host mode to fix network issue which results in failure
to mount root fs via NFS.
See https://gitlab.freedesktop.org/gfx-ci/linux/-/commit/cb72a629b8c15c80a54dda510743cefd1c4b65b8

Compile the base device tree with overlay support and use fdtoverlay command to merge base device tree with an overlay which contains the fix for USB controllers to work in host mode. [suggested by Maxime Ripard]

Quoted 30 lines

---

v2:
- Use fdtoverlay command to merge overlay dtbo with the base dtb instead of modifying the kernel sources

v3:
- drm-ci scripts to use device tree overlay from arch/arm64/boot/dts/qcom and compile base device tree with overlay support

---
  drivers/gpu/drm/ci/build.sh | 7 ++++++-
  1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/ci/build.sh +6 -1
index 7b014287a041..092c195af242 100644
@@ -91,7 +91,12 @@ for image in ${KERNEL_IMAGE_NAME}; do
  done
 
  if [[ -n ${DEVICE_TREES} ]]; then
-    make dtbs
+    make DTC_FLAGS=-@ dtbs
+    if [[ -e arch/arm64/boot/dts/qcom/apq8016-sbc.dtb ]]; then
+        dtc -@ -I dts -O dtb -o arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtbo arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtso
+        fdtoverlay -i arch/arm64/boot/dts/qcom/apq8016-sbc.dtb -o arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtb arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtbo
+        mv arch/arm64/boot/dts/qcom/apq8016-sbc-usb-host.dtb arch/arm64/boot/dts/qcom/apq8016-sbc.dtb
+    fi
      cp ${DEVICE_TREES} /lava-files/.
  fi
 
author maintainer
#12 lore raw

PATCH v3 4/9 drm: ci: virtio: Update ci variables

In reply to Vignesh Raman

Update ci variables to fix the below error,
ERROR - Igt error: malloc(): corrupted top size
ERROR - Igt error: Received signal SIGABRT.
ERROR - Igt error: Stack trace:
ERROR - Igt error: #0 [fatal_sig_handler+0x17b]

---

v2:
- No changes

v3:
- No changes

---
 drivers/gpu/drm/ci/test.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/ci/test.yml +4 -1
index 6473cddaa7a9..d85add39f425 100644
@@ -316,8 +316,11 @@ virtio_gpu:none:
   stage: virtio-gpu
   variables:
     CROSVM_GALLIUM_DRIVER: llvmpipe
-    DRIVER_NAME: virtio_gpu
+    DRIVER_NAME: virtio
     GPU_VERSION: none
+    CROSVM_MEMORY: 12288
+    CROSVM_CPU: $FDO_CI_CONCURRENT
+    CROSVM_GPU_ARGS: "vulkan=true,gles=false,backend=virglrenderer,egl=true,surfaceless=true"
   extends:
     - .test-gl
   tags:
Signature · 1 line
2.40.1
Acked-by on v3 4/9
#13 lore raw

Re: [PATCH v3 4/9] drm: ci: virtio: Update ci variables

Quoted 7 lines · Vignesh Raman

Update ci variables to fix the below error,
ERROR - Igt error: malloc(): corrupted top size
ERROR - Igt error: Received signal SIGABRT.
ERROR - Igt error: Stack trace:
ERROR - Igt error: #0 [fatal_sig_handler+0x17b]

Quoted 29 lines

---

v2:
- No changes

v3:
- No changes

---
  drivers/gpu/drm/ci/test.yml | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/ci/test.yml +4 -1
index 6473cddaa7a9..d85add39f425 100644
@@ -316,8 +316,11 @@ virtio_gpu:none:
    stage: virtio-gpu
    variables:
      CROSVM_GALLIUM_DRIVER: llvmpipe
-    DRIVER_NAME: virtio_gpu
+    DRIVER_NAME: virtio
      GPU_VERSION: none
+    CROSVM_MEMORY: 12288
+    CROSVM_CPU: $FDO_CI_CONCURRENT
+    CROSVM_GPU_ARGS: "vulkan=true,gles=false,backend=virglrenderer,egl=true,surfaceless=true"
    extends:
      - .test-gl
    tags:
author maintainer
#14 lore raw

PATCH v3 5/9 drm: ci: Enable regulator

In reply to Vignesh Raman

Enable CONFIG_REGULATOR_DA9211=y to fix mt8173 boot issue.

---

v2:
- No changes

v3:
- Remove CONFIG_RTC_DRV_MT6397=y as it is already enabled in defconfig

---
 drivers/gpu/drm/ci/arm64.config | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/ci/arm64.config +1 -0
index 817e18ddfd4f..ca95e141a7ae 100644
@@ -184,6 +184,7 @@ CONFIG_HW_RANDOM_MTK=y
 CONFIG_MTK_DEVAPC=y
 CONFIG_PWM_MTK_DISP=y
 CONFIG_MTK_CMDQ=y
+CONFIG_REGULATOR_DA9211=y
 
 # For nouveau.  Note that DRM must be a module so that it's loaded after NFS is up to provide the firmware.
 CONFIG_ARCH_TEGRA=y
Signature · 1 line
2.40.1
Acked-by on v3 5/9
#15 lore raw

Re: [PATCH v3 5/9] drm: ci: Enable regulator

Quoted 3 lines · Vignesh Raman

Enable CONFIG_REGULATOR_DA9211=y to fix mt8173 boot issue.

Quoted 24 lines

---

v2:
- No changes

v3:
- Remove CONFIG_RTC_DRV_MT6397=y as it is already enabled in defconfig

---
  drivers/gpu/drm/ci/arm64.config | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/ci/arm64.config +1 -0
index 817e18ddfd4f..ca95e141a7ae 100644
@@ -184,6 +184,7 @@ CONFIG_HW_RANDOM_MTK=y
  CONFIG_MTK_DEVAPC=y
  CONFIG_PWM_MTK_DISP=y
  CONFIG_MTK_CMDQ=y
+CONFIG_REGULATOR_DA9211=y
 
  # For nouveau.  Note that DRM must be a module so that it's loaded after NFS is up to provide the firmware.
  CONFIG_ARCH_TEGRA=y
author maintainer
#16 lore raw

PATCH v3 6/9 arm64: defconfig: Enable DA9211 regulator

In reply to Vignesh Raman

Mediatek mt8173 board fails to boot with DA9211 regulator disabled. Enabling CONFIG_REGULATOR_DA9211=y in drm-ci fixes the issue.

So enable it in the defconfig since kernel-ci also requires it.

---

v3:
- New patch in the series to enable CONFIG_REGULATOR_DA9211 in defconfig

---
 arch/arm64/configs/defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index a25d783dfb95..ef22b532b63a 100644
@@ -711,6 +711,7 @@ CONFIG_REGULATOR_AXP20X=y
 CONFIG_REGULATOR_BD718XX=y
 CONFIG_REGULATOR_BD9571MWV=y
 CONFIG_REGULATOR_CROS_EC=y
+CONFIG_REGULATOR_DA9211=m
 CONFIG_REGULATOR_FAN53555=y
 CONFIG_REGULATOR_GPIO=y
 CONFIG_REGULATOR_HI6421V530=y
Signature · 1 line
2.40.1
maintainer Reviewed-by on v3 6/9
#17 lore raw

Re: [PATCH v3 6/9] arm64: defconfig: Enable DA9211 regulator

Il 08/09/23 17:22, Vignesh Raman ha scritto:

Quoted 7 lines

Mediatek mt8173 board fails to boot with DA9211 regulator disabled. Enabling CONFIG_REGULATOR_DA9211=y in drm-ci fixes the issue.

So enable it in the defconfig since kernel-ci also requires it.

Quoted 21 lines

---

v3:
- New patch in the series to enable CONFIG_REGULATOR_DA9211 in defconfig

---
  arch/arm64/configs/defconfig | 1 +
  1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
index a25d783dfb95..ef22b532b63a 100644
@@ -711,6 +711,7 @@ CONFIG_REGULATOR_AXP20X=y
  CONFIG_REGULATOR_BD718XX=y
  CONFIG_REGULATOR_BD9571MWV=y
  CONFIG_REGULATOR_CROS_EC=y
+CONFIG_REGULATOR_DA9211=m
  CONFIG_REGULATOR_FAN53555=y
  CONFIG_REGULATOR_GPIO=y
  CONFIG_REGULATOR_HI6421V530=y
Acked-by on v3 6/9
#18 lore raw

Re: [PATCH v3 6/9] arm64: defconfig: Enable DA9211 regulator

In reply to Vignesh Raman
Quoted 4 lines · Vignesh Raman

Mediatek mt8173 board fails to boot with DA9211 regulator disabled. Enabling CONFIG_REGULATOR_DA9211=y in drm-ci fixes the issue.

So enable it in the defconfig since kernel-ci also requires it.

tbh, =m doesn't solve for mesa-ci (since we don't use an initrd, not sure if it solves for kernel-ci.

Quoted 3 lines

In any case:

Quoted 14 lines

---

v3:
- New patch in the series to enable CONFIG_REGULATOR_DA9211 in defconfig

---
  arch/arm64/configs/defconfig | 1 +
  1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +0 -0
index a25d783dfb95..ef22b532b63a 100644

arch/arm64/configs/defconfig CONFIG_REGULATOR_AXP20X=y · line 714

Quoted 4 lines
arch/arm64/configs/defconfig +1 -0
@@ -711,6 +711,7 @@ CONFIG_REGULATOR_AXP20X=y
  CONFIG_REGULATOR_BD718XX=y
  CONFIG_REGULATOR_BD9571MWV=y
  CONFIG_REGULATOR_CROS_EC=y
+CONFIG_REGULATOR_DA9211=m

Question for the maintainers: would it be acceptable to make it a =y instead of =m here ? Since this is something required for booting.

Regards,
Helen

Quoted 3 lines
arch/arm64/configs/defconfig +0 -0
  CONFIG_REGULATOR_FAN53555=y
  CONFIG_REGULATOR_GPIO=y
  CONFIG_REGULATOR_HI6421V530=y
author maintainer
#19 lore raw

PATCH v3 7/9 drm: ci: Update xfails

In reply to Vignesh Raman

Update amdgpu-stoney-fails, mediatek-mt8173-flakes, mediatek-mt8173-fails, rockchip-rk3399-fails, rockchip-rk3399-flakes, rockchip-rk3288-flakes, i915-cml-fails, i915-cml-flakes, msm-apq8016-flakes files.

Add tests that fail sometimes into the *-flakes file and tests that are failing into the *-fails file.

---

v2:
- No changes

v3:
- No changes

---
 .../gpu/drm/ci/xfails/amdgpu-stoney-fails.txt    |  1 -
 drivers/gpu/drm/ci/xfails/i915-cml-fails.txt     |  1 -
 drivers/gpu/drm/ci/xfails/i915-cml-flakes.txt    |  2 ++
 drivers/gpu/drm/ci/xfails/i915-glk-flakes.txt    |  1 +
 .../gpu/drm/ci/xfails/mediatek-mt8173-fails.txt  |  2 --
 .../gpu/drm/ci/xfails/mediatek-mt8173-flakes.txt | 16 ++++++++++++++++
 drivers/gpu/drm/ci/xfails/msm-apq8016-flakes.txt |  2 ++
 .../gpu/drm/ci/xfails/rockchip-rk3288-flakes.txt |  1 +
 .../gpu/drm/ci/xfails/rockchip-rk3399-fails.txt  |  4 ++--
 .../gpu/drm/ci/xfails/rockchip-rk3399-flakes.txt |  3 +++
 10 files changed, 27 insertions(+), 6 deletions(-)
drivers/gpu/drm/ci/xfails/amdgpu-stoney-fails.txt +0 -1
index bd9392536e7c..58bfded8a3fc 100644
@@ -1,7 +1,6 @@
 kms_addfb_basic@bad-pitch-65536,Fail
 kms_addfb_basic@bo-too-small,Fail
 kms_async_flips@invalid-async-flip,Fail
-kms_atomic@plane-immutable-zpos,Fail
 kms_atomic_transition@plane-toggle-modeset-transition,Fail
 kms_bw@linear-tiling-1-displays-2560x1440p,Fail
 kms_bw@linear-tiling-1-displays-3840x2160p,Fail
drivers/gpu/drm/ci/xfails/i915-cml-fails.txt +0 -1
index 6139b410e767..5f513c638beb 100644
@@ -1,4 +1,3 @@
-kms_color@ctm-0-25,Fail
 kms_flip_scaled_crc@flip-32bpp-linear-to-64bpp-linear-downscaling,Fail
 kms_flip_scaled_crc@flip-32bpp-linear-to-64bpp-linear-upscaling,Fail
 kms_flip_scaled_crc@flip-32bpp-xtile-to-64bpp-xtile-downscaling,Fail
drivers/gpu/drm/ci/xfails/i915-cml-flakes.txt +2 -0
index 0514a7b3fdb0..f06f1a5b16f9 100644
@@ -7,6 +7,8 @@ kms_bw@linear-tiling-3-displays-3840x2160p
 kms_bw@linear-tiling-4-displays-1920x1080p
 kms_bw@linear-tiling-4-displays-2560x1440p
 kms_bw@linear-tiling-4-displays-3840x2160p
+kms_color@ctm-0-25
+kms_cursor_legacy@torture-move
 kms_draw_crc@draw-method-xrgb8888-render-xtiled
 kms_flip@flip-vs-suspend
 kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-downscaling
drivers/gpu/drm/ci/xfails/i915-glk-flakes.txt +1 -0
index fc41d13a2d56..3aee1f11ee90 100644
@@ -8,6 +8,7 @@ kms_bw@linear-tiling-3-displays-3840x2160p
 kms_bw@linear-tiling-4-displays-1920x1080p
 kms_bw@linear-tiling-4-displays-2560x1440p
 kms_bw@linear-tiling-4-displays-3840x2160p
+kms_cursor_legacy@torture-bo
 kms_flip@blocking-wf_vblank
 kms_flip@wf_vblank-ts-check
 kms_flip@wf_vblank-ts-check-interruptible
drivers/gpu/drm/ci/xfails/mediatek-mt8173-fails.txt +0 -2
index 671916067dba..c8e64bbfd480 100644
@@ -1,5 +1,4 @@
 kms_3d,Fail
-kms_addfb_basic@addfb25-bad-modifier,Fail
 kms_bw@linear-tiling-1-displays-1920x1080p,Fail
 kms_bw@linear-tiling-1-displays-2560x1440p,Fail
 kms_bw@linear-tiling-1-displays-3840x2160p,Fail
@@ -11,7 +10,6 @@ kms_bw@linear-tiling-3-displays-2560x1440p,Fail
 kms_bw@linear-tiling-3-displays-3840x2160p,Fail
 kms_color@pipe-A-invalid-gamma-lut-sizes,Fail
 kms_color@pipe-B-invalid-gamma-lut-sizes,Fail
-kms_force_connector_basic@force-connector-state,Fail
 kms_force_connector_basic@force-edid,Fail
 kms_force_connector_basic@force-load-detect,Fail
 kms_force_connector_basic@prune-stale-modes,Fail
drivers/gpu/drm/ci/xfails/mediatek-mt8173-flakes.txt +16 -0
index e69de29bb2d1..9ed6722df2c2 100644
@@ -0,0 +1,16 @@
+core_setmaster_vs_auth
+kms_addfb_basic@addfb25-bad-modifier
+kms_color@invalid-gamma-lut-sizes
+kms_cursor_legacy@cursor-vs-flip-atomic
+kms_cursor_legacy@cursor-vs-flip-legacy
+kms_force_connector_basic@force-connector-state
+kms_hdmi_inject@inject-4k
+kms_plane_scaling@plane-scaler-with-pixel-format-unity-scaling
+kms_plane_scaling@plane-upscale-with-modifiers-20x20
+kms_plane_scaling@plane-upscale-with-pixel-format-20x20
+kms_plane_scaling@plane-upscale-with-rotation-20x20
+kms_plane_scaling@planes-downscale-factor-0-25-upscale-20x20
+kms_plane_scaling@planes-downscale-factor-0-5-upscale-20x20
+kms_plane_scaling@planes-downscale-factor-0-75-upscale-20x20
+kms_prop_blob@invalid-set-prop
+kms_prop_blob@invalid-set-prop-any
drivers/gpu/drm/ci/xfails/msm-apq8016-flakes.txt +2 -0
index 0e3b60d3fade..cd48a8c1d569 100644
@@ -1,3 +1,5 @@
+kms_cursor_legacy@forked-bo
+kms_cursor_legacy@forked-move
 kms_force_connector_basic@force-connector-state
 kms_force_connector_basic@force-edid
 kms_force_connector_basic@force-load-detect
drivers/gpu/drm/ci/xfails/rockchip-rk3288-flakes.txt +1 -0
index 45c54c75c899..081fe6f8d488 100644
@@ -1,6 +1,7 @@
 kms_addfb_basic@addfb25-bad-modifier
 kms_cursor_crc@.*
 kms_flip@basic-flip-vs-wf_vblank
+kms_flip@blocking-wf_vblank
 kms_invalid_mode@int-max-clock,Crash
 kms_pipe_crc_basic@.*
 kms_properties@connector-properties-atomic,Crash
drivers/gpu/drm/ci/xfails/rockchip-rk3399-fails.txt +2 -2
index 6db08ba6b008..029a3be3164d 100644
@@ -2,14 +2,13 @@ kms_color@legacy-gamma,Fail
 kms_color@pipe-A-legacy-gamma,Fail
 kms_color@pipe-B-legacy-gamma,Fail
 kms_flip@basic-flip-vs-wf_vblank,Fail
-kms_flip@blocking-wf_vblank,Fail
 kms_flip@dpms-vs-vblank-race,Fail
 kms_flip@flip-vs-absolute-wf_vblank,Fail
 kms_flip@flip-vs-absolute-wf_vblank-interruptible,Fail
 kms_flip@flip-vs-blocking-wf-vblank,Fail
 kms_flip@flip-vs-panning,Fail
 kms_flip@flip-vs-panning-interruptible,Fail
-kms_flip@flip-vs-wf_vblank-interruptible,Fail
+kms_flip@modeset-vs-vblank-race,Fail
 kms_flip@plain-flip-fb-recreate,Fail
 kms_flip@plain-flip-fb-recreate-interruptible,Fail
 kms_flip@plain-flip-ts-check,Fail
@@ -35,3 +34,4 @@ kms_plane_multiple@atomic-pipe-B-tiling-none,Fail
 kms_plane_multiple@tiling-none,Fail
 kms_prime@basic-crc,Fail
 kms_rmfb@close-fd,Fail
+kms_universal_plane@universal-plane-pipe-B-functional,Fail
drivers/gpu/drm/ci/xfails/rockchip-rk3399-flakes.txt +3 -0
index 4c0539b4beaf..869426a02cbd 100644
@@ -1,7 +1,10 @@
 
+kms_color@gamma
 kms_cursor_crc@.*
+kms_flip@blocking-wf_vblank
 kms_flip@dpms-vs-vblank-race-interruptible
 kms_flip@flip-vs-expired-vblank
+kms_flip@flip-vs-wf_vblank-interruptible
 kms_flip@modeset-vs-vblank-race-interruptible
 kms_pipe_crc_basic@.*
 kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-A
Signature · 1 line
2.40.1
author maintainer
#20 lore raw

PATCH v3 8/9 drm: ci: Enable new jobs

In reply to Vignesh Raman

Enable the following jobs, as the issues noted in the TODO comments have been resolved. This will ensure that these jobs are now included and executed as part of the CI/CD pipeline.

msm:apq8016:
TODO: current issue: it is not fiding the NFS root. Fix and remove this rule.

mediatek:mt8173:
TODO: current issue: device is hanging. Fix and remove this rule.

virtio_gpu:none:
TODO: current issue: malloc(): corrupted top size. Fix and remove this rule.

---

v2:
- Reworded the commit message

v3:
- No changes

---
 drivers/gpu/drm/ci/test.yml | 9 ---------
 1 file changed, 9 deletions(-)
drivers/gpu/drm/ci/test.yml +0 -9
index d85add39f425..1771af21e2d9 100644
@@ -108,9 +108,6 @@ msm:apq8016:
     RUNNER_TAG: google-freedreno-db410c
   script:
     - ./install/bare-metal/fastboot.sh
-  rules:
-    # TODO: current issue: it is not fiding the NFS root. Fix and remove this rule.
-    - when: never
 
 msm:apq8096:
   extends:
@@ -273,9 +270,6 @@ mediatek:mt8173:
     DEVICE_TYPE: mt8173-elm-hana
     GPU_VERSION: mt8173
     RUNNER_TAG: mesa-ci-x86-64-lava-mt8173-elm-hana
-  rules:
-    # TODO: current issue: device is hanging. Fix and remove this rule.
-    - when: never
 
 mediatek:mt8183:
   extends:
@@ -333,6 +327,3 @@ virtio_gpu:none:
     - debian/x86_64_test-gl
     - testing:x86_64
     - igt:x86_64
-  rules:
-    # TODO: current issue: malloc(): corrupted top size. Fix and remove this rule.
-    - when: never
\ No newline at end of file
Signature · 1 line
2.40.1
Acked-by on v3 8/9
#21 lore raw

Re: [PATCH v3 8/9] drm: ci: Enable new jobs

Quoted 7 lines · Vignesh Raman

Enable the following jobs, as the issues noted in the TODO comments have been resolved. This will ensure that these jobs are now included and executed as part of the CI/CD pipeline.

msm:apq8016:
TODO: current issue: it is not fiding the NFS root. Fix and remove this rule.

Quoted 7 lines

mediatek:mt8173:
TODO: current issue: device is hanging. Fix and remove this rule.

virtio_gpu:none:
TODO: current issue: malloc(): corrupted top size. Fix and remove this rule.

Quoted 44 lines

---

v2:
- Reworded the commit message

v3:
- No changes

---
  drivers/gpu/drm/ci/test.yml | 9 ---------
  1 file changed, 9 deletions(-)
drivers/gpu/drm/ci/test.yml +0 -9
index d85add39f425..1771af21e2d9 100644
@@ -108,9 +108,6 @@ msm:apq8016:
      RUNNER_TAG: google-freedreno-db410c
    script:
      - ./install/bare-metal/fastboot.sh
-  rules:
-    # TODO: current issue: it is not fiding the NFS root. Fix and remove this rule.
-    - when: never
 
  msm:apq8096:
    extends:
@@ -273,9 +270,6 @@ mediatek:mt8173:
      DEVICE_TYPE: mt8173-elm-hana
      GPU_VERSION: mt8173
      RUNNER_TAG: mesa-ci-x86-64-lava-mt8173-elm-hana
-  rules:
-    # TODO: current issue: device is hanging. Fix and remove this rule.
-    - when: never
 
  mediatek:mt8183:
    extends:
@@ -333,6 +327,3 @@ virtio_gpu:none:
      - debian/x86_64_test-gl
      - testing:x86_64
      - igt:x86_64
-  rules:
-    # TODO: current issue: malloc(): corrupted top size. Fix and remove this rule.
-    - when: never
\ No newline at end of file
author maintainer
#22 lore raw

PATCH v3 9/9 drm: ci: Use scripts/config to enable/disable configs

In reply to Vignesh Raman

Instead of modifying files in git to enable/disable configs, use scripts/config on the .config file which will be used for building the kernel.

---

v2:
- Added a new patch in the series to use scripts/config to enable/disable configs

v3:
- No changes

---
 drivers/gpu/drm/ci/build.sh | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/gpu/drm/ci/build.sh +7 -7
index 092c195af242..093929a115de 100644
@@ -70,19 +70,19 @@ if [ -z "$CI_MERGE_REQUEST_PROJECT_PATH" ]; then
     fi
 fi
 
-for opt in $ENABLE_KCONFIGS; do
-  echo CONFIG_$opt=y >> drivers/gpu/drm/ci/${KERNEL_ARCH}.config
-done
-for opt in $DISABLE_KCONFIGS; do
-  echo CONFIG_$opt=n >> drivers/gpu/drm/ci/${KERNEL_ARCH}.config
-done
-
 if [[ -n "${MERGE_FRAGMENT}" ]]; then
     ./scripts/kconfig/merge_config.sh ${DEFCONFIG} drivers/gpu/drm/ci/${MERGE_FRAGMENT}
 else
     make `basename ${DEFCONFIG}`
 fi
 
+for opt in $ENABLE_KCONFIGS; do
+    ./scripts/config --enable CONFIG_$opt
+done
+for opt in $DISABLE_KCONFIGS; do
+    ./scripts/config --disable CONFIG_$opt
+done
+
 make ${KERNEL_IMAGE_NAME}
 
 mkdir -p /lava-files/
Signature · 1 line
2.40.1
Acked-by on v3 9/9
#23 lore raw

Re: [PATCH v3 9/9] drm: ci: Use scripts/config to enable/disable configs

Quoted 6 lines · Vignesh Raman

Instead of modifying files in git to enable/disable configs, use scripts/config on the .config file which will be used for building the kernel.

Quoted 43 lines

---

v2:
- Added a new patch in the series to use scripts/config to enable/disable configs

v3:
- No changes

---
  drivers/gpu/drm/ci/build.sh | 14 +++++++-------
  1 file changed, 7 insertions(+), 7 deletions(-)
drivers/gpu/drm/ci/build.sh +7 -7
index 092c195af242..093929a115de 100644
@@ -70,19 +70,19 @@ if [ -z "$CI_MERGE_REQUEST_PROJECT_PATH" ]; then
      fi
  fi
 
-for opt in $ENABLE_KCONFIGS; do
-  echo CONFIG_$opt=y >> drivers/gpu/drm/ci/${KERNEL_ARCH}.config
-done
-for opt in $DISABLE_KCONFIGS; do
-  echo CONFIG_$opt=n >> drivers/gpu/drm/ci/${KERNEL_ARCH}.config
-done
-
  if [[ -n "${MERGE_FRAGMENT}" ]]; then
      ./scripts/kconfig/merge_config.sh ${DEFCONFIG} drivers/gpu/drm/ci/${MERGE_FRAGMENT}
  else
      make `basename ${DEFCONFIG}`
  fi
 
+for opt in $ENABLE_KCONFIGS; do
+    ./scripts/config --enable CONFIG_$opt
+done
+for opt in $DISABLE_KCONFIGS; do
+    ./scripts/config --disable CONFIG_$opt
+done
+
  make ${KERNEL_IMAGE_NAME}
 
  mkdir -p /lava-files/
#24 lore raw
In reply to Vignesh Raman
Quoted 4 lines · Vignesh Raman

The patch series contains improvements, enabling new ci jobs which enables testing for Mediatek MT8173, Qualcomm APQ 8016 and VirtIO GPU, fixing issues with the ci jobs and updating the expectation files. This series is intended for drm branch topic/drm-ci.

Please send DTS and defconfig separately. These patches should go via subsystem maintainer, not drm.

Best regards,
Krzysztof