devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vignesh Raman <vignesh.raman@collabora.com>
To: dri-devel@lists.freedesktop.org
Cc: helen.koike@collabora.com, guilherme.gallo@collabora.com,
	sergi.blanch.torne@collabora.com, david.heidelberg@collabora.com,
	daniels@collabora.com, gustavo.padovan@collabora.com,
	angelogioacchino.delregno@collabora.com, emma@anholt.net,
	robclark@freedesktop.org, robdclark@google.com,
	anholt@google.com, robdclark@gmail.com, airlied@gmail.com,
	daniel@ffwll.ch, jani.nikula@linux.intel.com, mripard@kernel.org,
	dmitry.baryshkov@linaro.org, matthias.bgg@gmail.com,
	agross@kernel.org, andersson@kernel.org,
	konrad.dybcio@linaro.org, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-mediatek@lists.infradead.org,
	virtualization@lists.linux-foundation.org,
	linux-arm-msm@vger.kernel.org
Subject: [PATCH v3 3/9] drm: ci: Force db410c to host mode
Date: Fri,  8 Sep 2023 20:52:19 +0530	[thread overview]
Message-ID: <20230908152225.432139-4-vignesh.raman@collabora.com> (raw)
In-Reply-To: <20230908152225.432139-1-vignesh.raman@collabora.com>

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]

Suggested-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com>
---

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(-)

diff --git a/drivers/gpu/drm/ci/build.sh b/drivers/gpu/drm/ci/build.sh
index 7b014287a041..092c195af242 100644
--- a/drivers/gpu/drm/ci/build.sh
+++ b/drivers/gpu/drm/ci/build.sh
@@ -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
 
-- 
2.40.1


  parent reply	other threads:[~2023-09-08 15:23 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-08 15:22 [PATCH v3 0/9] drm: ci: fixes Vignesh Raman
2023-09-08 15:22 ` [PATCH v3 1/9] drm: ci: igt_runner: Remove todo Vignesh Raman
2023-09-12 16:50   ` Helen Koike
2023-09-08 15:22 ` [PATCH v3 2/9] arm64: dts: qcom: apq8016-sbc: Add overlay for usb host mode Vignesh Raman
2023-09-11  7:56   ` Maxime Ripard
2023-09-11  8:09   ` Krzysztof Kozlowski
2023-09-11 11:50   ` Konrad Dybcio
2023-09-11 12:38     ` Vignesh Raman
2023-09-12 16:51   ` Helen Koike
2023-09-08 15:22 ` Vignesh Raman [this message]
2023-09-11  7:56   ` [PATCH v3 3/9] drm: ci: Force db410c to " Maxime Ripard
2023-09-12 16:52   ` Helen Koike
2023-09-08 15:22 ` [PATCH v3 4/9] drm: ci: virtio: Update ci variables Vignesh Raman
2023-09-12 16:52   ` Helen Koike
2023-09-08 15:22 ` [PATCH v3 5/9] drm: ci: Enable regulator Vignesh Raman
2023-09-12 16:53   ` Helen Koike
2023-09-08 15:22 ` [PATCH v3 6/9] arm64: defconfig: Enable DA9211 regulator Vignesh Raman
2023-09-11  9:04   ` AngeloGioacchino Del Regno
2023-09-12 16:56   ` Helen Koike
2023-09-08 15:22 ` [PATCH v3 7/9] drm: ci: Update xfails Vignesh Raman
2023-09-08 15:22 ` [PATCH v3 8/9] drm: ci: Enable new jobs Vignesh Raman
2023-09-12 17:01   ` Helen Koike
2023-09-08 15:22 ` [PATCH v3 9/9] drm: ci: Use scripts/config to enable/disable configs Vignesh Raman
2023-09-12 17:01   ` Helen Koike
2023-09-11  8:06 ` [PATCH v3 0/9] drm: ci: fixes Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230908152225.432139-4-vignesh.raman@collabora.com \
    --to=vignesh.raman@collabora.com \
    --cc=agross@kernel.org \
    --cc=airlied@gmail.com \
    --cc=andersson@kernel.org \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=anholt@google.com \
    --cc=conor+dt@kernel.org \
    --cc=daniel@ffwll.ch \
    --cc=daniels@collabora.com \
    --cc=david.heidelberg@collabora.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=emma@anholt.net \
    --cc=guilherme.gallo@collabora.com \
    --cc=gustavo.padovan@collabora.com \
    --cc=helen.koike@collabora.com \
    --cc=jani.nikula@linux.intel.com \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=matthias.bgg@gmail.com \
    --cc=mripard@kernel.org \
    --cc=robclark@freedesktop.org \
    --cc=robdclark@gmail.com \
    --cc=robdclark@google.com \
    --cc=robh+dt@kernel.org \
    --cc=sergi.blanch.torne@collabora.com \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).