mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/msm/adreno: allow headless setup on SM8150 MTP
@ 2024-06-23 19:34 Krzysztof Kozlowski
  2024-06-23 19:34 ` [PATCH 2/2] arm64: dts: qcom: sm8150-mtp: drop incorrect amd,imageon Krzysztof Kozlowski
  2024-06-24 14:06 ` [PATCH 1/2] drm/msm/adreno: allow headless setup on SM8150 MTP Konrad Dybcio
  0 siblings, 2 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2024-06-23 19:34 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Rob Clark, Sean Paul, Abhinav Kumar,
	Dmitry Baryshkov, Marijn Suijten, David Airlie, Daniel Vetter,
	linux-arm-msm, devicetree, linux-kernel, dri-devel, freedreno
  Cc: Krzysztof Kozlowski

Commit f30ac26def18 ("arm64: dts: qcom: add sm8150 GPU nodes") re-used
amd,imageon compatible for the SM8150 just to enable headless mode due
to missing display controller nodes.  This work-around was later
narrowed to the SM8150 MTP board in commit 1642ab96efa4 ("arm64: dts:
qcom: sm8150: Don't start Adreno in headless mode").

This was not a correct solution, because the Qualcomm SM8150 SoC does
not have an AMD GPU and the SM8150 MTP board does not have magically
different GPU than SM8150 SoC.

Rely on board compatible to achieve the same in a Devicetree-correct
way.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 drivers/gpu/drm/msm/adreno/adreno_device.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c
index c3703a51287b..a8afe0b6429b 100644
--- a/drivers/gpu/drm/msm/adreno/adreno_device.c
+++ b/drivers/gpu/drm/msm/adreno/adreno_device.c
@@ -838,7 +838,8 @@ static int adreno_probe(struct platform_device *pdev)
 	if (ret)
 		return ret;
 
-	if (of_device_is_compatible(pdev->dev.of_node, "amd,imageon"))
+	if (of_device_is_compatible(pdev->dev.of_node, "amd,imageon") ||
+	    of_machine_is_compatible("qcom,sm8150-mtp"))
 		adreno_device_register_headless();
 
 	return 0;
-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-06-24 15:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-23 19:34 [PATCH 1/2] drm/msm/adreno: allow headless setup on SM8150 MTP Krzysztof Kozlowski
2024-06-23 19:34 ` [PATCH 2/2] arm64: dts: qcom: sm8150-mtp: drop incorrect amd,imageon Krzysztof Kozlowski
2024-06-24 14:06 ` [PATCH 1/2] drm/msm/adreno: allow headless setup on SM8150 MTP Konrad Dybcio
2024-06-24 14:10   ` Krzysztof Kozlowski
2024-06-24 15:13   ` Dmitry Baryshkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®